@stryke/capnp 0.8.2 → 0.9.0
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/bin/capnpc.cjs +7 -7
- package/bin/capnpc.js +7 -7
- package/dist/{chunk-FEGBNCWN.js → chunk-SYR4C2FT.js} +9 -7
- package/dist/{chunk-R5CS6CYK.cjs → chunk-XQV7WBWM.cjs} +9 -7
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/rpc.cjs +2 -2
- package/dist/rpc.js +1 -1
- package/dts/index.d.ts +4393 -0
- package/package.json +5 -4
- package/schemas/chunk-BQI46ZE5.js +4086 -0
- package/schemas/chunk-GX6VRR3G.cjs +4086 -0
- package/schemas/chunk-SHUYVCID.js +6 -0
- package/schemas/chunk-USNT2KNT.cjs +6 -0
- package/schemas/cpp.cjs +7 -0
- package/schemas/cpp.d.cts +3 -0
- package/schemas/cpp.d.ts +3 -0
- package/schemas/cpp.js +7 -0
- package/schemas/persistent.cjs +171 -0
- package/schemas/persistent.d.cts +147 -0
- package/schemas/persistent.d.ts +147 -0
- package/schemas/persistent.js +171 -0
- package/schemas/rpc-twoparty.cjs +209 -0
- package/schemas/rpc-twoparty.d.cts +171 -0
- package/schemas/rpc-twoparty.d.ts +171 -0
- package/schemas/rpc-twoparty.js +209 -0
- package/schemas/rpc.cjs +2563 -0
- package/schemas/rpc.d.cts +2004 -0
- package/schemas/rpc.d.ts +2004 -0
- package/schemas/rpc.js +2563 -0
- package/schemas/schema.cjs +2718 -0
- package/schemas/schema.d.cts +1454 -0
- package/schemas/schema.d.ts +1454 -0
- package/schemas/schema.js +2718 -0
- package/schemas/ts.cjs +7 -0
- package/schemas/ts.d.cts +3 -0
- package/schemas/ts.d.ts +3 -0
- package/schemas/ts.js +7 -0
package/bin/capnpc.cjs
CHANGED
|
@@ -871,10 +871,10 @@ var import_commander = require("commander");
|
|
|
871
871
|
var import_promises5 = require("fs/promises");
|
|
872
872
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
873
873
|
|
|
874
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
874
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
875
875
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
876
876
|
|
|
877
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
877
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
878
878
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
879
879
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
880
880
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2867,7 +2867,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
__name(checkDataBounds, "checkDataBounds");
|
|
2869
2869
|
|
|
2870
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2870
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
2871
2871
|
function CompositeList(CompositeClass) {
|
|
2872
2872
|
return class extends List {
|
|
2873
2873
|
static _capnp = {
|
|
@@ -2938,7 +2938,7 @@ var getUint8Mask = _makePrimitiveMaskFn(
|
|
|
2938
2938
|
DataView.prototype.setUint8
|
|
2939
2939
|
);
|
|
2940
2940
|
|
|
2941
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2941
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/capnp/schema.mjs
|
|
2942
2942
|
var _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
2943
2943
|
var Node_Parameter = class extends Struct {
|
|
2944
2944
|
static {
|
|
@@ -5598,7 +5598,7 @@ CodeGeneratorRequest._Nodes = CompositeList(Node);
|
|
|
5598
5598
|
CodeGeneratorRequest._SourceInfo = CompositeList(Node_SourceInfo);
|
|
5599
5599
|
CodeGeneratorRequest._RequestedFiles = CompositeList(CodeGeneratorRequest_RequestedFile);
|
|
5600
5600
|
|
|
5601
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5601
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
5602
5602
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
5603
5603
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
5604
5604
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -6595,7 +6595,7 @@ function copy(m) {
|
|
|
6595
6595
|
}
|
|
6596
6596
|
__name(copy, "copy");
|
|
6597
6597
|
|
|
6598
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
6598
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
6599
6599
|
var GEN_EXPLICIT_DEFAULT_NON_PRIMITIVE = "CAPNP-ES000 Don't know how to generate a %s field with an explicit default value.";
|
|
6600
6600
|
var GEN_FIELD_NON_INLINE_STRUCT_LIST = "CAPNP-ES001 Don't know how to generate non-inline struct lists.";
|
|
6601
6601
|
var GEN_NODE_LOOKUP_FAIL = "CAPNP-ES002 Failed to look up node id %s.";
|
|
@@ -7902,7 +7902,7 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7902
7902
|
}
|
|
7903
7903
|
__name(tsCompile, "tsCompile");
|
|
7904
7904
|
|
|
7905
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
7905
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/compiler/index.mjs
|
|
7906
7906
|
var import_typescript2 = require("typescript");
|
|
7907
7907
|
|
|
7908
7908
|
// src/compile.ts
|
package/bin/capnpc.js
CHANGED
|
@@ -840,10 +840,10 @@ import { Command, Option } from "commander";
|
|
|
840
840
|
import { writeFile as writeFile2 } from "node:fs/promises";
|
|
841
841
|
import ts2 from "typescript";
|
|
842
842
|
|
|
843
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
843
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
844
844
|
import ts from "typescript";
|
|
845
845
|
|
|
846
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
846
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
847
847
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
848
848
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
849
849
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2836,7 +2836,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2836
2836
|
}
|
|
2837
2837
|
__name(checkDataBounds, "checkDataBounds");
|
|
2838
2838
|
|
|
2839
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2839
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
2840
2840
|
function CompositeList(CompositeClass) {
|
|
2841
2841
|
return class extends List {
|
|
2842
2842
|
static _capnp = {
|
|
@@ -2907,7 +2907,7 @@ var getUint8Mask = _makePrimitiveMaskFn(
|
|
|
2907
2907
|
DataView.prototype.setUint8
|
|
2908
2908
|
);
|
|
2909
2909
|
|
|
2910
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2910
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/capnp/schema.mjs
|
|
2911
2911
|
var _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
2912
2912
|
var Node_Parameter = class extends Struct {
|
|
2913
2913
|
static {
|
|
@@ -5567,7 +5567,7 @@ CodeGeneratorRequest._Nodes = CompositeList(Node);
|
|
|
5567
5567
|
CodeGeneratorRequest._SourceInfo = CompositeList(Node_SourceInfo);
|
|
5568
5568
|
CodeGeneratorRequest._RequestedFiles = CompositeList(CodeGeneratorRequest_RequestedFile);
|
|
5569
5569
|
|
|
5570
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5570
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
5571
5571
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
5572
5572
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
5573
5573
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -6564,7 +6564,7 @@ function copy(m) {
|
|
|
6564
6564
|
}
|
|
6565
6565
|
__name(copy, "copy");
|
|
6566
6566
|
|
|
6567
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
6567
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
6568
6568
|
var GEN_EXPLICIT_DEFAULT_NON_PRIMITIVE = "CAPNP-ES000 Don't know how to generate a %s field with an explicit default value.";
|
|
6569
6569
|
var GEN_FIELD_NON_INLINE_STRUCT_LIST = "CAPNP-ES001 Don't know how to generate non-inline struct lists.";
|
|
6570
6570
|
var GEN_NODE_LOOKUP_FAIL = "CAPNP-ES002 Failed to look up node id %s.";
|
|
@@ -7871,7 +7871,7 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7871
7871
|
}
|
|
7872
7872
|
__name(tsCompile, "tsCompile");
|
|
7873
7873
|
|
|
7874
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
7874
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/compiler/index.mjs
|
|
7875
7875
|
import "typescript";
|
|
7876
7876
|
|
|
7877
7877
|
// src/compile.ts
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__name
|
|
3
3
|
} from "./chunk-SHUYVCID.js";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
6
6
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
7
7
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
8
8
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2089,7 +2089,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2089
2089
|
}
|
|
2090
2090
|
__name(checkDataBounds, "checkDataBounds");
|
|
2091
2091
|
|
|
2092
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2092
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
2093
2093
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
2094
2094
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
2095
2095
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -3086,7 +3086,7 @@ function copy(m) {
|
|
|
3086
3086
|
}
|
|
3087
3087
|
__name(copy, "copy");
|
|
3088
3088
|
|
|
3089
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3089
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
3090
3090
|
function CompositeList(CompositeClass) {
|
|
3091
3091
|
return class extends List {
|
|
3092
3092
|
static _capnp = {
|
|
@@ -3166,7 +3166,7 @@ function getBitMask(value, bitOffset) {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
__name(getBitMask, "getBitMask");
|
|
3168
3168
|
|
|
3169
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3169
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.UAt3nLGq.mjs
|
|
3170
3170
|
var Interface = class extends Pointer {
|
|
3171
3171
|
static {
|
|
3172
3172
|
__name(this, "Interface");
|
|
@@ -3709,7 +3709,7 @@ var Server = class {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
};
|
|
3711
3711
|
|
|
3712
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3712
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/capnp/rpc.mjs
|
|
3713
3713
|
var _capnpFileId = BigInt("0xb312981b2552a250");
|
|
3714
3714
|
var Message_Which = {
|
|
3715
3715
|
/**
|
|
@@ -6229,7 +6229,7 @@ var Exception = class extends Struct {
|
|
|
6229
6229
|
Payload._CapTable = CompositeList(CapDescriptor);
|
|
6230
6230
|
PromisedAnswer._Transform = CompositeList(PromisedAnswer_Op);
|
|
6231
6231
|
|
|
6232
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
6232
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/index.mjs
|
|
6233
6233
|
var Void = class extends Struct {
|
|
6234
6234
|
static {
|
|
6235
6235
|
__name(this, "Void");
|
|
@@ -7779,7 +7779,9 @@ var CapnpRPC = class {
|
|
|
7779
7779
|
* This class is used to manage connections and accept incoming connections using the {@link MessageChannel} API.
|
|
7780
7780
|
*/
|
|
7781
7781
|
connect(id = 0) {
|
|
7782
|
-
if (this.connections[id] !== void 0)
|
|
7782
|
+
if (this.connections[id] !== void 0) {
|
|
7783
|
+
return this.connections[id];
|
|
7784
|
+
}
|
|
7783
7785
|
const ch = new MessageChannel();
|
|
7784
7786
|
const conn = new Conn(new MessageChannelTransport(ch.port1));
|
|
7785
7787
|
const accept = this.acceptQueue.pop();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
6
6
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
7
7
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
8
8
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2089,7 +2089,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2089
2089
|
}
|
|
2090
2090
|
_chunkUSNT2KNTcjs.__name.call(void 0, checkDataBounds, "checkDataBounds");
|
|
2091
2091
|
|
|
2092
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2092
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
2093
2093
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
2094
2094
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
2095
2095
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -3086,7 +3086,7 @@ function copy(m) {
|
|
|
3086
3086
|
}
|
|
3087
3087
|
_chunkUSNT2KNTcjs.__name.call(void 0, copy, "copy");
|
|
3088
3088
|
|
|
3089
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3089
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
3090
3090
|
function CompositeList(CompositeClass) {
|
|
3091
3091
|
return (_class10 = class extends List {
|
|
3092
3092
|
static __initStatic23() {this._capnp = {
|
|
@@ -3166,7 +3166,7 @@ function getBitMask(value, bitOffset) {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
_chunkUSNT2KNTcjs.__name.call(void 0, getBitMask, "getBitMask");
|
|
3168
3168
|
|
|
3169
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3169
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.UAt3nLGq.mjs
|
|
3170
3170
|
var Interface = (_class11 = class extends Pointer {
|
|
3171
3171
|
static {
|
|
3172
3172
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Interface");
|
|
@@ -3709,7 +3709,7 @@ var Server = class {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
};
|
|
3711
3711
|
|
|
3712
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
3712
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/capnp/rpc.mjs
|
|
3713
3713
|
var _capnpFileId = BigInt("0xb312981b2552a250");
|
|
3714
3714
|
var Message_Which = {
|
|
3715
3715
|
/**
|
|
@@ -6229,7 +6229,7 @@ var Exception = (_class34 = class extends Struct {
|
|
|
6229
6229
|
Payload._CapTable = CompositeList(CapDescriptor);
|
|
6230
6230
|
PromisedAnswer._Transform = CompositeList(PromisedAnswer_Op);
|
|
6231
6231
|
|
|
6232
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
6232
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=54f3f30cc103ee00da951a56a326a2e2b656731d51269adc413474efb33259a4_typescript@5.8.3/node_modules/capnp-es/dist/index.mjs
|
|
6233
6233
|
var Void = (_class35 = class extends Struct {
|
|
6234
6234
|
static {
|
|
6235
6235
|
_chunkUSNT2KNTcjs.__name.call(void 0, this, "Void");
|
|
@@ -7779,7 +7779,9 @@ var CapnpRPC = (_class55 = class {constructor() { _class55.prototype.__init30.ca
|
|
|
7779
7779
|
* This class is used to manage connections and accept incoming connections using the {@link MessageChannel} API.
|
|
7780
7780
|
*/
|
|
7781
7781
|
connect(id = 0) {
|
|
7782
|
-
if (this.connections[id] !== void 0)
|
|
7782
|
+
if (this.connections[id] !== void 0) {
|
|
7783
|
+
return this.connections[id];
|
|
7784
|
+
}
|
|
7783
7785
|
const ch = new (0, _worker_threads.MessageChannel)();
|
|
7784
7786
|
const conn = new Conn(new MessageChannelTransport(ch.port1));
|
|
7785
7787
|
const accept = this.acceptQueue.pop();
|
package/dist/index.cjs
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkXQV7WBWMcjs = require('./chunk-XQV7WBWM.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
var _chunkR2JXWA7Qcjs = require('./chunk-R2JXWA7Q.cjs');
|
|
@@ -126,4 +126,4 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
exports.AnyPointerList =
|
|
129
|
+
exports.AnyPointerList = _chunkXQV7WBWMcjs.AnyPointerList; exports.BoolList = _chunkXQV7WBWMcjs.BoolList; exports.CapnpRPC = _chunkXQV7WBWMcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkXQV7WBWMcjs.CompositeList; exports.Conn = _chunkXQV7WBWMcjs.Conn; exports.Data = _chunkXQV7WBWMcjs.Data; exports.DataList = _chunkXQV7WBWMcjs.DataList; exports.Deferred = _chunkXQV7WBWMcjs.Deferred; exports.DeferredTransport = _chunkXQV7WBWMcjs.DeferredTransport; exports.ErrorClient = _chunkXQV7WBWMcjs.ErrorClient; exports.Float32List = _chunkXQV7WBWMcjs.Float32List; exports.Float64List = _chunkXQV7WBWMcjs.Float64List; exports.Int16List = _chunkXQV7WBWMcjs.Int16List; exports.Int32List = _chunkXQV7WBWMcjs.Int32List; exports.Int64List = _chunkXQV7WBWMcjs.Int64List; exports.Int8List = _chunkXQV7WBWMcjs.Int8List; exports.Interface = _chunkXQV7WBWMcjs.Interface; exports.InterfaceList = _chunkXQV7WBWMcjs.InterfaceList; exports.List = _chunkXQV7WBWMcjs.List; exports.ListElementSize = _chunkXQV7WBWMcjs.ListElementSize; exports.Message = _chunkXQV7WBWMcjs.Message; exports.MessageChannelTransport = _chunkXQV7WBWMcjs.MessageChannelTransport; exports.ObjectSize = _chunkXQV7WBWMcjs.ObjectSize; exports.Orphan = _chunkXQV7WBWMcjs.Orphan; exports.Pipeline = _chunkXQV7WBWMcjs.Pipeline; exports.Pointer = _chunkXQV7WBWMcjs.Pointer; exports.PointerList = _chunkXQV7WBWMcjs.PointerList; exports.PointerType = _chunkXQV7WBWMcjs.PointerType; exports.Registry = _chunkXQV7WBWMcjs.Registry; exports.Server = _chunkXQV7WBWMcjs.Server; exports.Struct = _chunkXQV7WBWMcjs.Struct; exports.Text = _chunkXQV7WBWMcjs.Text; exports.TextList = _chunkXQV7WBWMcjs.TextList; exports.Uint16List = _chunkXQV7WBWMcjs.Uint16List; exports.Uint32List = _chunkXQV7WBWMcjs.Uint32List; exports.Uint64List = _chunkXQV7WBWMcjs.Uint64List; exports.Uint8List = _chunkXQV7WBWMcjs.Uint8List; exports.Void = _chunkXQV7WBWMcjs.Void; exports.VoidList = _chunkXQV7WBWMcjs.VoidList; exports.answerPipelineClient = _chunkXQV7WBWMcjs.answerPipelineClient; exports.clientFromResolution = _chunkXQV7WBWMcjs.clientFromResolution; exports.clientOrNull = _chunkXQV7WBWMcjs.clientOrNull; exports.copyCall = _chunkXQV7WBWMcjs.copyCall; exports.getBitMask = _chunkXQV7WBWMcjs.getBitMask; exports.getFloat32Mask = _chunkXQV7WBWMcjs.getFloat32Mask; exports.getFloat64Mask = _chunkXQV7WBWMcjs.getFloat64Mask; exports.getInt16Mask = _chunkXQV7WBWMcjs.getInt16Mask; exports.getInt32Mask = _chunkXQV7WBWMcjs.getInt32Mask; exports.getInt64Mask = _chunkXQV7WBWMcjs.getInt64Mask; exports.getInt8Mask = _chunkXQV7WBWMcjs.getInt8Mask; exports.getUint16Mask = _chunkXQV7WBWMcjs.getUint16Mask; exports.getUint32Mask = _chunkXQV7WBWMcjs.getUint32Mask; exports.getUint64Mask = _chunkXQV7WBWMcjs.getUint64Mask; exports.getUint8Mask = _chunkXQV7WBWMcjs.getUint8Mask; exports.isDataCall = _chunkXQV7WBWMcjs.isDataCall; exports.isFuncCall = _chunkXQV7WBWMcjs.isFuncCall; exports.isSameClient = _chunkXQV7WBWMcjs.isSameClient; exports.placeParams = _chunkXQV7WBWMcjs.placeParams; exports.readRawPointer = _chunkXQV7WBWMcjs.readRawPointer; exports.utils = _chunkXQV7WBWMcjs.utils;
|
package/dist/index.js
CHANGED
package/dist/rpc.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXQV7WBWMcjs = require('./chunk-XQV7WBWM.cjs');
|
|
5
5
|
require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.CapnpRPC =
|
|
9
|
+
exports.CapnpRPC = _chunkXQV7WBWMcjs.CapnpRPC; exports.MessageChannelTransport = _chunkXQV7WBWMcjs.MessageChannelTransport;
|