@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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { Writable } = require('stream')
|
|
4
|
+
const { parentPort } = require('worker_threads')
|
|
5
|
+
|
|
6
|
+
async function run () {
|
|
7
|
+
parentPort.postMessage({
|
|
8
|
+
internal: 'watch-mode'
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
return new Writable({
|
|
12
|
+
autoDestroy: true,
|
|
13
|
+
write (chunk, enc, cb) {
|
|
14
|
+
cb()
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
module.exports = run
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { Writable } = require('stream')
|
|
4
|
+
const { threadName, parentPort } = require('worker_threads')
|
|
5
|
+
|
|
6
|
+
module.exports = function () {
|
|
7
|
+
parentPort.once('message', function ({ port }) {
|
|
8
|
+
port.postMessage({ threadName })
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
return new Writable({
|
|
12
|
+
write (chunk, encoding, callback) {
|
|
13
|
+
callback()
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
}
|
|
@@ -27,6 +27,9 @@ test('emit error if thread exits', async function (t) {
|
|
|
27
27
|
})
|
|
28
28
|
|
|
29
29
|
const closed = once(stream, 'close').catch(() => {})
|
|
30
|
+
// Keep a persistent error listener to avoid unhandled late error events
|
|
31
|
+
// reported as asynchronous activity by stricter test runners.
|
|
32
|
+
stream.on('error', () => {})
|
|
30
33
|
|
|
31
34
|
stream.on('ready', () => {
|
|
32
35
|
stream.write('hello world\n')
|
|
@@ -53,6 +56,9 @@ test('emit error if thread have unhandledRejection', async function (t) {
|
|
|
53
56
|
})
|
|
54
57
|
|
|
55
58
|
const closed = once(stream, 'close').catch(() => {})
|
|
59
|
+
// Keep a persistent error listener to avoid unhandled late error events
|
|
60
|
+
// reported as asynchronous activity by stricter test runners.
|
|
61
|
+
stream.on('error', () => {})
|
|
56
62
|
|
|
57
63
|
stream.on('ready', () => {
|
|
58
64
|
stream.write('hello world\n')
|
|
@@ -79,6 +85,9 @@ test('emit error if worker stream emit error', async function (t) {
|
|
|
79
85
|
})
|
|
80
86
|
|
|
81
87
|
const closed = once(stream, 'close').catch(() => {})
|
|
88
|
+
// Keep a persistent error listener to avoid unhandled late error events
|
|
89
|
+
// reported as asynchronous activity by stricter test runners.
|
|
90
|
+
stream.on('error', () => {})
|
|
82
91
|
|
|
83
92
|
stream.on('ready', () => {
|
|
84
93
|
stream.write('hello world\n')
|
|
@@ -105,6 +114,9 @@ test('emit error if thread have uncaughtException', async function (t) {
|
|
|
105
114
|
})
|
|
106
115
|
|
|
107
116
|
const closed = once(stream, 'close').catch(() => {})
|
|
117
|
+
// Keep a persistent error listener to avoid unhandled late error events
|
|
118
|
+
// reported as asynchronous activity by stricter test runners.
|
|
119
|
+
stream.on('error', () => {})
|
|
108
120
|
|
|
109
121
|
stream.on('ready', () => {
|
|
110
122
|
stream.write('hello world\n')
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { test } = require('node:test')
|
|
4
|
+
const assert = require('node:assert')
|
|
5
|
+
const { once } = require('events')
|
|
6
|
+
const { join } = require('path')
|
|
7
|
+
const ThreadStream = require('..')
|
|
8
|
+
|
|
9
|
+
test('ignores worker messages without a protocol code', async function () {
|
|
10
|
+
const stream = new ThreadStream({
|
|
11
|
+
filename: join(__dirname, 'message-without-code.js'),
|
|
12
|
+
sync: false
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const errors = []
|
|
16
|
+
stream.on('error', err => {
|
|
17
|
+
errors.push(err)
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
const ready = once(stream, 'ready')
|
|
21
|
+
const close = once(stream, 'close')
|
|
22
|
+
|
|
23
|
+
assert.ok(stream.write('hello world\n'))
|
|
24
|
+
stream.end()
|
|
25
|
+
|
|
26
|
+
await ready
|
|
27
|
+
await close
|
|
28
|
+
|
|
29
|
+
assert.deepStrictEqual(errors, [])
|
|
30
|
+
})
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { test } = require('node:test')
|
|
4
|
+
const assert = require('node:assert')
|
|
5
|
+
const { join } = require('path')
|
|
6
|
+
const { once } = require('events')
|
|
7
|
+
const { MessageChannel } = require('worker_threads')
|
|
8
|
+
const ThreadStream = require('..')
|
|
9
|
+
|
|
10
|
+
// threadName was added in Node.js v22.20.0 and v24.6.0
|
|
11
|
+
const [major, minor] = process.versions.node.split('.').map(Number)
|
|
12
|
+
const supportsThreadName = (major === 22 && minor >= 20) || major >= 24
|
|
13
|
+
|
|
14
|
+
test('worker has default name "thread-stream"', { skip: !supportsThreadName }, async function (t) {
|
|
15
|
+
const { port1, port2 } = new MessageChannel()
|
|
16
|
+
const stream = new ThreadStream({
|
|
17
|
+
filename: join(__dirname, 'report-thread-name.js'),
|
|
18
|
+
sync: true
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
t.after(() => stream.end())
|
|
22
|
+
|
|
23
|
+
stream.emit('message', { port: port1 }, [port1])
|
|
24
|
+
const [{ threadName }] = await once(port2, 'message')
|
|
25
|
+
assert.strictEqual(threadName, 'thread-stream')
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
test('worker name can be overridden via workerOpts', { skip: !supportsThreadName }, async function (t) {
|
|
29
|
+
const { port1, port2 } = new MessageChannel()
|
|
30
|
+
const stream = new ThreadStream({
|
|
31
|
+
filename: join(__dirname, 'report-thread-name.js'),
|
|
32
|
+
workerOpts: {
|
|
33
|
+
name: 'my-custom-worker'
|
|
34
|
+
},
|
|
35
|
+
sync: true
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
t.after(() => stream.end())
|
|
39
|
+
|
|
40
|
+
stream.emit('message', { port: port1 }, [port1])
|
|
41
|
+
const [{ threadName }] = await once(port2, 'message')
|
|
42
|
+
assert.strictEqual(threadName, 'my-custom-worker')
|
|
43
|
+
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v7.5.
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v7.5.7 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled sat, 09 may 2026 05:45:39 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -3422,8 +3422,10 @@ Namespace.prototype._lookupImpl = function lookup(path, flatPath) {
|
|
|
3422
3422
|
// Otherwise try each nested namespace
|
|
3423
3423
|
} else {
|
|
3424
3424
|
for (var i = 0; i < this.nestedArray.length; ++i)
|
|
3425
|
-
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath)))
|
|
3425
|
+
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath))) {
|
|
3426
3426
|
exact = found;
|
|
3427
|
+
break;
|
|
3428
|
+
}
|
|
3427
3429
|
}
|
|
3428
3430
|
|
|
3429
3431
|
// Set this even when null, so that when we walk up the tree we can quickly bail on repeated checks back down.
|