@stryke/capnp 0.7.0 → 0.8.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/bin/capnpc.cjs +56 -53
- package/bin/capnpc.js +56 -53
- package/dist/{chunk-PYRZUPFR.js → chunk-5DFHSVPM.js} +6 -6
- package/dist/{chunk-X74MKAHT.cjs → chunk-RHONKZU7.cjs} +6 -6
- 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/package.json +3 -3
package/bin/capnpc.cjs
CHANGED
|
@@ -61,30 +61,6 @@ async function createDirectory(path) {
|
|
|
61
61
|
}
|
|
62
62
|
__name(createDirectory, "createDirectory");
|
|
63
63
|
|
|
64
|
-
// ../fs/src/list-files.ts
|
|
65
|
-
var import_defu = __toESM(require("defu"), 1);
|
|
66
|
-
var import_glob = require("glob");
|
|
67
|
-
var DEFAULT_OPTIONS = {
|
|
68
|
-
dot: true
|
|
69
|
-
};
|
|
70
|
-
async function list(filesGlob, options) {
|
|
71
|
-
return (0, import_glob.glob)(filesGlob, (0, import_defu.default)(options ?? {}, DEFAULT_OPTIONS));
|
|
72
|
-
}
|
|
73
|
-
__name(list, "list");
|
|
74
|
-
async function listFiles(filesGlob, options) {
|
|
75
|
-
const result = (await list(filesGlob, (0, import_defu.default)({
|
|
76
|
-
withFileTypes: true
|
|
77
|
-
}, options ?? {}))).filter((ret) => ret.isFile());
|
|
78
|
-
if (!options?.withFileTypes) {
|
|
79
|
-
return result.map((file) => file.fullpath());
|
|
80
|
-
}
|
|
81
|
-
return result;
|
|
82
|
-
}
|
|
83
|
-
__name(listFiles, "listFiles");
|
|
84
|
-
|
|
85
|
-
// ../fs/src/read-file.ts
|
|
86
|
-
var import_j_toml = require("@ltd/j-toml");
|
|
87
|
-
|
|
88
64
|
// ../type-checks/src/get-object-tag.ts
|
|
89
65
|
var getObjectTag = /* @__PURE__ */ __name((value) => {
|
|
90
66
|
if (value == null) {
|
|
@@ -663,25 +639,6 @@ var readFile2 = /* @__PURE__ */ __name(async (filePath) => {
|
|
|
663
639
|
throw new Error("An error occurred writing data to file");
|
|
664
640
|
}
|
|
665
641
|
}, "readFile");
|
|
666
|
-
async function readJsonFile(path, options) {
|
|
667
|
-
const content = await readFile2(path);
|
|
668
|
-
if (options) {
|
|
669
|
-
options.endsWithNewline = content.codePointAt(content.length - 1) === 10;
|
|
670
|
-
}
|
|
671
|
-
try {
|
|
672
|
-
return StormJSON.parseJson(content, options);
|
|
673
|
-
} catch (error) {
|
|
674
|
-
if (isError(error)) {
|
|
675
|
-
error.message = error.message.replace("JSON", path);
|
|
676
|
-
throw error;
|
|
677
|
-
}
|
|
678
|
-
throw new Error(`Failed to parse JSON: ${path}`);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
__name(readJsonFile, "readJsonFile");
|
|
682
|
-
|
|
683
|
-
// ../path/src/file-path-fns.ts
|
|
684
|
-
var import_node_path = require("path");
|
|
685
642
|
|
|
686
643
|
// ../path/src/is-file.ts
|
|
687
644
|
var import_node_fs4 = require("fs");
|
|
@@ -834,6 +791,9 @@ function normalizeWindowsPath2(input = "") {
|
|
|
834
791
|
}
|
|
835
792
|
__name(normalizeWindowsPath2, "normalizeWindowsPath");
|
|
836
793
|
|
|
794
|
+
// ../path/src/file-path-fns.ts
|
|
795
|
+
var import_node_path = require("path");
|
|
796
|
+
|
|
837
797
|
// ../path/src/get-workspace-root.ts
|
|
838
798
|
var import_config_tools = require("@storm-software/config-tools");
|
|
839
799
|
|
|
@@ -863,15 +823,58 @@ function relativePath(from, to, withEndSlash = false) {
|
|
|
863
823
|
}
|
|
864
824
|
__name(relativePath, "relativePath");
|
|
865
825
|
|
|
826
|
+
// ../fs/src/write-file.ts
|
|
827
|
+
var import_node_fs5 = require("fs");
|
|
828
|
+
var import_promises4 = require("fs/promises");
|
|
829
|
+
|
|
830
|
+
// ../fs/src/json.ts
|
|
831
|
+
async function readJsonFile(path, options) {
|
|
832
|
+
const content = await readFile2(path);
|
|
833
|
+
if (options) {
|
|
834
|
+
options.endsWithNewline = content.codePointAt(content.length - 1) === 10;
|
|
835
|
+
}
|
|
836
|
+
try {
|
|
837
|
+
return StormJSON.parseJson(content, options);
|
|
838
|
+
} catch (error) {
|
|
839
|
+
if (isError(error)) {
|
|
840
|
+
error.message = error.message.replace("JSON", path);
|
|
841
|
+
throw error;
|
|
842
|
+
}
|
|
843
|
+
throw new Error(`Failed to parse JSON: ${path}`);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
__name(readJsonFile, "readJsonFile");
|
|
847
|
+
|
|
848
|
+
// ../fs/src/list-files.ts
|
|
849
|
+
var import_defu = __toESM(require("defu"), 1);
|
|
850
|
+
var import_glob = require("glob");
|
|
851
|
+
var DEFAULT_OPTIONS = {
|
|
852
|
+
dot: true
|
|
853
|
+
};
|
|
854
|
+
async function list(filesGlob, options) {
|
|
855
|
+
return (0, import_glob.glob)(filesGlob, (0, import_defu.default)(options ?? {}, DEFAULT_OPTIONS));
|
|
856
|
+
}
|
|
857
|
+
__name(list, "list");
|
|
858
|
+
async function listFiles(filesGlob, options) {
|
|
859
|
+
const result = (await list(filesGlob, (0, import_defu.default)({
|
|
860
|
+
withFileTypes: true
|
|
861
|
+
}, options ?? {}))).filter((ret) => ret.isFile());
|
|
862
|
+
if (!options?.withFileTypes) {
|
|
863
|
+
return result.map((file) => file.fullpath());
|
|
864
|
+
}
|
|
865
|
+
return result;
|
|
866
|
+
}
|
|
867
|
+
__name(listFiles, "listFiles");
|
|
868
|
+
|
|
866
869
|
// bin/capnpc.ts
|
|
867
870
|
var import_commander = require("commander");
|
|
868
|
-
var
|
|
871
|
+
var import_promises5 = require("fs/promises");
|
|
869
872
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
870
873
|
|
|
871
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
874
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
872
875
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
873
876
|
|
|
874
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
877
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
875
878
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
876
879
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
877
880
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2864,7 +2867,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2864
2867
|
}
|
|
2865
2868
|
__name(checkDataBounds, "checkDataBounds");
|
|
2866
2869
|
|
|
2867
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2870
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
2868
2871
|
function CompositeList(CompositeClass) {
|
|
2869
2872
|
return class extends List {
|
|
2870
2873
|
static _capnp = {
|
|
@@ -2935,7 +2938,7 @@ var getUint8Mask = _makePrimitiveMaskFn(
|
|
|
2935
2938
|
DataView.prototype.setUint8
|
|
2936
2939
|
);
|
|
2937
2940
|
|
|
2938
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2941
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/capnp/schema.mjs
|
|
2939
2942
|
var _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
2940
2943
|
var Node_Parameter = class extends Struct {
|
|
2941
2944
|
static {
|
|
@@ -5595,7 +5598,7 @@ CodeGeneratorRequest._Nodes = CompositeList(Node);
|
|
|
5595
5598
|
CodeGeneratorRequest._SourceInfo = CompositeList(Node_SourceInfo);
|
|
5596
5599
|
CodeGeneratorRequest._RequestedFiles = CompositeList(CodeGeneratorRequest_RequestedFile);
|
|
5597
5600
|
|
|
5598
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5601
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
5599
5602
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
5600
5603
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
5601
5604
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -6592,7 +6595,7 @@ function copy(m) {
|
|
|
6592
6595
|
}
|
|
6593
6596
|
__name(copy, "copy");
|
|
6594
6597
|
|
|
6595
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
6598
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
6596
6599
|
var GEN_EXPLICIT_DEFAULT_NON_PRIMITIVE = "CAPNP-ES000 Don't know how to generate a %s field with an explicit default value.";
|
|
6597
6600
|
var GEN_FIELD_NON_INLINE_STRUCT_LIST = "CAPNP-ES001 Don't know how to generate non-inline struct lists.";
|
|
6598
6601
|
var GEN_NODE_LOOKUP_FAIL = "CAPNP-ES002 Failed to look up node id %s.";
|
|
@@ -7753,7 +7756,7 @@ function generateNestedImports(ctx) {
|
|
|
7753
7756
|
if (name.startsWith("/capnp/")) {
|
|
7754
7757
|
importPath = `@stryke/capnp/schemas/${name.slice(7).replace(/\.capnp$/, "")}`;
|
|
7755
7758
|
} else {
|
|
7756
|
-
importPath = name.replace(/\.capnp$/, "
|
|
7759
|
+
importPath = name.replace(/\.capnp$/, "");
|
|
7757
7760
|
if (importPath[0] !== ".") {
|
|
7758
7761
|
importPath = `./${importPath}`;
|
|
7759
7762
|
}
|
|
@@ -7914,7 +7917,7 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7914
7917
|
}
|
|
7915
7918
|
__name(tsCompile, "tsCompile");
|
|
7916
7919
|
|
|
7917
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
7920
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/compiler/index.mjs
|
|
7918
7921
|
var import_typescript2 = require("typescript");
|
|
7919
7922
|
|
|
7920
7923
|
// src/compile.ts
|
|
@@ -8074,7 +8077,7 @@ async function compileAction(options) {
|
|
|
8074
8077
|
if (!existsSync(findFilePath(filePath))) {
|
|
8075
8078
|
await createDirectory(findFilePath(filePath));
|
|
8076
8079
|
}
|
|
8077
|
-
await (0,
|
|
8080
|
+
await (0, import_promises5.writeFile)(
|
|
8078
8081
|
filePath,
|
|
8079
8082
|
// https://github.com/microsoft/TypeScript/issues/54632
|
|
8080
8083
|
content.replace(/^\s+/gm, (match) => " ".repeat(match.length / 2))
|
package/bin/capnpc.js
CHANGED
|
@@ -30,30 +30,6 @@ async function createDirectory(path) {
|
|
|
30
30
|
}
|
|
31
31
|
__name(createDirectory, "createDirectory");
|
|
32
32
|
|
|
33
|
-
// ../fs/src/list-files.ts
|
|
34
|
-
import defu from "defu";
|
|
35
|
-
import { glob } from "glob";
|
|
36
|
-
var DEFAULT_OPTIONS = {
|
|
37
|
-
dot: true
|
|
38
|
-
};
|
|
39
|
-
async function list(filesGlob, options) {
|
|
40
|
-
return glob(filesGlob, defu(options ?? {}, DEFAULT_OPTIONS));
|
|
41
|
-
}
|
|
42
|
-
__name(list, "list");
|
|
43
|
-
async function listFiles(filesGlob, options) {
|
|
44
|
-
const result = (await list(filesGlob, defu({
|
|
45
|
-
withFileTypes: true
|
|
46
|
-
}, options ?? {}))).filter((ret) => ret.isFile());
|
|
47
|
-
if (!options?.withFileTypes) {
|
|
48
|
-
return result.map((file) => file.fullpath());
|
|
49
|
-
}
|
|
50
|
-
return result;
|
|
51
|
-
}
|
|
52
|
-
__name(listFiles, "listFiles");
|
|
53
|
-
|
|
54
|
-
// ../fs/src/read-file.ts
|
|
55
|
-
import { parse as parseToml } from "@ltd/j-toml";
|
|
56
|
-
|
|
57
33
|
// ../type-checks/src/get-object-tag.ts
|
|
58
34
|
var getObjectTag = /* @__PURE__ */ __name((value) => {
|
|
59
35
|
if (value == null) {
|
|
@@ -632,25 +608,6 @@ var readFile2 = /* @__PURE__ */ __name(async (filePath) => {
|
|
|
632
608
|
throw new Error("An error occurred writing data to file");
|
|
633
609
|
}
|
|
634
610
|
}, "readFile");
|
|
635
|
-
async function readJsonFile(path, options) {
|
|
636
|
-
const content = await readFile2(path);
|
|
637
|
-
if (options) {
|
|
638
|
-
options.endsWithNewline = content.codePointAt(content.length - 1) === 10;
|
|
639
|
-
}
|
|
640
|
-
try {
|
|
641
|
-
return StormJSON.parseJson(content, options);
|
|
642
|
-
} catch (error) {
|
|
643
|
-
if (isError(error)) {
|
|
644
|
-
error.message = error.message.replace("JSON", path);
|
|
645
|
-
throw error;
|
|
646
|
-
}
|
|
647
|
-
throw new Error(`Failed to parse JSON: ${path}`);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
__name(readJsonFile, "readJsonFile");
|
|
651
|
-
|
|
652
|
-
// ../path/src/file-path-fns.ts
|
|
653
|
-
import { relative } from "node:path";
|
|
654
611
|
|
|
655
612
|
// ../path/src/is-file.ts
|
|
656
613
|
import { lstatSync, statSync } from "node:fs";
|
|
@@ -803,6 +760,9 @@ function normalizeWindowsPath2(input = "") {
|
|
|
803
760
|
}
|
|
804
761
|
__name(normalizeWindowsPath2, "normalizeWindowsPath");
|
|
805
762
|
|
|
763
|
+
// ../path/src/file-path-fns.ts
|
|
764
|
+
import { relative } from "node:path";
|
|
765
|
+
|
|
806
766
|
// ../path/src/get-workspace-root.ts
|
|
807
767
|
import { findWorkspaceRootSafe } from "@storm-software/config-tools";
|
|
808
768
|
|
|
@@ -832,15 +792,58 @@ function relativePath(from, to, withEndSlash = false) {
|
|
|
832
792
|
}
|
|
833
793
|
__name(relativePath, "relativePath");
|
|
834
794
|
|
|
795
|
+
// ../fs/src/write-file.ts
|
|
796
|
+
import { writeFileSync as writeFileSyncFs } from "node:fs";
|
|
797
|
+
import { writeFile as writeFileFs } from "node:fs/promises";
|
|
798
|
+
|
|
799
|
+
// ../fs/src/json.ts
|
|
800
|
+
async function readJsonFile(path, options) {
|
|
801
|
+
const content = await readFile2(path);
|
|
802
|
+
if (options) {
|
|
803
|
+
options.endsWithNewline = content.codePointAt(content.length - 1) === 10;
|
|
804
|
+
}
|
|
805
|
+
try {
|
|
806
|
+
return StormJSON.parseJson(content, options);
|
|
807
|
+
} catch (error) {
|
|
808
|
+
if (isError(error)) {
|
|
809
|
+
error.message = error.message.replace("JSON", path);
|
|
810
|
+
throw error;
|
|
811
|
+
}
|
|
812
|
+
throw new Error(`Failed to parse JSON: ${path}`);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
__name(readJsonFile, "readJsonFile");
|
|
816
|
+
|
|
817
|
+
// ../fs/src/list-files.ts
|
|
818
|
+
import defu from "defu";
|
|
819
|
+
import { glob } from "glob";
|
|
820
|
+
var DEFAULT_OPTIONS = {
|
|
821
|
+
dot: true
|
|
822
|
+
};
|
|
823
|
+
async function list(filesGlob, options) {
|
|
824
|
+
return glob(filesGlob, defu(options ?? {}, DEFAULT_OPTIONS));
|
|
825
|
+
}
|
|
826
|
+
__name(list, "list");
|
|
827
|
+
async function listFiles(filesGlob, options) {
|
|
828
|
+
const result = (await list(filesGlob, defu({
|
|
829
|
+
withFileTypes: true
|
|
830
|
+
}, options ?? {}))).filter((ret) => ret.isFile());
|
|
831
|
+
if (!options?.withFileTypes) {
|
|
832
|
+
return result.map((file) => file.fullpath());
|
|
833
|
+
}
|
|
834
|
+
return result;
|
|
835
|
+
}
|
|
836
|
+
__name(listFiles, "listFiles");
|
|
837
|
+
|
|
835
838
|
// bin/capnpc.ts
|
|
836
839
|
import { Command, Option } from "commander";
|
|
837
|
-
import { writeFile } from "node:fs/promises";
|
|
840
|
+
import { writeFile as writeFile2 } from "node:fs/promises";
|
|
838
841
|
import ts2 from "typescript";
|
|
839
842
|
|
|
840
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
843
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
841
844
|
import ts from "typescript";
|
|
842
845
|
|
|
843
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
846
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
|
|
844
847
|
var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
|
|
845
848
|
ListElementSize2[ListElementSize2["VOID"] = 0] = "VOID";
|
|
846
849
|
ListElementSize2[ListElementSize2["BIT"] = 1] = "BIT";
|
|
@@ -2833,7 +2836,7 @@ function checkDataBounds(byteOffset, byteLength, s) {
|
|
|
2833
2836
|
}
|
|
2834
2837
|
__name(checkDataBounds, "checkDataBounds");
|
|
2835
2838
|
|
|
2836
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2839
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
|
|
2837
2840
|
function CompositeList(CompositeClass) {
|
|
2838
2841
|
return class extends List {
|
|
2839
2842
|
static _capnp = {
|
|
@@ -2904,7 +2907,7 @@ var getUint8Mask = _makePrimitiveMaskFn(
|
|
|
2904
2907
|
DataView.prototype.setUint8
|
|
2905
2908
|
);
|
|
2906
2909
|
|
|
2907
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
2910
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/capnp/schema.mjs
|
|
2908
2911
|
var _capnpFileId = BigInt("0xa93fc509624c72d9");
|
|
2909
2912
|
var Node_Parameter = class extends Struct {
|
|
2910
2913
|
static {
|
|
@@ -5564,7 +5567,7 @@ CodeGeneratorRequest._Nodes = CompositeList(Node);
|
|
|
5564
5567
|
CodeGeneratorRequest._SourceInfo = CompositeList(Node_SourceInfo);
|
|
5565
5568
|
CodeGeneratorRequest._RequestedFiles = CompositeList(CodeGeneratorRequest_RequestedFile);
|
|
5566
5569
|
|
|
5567
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
5570
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
|
|
5568
5571
|
var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
|
|
5569
5572
|
ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
|
|
5570
5573
|
ArenaKind2[ArenaKind2["MULTI_SEGMENT"] = 1] = "MULTI_SEGMENT";
|
|
@@ -6561,7 +6564,7 @@ function copy(m) {
|
|
|
6561
6564
|
}
|
|
6562
6565
|
__name(copy, "copy");
|
|
6563
6566
|
|
|
6564
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
6567
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
6565
6568
|
var GEN_EXPLICIT_DEFAULT_NON_PRIMITIVE = "CAPNP-ES000 Don't know how to generate a %s field with an explicit default value.";
|
|
6566
6569
|
var GEN_FIELD_NON_INLINE_STRUCT_LIST = "CAPNP-ES001 Don't know how to generate non-inline struct lists.";
|
|
6567
6570
|
var GEN_NODE_LOOKUP_FAIL = "CAPNP-ES002 Failed to look up node id %s.";
|
|
@@ -7722,7 +7725,7 @@ function generateNestedImports(ctx) {
|
|
|
7722
7725
|
if (name.startsWith("/capnp/")) {
|
|
7723
7726
|
importPath = `@stryke/capnp/schemas/${name.slice(7).replace(/\.capnp$/, "")}`;
|
|
7724
7727
|
} else {
|
|
7725
|
-
importPath = name.replace(/\.capnp$/, "
|
|
7728
|
+
importPath = name.replace(/\.capnp$/, "");
|
|
7726
7729
|
if (importPath[0] !== ".") {
|
|
7727
7730
|
importPath = `./${importPath}`;
|
|
7728
7731
|
}
|
|
@@ -7883,7 +7886,7 @@ function tsCompile(files, dts, js, tsconfig) {
|
|
|
7883
7886
|
}
|
|
7884
7887
|
__name(tsCompile, "tsCompile");
|
|
7885
7888
|
|
|
7886
|
-
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=
|
|
7889
|
+
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_typescript@5.8.3/node_modules/capnp-es/dist/compiler/index.mjs
|
|
7887
7890
|
import "typescript";
|
|
7888
7891
|
|
|
7889
7892
|
// src/compile.ts
|
|
@@ -8043,7 +8046,7 @@ async function compileAction(options) {
|
|
|
8043
8046
|
if (!existsSync(findFilePath(filePath))) {
|
|
8044
8047
|
await createDirectory(findFilePath(filePath));
|
|
8045
8048
|
}
|
|
8046
|
-
await
|
|
8049
|
+
await writeFile2(
|
|
8047
8050
|
filePath,
|
|
8048
8051
|
// https://github.com/microsoft/TypeScript/issues/54632
|
|
8049
8052
|
content.replace(/^\s+/gm, (match) => " ".repeat(match.length / 2))
|
|
@@ -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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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");
|
|
@@ -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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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=f53660f66d5bee0d534f52c8353ad821257e1fcf32d2c09b3ce40c642807de44_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");
|
package/dist/index.cjs
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkRHONKZU7cjs = require('./chunk-RHONKZU7.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 = _chunkRHONKZU7cjs.AnyPointerList; exports.BoolList = _chunkRHONKZU7cjs.BoolList; exports.CapnpRPC = _chunkRHONKZU7cjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkRHONKZU7cjs.CompositeList; exports.Conn = _chunkRHONKZU7cjs.Conn; exports.Data = _chunkRHONKZU7cjs.Data; exports.DataList = _chunkRHONKZU7cjs.DataList; exports.Deferred = _chunkRHONKZU7cjs.Deferred; exports.DeferredTransport = _chunkRHONKZU7cjs.DeferredTransport; exports.ErrorClient = _chunkRHONKZU7cjs.ErrorClient; exports.Float32List = _chunkRHONKZU7cjs.Float32List; exports.Float64List = _chunkRHONKZU7cjs.Float64List; exports.Int16List = _chunkRHONKZU7cjs.Int16List; exports.Int32List = _chunkRHONKZU7cjs.Int32List; exports.Int64List = _chunkRHONKZU7cjs.Int64List; exports.Int8List = _chunkRHONKZU7cjs.Int8List; exports.Interface = _chunkRHONKZU7cjs.Interface; exports.InterfaceList = _chunkRHONKZU7cjs.InterfaceList; exports.List = _chunkRHONKZU7cjs.List; exports.ListElementSize = _chunkRHONKZU7cjs.ListElementSize; exports.Message = _chunkRHONKZU7cjs.Message; exports.MessageChannelTransport = _chunkRHONKZU7cjs.MessageChannelTransport; exports.ObjectSize = _chunkRHONKZU7cjs.ObjectSize; exports.Orphan = _chunkRHONKZU7cjs.Orphan; exports.Pipeline = _chunkRHONKZU7cjs.Pipeline; exports.Pointer = _chunkRHONKZU7cjs.Pointer; exports.PointerList = _chunkRHONKZU7cjs.PointerList; exports.PointerType = _chunkRHONKZU7cjs.PointerType; exports.Registry = _chunkRHONKZU7cjs.Registry; exports.Server = _chunkRHONKZU7cjs.Server; exports.Struct = _chunkRHONKZU7cjs.Struct; exports.Text = _chunkRHONKZU7cjs.Text; exports.TextList = _chunkRHONKZU7cjs.TextList; exports.Uint16List = _chunkRHONKZU7cjs.Uint16List; exports.Uint32List = _chunkRHONKZU7cjs.Uint32List; exports.Uint64List = _chunkRHONKZU7cjs.Uint64List; exports.Uint8List = _chunkRHONKZU7cjs.Uint8List; exports.Void = _chunkRHONKZU7cjs.Void; exports.VoidList = _chunkRHONKZU7cjs.VoidList; exports.answerPipelineClient = _chunkRHONKZU7cjs.answerPipelineClient; exports.clientFromResolution = _chunkRHONKZU7cjs.clientFromResolution; exports.clientOrNull = _chunkRHONKZU7cjs.clientOrNull; exports.copyCall = _chunkRHONKZU7cjs.copyCall; exports.getBitMask = _chunkRHONKZU7cjs.getBitMask; exports.getFloat32Mask = _chunkRHONKZU7cjs.getFloat32Mask; exports.getFloat64Mask = _chunkRHONKZU7cjs.getFloat64Mask; exports.getInt16Mask = _chunkRHONKZU7cjs.getInt16Mask; exports.getInt32Mask = _chunkRHONKZU7cjs.getInt32Mask; exports.getInt64Mask = _chunkRHONKZU7cjs.getInt64Mask; exports.getInt8Mask = _chunkRHONKZU7cjs.getInt8Mask; exports.getUint16Mask = _chunkRHONKZU7cjs.getUint16Mask; exports.getUint32Mask = _chunkRHONKZU7cjs.getUint32Mask; exports.getUint64Mask = _chunkRHONKZU7cjs.getUint64Mask; exports.getUint8Mask = _chunkRHONKZU7cjs.getUint8Mask; exports.isDataCall = _chunkRHONKZU7cjs.isDataCall; exports.isFuncCall = _chunkRHONKZU7cjs.isFuncCall; exports.isSameClient = _chunkRHONKZU7cjs.isSameClient; exports.placeParams = _chunkRHONKZU7cjs.placeParams; exports.readRawPointer = _chunkRHONKZU7cjs.readRawPointer; exports.utils = _chunkRHONKZU7cjs.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 _chunkRHONKZU7cjs = require('./chunk-RHONKZU7.cjs');
|
|
5
5
|
require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.CapnpRPC =
|
|
9
|
+
exports.CapnpRPC = _chunkRHONKZU7cjs.CapnpRPC; exports.MessageChannelTransport = _chunkRHONKZU7cjs.MessageChannelTransport;
|
package/dist/rpc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/capnp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package to assist in running the Cap'n Proto compiler and creating Cap'n Proto serialization protocol schemas.",
|
|
6
6
|
"repository": {
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
"peerDependencies": { "typescript": ">=4.0.0" },
|
|
116
116
|
"peerDependenciesMeta": { "typescript": { "optional": false } },
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@stryke/fs": "^0.
|
|
119
|
-
"@stryke/path": "^0.
|
|
118
|
+
"@stryke/fs": "^0.21.1",
|
|
119
|
+
"@stryke/path": "^0.8.0",
|
|
120
120
|
"hex2dec": "^1.1.2"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|