@zuplo/cli 6.70.69 → 6.70.71

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.
Files changed (60) hide show
  1. package/node_modules/@types/node/README.md +1 -1
  2. package/node_modules/@types/node/http2.d.ts +1 -0
  3. package/node_modules/@types/node/package.json +2 -2
  4. package/node_modules/@zuplo/core/package.json +1 -1
  5. package/node_modules/@zuplo/graphql/package.json +1 -1
  6. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  7. package/node_modules/@zuplo/otel/package.json +1 -1
  8. package/node_modules/@zuplo/runtime/out/esm/{chunk-GEVKFSKR.js → chunk-AZIRK6TC.js} +1 -1
  9. package/node_modules/@zuplo/runtime/out/esm/{chunk-GEVKFSKR.js.map → chunk-AZIRK6TC.js.map} +1 -1
  10. package/node_modules/@zuplo/runtime/out/esm/{chunk-YLRLRHUN.js → chunk-E7U425SB.js} +93 -92
  11. package/node_modules/@zuplo/runtime/out/esm/chunk-E7U425SB.js.map +1 -0
  12. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  13. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  14. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +7 -7
  15. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  16. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  17. package/node_modules/@zuplo/runtime/out/types/index.d.ts +384 -0
  18. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +3 -1
  19. package/node_modules/@zuplo/runtime/package.json +1 -1
  20. package/node_modules/acorn/CHANGELOG.md +14 -0
  21. package/node_modules/acorn/README.md +3 -0
  22. package/node_modules/acorn/dist/acorn.d.mts +6 -0
  23. package/node_modules/acorn/dist/acorn.d.ts +6 -0
  24. package/node_modules/acorn/dist/acorn.js +87 -49
  25. package/node_modules/acorn/dist/acorn.mjs +87 -49
  26. package/node_modules/acorn/package.json +2 -2
  27. package/node_modules/protobufjs/dist/light/protobuf.js +161 -203
  28. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  29. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  30. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  31. package/node_modules/protobufjs/dist/minimal/protobuf.js +34 -77
  32. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  33. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  34. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  35. package/node_modules/protobufjs/dist/protobuf.js +181 -223
  36. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  37. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  38. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  39. package/node_modules/protobufjs/index.d.ts +0 -8
  40. package/node_modules/protobufjs/package.json +2 -3
  41. package/node_modules/protobufjs/src/converter.js +5 -4
  42. package/node_modules/protobufjs/src/decoder.js +1 -1
  43. package/node_modules/protobufjs/src/service.js +5 -7
  44. package/node_modules/protobufjs/src/type.js +3 -1
  45. package/node_modules/protobufjs/src/util/minimal.js +1 -4
  46. package/node_modules/protobufjs/src/verifier.js +1 -1
  47. package/package.json +6 -6
  48. package/node_modules/@protobufjs/inquire/CHANGELOG.md +0 -8
  49. package/node_modules/@protobufjs/inquire/LICENSE +0 -26
  50. package/node_modules/@protobufjs/inquire/README.md +0 -13
  51. package/node_modules/@protobufjs/inquire/index.d.ts +0 -10
  52. package/node_modules/@protobufjs/inquire/index.js +0 -38
  53. package/node_modules/@protobufjs/inquire/package.json +0 -21
  54. package/node_modules/@protobufjs/inquire/tests/data/array.js +0 -1
  55. package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +0 -1
  56. package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +0 -1
  57. package/node_modules/@protobufjs/inquire/tests/data/object.js +0 -1
  58. package/node_modules/@protobufjs/inquire/tests/index.js +0 -20
  59. package/node_modules/@zuplo/runtime/out/esm/chunk-YLRLRHUN.js.map +0 -1
  60. /package/node_modules/@zuplo/runtime/out/esm/{chunk-YLRLRHUN.js.LEGAL.txt → chunk-E7U425SB.js.LEGAL.txt} +0 -0
