@zuplo/cli 6.70.68 → 6.70.70
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/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-34MOY5RI.js → chunk-GEVKFSKR.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/{chunk-34MOY5RI.js.map → chunk-GEVKFSKR.js.map} +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-IXLWCUYQ.js → chunk-MJPI3GFA.js} +105 -104
- package/node_modules/@zuplo/runtime/out/esm/chunk-MJPI3GFA.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +13 -13
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +323 -0
- package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +3 -1
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.js +18 -17
- 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 +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +18 -17
- 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/converter.js +5 -4
- package/node_modules/protobufjs/src/decoder.js +1 -1
- package/node_modules/protobufjs/src/service.js +5 -7
- package/node_modules/protobufjs/src/type.js +3 -1
- package/node_modules/protobufjs/src/util/minimal.js +1 -1
- package/node_modules/protobufjs/src/verifier.js +1 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-IXLWCUYQ.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-IXLWCUYQ.js.LEGAL.txt → chunk-MJPI3GFA.js.LEGAL.txt} +0 -0
|
@@ -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&&
|
|
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
|
-
|
|
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] =
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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)
|
|
@@ -119,7 +119,7 @@ util.isset =
|
|
|
119
119
|
*/
|
|
120
120
|
util.isSet = function isSet(obj, prop) {
|
|
121
121
|
var value = obj[prop];
|
|
122
|
-
if (value != null &&
|
|
122
|
+
if (value != null && Object.hasOwnProperty.call(obj, prop)) // eslint-disable-line eqeqeq
|
|
123
123
|
return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
124
124
|
return false;
|
|
125
125
|
};
|
|
@@ -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&&
|
|
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.
|
|
3
|
+
"version": "6.70.70",
|
|
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.
|
|
32
|
+
"@zuplo/core": "6.70.70",
|
|
33
33
|
"@zuplo/editor": "1.0.20821740935",
|
|
34
|
-
"@zuplo/openapi-tools": "6.70.
|
|
35
|
-
"@zuplo/runtime": "6.70.
|
|
34
|
+
"@zuplo/openapi-tools": "6.70.70",
|
|
35
|
+
"@zuplo/runtime": "6.70.70",
|
|
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.
|
|
70
|
-
"@zuplo/otel": "6.70.
|
|
69
|
+
"@zuplo/graphql": "6.70.70",
|
|
70
|
+
"@zuplo/otel": "6.70.70"
|
|
71
71
|
},
|
|
72
72
|
"bundleDependencies": [
|
|
73
73
|
"@fastify/cors",
|