@sentio/runtime 2.62.0-rc.9 → 2.62.1-rc.1
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/lib/{chunk-AHIIUVQL.js → chunk-BIFWYVK4.js} +347 -347
- package/lib/{chunk-AHIIUVQL.js.map → chunk-BIFWYVK4.js.map} +1 -1
- package/lib/{chunk-PCB4OKW7.js → chunk-CPJKSHSV.js} +2 -1
- package/lib/{chunk-W3VN25ER.js → chunk-MV6JXS2P.js} +2 -2
- package/lib/{chunk-I5YHR3CE.js → chunk-OFR7W4ZG.js} +5931 -7800
- package/lib/chunk-OFR7W4ZG.js.map +1 -0
- package/lib/{getMachineId-bsd-WJ6BLVOD.js → getMachineId-bsd-ZJR2OQTA.js} +2 -2
- package/lib/{getMachineId-darwin-TW74DVT5.js → getMachineId-darwin-OW6SYINH.js} +2 -2
- package/lib/{getMachineId-linux-MDJOKOMI.js → getMachineId-linux-L5XPRJBN.js} +2 -2
- package/lib/{getMachineId-unsupported-X2EJZ25K.js → getMachineId-unsupported-B3NMIOO3.js} +2 -2
- package/lib/{getMachineId-win-VE7DMTAF.js → getMachineId-win-TT64F63B.js} +2 -2
- package/lib/index.d.ts +182 -88
- package/lib/index.js +3 -3
- package/lib/{processor-HNY62jHs.d.ts → processor-CIR4erWa.d.ts} +0 -32
- package/lib/processor-runner.js +14213 -5883
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +4 -4
- package/lib/test-processor.test.d.ts +1 -1
- package/package.json +1 -1
- package/src/gen/processor/protos/processor.ts +83 -1217
- package/src/gen/service/common/protos/common.ts +13 -552
- package/src/otlp.ts +9 -34
- package/src/processor-runner.ts +2 -4
- package/src/service-v3.ts +3 -6
- package/lib/chunk-I5YHR3CE.js.map +0 -1
- /package/lib/{chunk-PCB4OKW7.js.map → chunk-CPJKSHSV.js.map} +0 -0
- /package/lib/{chunk-W3VN25ER.js.map → chunk-MV6JXS2P.js.map} +0 -0
- /package/lib/{getMachineId-bsd-WJ6BLVOD.js.map → getMachineId-bsd-ZJR2OQTA.js.map} +0 -0
- /package/lib/{getMachineId-darwin-TW74DVT5.js.map → getMachineId-darwin-OW6SYINH.js.map} +0 -0
- /package/lib/{getMachineId-linux-MDJOKOMI.js.map → getMachineId-linux-L5XPRJBN.js.map} +0 -0
- /package/lib/{getMachineId-unsupported-X2EJZ25K.js.map → getMachineId-unsupported-B3NMIOO3.js.map} +0 -0
- /package/lib/{getMachineId-win-VE7DMTAF.js.map → getMachineId-win-TT64F63B.js.map} +0 -0
@@ -15,11 +15,11 @@ import {
|
|
15
15
|
require_roots,
|
16
16
|
require_rpc,
|
17
17
|
require_writer
|
18
|
-
} from "./chunk-
|
18
|
+
} from "./chunk-OFR7W4ZG.js";
|
19
19
|
import {
|
20
20
|
init_esm,
|
21
21
|
metrics
|
22
|
-
} from "./chunk-
|
22
|
+
} from "./chunk-MV6JXS2P.js";
|
23
23
|
import {
|
24
24
|
__commonJS,
|
25
25
|
__esm,
|
@@ -2165,6 +2165,350 @@ var require_lib = __commonJS({
|
|
2165
2165
|
}
|
2166
2166
|
});
|
2167
2167
|
|
2168
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Metadata.js
|
2169
|
+
var require_Metadata = __commonJS({
|
2170
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Metadata.js"(exports) {
|
2171
|
+
"use strict";
|
2172
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2173
|
+
exports.Metadata = void 0;
|
2174
|
+
exports.Metadata = function Metadata(init2) {
|
2175
|
+
const data = /* @__PURE__ */ new Map();
|
2176
|
+
const metadata = {
|
2177
|
+
set(key, value) {
|
2178
|
+
key = normalizeKey(key);
|
2179
|
+
if (Array.isArray(value)) {
|
2180
|
+
if (value.length === 0) {
|
2181
|
+
data.delete(key);
|
2182
|
+
} else {
|
2183
|
+
for (const item of value) {
|
2184
|
+
validate(key, item);
|
2185
|
+
}
|
2186
|
+
data.set(key, key.endsWith("-bin") ? value : [value.join(", ")]);
|
2187
|
+
}
|
2188
|
+
} else {
|
2189
|
+
validate(key, value);
|
2190
|
+
data.set(key, [value]);
|
2191
|
+
}
|
2192
|
+
return metadata;
|
2193
|
+
},
|
2194
|
+
append(key, value) {
|
2195
|
+
key = normalizeKey(key);
|
2196
|
+
validate(key, value);
|
2197
|
+
let values = data.get(key);
|
2198
|
+
if (values == null) {
|
2199
|
+
values = [];
|
2200
|
+
data.set(key, values);
|
2201
|
+
}
|
2202
|
+
values.push(value);
|
2203
|
+
if (!key.endsWith("-bin")) {
|
2204
|
+
data.set(key, [values.join(", ")]);
|
2205
|
+
}
|
2206
|
+
return metadata;
|
2207
|
+
},
|
2208
|
+
delete(key) {
|
2209
|
+
key = normalizeKey(key);
|
2210
|
+
data.delete(key);
|
2211
|
+
},
|
2212
|
+
get(key) {
|
2213
|
+
var _a;
|
2214
|
+
key = normalizeKey(key);
|
2215
|
+
return (_a = data.get(key)) === null || _a === void 0 ? void 0 : _a[0];
|
2216
|
+
},
|
2217
|
+
getAll(key) {
|
2218
|
+
var _a;
|
2219
|
+
key = normalizeKey(key);
|
2220
|
+
return (_a = data.get(key)) !== null && _a !== void 0 ? _a : [];
|
2221
|
+
},
|
2222
|
+
has(key) {
|
2223
|
+
key = normalizeKey(key);
|
2224
|
+
return data.has(key);
|
2225
|
+
},
|
2226
|
+
[Symbol.iterator]() {
|
2227
|
+
return data[Symbol.iterator]();
|
2228
|
+
}
|
2229
|
+
};
|
2230
|
+
if (init2 != null) {
|
2231
|
+
const entries = isIterable2(init2) ? init2 : Object.entries(init2);
|
2232
|
+
for (const [key, value] of entries) {
|
2233
|
+
metadata.set(key, value);
|
2234
|
+
}
|
2235
|
+
}
|
2236
|
+
return metadata;
|
2237
|
+
};
|
2238
|
+
function normalizeKey(key) {
|
2239
|
+
return key.toLowerCase();
|
2240
|
+
}
|
2241
|
+
function validate(key, value) {
|
2242
|
+
if (!/^[0-9a-z_.-]+$/.test(key)) {
|
2243
|
+
throw new Error(`Metadata key '${key}' contains illegal characters`);
|
2244
|
+
}
|
2245
|
+
if (key.endsWith("-bin")) {
|
2246
|
+
if (!(value instanceof Uint8Array)) {
|
2247
|
+
throw new Error(`Metadata key '${key}' ends with '-bin', thus it must have binary value`);
|
2248
|
+
}
|
2249
|
+
} else {
|
2250
|
+
if (typeof value !== "string") {
|
2251
|
+
throw new Error(`Metadata key '${key}' doesn't end with '-bin', thus it must have string value`);
|
2252
|
+
}
|
2253
|
+
if (!/^[ -~]*$/.test(value)) {
|
2254
|
+
throw new Error(`Metadata value '${value}' of key '${key}' contains illegal characters`);
|
2255
|
+
}
|
2256
|
+
}
|
2257
|
+
}
|
2258
|
+
function isIterable2(value) {
|
2259
|
+
return Symbol.iterator in value;
|
2260
|
+
}
|
2261
|
+
}
|
2262
|
+
});
|
2263
|
+
|
2264
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Status.js
|
2265
|
+
var require_Status = __commonJS({
|
2266
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Status.js"(exports) {
|
2267
|
+
"use strict";
|
2268
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2269
|
+
exports.Status = void 0;
|
2270
|
+
var Status2;
|
2271
|
+
(function(Status3) {
|
2272
|
+
Status3[Status3["OK"] = 0] = "OK";
|
2273
|
+
Status3[Status3["CANCELLED"] = 1] = "CANCELLED";
|
2274
|
+
Status3[Status3["UNKNOWN"] = 2] = "UNKNOWN";
|
2275
|
+
Status3[Status3["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT";
|
2276
|
+
Status3[Status3["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED";
|
2277
|
+
Status3[Status3["NOT_FOUND"] = 5] = "NOT_FOUND";
|
2278
|
+
Status3[Status3["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS";
|
2279
|
+
Status3[Status3["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED";
|
2280
|
+
Status3[Status3["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED";
|
2281
|
+
Status3[Status3["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION";
|
2282
|
+
Status3[Status3["ABORTED"] = 10] = "ABORTED";
|
2283
|
+
Status3[Status3["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE";
|
2284
|
+
Status3[Status3["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED";
|
2285
|
+
Status3[Status3["INTERNAL"] = 13] = "INTERNAL";
|
2286
|
+
Status3[Status3["UNAVAILABLE"] = 14] = "UNAVAILABLE";
|
2287
|
+
Status3[Status3["DATA_LOSS"] = 15] = "DATA_LOSS";
|
2288
|
+
Status3[Status3["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED";
|
2289
|
+
})(Status2 = exports.Status || (exports.Status = {}));
|
2290
|
+
}
|
2291
|
+
});
|
2292
|
+
|
2293
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/MethodDescriptor.js
|
2294
|
+
var require_MethodDescriptor = __commonJS({
|
2295
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/MethodDescriptor.js"(exports) {
|
2296
|
+
"use strict";
|
2297
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2298
|
+
}
|
2299
|
+
});
|
2300
|
+
|
2301
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/CallOptions.js
|
2302
|
+
var require_CallOptions = __commonJS({
|
2303
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/CallOptions.js"(exports) {
|
2304
|
+
"use strict";
|
2305
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2306
|
+
}
|
2307
|
+
});
|
2308
|
+
|
2309
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/ClientMiddleware.js
|
2310
|
+
var require_ClientMiddleware = __commonJS({
|
2311
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/ClientMiddleware.js"(exports) {
|
2312
|
+
"use strict";
|
2313
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2314
|
+
}
|
2315
|
+
});
|
2316
|
+
|
2317
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/composeClientMiddleware.js
|
2318
|
+
var require_composeClientMiddleware = __commonJS({
|
2319
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/composeClientMiddleware.js"(exports) {
|
2320
|
+
"use strict";
|
2321
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2322
|
+
exports.composeClientMiddleware = void 0;
|
2323
|
+
function composeClientMiddleware(middleware1, middleware2) {
|
2324
|
+
return (call, options) => {
|
2325
|
+
return middleware2(Object.assign(Object.assign({}, call), { next: (request, options2) => {
|
2326
|
+
return middleware1(Object.assign(Object.assign({}, call), { request }), options2);
|
2327
|
+
} }), options);
|
2328
|
+
};
|
2329
|
+
}
|
2330
|
+
exports.composeClientMiddleware = composeClientMiddleware;
|
2331
|
+
}
|
2332
|
+
});
|
2333
|
+
|
2334
|
+
// ../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/es.js
|
2335
|
+
var es_exports = {};
|
2336
|
+
__export(es_exports, {
|
2337
|
+
ExtendableError: () => ExtendableError,
|
2338
|
+
default: () => es_default
|
2339
|
+
});
|
2340
|
+
var ExtendableError, es_default;
|
2341
|
+
var init_es = __esm({
|
2342
|
+
"../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/es.js"() {
|
2343
|
+
"use strict";
|
2344
|
+
ExtendableError = class extends Error {
|
2345
|
+
constructor(...params) {
|
2346
|
+
super(...params);
|
2347
|
+
var message = params.length > 0 && typeof params[0] === "string" ? params[0] : "";
|
2348
|
+
if (this.name === void 0 || this.name === "Error") {
|
2349
|
+
Object.defineProperty(this, "name", {
|
2350
|
+
configurable: true,
|
2351
|
+
enumerable: false,
|
2352
|
+
value: this.constructor.name,
|
2353
|
+
writable: true
|
2354
|
+
});
|
2355
|
+
}
|
2356
|
+
Object.defineProperty(this, "message", {
|
2357
|
+
configurable: true,
|
2358
|
+
enumerable: false,
|
2359
|
+
value: message,
|
2360
|
+
writable: true
|
2361
|
+
});
|
2362
|
+
Object.defineProperty(this, "stack", {
|
2363
|
+
configurable: true,
|
2364
|
+
enumerable: false,
|
2365
|
+
value: "",
|
2366
|
+
writable: true
|
2367
|
+
});
|
2368
|
+
if (Error.captureStackTrace) {
|
2369
|
+
Error.captureStackTrace(this, this.constructor);
|
2370
|
+
} else if (this.stack === "") {
|
2371
|
+
this.stack = new Error(message).stack;
|
2372
|
+
}
|
2373
|
+
}
|
2374
|
+
};
|
2375
|
+
es_default = ExtendableError;
|
2376
|
+
}
|
2377
|
+
});
|
2378
|
+
|
2379
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/ClientError.js
|
2380
|
+
var require_ClientError = __commonJS({
|
2381
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/ClientError.js"(exports) {
|
2382
|
+
"use strict";
|
2383
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2384
|
+
exports.ClientError = void 0;
|
2385
|
+
var ts_error_1 = (init_es(), __toCommonJS(es_exports));
|
2386
|
+
var Status_1 = require_Status();
|
2387
|
+
var ClientError = class _ClientError extends ts_error_1.ExtendableError {
|
2388
|
+
constructor(path2, code, details) {
|
2389
|
+
super(`${path2} ${Status_1.Status[code]}: ${details}`);
|
2390
|
+
this.path = path2;
|
2391
|
+
this.code = code;
|
2392
|
+
this.details = details;
|
2393
|
+
this.name = "ClientError";
|
2394
|
+
Object.defineProperty(this, "@@nice-grpc", {
|
2395
|
+
value: true
|
2396
|
+
});
|
2397
|
+
Object.defineProperty(this, "@@nice-grpc:ClientError", {
|
2398
|
+
value: true
|
2399
|
+
});
|
2400
|
+
}
|
2401
|
+
static [Symbol.hasInstance](instance) {
|
2402
|
+
if (this !== _ClientError) {
|
2403
|
+
return this.prototype.isPrototypeOf(instance);
|
2404
|
+
}
|
2405
|
+
return typeof instance === "object" && instance !== null && (instance.constructor === _ClientError || instance["@@nice-grpc:ClientError"] === true || instance.name === "ClientError" && instance["@@nice-grpc"] === true);
|
2406
|
+
}
|
2407
|
+
};
|
2408
|
+
exports.ClientError = ClientError;
|
2409
|
+
}
|
2410
|
+
});
|
2411
|
+
|
2412
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/CallContext.js
|
2413
|
+
var require_CallContext = __commonJS({
|
2414
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/CallContext.js"(exports) {
|
2415
|
+
"use strict";
|
2416
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2417
|
+
}
|
2418
|
+
});
|
2419
|
+
|
2420
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/ServerMiddleware.js
|
2421
|
+
var require_ServerMiddleware = __commonJS({
|
2422
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/ServerMiddleware.js"(exports) {
|
2423
|
+
"use strict";
|
2424
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2425
|
+
}
|
2426
|
+
});
|
2427
|
+
|
2428
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/composeServerMiddleware.js
|
2429
|
+
var require_composeServerMiddleware = __commonJS({
|
2430
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/composeServerMiddleware.js"(exports) {
|
2431
|
+
"use strict";
|
2432
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2433
|
+
exports.composeServerMiddleware = void 0;
|
2434
|
+
function composeServerMiddleware(middleware1, middleware2) {
|
2435
|
+
return (call, context) => {
|
2436
|
+
return middleware1(Object.assign(Object.assign({}, call), { next: (request, context1) => {
|
2437
|
+
return middleware2(Object.assign(Object.assign({}, call), { request }), context1);
|
2438
|
+
} }), context);
|
2439
|
+
};
|
2440
|
+
}
|
2441
|
+
exports.composeServerMiddleware = composeServerMiddleware;
|
2442
|
+
}
|
2443
|
+
});
|
2444
|
+
|
2445
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/ServerError.js
|
2446
|
+
var require_ServerError = __commonJS({
|
2447
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/ServerError.js"(exports) {
|
2448
|
+
"use strict";
|
2449
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2450
|
+
exports.ServerError = void 0;
|
2451
|
+
var ts_error_1 = (init_es(), __toCommonJS(es_exports));
|
2452
|
+
var Status_1 = require_Status();
|
2453
|
+
var ServerError2 = class _ServerError extends ts_error_1.ExtendableError {
|
2454
|
+
constructor(code, details) {
|
2455
|
+
super(`${Status_1.Status[code]}: ${details}`);
|
2456
|
+
this.code = code;
|
2457
|
+
this.details = details;
|
2458
|
+
this.name = "ServerError";
|
2459
|
+
Object.defineProperty(this, "@@nice-grpc", {
|
2460
|
+
value: true
|
2461
|
+
});
|
2462
|
+
Object.defineProperty(this, "@@nice-grpc:ServerError", {
|
2463
|
+
value: true
|
2464
|
+
});
|
2465
|
+
}
|
2466
|
+
static [Symbol.hasInstance](instance) {
|
2467
|
+
if (this !== _ServerError) {
|
2468
|
+
return this.prototype.isPrototypeOf(instance);
|
2469
|
+
}
|
2470
|
+
return typeof instance === "object" && instance !== null && (instance.constructor === _ServerError || instance["@@nice-grpc:ServerError"] === true || instance.name === "ServerError" && instance["@@nice-grpc"] === true);
|
2471
|
+
}
|
2472
|
+
};
|
2473
|
+
exports.ServerError = ServerError2;
|
2474
|
+
}
|
2475
|
+
});
|
2476
|
+
|
2477
|
+
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/index.js
|
2478
|
+
var require_lib2 = __commonJS({
|
2479
|
+
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/index.js"(exports) {
|
2480
|
+
"use strict";
|
2481
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
2482
|
+
if (k2 === void 0) k2 = k;
|
2483
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
2484
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
2485
|
+
desc = { enumerable: true, get: function() {
|
2486
|
+
return m[k];
|
2487
|
+
} };
|
2488
|
+
}
|
2489
|
+
Object.defineProperty(o, k2, desc);
|
2490
|
+
} : function(o, m, k, k2) {
|
2491
|
+
if (k2 === void 0) k2 = k;
|
2492
|
+
o[k2] = m[k];
|
2493
|
+
});
|
2494
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
2495
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
2496
|
+
};
|
2497
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
2498
|
+
__exportStar(require_Metadata(), exports);
|
2499
|
+
__exportStar(require_Status(), exports);
|
2500
|
+
__exportStar(require_MethodDescriptor(), exports);
|
2501
|
+
__exportStar(require_CallOptions(), exports);
|
2502
|
+
__exportStar(require_ClientMiddleware(), exports);
|
2503
|
+
__exportStar(require_composeClientMiddleware(), exports);
|
2504
|
+
__exportStar(require_ClientError(), exports);
|
2505
|
+
__exportStar(require_CallContext(), exports);
|
2506
|
+
__exportStar(require_ServerMiddleware(), exports);
|
2507
|
+
__exportStar(require_composeServerMiddleware(), exports);
|
2508
|
+
__exportStar(require_ServerError(), exports);
|
2509
|
+
}
|
2510
|
+
});
|
2511
|
+
|
2168
2512
|
// ../../node_modules/.pnpm/@grpc+grpc-js@1.13.4/node_modules/@grpc/grpc-js/build/src/constants.js
|
2169
2513
|
var require_constants = __commonJS({
|
2170
2514
|
"../../node_modules/.pnpm/@grpc+grpc-js@1.13.4/node_modules/@grpc/grpc-js/build/src/constants.js"(exports) {
|
@@ -23158,350 +23502,6 @@ var require_src3 = __commonJS({
|
|
23158
23502
|
}
|
23159
23503
|
});
|
23160
23504
|
|
23161
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Metadata.js
|
23162
|
-
var require_Metadata = __commonJS({
|
23163
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Metadata.js"(exports) {
|
23164
|
-
"use strict";
|
23165
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23166
|
-
exports.Metadata = void 0;
|
23167
|
-
exports.Metadata = function Metadata(init2) {
|
23168
|
-
const data = /* @__PURE__ */ new Map();
|
23169
|
-
const metadata = {
|
23170
|
-
set(key, value) {
|
23171
|
-
key = normalizeKey(key);
|
23172
|
-
if (Array.isArray(value)) {
|
23173
|
-
if (value.length === 0) {
|
23174
|
-
data.delete(key);
|
23175
|
-
} else {
|
23176
|
-
for (const item of value) {
|
23177
|
-
validate(key, item);
|
23178
|
-
}
|
23179
|
-
data.set(key, key.endsWith("-bin") ? value : [value.join(", ")]);
|
23180
|
-
}
|
23181
|
-
} else {
|
23182
|
-
validate(key, value);
|
23183
|
-
data.set(key, [value]);
|
23184
|
-
}
|
23185
|
-
return metadata;
|
23186
|
-
},
|
23187
|
-
append(key, value) {
|
23188
|
-
key = normalizeKey(key);
|
23189
|
-
validate(key, value);
|
23190
|
-
let values = data.get(key);
|
23191
|
-
if (values == null) {
|
23192
|
-
values = [];
|
23193
|
-
data.set(key, values);
|
23194
|
-
}
|
23195
|
-
values.push(value);
|
23196
|
-
if (!key.endsWith("-bin")) {
|
23197
|
-
data.set(key, [values.join(", ")]);
|
23198
|
-
}
|
23199
|
-
return metadata;
|
23200
|
-
},
|
23201
|
-
delete(key) {
|
23202
|
-
key = normalizeKey(key);
|
23203
|
-
data.delete(key);
|
23204
|
-
},
|
23205
|
-
get(key) {
|
23206
|
-
var _a;
|
23207
|
-
key = normalizeKey(key);
|
23208
|
-
return (_a = data.get(key)) === null || _a === void 0 ? void 0 : _a[0];
|
23209
|
-
},
|
23210
|
-
getAll(key) {
|
23211
|
-
var _a;
|
23212
|
-
key = normalizeKey(key);
|
23213
|
-
return (_a = data.get(key)) !== null && _a !== void 0 ? _a : [];
|
23214
|
-
},
|
23215
|
-
has(key) {
|
23216
|
-
key = normalizeKey(key);
|
23217
|
-
return data.has(key);
|
23218
|
-
},
|
23219
|
-
[Symbol.iterator]() {
|
23220
|
-
return data[Symbol.iterator]();
|
23221
|
-
}
|
23222
|
-
};
|
23223
|
-
if (init2 != null) {
|
23224
|
-
const entries = isIterable2(init2) ? init2 : Object.entries(init2);
|
23225
|
-
for (const [key, value] of entries) {
|
23226
|
-
metadata.set(key, value);
|
23227
|
-
}
|
23228
|
-
}
|
23229
|
-
return metadata;
|
23230
|
-
};
|
23231
|
-
function normalizeKey(key) {
|
23232
|
-
return key.toLowerCase();
|
23233
|
-
}
|
23234
|
-
function validate(key, value) {
|
23235
|
-
if (!/^[0-9a-z_.-]+$/.test(key)) {
|
23236
|
-
throw new Error(`Metadata key '${key}' contains illegal characters`);
|
23237
|
-
}
|
23238
|
-
if (key.endsWith("-bin")) {
|
23239
|
-
if (!(value instanceof Uint8Array)) {
|
23240
|
-
throw new Error(`Metadata key '${key}' ends with '-bin', thus it must have binary value`);
|
23241
|
-
}
|
23242
|
-
} else {
|
23243
|
-
if (typeof value !== "string") {
|
23244
|
-
throw new Error(`Metadata key '${key}' doesn't end with '-bin', thus it must have string value`);
|
23245
|
-
}
|
23246
|
-
if (!/^[ -~]*$/.test(value)) {
|
23247
|
-
throw new Error(`Metadata value '${value}' of key '${key}' contains illegal characters`);
|
23248
|
-
}
|
23249
|
-
}
|
23250
|
-
}
|
23251
|
-
function isIterable2(value) {
|
23252
|
-
return Symbol.iterator in value;
|
23253
|
-
}
|
23254
|
-
}
|
23255
|
-
});
|
23256
|
-
|
23257
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Status.js
|
23258
|
-
var require_Status = __commonJS({
|
23259
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/Status.js"(exports) {
|
23260
|
-
"use strict";
|
23261
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23262
|
-
exports.Status = void 0;
|
23263
|
-
var Status2;
|
23264
|
-
(function(Status3) {
|
23265
|
-
Status3[Status3["OK"] = 0] = "OK";
|
23266
|
-
Status3[Status3["CANCELLED"] = 1] = "CANCELLED";
|
23267
|
-
Status3[Status3["UNKNOWN"] = 2] = "UNKNOWN";
|
23268
|
-
Status3[Status3["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT";
|
23269
|
-
Status3[Status3["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED";
|
23270
|
-
Status3[Status3["NOT_FOUND"] = 5] = "NOT_FOUND";
|
23271
|
-
Status3[Status3["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS";
|
23272
|
-
Status3[Status3["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED";
|
23273
|
-
Status3[Status3["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED";
|
23274
|
-
Status3[Status3["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION";
|
23275
|
-
Status3[Status3["ABORTED"] = 10] = "ABORTED";
|
23276
|
-
Status3[Status3["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE";
|
23277
|
-
Status3[Status3["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED";
|
23278
|
-
Status3[Status3["INTERNAL"] = 13] = "INTERNAL";
|
23279
|
-
Status3[Status3["UNAVAILABLE"] = 14] = "UNAVAILABLE";
|
23280
|
-
Status3[Status3["DATA_LOSS"] = 15] = "DATA_LOSS";
|
23281
|
-
Status3[Status3["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED";
|
23282
|
-
})(Status2 = exports.Status || (exports.Status = {}));
|
23283
|
-
}
|
23284
|
-
});
|
23285
|
-
|
23286
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/MethodDescriptor.js
|
23287
|
-
var require_MethodDescriptor = __commonJS({
|
23288
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/MethodDescriptor.js"(exports) {
|
23289
|
-
"use strict";
|
23290
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23291
|
-
}
|
23292
|
-
});
|
23293
|
-
|
23294
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/CallOptions.js
|
23295
|
-
var require_CallOptions = __commonJS({
|
23296
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/CallOptions.js"(exports) {
|
23297
|
-
"use strict";
|
23298
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23299
|
-
}
|
23300
|
-
});
|
23301
|
-
|
23302
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/ClientMiddleware.js
|
23303
|
-
var require_ClientMiddleware = __commonJS({
|
23304
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/ClientMiddleware.js"(exports) {
|
23305
|
-
"use strict";
|
23306
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23307
|
-
}
|
23308
|
-
});
|
23309
|
-
|
23310
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/composeClientMiddleware.js
|
23311
|
-
var require_composeClientMiddleware = __commonJS({
|
23312
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/composeClientMiddleware.js"(exports) {
|
23313
|
-
"use strict";
|
23314
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23315
|
-
exports.composeClientMiddleware = void 0;
|
23316
|
-
function composeClientMiddleware(middleware1, middleware2) {
|
23317
|
-
return (call, options) => {
|
23318
|
-
return middleware2(Object.assign(Object.assign({}, call), { next: (request, options2) => {
|
23319
|
-
return middleware1(Object.assign(Object.assign({}, call), { request }), options2);
|
23320
|
-
} }), options);
|
23321
|
-
};
|
23322
|
-
}
|
23323
|
-
exports.composeClientMiddleware = composeClientMiddleware;
|
23324
|
-
}
|
23325
|
-
});
|
23326
|
-
|
23327
|
-
// ../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/es.js
|
23328
|
-
var es_exports = {};
|
23329
|
-
__export(es_exports, {
|
23330
|
-
ExtendableError: () => ExtendableError,
|
23331
|
-
default: () => es_default
|
23332
|
-
});
|
23333
|
-
var ExtendableError, es_default;
|
23334
|
-
var init_es = __esm({
|
23335
|
-
"../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/es.js"() {
|
23336
|
-
"use strict";
|
23337
|
-
ExtendableError = class extends Error {
|
23338
|
-
constructor(...params) {
|
23339
|
-
super(...params);
|
23340
|
-
var message = params.length > 0 && typeof params[0] === "string" ? params[0] : "";
|
23341
|
-
if (this.name === void 0 || this.name === "Error") {
|
23342
|
-
Object.defineProperty(this, "name", {
|
23343
|
-
configurable: true,
|
23344
|
-
enumerable: false,
|
23345
|
-
value: this.constructor.name,
|
23346
|
-
writable: true
|
23347
|
-
});
|
23348
|
-
}
|
23349
|
-
Object.defineProperty(this, "message", {
|
23350
|
-
configurable: true,
|
23351
|
-
enumerable: false,
|
23352
|
-
value: message,
|
23353
|
-
writable: true
|
23354
|
-
});
|
23355
|
-
Object.defineProperty(this, "stack", {
|
23356
|
-
configurable: true,
|
23357
|
-
enumerable: false,
|
23358
|
-
value: "",
|
23359
|
-
writable: true
|
23360
|
-
});
|
23361
|
-
if (Error.captureStackTrace) {
|
23362
|
-
Error.captureStackTrace(this, this.constructor);
|
23363
|
-
} else if (this.stack === "") {
|
23364
|
-
this.stack = new Error(message).stack;
|
23365
|
-
}
|
23366
|
-
}
|
23367
|
-
};
|
23368
|
-
es_default = ExtendableError;
|
23369
|
-
}
|
23370
|
-
});
|
23371
|
-
|
23372
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/ClientError.js
|
23373
|
-
var require_ClientError = __commonJS({
|
23374
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/client/ClientError.js"(exports) {
|
23375
|
-
"use strict";
|
23376
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23377
|
-
exports.ClientError = void 0;
|
23378
|
-
var ts_error_1 = (init_es(), __toCommonJS(es_exports));
|
23379
|
-
var Status_1 = require_Status();
|
23380
|
-
var ClientError = class _ClientError extends ts_error_1.ExtendableError {
|
23381
|
-
constructor(path2, code, details) {
|
23382
|
-
super(`${path2} ${Status_1.Status[code]}: ${details}`);
|
23383
|
-
this.path = path2;
|
23384
|
-
this.code = code;
|
23385
|
-
this.details = details;
|
23386
|
-
this.name = "ClientError";
|
23387
|
-
Object.defineProperty(this, "@@nice-grpc", {
|
23388
|
-
value: true
|
23389
|
-
});
|
23390
|
-
Object.defineProperty(this, "@@nice-grpc:ClientError", {
|
23391
|
-
value: true
|
23392
|
-
});
|
23393
|
-
}
|
23394
|
-
static [Symbol.hasInstance](instance) {
|
23395
|
-
if (this !== _ClientError) {
|
23396
|
-
return this.prototype.isPrototypeOf(instance);
|
23397
|
-
}
|
23398
|
-
return typeof instance === "object" && instance !== null && (instance.constructor === _ClientError || instance["@@nice-grpc:ClientError"] === true || instance.name === "ClientError" && instance["@@nice-grpc"] === true);
|
23399
|
-
}
|
23400
|
-
};
|
23401
|
-
exports.ClientError = ClientError;
|
23402
|
-
}
|
23403
|
-
});
|
23404
|
-
|
23405
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/CallContext.js
|
23406
|
-
var require_CallContext = __commonJS({
|
23407
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/CallContext.js"(exports) {
|
23408
|
-
"use strict";
|
23409
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23410
|
-
}
|
23411
|
-
});
|
23412
|
-
|
23413
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/ServerMiddleware.js
|
23414
|
-
var require_ServerMiddleware = __commonJS({
|
23415
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/ServerMiddleware.js"(exports) {
|
23416
|
-
"use strict";
|
23417
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23418
|
-
}
|
23419
|
-
});
|
23420
|
-
|
23421
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/composeServerMiddleware.js
|
23422
|
-
var require_composeServerMiddleware = __commonJS({
|
23423
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/composeServerMiddleware.js"(exports) {
|
23424
|
-
"use strict";
|
23425
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23426
|
-
exports.composeServerMiddleware = void 0;
|
23427
|
-
function composeServerMiddleware(middleware1, middleware2) {
|
23428
|
-
return (call, context) => {
|
23429
|
-
return middleware1(Object.assign(Object.assign({}, call), { next: (request, context1) => {
|
23430
|
-
return middleware2(Object.assign(Object.assign({}, call), { request }), context1);
|
23431
|
-
} }), context);
|
23432
|
-
};
|
23433
|
-
}
|
23434
|
-
exports.composeServerMiddleware = composeServerMiddleware;
|
23435
|
-
}
|
23436
|
-
});
|
23437
|
-
|
23438
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/ServerError.js
|
23439
|
-
var require_ServerError = __commonJS({
|
23440
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/server/ServerError.js"(exports) {
|
23441
|
-
"use strict";
|
23442
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23443
|
-
exports.ServerError = void 0;
|
23444
|
-
var ts_error_1 = (init_es(), __toCommonJS(es_exports));
|
23445
|
-
var Status_1 = require_Status();
|
23446
|
-
var ServerError2 = class _ServerError extends ts_error_1.ExtendableError {
|
23447
|
-
constructor(code, details) {
|
23448
|
-
super(`${Status_1.Status[code]}: ${details}`);
|
23449
|
-
this.code = code;
|
23450
|
-
this.details = details;
|
23451
|
-
this.name = "ServerError";
|
23452
|
-
Object.defineProperty(this, "@@nice-grpc", {
|
23453
|
-
value: true
|
23454
|
-
});
|
23455
|
-
Object.defineProperty(this, "@@nice-grpc:ServerError", {
|
23456
|
-
value: true
|
23457
|
-
});
|
23458
|
-
}
|
23459
|
-
static [Symbol.hasInstance](instance) {
|
23460
|
-
if (this !== _ServerError) {
|
23461
|
-
return this.prototype.isPrototypeOf(instance);
|
23462
|
-
}
|
23463
|
-
return typeof instance === "object" && instance !== null && (instance.constructor === _ServerError || instance["@@nice-grpc:ServerError"] === true || instance.name === "ServerError" && instance["@@nice-grpc"] === true);
|
23464
|
-
}
|
23465
|
-
};
|
23466
|
-
exports.ServerError = ServerError2;
|
23467
|
-
}
|
23468
|
-
});
|
23469
|
-
|
23470
|
-
// ../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/index.js
|
23471
|
-
var require_lib2 = __commonJS({
|
23472
|
-
"../../node_modules/.pnpm/nice-grpc-common@2.0.2/node_modules/nice-grpc-common/lib/index.js"(exports) {
|
23473
|
-
"use strict";
|
23474
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
23475
|
-
if (k2 === void 0) k2 = k;
|
23476
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
23477
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
23478
|
-
desc = { enumerable: true, get: function() {
|
23479
|
-
return m[k];
|
23480
|
-
} };
|
23481
|
-
}
|
23482
|
-
Object.defineProperty(o, k2, desc);
|
23483
|
-
} : function(o, m, k, k2) {
|
23484
|
-
if (k2 === void 0) k2 = k;
|
23485
|
-
o[k2] = m[k];
|
23486
|
-
});
|
23487
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
23488
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
23489
|
-
};
|
23490
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
23491
|
-
__exportStar(require_Metadata(), exports);
|
23492
|
-
__exportStar(require_Status(), exports);
|
23493
|
-
__exportStar(require_MethodDescriptor(), exports);
|
23494
|
-
__exportStar(require_CallOptions(), exports);
|
23495
|
-
__exportStar(require_ClientMiddleware(), exports);
|
23496
|
-
__exportStar(require_composeClientMiddleware(), exports);
|
23497
|
-
__exportStar(require_ClientError(), exports);
|
23498
|
-
__exportStar(require_CallContext(), exports);
|
23499
|
-
__exportStar(require_ServerMiddleware(), exports);
|
23500
|
-
__exportStar(require_composeServerMiddleware(), exports);
|
23501
|
-
__exportStar(require_ServerError(), exports);
|
23502
|
-
}
|
23503
|
-
});
|
23504
|
-
|
23505
23505
|
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/service-definitions/grpc-js.js
|
23506
23506
|
var require_grpc_js = __commonJS({
|
23507
23507
|
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/service-definitions/grpc-js.js"(exports) {
|
@@ -59780,4 +59780,4 @@ long/umd/index.js:
|
|
59780
59780
|
@noble/curves/esm/secp256k1.js:
|
59781
59781
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
59782
59782
|
*/
|
59783
|
-
//# sourceMappingURL=chunk-
|
59783
|
+
//# sourceMappingURL=chunk-BIFWYVK4.js.map
|