Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
src/.openapi-generator
lib/.openapi-generator
dist
.idea
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DockerClient } from './src/docker-client.js';
import { DockerClient } from './lib/docker-client.js';
import * as fs from 'node:fs';

try {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
},
"files": [
"dist",
"src"
"lib"
],
"scripts": {
"generate": "openapi-generator-cli generate -i swagger.yaml -c openapi-config.yaml -o src && npm run format",
"generate": "openapi-generator-cli generate -i swagger.yaml -c openapi-config.yaml -o lib && npm run format",
"build": "npm run generate && tsup",
"test": "vitest run",
"lint": "oxlint --type-aware",
Expand Down
4 changes: 2 additions & 2 deletions src/e2e.test.ts → test/e2e.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert, test } from 'vitest';
import { DockerClient } from './docker-client.js';
import { Filter } from './filter.js';
import { DockerClient } from '../lib/docker-client.js';
import { Filter } from '../lib/filter.js';

// Test Docker API connectivity
test('systemPing should return API version', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/filter.test.ts → test/filter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert, test } from 'vitest';
import { Filter } from './filter.js';
import { Filter } from '../lib/filter.js';

test('Filter should serialize single key with single value to JSON', () => {
const filter = new Filter();
Expand Down
2 changes: 1 addition & 1 deletion src/http.test.ts → test/http.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert, test } from 'vitest';
import { HTTPParser } from './http.js';
import { HTTPParser } from '../lib/http.js';

test('parseChunkedBody should parse simple chunked data', () => {
const chunkedData = '5\r\nhello\r\n5\r\nworld\r\n0\r\n\r\n';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert, test } from 'vitest';
import { createMultiplexedStreamCallback } from './multiplexed-stream.js';
import { createMultiplexedStreamCallback } from '../lib/multiplexed-stream.js';
import { Writable } from 'stream';

function createMockStream(): { stream: Writable; data: Buffer[] } {
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['src/index.ts'],
entry: ['lib/index.ts'],

format: ['cjs', 'esm'],
dts: false, // disable dts generation for now to work through type issues
Expand Down