@zuplo/cli 6.69.10 → 6.69.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/integration/jest-mocks-setup.js +3 -0
- package/dist/__tests__/integration/jest-mocks-setup.js.map +1 -1
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/dist/cmds/bucket/list.d.ts.map +1 -1
- package/dist/cmds/bucket/list.js +1 -8
- package/dist/cmds/bucket/list.js.map +1 -1
- package/dist/cmds/build.d.ts.map +1 -1
- package/dist/cmds/build.js +1 -2
- package/dist/cmds/build.js.map +1 -1
- package/dist/cmds/compile.d.ts.map +1 -1
- package/dist/cmds/compile.js +1 -2
- package/dist/cmds/compile.js.map +1 -1
- package/dist/cmds/custom-domain/create.d.ts.map +1 -1
- package/dist/cmds/custom-domain/create.js +1 -8
- package/dist/cmds/custom-domain/create.js.map +1 -1
- package/dist/cmds/custom-domain/delete.d.ts.map +1 -1
- package/dist/cmds/custom-domain/delete.js +1 -8
- package/dist/cmds/custom-domain/delete.js.map +1 -1
- package/dist/cmds/custom-domain/list.d.ts.map +1 -1
- package/dist/cmds/custom-domain/list.js +1 -8
- package/dist/cmds/custom-domain/list.js.map +1 -1
- package/dist/cmds/custom-domain/update.d.ts.map +1 -1
- package/dist/cmds/custom-domain/update.js +1 -8
- package/dist/cmds/custom-domain/update.js.map +1 -1
- package/dist/cmds/delete.d.ts.map +1 -1
- package/dist/cmds/delete.js +0 -2
- package/dist/cmds/delete.js.map +1 -1
- package/dist/cmds/deploy.d.ts.map +1 -1
- package/dist/cmds/deploy.js +0 -2
- package/dist/cmds/deploy.js.map +1 -1
- package/dist/cmds/dev.d.ts.map +1 -1
- package/dist/cmds/dev.js +1 -2
- package/dist/cmds/dev.js.map +1 -1
- package/dist/cmds/docs.d.ts.map +1 -1
- package/dist/cmds/docs.js +1 -2
- package/dist/cmds/docs.js.map +1 -1
- package/dist/cmds/editor.d.ts.map +1 -1
- package/dist/cmds/editor.js +1 -2
- package/dist/cmds/editor.js.map +1 -1
- package/dist/cmds/init.d.ts.map +1 -1
- package/dist/cmds/init.js +1 -3
- package/dist/cmds/init.js.map +1 -1
- package/dist/cmds/link.d.ts.map +1 -1
- package/dist/cmds/link.js +0 -2
- package/dist/cmds/link.js.map +1 -1
- package/dist/cmds/list.d.ts.map +1 -1
- package/dist/cmds/list.js +0 -2
- package/dist/cmds/list.js.map +1 -1
- package/dist/cmds/login.d.ts.map +1 -1
- package/dist/cmds/login.js +2 -2
- package/dist/cmds/login.js.map +1 -1
- package/dist/cmds/logout.d.ts.map +1 -1
- package/dist/cmds/logout.js +2 -3
- package/dist/cmds/logout.js.map +1 -1
- package/dist/cmds/mtls-certificates/create.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/create.js +0 -2
- package/dist/cmds/mtls-certificates/create.js.map +1 -1
- package/dist/cmds/mtls-certificates/delete.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/delete.js +0 -2
- package/dist/cmds/mtls-certificates/delete.js.map +1 -1
- package/dist/cmds/mtls-certificates/describe.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/describe.js +0 -2
- package/dist/cmds/mtls-certificates/describe.js.map +1 -1
- package/dist/cmds/mtls-certificates/disable.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/disable.js +0 -2
- package/dist/cmds/mtls-certificates/disable.js.map +1 -1
- package/dist/cmds/mtls-certificates/list.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/list.js +0 -2
- package/dist/cmds/mtls-certificates/list.js.map +1 -1
- package/dist/cmds/mtls-certificates/update.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/update.js +0 -2
- package/dist/cmds/mtls-certificates/update.js.map +1 -1
- package/dist/cmds/project/create.d.ts.map +1 -1
- package/dist/cmds/project/create.js +1 -8
- package/dist/cmds/project/create.js.map +1 -1
- package/dist/cmds/project/info.d.ts.map +1 -1
- package/dist/cmds/project/info.js +1 -2
- package/dist/cmds/project/info.js.map +1 -1
- package/dist/cmds/proxies/create.d.ts.map +1 -1
- package/dist/cmds/proxies/create.js +0 -2
- package/dist/cmds/proxies/create.js.map +1 -1
- package/dist/cmds/proxies/delete.d.ts.map +1 -1
- package/dist/cmds/proxies/delete.js +0 -2
- package/dist/cmds/proxies/delete.js.map +1 -1
- package/dist/cmds/proxies/describe.d.ts.map +1 -1
- package/dist/cmds/proxies/describe.js +0 -2
- package/dist/cmds/proxies/describe.js.map +1 -1
- package/dist/cmds/proxies/update.d.ts.map +1 -1
- package/dist/cmds/proxies/update.js +0 -2
- package/dist/cmds/proxies/update.js.map +1 -1
- package/dist/cmds/source/migrate.d.ts.map +1 -1
- package/dist/cmds/source/migrate.js +1 -2
- package/dist/cmds/source/migrate.js.map +1 -1
- package/dist/cmds/source/upgrade.d.ts.map +1 -1
- package/dist/cmds/source/upgrade.js +1 -2
- package/dist/cmds/source/upgrade.js.map +1 -1
- package/dist/cmds/test.d.ts.map +1 -1
- package/dist/cmds/test.js +1 -2
- package/dist/cmds/test.js.map +1 -1
- package/dist/cmds/tunnel/create.d.ts.map +1 -1
- package/dist/cmds/tunnel/create.js +1 -8
- package/dist/cmds/tunnel/create.js.map +1 -1
- package/dist/cmds/tunnel/delete.d.ts.map +1 -1
- package/dist/cmds/tunnel/delete.js +1 -8
- package/dist/cmds/tunnel/delete.js.map +1 -1
- package/dist/cmds/tunnel/describe.d.ts.map +1 -1
- package/dist/cmds/tunnel/describe.js +1 -8
- package/dist/cmds/tunnel/describe.js.map +1 -1
- package/dist/cmds/tunnel/list.d.ts.map +1 -1
- package/dist/cmds/tunnel/list.js +1 -8
- package/dist/cmds/tunnel/list.js.map +1 -1
- package/dist/cmds/tunnel/rotate-token.d.ts.map +1 -1
- package/dist/cmds/tunnel/rotate-token.js +1 -8
- package/dist/cmds/tunnel/rotate-token.js.map +1 -1
- package/dist/cmds/tunnel/services/describe.d.ts.map +1 -1
- package/dist/cmds/tunnel/services/describe.js +1 -8
- package/dist/cmds/tunnel/services/describe.js.map +1 -1
- package/dist/cmds/tunnel/services/update.d.ts.map +1 -1
- package/dist/cmds/tunnel/services/update.js +1 -8
- package/dist/cmds/tunnel/services/update.js.map +1 -1
- package/dist/cmds/variable/create.d.ts.map +1 -1
- package/dist/cmds/variable/create.js +0 -2
- package/dist/cmds/variable/create.js.map +1 -1
- package/dist/cmds/variable/update.d.ts.map +1 -1
- package/dist/cmds/variable/update.js +0 -2
- package/dist/cmds/variable/update.js.map +1 -1
- package/dist/cmds/whoami.d.ts.map +1 -1
- package/dist/cmds/whoami.js +1 -2
- package/dist/cmds/whoami.js.map +1 -1
- package/dist/common/middleware/check-pnpm-lifecycle.d.ts +17 -0
- package/dist/common/middleware/check-pnpm-lifecycle.d.ts.map +1 -0
- package/dist/common/middleware/check-pnpm-lifecycle.js +96 -0
- package/dist/common/middleware/check-pnpm-lifecycle.js.map +1 -0
- package/dist/common/middleware/check-pnpm-lifecycle.test.d.ts +2 -0
- package/dist/common/middleware/check-pnpm-lifecycle.test.d.ts.map +1 -0
- package/dist/common/middleware/check-pnpm-lifecycle.test.js +125 -0
- package/dist/common/middleware/check-pnpm-lifecycle.test.js.map +1 -0
- package/dist/common/utils/pnpm-lifecycle.d.ts +13 -0
- package/dist/common/utils/pnpm-lifecycle.d.ts.map +1 -0
- package/dist/common/utils/pnpm-lifecycle.js +100 -0
- package/dist/common/utils/pnpm-lifecycle.js.map +1 -0
- package/dist/common/utils/pnpm-lifecycle.test.d.ts +2 -0
- package/dist/common/utils/pnpm-lifecycle.test.d.ts.map +1 -0
- package/dist/common/utils/pnpm-lifecycle.test.js +177 -0
- package/dist/common/utils/pnpm-lifecycle.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/graphql/out/types/index.d.ts +3 -0
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +2 -2
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js +94 -94
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +72 -0
- package/node_modules/@zuplo/runtime/package.json +2 -2
- package/node_modules/pino-http/node_modules/thread-stream/.github/workflows/ci.yml +4 -4
- package/node_modules/pino-http/node_modules/thread-stream/README.md +4 -1
- package/node_modules/pino-http/node_modules/thread-stream/index.d.ts +7 -0
- package/node_modules/pino-http/node_modules/thread-stream/index.js +120 -21
- package/node_modules/pino-http/node_modules/thread-stream/lib/worker.js +101 -0
- package/node_modules/pino-http/node_modules/thread-stream/node_modules/real-require/LICENSE.md +21 -0
- package/node_modules/pino-http/node_modules/thread-stream/node_modules/real-require/README.md +51 -0
- package/node_modules/pino-http/node_modules/thread-stream/node_modules/real-require/package.json +38 -0
- package/node_modules/pino-http/node_modules/thread-stream/node_modules/real-require/src/index.js +14 -0
- package/node_modules/pino-http/node_modules/thread-stream/package.json +10 -12
- package/node_modules/pino-http/node_modules/thread-stream/test/flush-worker.js +68 -0
- package/node_modules/pino-http/node_modules/thread-stream/test/flush.test.js +112 -0
- package/node_modules/pino-http/node_modules/thread-stream/test/message-without-code.js +19 -0
- package/node_modules/pino-http/node_modules/thread-stream/test/report-thread-name.js +16 -0
- package/node_modules/pino-http/node_modules/thread-stream/test/thread-management.test.js +12 -0
- package/node_modules/pino-http/node_modules/thread-stream/test/watch-mode.test.js +30 -0
- package/node_modules/pino-http/node_modules/thread-stream/test/worker-name.test.js +43 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +5 -3
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +5 -3
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/namespace.js +3 -1
- package/package.json +7 -7
- package/node_modules/pino-http/node_modules/thread-stream/.husky/pre-commit +0 -4
- package/node_modules/pino-http/node_modules/thread-stream/CLAUDE.md +0 -53
|
@@ -466,8 +466,10 @@ Namespace.prototype._lookupImpl = function lookup(path, flatPath) {
|
|
|
466
466
|
// Otherwise try each nested namespace
|
|
467
467
|
} else {
|
|
468
468
|
for (var i = 0; i < this.nestedArray.length; ++i)
|
|
469
|
-
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath)))
|
|
469
|
+
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath))) {
|
|
470
470
|
exact = found;
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
471
473
|
}
|
|
472
474
|
|
|
473
475
|
// Set this even when null, so that when we walk up the tree we can quickly bail on repeated checks back down.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "6.69.
|
|
3
|
+
"version": "6.69.11",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@opentelemetry/api": "1.9.0",
|
|
30
30
|
"@sentry/node": "9.22.0",
|
|
31
31
|
"@swc/core": "1.10.18",
|
|
32
|
-
"@zuplo/core": "6.69.
|
|
32
|
+
"@zuplo/core": "6.69.11",
|
|
33
33
|
"@zuplo/editor": "1.0.20821740935",
|
|
34
|
-
"@zuplo/openapi-tools": "6.69.
|
|
35
|
-
"@zuplo/runtime": "6.69.
|
|
34
|
+
"@zuplo/openapi-tools": "6.69.11",
|
|
35
|
+
"@zuplo/runtime": "6.69.11",
|
|
36
36
|
"chalk": "5.4.1",
|
|
37
37
|
"chokidar": "3.5.3",
|
|
38
38
|
"cookie": "1.0.2",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"undici": "6.24.1",
|
|
66
66
|
"workerd": "1.20241230.0",
|
|
67
67
|
"yargs": "17.7.2",
|
|
68
|
-
"zod": "
|
|
69
|
-
"@zuplo/graphql": "6.69.
|
|
70
|
-
"@zuplo/otel": "6.69.
|
|
68
|
+
"zod": "3.25.76",
|
|
69
|
+
"@zuplo/graphql": "6.69.11",
|
|
70
|
+
"@zuplo/otel": "6.69.11"
|
|
71
71
|
},
|
|
72
72
|
"bundleDependencies": [
|
|
73
73
|
"@fastify/cors",
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# CLAUDE.md
|
|
2
|
-
|
|
3
|
-
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
|
-
|
|
5
|
-
## Build & Test Commands
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm test # Run linter (standard), type check, transpile, and all tests
|
|
9
|
-
npm run build # Type check only (tsc --noEmit)
|
|
10
|
-
npm run transpile # Generate transpiled test files for various ES targets
|
|
11
|
-
|
|
12
|
-
# Run a single test file
|
|
13
|
-
npx tap test/base.test.js
|
|
14
|
-
|
|
15
|
-
# Run only JavaScript tests (faster)
|
|
16
|
-
npx tap "test/**/*.test.*js"
|
|
17
|
-
|
|
18
|
-
# Run only TypeScript tests
|
|
19
|
-
npx tap --ts test/*.test.*ts
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Code Style
|
|
23
|
-
|
|
24
|
-
This project uses [Standard](https://standardjs.com/) for linting. No semicolons, 2-space indentation.
|
|
25
|
-
|
|
26
|
-
## Architecture
|
|
27
|
-
|
|
28
|
-
thread-stream is a library for streaming data to a Node.js Worker Thread using SharedArrayBuffer for high-performance inter-thread communication.
|
|
29
|
-
|
|
30
|
-
### Core Components
|
|
31
|
-
|
|
32
|
-
- **index.js** - Main `ThreadStream` class extending EventEmitter. Manages the worker lifecycle, handles writes via SharedArrayBuffer, and coordinates synchronization using Atomics.
|
|
33
|
-
|
|
34
|
-
- **lib/worker.js** - Runs in the Worker Thread. Loads the user-provided destination module, reads data from SharedArrayBuffer, and writes to the destination stream. Handles both ESM and CommonJS modules, including yarn PnP compatibility.
|
|
35
|
-
|
|
36
|
-
- **lib/indexes.js** - Defines SharedArrayBuffer index constants (`WRITE_INDEX`, `READ_INDEX`) used for Atomics coordination.
|
|
37
|
-
|
|
38
|
-
- **lib/wait.js** - Async polling utilities (`wait`, `waitDiff`) for cross-thread synchronization without blocking the main thread.
|
|
39
|
-
|
|
40
|
-
### Data Flow
|
|
41
|
-
|
|
42
|
-
1. Main thread writes strings to an internal buffer, then copies to SharedArrayBuffer
|
|
43
|
-
2. Atomics.notify signals the worker that data is available
|
|
44
|
-
3. Worker reads from SharedArrayBuffer via Atomics.load and writes to destination stream
|
|
45
|
-
4. Worker updates READ_INDEX and notifies main thread when done
|
|
46
|
-
5. Special index values (-1 for end, -2 for error) signal stream termination
|
|
47
|
-
|
|
48
|
-
### Key Features
|
|
49
|
-
|
|
50
|
-
- **Sync/async modes** - `sync: true` blocks until data is written; async mode uses `setImmediate` batching
|
|
51
|
-
- **Backpressure** - Handles `drain` events from destination streams
|
|
52
|
-
- **GC cleanup** - Uses FinalizationRegistry to terminate orphaned workers
|
|
53
|
-
- **TypeScript support** - Workers can be `.ts` files (requires ts-node)
|