@@ -2489,14 +2489,6 @@ export namespace util {
2489
2489
  */
2490
2490
  function fetch(path: string, options?: IFetchOptions): Promise<(string|Uint8Array)>;
2491
2491
 
2492
- /**
2493
- * Requires a module only if available.
2494
- * @param moduleName Module to require
2495
- * @returns Required module if available and not empty, otherwise `null`
2496
- * @deprecated Legacy optional require helper. Will be removed in a future release.
2497
- */
2498
- function inquire(moduleName: string): object;
2499
-
2500
2492
  /** A minimal path module to resolve Unix, Windows and URL paths alike. */
2501
2493
  namespace path {
2502
2494
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobufjs",
3
- "version": "7.6.2",
3
+ "version": "7.6.4",
4
4
  "versionScheme": "~",
5
5
  "description": "Protocol Buffers for JavaScript (& TypeScript).",
6
6
  "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
@@ -37,7 +37,7 @@
37
37
  "bench": "node bench",
38
38
  "build": "npm run build:bundle && npm run build:types",
39
39
  "build:bundle": "gulp --gulpfile scripts/gulpfile.js",
40
- "build:types": "node cli/bin/pbts --main --global protobuf --out index.d.ts src/ lib/aspromise/index.js lib/base64/index.js lib/codegen/index.js lib/eventemitter/index.js lib/float/index.js lib/fetch/index.js lib/inquire/index.js lib/path/index.js lib/pool/index.js lib/utf8/index.js",
40
+ "build:types": "node cli/bin/pbts --main --global protobuf --out index.d.ts src/ lib/aspromise/index.js lib/base64/index.js lib/codegen/index.js lib/eventemitter/index.js lib/float/index.js lib/fetch/index.js lib/path/index.js lib/pool/index.js lib/utf8/index.js",
41
41
  "changelog": "node scripts/changelog -w",
42
42
  "coverage": "npm run coverage:test && npm run coverage:report",
43
43
  "coverage:test": "nyc --silent tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
@@ -63,7 +63,6 @@
63
63
  "@protobufjs/eventemitter": "^1.1.1",
64
64
  "@protobufjs/fetch": "^1.1.1",
65
65
  "@protobufjs/float": "^1.0.2",
66
- "@protobufjs/inquire": "^1.1.2",
67
66
  "@protobufjs/path": "^1.1.2",
68
67
  "@protobufjs/pool": "^1.1.0",
69
68
  "@protobufjs/utf8": "^1.1.1",
@@ -107,14 +107,15 @@ converter.fromObject = function fromObject(mtype) {
107
107
  var fields = mtype.fieldsArray;
108
108
  var gen = util.codegen(["d", "n"], mtype.name + "$fromObject")
109
109
  ("if(d instanceof this.ctor)")
110
- ("return d")
110
+ ("return d");
111
+ if (!fields.length) return gen
112
+ ("return new this.ctor");
113
+ gen
111
114
  ("if(!util.isObject(d))")
112
115
  ("throw TypeError(%j)", mtype.fullName + ": object expected")
113
116
  ("if(n===undefined)n=0")
114
117
  ("if(n>util.recursionLimit)")
115
118
  ("throw Error(\"maximum nesting depth exceeded\")");
116
- if (!fields.length) return gen
117
- ("return new this.ctor");
118
119
  gen
119
120
  ("var m=new this.ctor");
120
121
  for (var i = 0; i < fields.length; ++i) {
@@ -302,7 +303,7 @@ converter.toObject = function toObject(mtype) {
302
303
  genValuePartial_toObject(gen, field, /* sorted */ index, prop + "[j]")
303
304
  ("}");
304
305
  } else { gen
305
- ("if(m%s!=null&&m.hasOwnProperty(%j)){", prop, field.name); // !== undefined && !== null
306
+ ("if(m%s!=null&&Object.hasOwnProperty.call(m,%j)){", prop, field.name); // !== undefined && !== null
306
307
  genValuePartial_toObject(gen, field, /* sorted */ index, prop);
307
308
  if (field.partOf) gen
308
309
  ("if(o.oneofs)")
@@ -125,7 +125,7 @@ function decoder(mtype) {
125
125
  for (i = 0; i < mtype._fieldsArray.length; ++i) {
126
126
  var rfield = mtype._fieldsArray[i];
127
127
  if (rfield.required) gen
128
- ("if(!m.hasOwnProperty(%j))", rfield.name)
128
+ ("if(!Object.hasOwnProperty.call(m,%j))", rfield.name)
129
129
  ("throw util.ProtocolError(%j,{instance:m})", missing(rfield));
130
130
  }
131
131
 
@@ -9,8 +9,6 @@ var Method = require("./method"),
9
9
  util = require("./util"),
10
10
  rpc = require("./rpc");
11
11
 
12
- var reservedRe = util.patterns.reservedRe;
13
-
14
12
  /**
15
13
  * Constructs a new service instance.
16
14
  * @classdesc Reflected service.
@@ -185,11 +183,11 @@ Service.prototype.create = function create(rpcImpl, requestDelimited, responseDe
185
183
  var rpcService = new rpc.Service(rpcImpl, requestDelimited, responseDelimited);
186
184
  for (var i = 0, method; i < /* initializes */ this.methodsArray.length; ++i) {
187
185
  var methodName = util.lcFirst((method = this._methodsArray[i]).resolve().name).replace(/[^$\w_]/g, "");
188
- rpcService[methodName] = util.codegen(["r","c"], reservedRe.test(methodName) ? methodName + "_" : methodName)("return this.rpcCall(m,q,s,r,c)")({
189
- m: method,
190
- q: method.resolvedRequestType.ctor,
191
- s: method.resolvedResponseType.ctor
192
- });
186
+ rpcService[methodName] = (function(method, requestType, responseType) {
187
+ return function rpcMethod(request, callback) {
188
+ return rpc.Service.prototype.rpcCall.call(this, method, requestType, responseType, request, callback);
189
+ };
190
+ })(method, method.resolvedRequestType.ctor, method.resolvedResponseType.ctor);
193
191
  }
194
192
  return rpcService;
195
193
  };
@@ -373,7 +373,7 @@ Type.prototype.add = function add(object) {
373
373
  throw Error("duplicate id " + object.id + " in " + this);
374
374
  if (this.isReservedId(object.id))
375
375
  throw Error("id " + object.id + " is reserved in " + this);
376
- if (this.isReservedName(object.name))
376
+ if (this.isReservedName(object.name) || object.name.charAt(0) === "$")
377
377
  throw Error("name '" + object.name + "' is reserved in " + this);
378
378
  if (object.name === "__proto__")
379
379
  return this;
@@ -386,6 +386,8 @@ Type.prototype.add = function add(object) {
386
386
  return clearCache(this);
387
387
  }
388
388
  if (object instanceof OneOf) {
389
+ if (object.name.charAt(0) === "$")
390
+ throw Error("name '" + object.name + "' is reserved in " + this);
389
391
  if (object.name === "__proto__")
390
392
  return this;
391
393
  if (!this.oneofs)
@@ -13,9 +13,6 @@ util.EventEmitter = require("@protobufjs/eventemitter");
13
13
  // float handling accross browsers
14
14
  util.float = require("@protobufjs/float");
15
15
 
16
- // requires modules optionally and hides the call from bundlers
17
- util.inquire = require("@protobufjs/inquire");
18
-
19
16
  // converts to / from utf8 encoded strings
20
17
  util.utf8 = require("@protobufjs/utf8");
21
18
 
@@ -119,7 +116,7 @@ util.isset =
119
116
  */
120
117
  util.isSet = function isSet(obj, prop) {
121
118
  var value = obj[prop];
122
- if (value != null && obj.hasOwnProperty(prop)) // eslint-disable-line eqeqeq, no-prototype-builtins
119
+ if (value != null && Object.hasOwnProperty.call(obj, prop)) // eslint-disable-line eqeqeq
123
120
  return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
124
121
  return false;
125
122
  };
@@ -138,7 +138,7 @@ function verifier(mtype) {
138
138
  ref = "m" + util.safeProp(field.name);
139
139
 
140
140
  if (field.optional) gen
141
- ("if(%s!=null&&m.hasOwnProperty(%j)){", ref, field.name); // !== undefined && !== null
141
+ ("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", ref, field.name); // !== undefined && !== null
142
142
 
143
143
  // map fields
144
144
  if (field.map) { gen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "6.70.69",
3
+ "version": "6.70.71",
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.70.69",
32
+ "@zuplo/core": "6.70.71",
33
33
  "@zuplo/editor": "1.0.20821740935",
34
- "@zuplo/openapi-tools": "6.70.69",
35
- "@zuplo/runtime": "6.70.69",
34
+ "@zuplo/openapi-tools": "6.70.71",
35
+ "@zuplo/runtime": "6.70.71",
36
36
  "chalk": "5.4.1",
37
37
  "chokidar": "3.5.3",
38
38
  "cookie": "1.0.2",
@@ -66,8 +66,8 @@
66
66
  "workerd": "1.20241230.0",
67
67
  "yargs": "17.7.2",
68
68
  "zod": "3.25.76",
69
- "@zuplo/graphql": "6.70.69",
70
- "@zuplo/otel": "6.70.69"
69
+ "@zuplo/graphql": "6.70.71",
70
+ "@zuplo/otel": "6.70.71"
71
71
  },
72
72
  "bundleDependencies": [
73
73
  "@fastify/cors",
@@ -1,8 +0,0 @@
1
- # Changelog
2
-
3
- ## [1.1.2](https://github.com/protobufjs/protobuf.js/compare/inquire-v1.1.1...inquire-v1.1.2) (2026-05-17)
4
-
5
-
6
- ### Bug Fixes
7
-
8
- * Backport bundler-safe optional module lookups ([#2254](https://github.com/protobufjs/protobuf.js/issues/2254)) ([0853a62](https://github.com/protobufjs/protobuf.js/commit/0853a625680f9247596b84ef48082b8f4e554797))
@@ -1,26 +0,0 @@
1
- Copyright (c) 2016, Daniel Wirtz All rights reserved.
2
-
3
- Redistribution and use in source and binary forms, with or without
4
- modification, are permitted provided that the following conditions are
5
- met:
6
-
7
- * Redistributions of source code must retain the above copyright
8
- notice, this list of conditions and the following disclaimer.
9
- * Redistributions in binary form must reproduce the above copyright
10
- notice, this list of conditions and the following disclaimer in the
11
- documentation and/or other materials provided with the distribution.
12
- * Neither the name of its author, nor the names of its contributors
13
- may be used to endorse or promote products derived from this software
14
- without specific prior written permission.
15
-
16
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,13 +0,0 @@
1
- @protobufjs/inquire
2
- ===================
3
- [![npm](https://img.shields.io/npm/v/@protobufjs/inquire.svg)](https://www.npmjs.com/package/@protobufjs/inquire)
4
-
5
- Requires a module only if available and hides the require call from bundlers.
6
-
7
- API
8
- ---
9
-
10
- * **inquire(moduleName: `string`): `?Object`**<br />
11
- Requires a module only if available.
12
-
13
- **License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
@@ -1,10 +0,0 @@
1
- export = inquire;
2
-
3
- /**
4
- * Requires a module only if available.
5
- * @memberof util
6
- * @param {string} moduleName Module to require
7
- * @returns {?Object} Required module if available and not empty, otherwise `null`
8
- * @deprecated Legacy optional require helper. Will be removed in a future release.
9
- */
10
- declare function inquire(moduleName: string): object;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- module.exports = inquire;
3
-
4
- /**
5
- * Requires a module only if available.
6
- * @memberof util
7
- * @param {string} moduleName Module to require
8
- * @returns {?Object} Required module if available and not empty, otherwise `null`
9
- * @deprecated Legacy optional require helper. Will be removed in a future release.
10
- */
11
- function inquire(moduleName) {
12
- try {
13
- if (typeof require !== "function") {
14
- return null;
15
- }
16
- var mod = require(moduleName);
17
- if (mod && (mod.length || Object.keys(mod).length)) return mod;
18
- return null;
19
- } catch (err) {
20
- // ignore
21
- return null;
22
- }
23
- }
24
-
25
- /*
26
- // maybe worth a shot to prevent renaming issues:
27
- // see: https://github.com/webpack/webpack/blob/master/lib/dependencies/CommonJsRequireDependencyParserPlugin.js
28
- // triggers on:
29
- // - expression require.cache
30
- // - expression require (???)
31
- // - call require
32
- // - call require:commonjs:item
33
- // - call require:commonjs:context
34
-
35
- Object.defineProperty(Function.prototype, "__self", { get: function() { return this; } });
36
- var r = require.__self;
37
- delete Function.prototype.__self;
38
- */
@@ -1,21 +0,0 @@
1
- {
2
- "name": "@protobufjs/inquire",
3
- "description": "Requires a module only if available and hides the require call from bundlers.",
4
- "version": "1.1.2",
5
- "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/dcodeIO/protobuf.js.git"
9
- },
10
- "license": "BSD-3-Clause",
11
- "main": "index.js",
12
- "types": "index.d.ts",
13
- "devDependencies": {
14
- "istanbul": "^0.4.5",
15
- "tape": "^5.0.0"
16
- },
17
- "scripts": {
18
- "test": "tape tests/*.js",
19
- "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js"
20
- }
21
- }
@@ -1 +0,0 @@
1
- module.exports = [1];
@@ -1 +0,0 @@
1
- module.exports = [];
@@ -1 +0,0 @@
1
- module.exports = {};
@@ -1 +0,0 @@
1
- module.exports = { a: 1 };
@@ -1,20 +0,0 @@
1
- var tape = require("tape");
2
-
3
- var inquire = require("..");
4
-
5
- tape.test("inquire", function(test) {
6
-
7
- test.equal(inquire("buffer").Buffer, Buffer, "should be able to require \"buffer\"");
8
-
9
- test.equal(inquire("%invalid"), null, "should not be able to require \"%invalid\"");
10
-
11
- test.equal(inquire("./tests/data/emptyObject"), null, "should return null when requiring a module exporting an empty object");
12
-
13
- test.equal(inquire("./tests/data/emptyArray"), null, "should return null when requiring a module exporting an empty array");
14
-
15
- test.same(inquire("./tests/data/object"), { a: 1 }, "should return the object if a non-empty object");
16
-
17
- test.same(inquire("./tests/data/array"), [ 1 ], "should return the module if a non-empty array");
18
-
19
- test.end();
20
- });