@stryke/capnp 0.10.7 → 0.10.9

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.
@@ -735,20 +735,6 @@ function slash(path) {
735
735
  }
736
736
  _chunkUSNT2KNTcjs.__name.call(void 0, slash, "slash");
737
737
 
738
- // ../path/src/is-file.ts
739
- function isFile(path, additionalPath) {
740
- return Boolean(_optionalChain([_fs.statSync.call(void 0, additionalPath ? joinPaths(additionalPath, path) : path, {
741
- throwIfNoEntry: false
742
- }), 'optionalAccess', _13 => _13.isFile, 'call', _14 => _14()]));
743
- }
744
- _chunkUSNT2KNTcjs.__name.call(void 0, isFile, "isFile");
745
- function isDirectory(path, additionalPath) {
746
- return Boolean(_optionalChain([_fs.statSync.call(void 0, additionalPath ? joinPaths(additionalPath, path) : path, {
747
- throwIfNoEntry: false
748
- }), 'optionalAccess', _15 => _15.isDirectory, 'call', _16 => _16()]));
749
- }
750
- _chunkUSNT2KNTcjs.__name.call(void 0, isDirectory, "isDirectory");
751
-
752
738
  // ../path/src/correct-path.ts
753
739
  function normalizeWindowsPath2(input = "") {
754
740
  if (!input) {
@@ -764,9 +750,6 @@ _chunkUSNT2KNTcjs.__name.call(void 0, normalizeWindowsPath2, "normalizeWindowsPa
764
750
  var existsSync2 = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (filePath) => {
765
751
  return _fs.existsSync.call(void 0, filePath);
766
752
  }, "existsSync");
767
- var exists = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (filePath) => {
768
- return _promises.access.call(void 0, filePath, _promises.constants.F_OK).then(() => true).catch(() => false);
769
- }, "exists");
770
753
 
771
754
  // ../path/src/file-path-fns.ts
772
755
  var _path = require('path');
@@ -774,103 +757,10 @@ var _path = require('path');
774
757
  // ../path/src/get-workspace-root.ts
775
758
  var _configtools = require('@storm-software/config-tools');
776
759
 
777
- // ../path/src/get-parent-path.ts
778
- var resolveParentPath = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (path, count = 1) => {
779
- let parentPath = path.replaceAll(/\/+$/g, "");
780
- for (let i = 0; i < count; i++) {
781
- parentPath = joinPaths(parentPath, "..");
782
- }
783
- return parentPath;
784
- }, "resolveParentPath");
785
- var getParentPath = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (name, cwd, options) => {
786
- const ignoreCase = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _17 => _17.ignoreCase]), () => ( true));
787
- const skipCwd = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _18 => _18.skipCwd]), () => ( false));
788
- const targetType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _19 => _19.targetType]), () => ( "both"));
789
- let dir = cwd;
790
- if (skipCwd) {
791
- dir = resolveParentPath(cwd);
792
- }
793
- let names = Array.isArray(name) ? name : [
794
- name
795
- ];
796
- if (ignoreCase) {
797
- names = names.map((name2) => name2.toLowerCase());
798
- }
799
- while (true) {
800
- const target = names.find((name2) => isFile(joinPaths(dir, name2)) && (targetType === "file" || targetType === "both") || isDirectory(joinPaths(dir, name2)) && (targetType === "directory" || targetType === "both"));
801
- if (target) {
802
- return joinPaths(dir, target);
803
- }
804
- const parentDir = resolveParentPath(dir);
805
- if (parentDir === dir) {
806
- return void 0;
807
- }
808
- dir = parentDir;
809
- }
810
- }, "getParentPath");
811
-
812
- // ../path/src/is-root-dir.ts
813
- var isSystemRoot = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (dir) => {
814
- return Boolean(dir === "/" || dir === "c:\\" || dir === "C:\\");
815
- }, "isSystemRoot");
816
-
817
- // ../path/src/get-workspace-root.ts
818
- var WORKSPACE_ROOT_CONTENT = [
819
- "package-lock.json",
820
- "yarn.lock",
821
- "pnpm-lock.yaml",
822
- "bun.lock",
823
- "nx.json",
824
- "knip.json",
825
- "pnpm-workspace.yaml",
826
- "LICENSE",
827
- ".all-contributorsrc",
828
- ".whitesource",
829
- "syncpack.config.js",
830
- "syncpack.json",
831
- "socket.yaml",
832
- "lefthook.yaml",
833
- ".npmrc",
834
- ".log4brains.yml",
835
- ".huskyrc",
836
- ".husky",
837
- ".lintstagedrc",
838
- ".commitlintrc",
839
- "lefthook.yml",
840
- ".github",
841
- ".nx",
842
- ".vscode",
843
- "patches"
844
- ];
845
- function getWorkspaceRoot(dir = process.cwd()) {
846
- if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
847
- return process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
848
- }
849
- const root = _configtools.findWorkspaceRootSafe.call(void 0, dir);
850
- if (root) {
851
- return root;
852
- }
853
- let result = getParentPath(WORKSPACE_ROOT_CONTENT, dir);
854
- if (result) {
855
- return result;
856
- }
857
- result = dir;
858
- while (result && !isSystemRoot(result)) {
859
- result = getParentPath("storm-workspace.json", result, {
860
- skipCwd: true
861
- });
862
- if (result) {
863
- return result;
864
- }
865
- }
866
- return dir;
867
- }
868
- _chunkUSNT2KNTcjs.__name.call(void 0, getWorkspaceRoot, "getWorkspaceRoot");
869
-
870
760
  // ../path/src/file-path-fns.ts
871
761
  function findFileName(filePath, options = {}) {
872
762
  const { requireExtension = false, withExtension = true } = options;
873
- const result = _nullishCoalesce(_optionalChain([normalizeWindowsPath2, 'call', _20 => _20(filePath), 'optionalAccess', _21 => _21.split, 'call', _22 => _22(_optionalChain([filePath, 'optionalAccess', _23 => _23.includes, 'call', _24 => _24("\\")]) ? "\\" : "/"), 'optionalAccess', _25 => _25.pop, 'call', _26 => _26()]), () => ( ""));
763
+ const result = _nullishCoalesce(_optionalChain([normalizeWindowsPath2, 'call', _13 => _13(filePath), 'optionalAccess', _14 => _14.split, 'call', _15 => _15(_optionalChain([filePath, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17("\\")]) ? "\\" : "/"), 'optionalAccess', _18 => _18.pop, 'call', _19 => _19()]), () => ( ""));
874
764
  if (requireExtension === true && !result.includes(".")) {
875
765
  return EMPTY_STRING;
876
766
  }
@@ -901,15 +791,6 @@ _chunkUSNT2KNTcjs.__name.call(void 0, relativePath, "relativePath");
901
791
  var _nanotar = require('nanotar');
902
792
 
903
793
 
904
- async function createDirectory(path) {
905
- if (await exists(path)) {
906
- return;
907
- }
908
- return _promises.mkdir.call(void 0, path, {
909
- recursive: true
910
- });
911
- }
912
- _chunkUSNT2KNTcjs.__name.call(void 0, createDirectory, "createDirectory");
913
794
 
914
795
  // ../fs/src/json.ts
915
796
  async function readJsonFile(path, options) {
@@ -943,7 +824,7 @@ async function listFiles(filesGlob, options) {
943
824
  const result = (await list(filesGlob, _defu2.default.call(void 0, {
944
825
  withFileTypes: true
945
826
  }, _nullishCoalesce(options, () => ( {}))))).filter((ret) => ret.isFile());
946
- if (!_optionalChain([options, 'optionalAccess', _27 => _27.withFileTypes])) {
827
+ if (!_optionalChain([options, 'optionalAccess', _20 => _20.withFileTypes])) {
947
828
  return result.map((file) => file.fullpath());
948
829
  }
949
830
  return result;
@@ -1012,7 +893,4 @@ _chunkUSNT2KNTcjs.__name.call(void 0, resolveOptions, "resolveOptions");
1012
893
 
1013
894
 
1014
895
 
1015
-
1016
-
1017
-
1018
- exports.existsSync = existsSync2; exports.createDirectory = createDirectory; exports.slash = slash; exports.getWorkspaceRoot = getWorkspaceRoot; exports.resolveOptions = resolveOptions;
896
+ exports.existsSync = existsSync2; exports.resolveOptions = resolveOptions;
@@ -735,20 +735,6 @@ function slash(path) {
735
735
  }
736
736
  __name(slash, "slash");
737
737
 
738
- // ../path/src/is-file.ts
739
- function isFile(path, additionalPath) {
740
- return Boolean(statSync(additionalPath ? joinPaths(additionalPath, path) : path, {
741
- throwIfNoEntry: false
742
- })?.isFile());
743
- }
744
- __name(isFile, "isFile");
745
- function isDirectory(path, additionalPath) {
746
- return Boolean(statSync(additionalPath ? joinPaths(additionalPath, path) : path, {
747
- throwIfNoEntry: false
748
- })?.isDirectory());
749
- }
750
- __name(isDirectory, "isDirectory");
751
-
752
738
  // ../path/src/correct-path.ts
753
739
  function normalizeWindowsPath2(input = "") {
754
740
  if (!input) {
@@ -764,9 +750,6 @@ import { access, constants } from "node:fs/promises";
764
750
  var existsSync2 = /* @__PURE__ */ __name((filePath) => {
765
751
  return existsSyncFs(filePath);
766
752
  }, "existsSync");
767
- var exists = /* @__PURE__ */ __name(async (filePath) => {
768
- return access(filePath, constants.F_OK).then(() => true).catch(() => false);
769
- }, "exists");
770
753
 
771
754
  // ../path/src/file-path-fns.ts
772
755
  import { relative } from "node:path";
@@ -774,99 +757,6 @@ import { relative } from "node:path";
774
757
  // ../path/src/get-workspace-root.ts
775
758
  import { findWorkspaceRootSafe } from "@storm-software/config-tools";
776
759
 
777
- // ../path/src/get-parent-path.ts
778
- var resolveParentPath = /* @__PURE__ */ __name((path, count = 1) => {
779
- let parentPath = path.replaceAll(/\/+$/g, "");
780
- for (let i = 0; i < count; i++) {
781
- parentPath = joinPaths(parentPath, "..");
782
- }
783
- return parentPath;
784
- }, "resolveParentPath");
785
- var getParentPath = /* @__PURE__ */ __name((name, cwd, options) => {
786
- const ignoreCase = options?.ignoreCase ?? true;
787
- const skipCwd = options?.skipCwd ?? false;
788
- const targetType = options?.targetType ?? "both";
789
- let dir = cwd;
790
- if (skipCwd) {
791
- dir = resolveParentPath(cwd);
792
- }
793
- let names = Array.isArray(name) ? name : [
794
- name
795
- ];
796
- if (ignoreCase) {
797
- names = names.map((name2) => name2.toLowerCase());
798
- }
799
- while (true) {
800
- const target = names.find((name2) => isFile(joinPaths(dir, name2)) && (targetType === "file" || targetType === "both") || isDirectory(joinPaths(dir, name2)) && (targetType === "directory" || targetType === "both"));
801
- if (target) {
802
- return joinPaths(dir, target);
803
- }
804
- const parentDir = resolveParentPath(dir);
805
- if (parentDir === dir) {
806
- return void 0;
807
- }
808
- dir = parentDir;
809
- }
810
- }, "getParentPath");
811
-
812
- // ../path/src/is-root-dir.ts
813
- var isSystemRoot = /* @__PURE__ */ __name((dir) => {
814
- return Boolean(dir === "/" || dir === "c:\\" || dir === "C:\\");
815
- }, "isSystemRoot");
816
-
817
- // ../path/src/get-workspace-root.ts
818
- var WORKSPACE_ROOT_CONTENT = [
819
- "package-lock.json",
820
- "yarn.lock",
821
- "pnpm-lock.yaml",
822
- "bun.lock",
823
- "nx.json",
824
- "knip.json",
825
- "pnpm-workspace.yaml",
826
- "LICENSE",
827
- ".all-contributorsrc",
828
- ".whitesource",
829
- "syncpack.config.js",
830
- "syncpack.json",
831
- "socket.yaml",
832
- "lefthook.yaml",
833
- ".npmrc",
834
- ".log4brains.yml",
835
- ".huskyrc",
836
- ".husky",
837
- ".lintstagedrc",
838
- ".commitlintrc",
839
- "lefthook.yml",
840
- ".github",
841
- ".nx",
842
- ".vscode",
843
- "patches"
844
- ];
845
- function getWorkspaceRoot(dir = process.cwd()) {
846
- if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
847
- return process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
848
- }
849
- const root = findWorkspaceRootSafe(dir);
850
- if (root) {
851
- return root;
852
- }
853
- let result = getParentPath(WORKSPACE_ROOT_CONTENT, dir);
854
- if (result) {
855
- return result;
856
- }
857
- result = dir;
858
- while (result && !isSystemRoot(result)) {
859
- result = getParentPath("storm-workspace.json", result, {
860
- skipCwd: true
861
- });
862
- if (result) {
863
- return result;
864
- }
865
- }
866
- return dir;
867
- }
868
- __name(getWorkspaceRoot, "getWorkspaceRoot");
869
-
870
760
  // ../path/src/file-path-fns.ts
871
761
  function findFileName(filePath, options = {}) {
872
762
  const { requireExtension = false, withExtension = true } = options;
@@ -901,15 +791,6 @@ import { writeFile as writeFileFs } from "node:fs/promises";
901
791
  import { parseTar, parseTarGzip } from "nanotar";
902
792
  import { createWriteStream, mkdirSync, rmSync } from "node:fs";
903
793
  import { mkdir, readFile as readFile2, rm } from "node:fs/promises";
904
- async function createDirectory(path) {
905
- if (await exists(path)) {
906
- return;
907
- }
908
- return mkdir(path, {
909
- recursive: true
910
- });
911
- }
912
- __name(createDirectory, "createDirectory");
913
794
 
914
795
  // ../fs/src/json.ts
915
796
  async function readJsonFile(path, options) {
@@ -1011,8 +892,5 @@ __name(resolveOptions, "resolveOptions");
1011
892
 
1012
893
  export {
1013
894
  existsSync2 as existsSync,
1014
- createDirectory,
1015
- slash,
1016
- getWorkspaceRoot,
1017
895
  resolveOptions
1018
896
  };
package/dist/compile.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkGTDJDX77cjs = require('./chunk-GTDJDX77.cjs');
5
- require('./chunk-SH2ISQVR.cjs');
4
+ var _chunk4G5JV6WGcjs = require('./chunk-4G5JV6WG.cjs');
5
+ require('./chunk-SL27DJSC.cjs');
6
6
  require('./chunk-KXWOF6H4.cjs');
7
7
  require('./chunk-USNT2KNT.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.capnpc = _chunkGTDJDX77cjs.capnpc; exports.compile = _chunkGTDJDX77cjs.compile;
11
+ exports.capnpc = _chunk4G5JV6WGcjs.capnpc; exports.compile = _chunk4G5JV6WGcjs.compile;
package/dist/compile.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  capnpc,
3
3
  compile
4
- } from "./chunk-FP42YKAZ.js";
5
- import "./chunk-NKATTHKT.js";
4
+ } from "./chunk-5QODNLKN.js";
5
+ import "./chunk-U6Y2C7CE.js";
6
6
  import "./chunk-5VHN3KGS.js";
7
7
  import "./chunk-SHUYVCID.js";
8
8
  export {
package/dist/helpers.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSH2ISQVRcjs = require('./chunk-SH2ISQVR.cjs');
3
+ var _chunkSL27DJSCcjs = require('./chunk-SL27DJSC.cjs');
4
4
  require('./chunk-USNT2KNT.cjs');
5
5
 
6
6
 
7
- exports.resolveOptions = _chunkSH2ISQVRcjs.resolveOptions;
7
+ exports.resolveOptions = _chunkSL27DJSCcjs.resolveOptions;
package/dist/helpers.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveOptions
3
- } from "./chunk-NKATTHKT.js";
3
+ } from "./chunk-U6Y2C7CE.js";
4
4
  import "./chunk-SHUYVCID.js";
5
5
  export {
6
6
  resolveOptions
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkGTDJDX77cjs = require('./chunk-GTDJDX77.cjs');
5
- require('./chunk-SH2ISQVR.cjs');
4
+ var _chunk4G5JV6WGcjs = require('./chunk-4G5JV6WG.cjs');
5
+ require('./chunk-SL27DJSC.cjs');
6
6
 
7
7
 
8
8
 
@@ -135,4 +135,4 @@ require('./chunk-USNT2KNT.cjs');
135
135
 
136
136
 
137
137
 
138
- exports.AnyPointerList = _chunkIBMXNAOTcjs.AnyPointerList; exports.BoolList = _chunkIBMXNAOTcjs.BoolList; exports.CapnpRPC = _chunkIBMXNAOTcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKXWOF6H4cjs.CompositeList; exports.Conn = _chunkIBMXNAOTcjs.Conn; exports.Data = _chunkKXWOF6H4cjs.Data; exports.DataList = _chunkIBMXNAOTcjs.DataList; exports.Deferred = _chunkIBMXNAOTcjs.Deferred; exports.DeferredTransport = _chunkIBMXNAOTcjs.DeferredTransport; exports.ErrorClient = _chunkKXWOF6H4cjs.ErrorClient; exports.Float32List = _chunkIBMXNAOTcjs.Float32List; exports.Float64List = _chunkIBMXNAOTcjs.Float64List; exports.Int16List = _chunkIBMXNAOTcjs.Int16List; exports.Int32List = _chunkIBMXNAOTcjs.Int32List; exports.Int64List = _chunkIBMXNAOTcjs.Int64List; exports.Int8List = _chunkIBMXNAOTcjs.Int8List; exports.Interface = _chunkIBMXNAOTcjs.Interface; exports.InterfaceList = _chunkIBMXNAOTcjs.InterfaceList; exports.List = _chunkKXWOF6H4cjs.List; exports.ListElementSize = _chunkKXWOF6H4cjs.ListElementSize; exports.Message = _chunkKXWOF6H4cjs.Message; exports.MessageChannelTransport = _chunkIBMXNAOTcjs.MessageChannelTransport; exports.ObjectSize = _chunkKXWOF6H4cjs.ObjectSize; exports.Orphan = _chunkKXWOF6H4cjs.Orphan; exports.Pipeline = _chunkIBMXNAOTcjs.Pipeline; exports.Pointer = _chunkKXWOF6H4cjs.Pointer; exports.PointerList = _chunkIBMXNAOTcjs.PointerList; exports.PointerType = _chunkKXWOF6H4cjs.PointerType; exports.Registry = _chunkIBMXNAOTcjs.Registry; exports.Server = _chunkIBMXNAOTcjs.Server; exports.Struct = _chunkKXWOF6H4cjs.Struct; exports.Text = _chunkKXWOF6H4cjs.Text; exports.TextList = _chunkIBMXNAOTcjs.TextList; exports.Uint16List = _chunkIBMXNAOTcjs.Uint16List; exports.Uint32List = _chunkIBMXNAOTcjs.Uint32List; exports.Uint64List = _chunkIBMXNAOTcjs.Uint64List; exports.Uint8List = _chunkIBMXNAOTcjs.Uint8List; exports.Void = _chunkIBMXNAOTcjs.Void; exports.VoidList = _chunkIBMXNAOTcjs.VoidList; exports.answerPipelineClient = _chunkIBMXNAOTcjs.answerPipelineClient; exports.capnpc = _chunkGTDJDX77cjs.capnpc; exports.clientFromResolution = _chunkIBMXNAOTcjs.clientFromResolution; exports.clientOrNull = _chunkKXWOF6H4cjs.clientOrNull; exports.compile = _chunkGTDJDX77cjs.compile; exports.copyCall = _chunkIBMXNAOTcjs.copyCall; exports.getBitMask = _chunkKXWOF6H4cjs.getBitMask; exports.getFloat32Mask = _chunkKXWOF6H4cjs.getFloat32Mask; exports.getFloat64Mask = _chunkKXWOF6H4cjs.getFloat64Mask; exports.getInt16Mask = _chunkKXWOF6H4cjs.getInt16Mask; exports.getInt32Mask = _chunkKXWOF6H4cjs.getInt32Mask; exports.getInt64Mask = _chunkKXWOF6H4cjs.getInt64Mask; exports.getInt8Mask = _chunkKXWOF6H4cjs.getInt8Mask; exports.getUint16Mask = _chunkKXWOF6H4cjs.getUint16Mask; exports.getUint32Mask = _chunkKXWOF6H4cjs.getUint32Mask; exports.getUint64Mask = _chunkKXWOF6H4cjs.getUint64Mask; exports.getUint8Mask = _chunkKXWOF6H4cjs.getUint8Mask; exports.isDataCall = _chunkIBMXNAOTcjs.isDataCall; exports.isFuncCall = _chunkIBMXNAOTcjs.isFuncCall; exports.isSameClient = _chunkIBMXNAOTcjs.isSameClient; exports.placeParams = _chunkIBMXNAOTcjs.placeParams; exports.readRawPointer = _chunkKXWOF6H4cjs.readRawPointer; exports.utils = _chunkIBMXNAOTcjs.utils;
138
+ exports.AnyPointerList = _chunkIBMXNAOTcjs.AnyPointerList; exports.BoolList = _chunkIBMXNAOTcjs.BoolList; exports.CapnpRPC = _chunkIBMXNAOTcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKXWOF6H4cjs.CompositeList; exports.Conn = _chunkIBMXNAOTcjs.Conn; exports.Data = _chunkKXWOF6H4cjs.Data; exports.DataList = _chunkIBMXNAOTcjs.DataList; exports.Deferred = _chunkIBMXNAOTcjs.Deferred; exports.DeferredTransport = _chunkIBMXNAOTcjs.DeferredTransport; exports.ErrorClient = _chunkKXWOF6H4cjs.ErrorClient; exports.Float32List = _chunkIBMXNAOTcjs.Float32List; exports.Float64List = _chunkIBMXNAOTcjs.Float64List; exports.Int16List = _chunkIBMXNAOTcjs.Int16List; exports.Int32List = _chunkIBMXNAOTcjs.Int32List; exports.Int64List = _chunkIBMXNAOTcjs.Int64List; exports.Int8List = _chunkIBMXNAOTcjs.Int8List; exports.Interface = _chunkIBMXNAOTcjs.Interface; exports.InterfaceList = _chunkIBMXNAOTcjs.InterfaceList; exports.List = _chunkKXWOF6H4cjs.List; exports.ListElementSize = _chunkKXWOF6H4cjs.ListElementSize; exports.Message = _chunkKXWOF6H4cjs.Message; exports.MessageChannelTransport = _chunkIBMXNAOTcjs.MessageChannelTransport; exports.ObjectSize = _chunkKXWOF6H4cjs.ObjectSize; exports.Orphan = _chunkKXWOF6H4cjs.Orphan; exports.Pipeline = _chunkIBMXNAOTcjs.Pipeline; exports.Pointer = _chunkKXWOF6H4cjs.Pointer; exports.PointerList = _chunkIBMXNAOTcjs.PointerList; exports.PointerType = _chunkKXWOF6H4cjs.PointerType; exports.Registry = _chunkIBMXNAOTcjs.Registry; exports.Server = _chunkIBMXNAOTcjs.Server; exports.Struct = _chunkKXWOF6H4cjs.Struct; exports.Text = _chunkKXWOF6H4cjs.Text; exports.TextList = _chunkIBMXNAOTcjs.TextList; exports.Uint16List = _chunkIBMXNAOTcjs.Uint16List; exports.Uint32List = _chunkIBMXNAOTcjs.Uint32List; exports.Uint64List = _chunkIBMXNAOTcjs.Uint64List; exports.Uint8List = _chunkIBMXNAOTcjs.Uint8List; exports.Void = _chunkIBMXNAOTcjs.Void; exports.VoidList = _chunkIBMXNAOTcjs.VoidList; exports.answerPipelineClient = _chunkIBMXNAOTcjs.answerPipelineClient; exports.capnpc = _chunk4G5JV6WGcjs.capnpc; exports.clientFromResolution = _chunkIBMXNAOTcjs.clientFromResolution; exports.clientOrNull = _chunkKXWOF6H4cjs.clientOrNull; exports.compile = _chunk4G5JV6WGcjs.compile; exports.copyCall = _chunkIBMXNAOTcjs.copyCall; exports.getBitMask = _chunkKXWOF6H4cjs.getBitMask; exports.getFloat32Mask = _chunkKXWOF6H4cjs.getFloat32Mask; exports.getFloat64Mask = _chunkKXWOF6H4cjs.getFloat64Mask; exports.getInt16Mask = _chunkKXWOF6H4cjs.getInt16Mask; exports.getInt32Mask = _chunkKXWOF6H4cjs.getInt32Mask; exports.getInt64Mask = _chunkKXWOF6H4cjs.getInt64Mask; exports.getInt8Mask = _chunkKXWOF6H4cjs.getInt8Mask; exports.getUint16Mask = _chunkKXWOF6H4cjs.getUint16Mask; exports.getUint32Mask = _chunkKXWOF6H4cjs.getUint32Mask; exports.getUint64Mask = _chunkKXWOF6H4cjs.getUint64Mask; exports.getUint8Mask = _chunkKXWOF6H4cjs.getUint8Mask; exports.isDataCall = _chunkIBMXNAOTcjs.isDataCall; exports.isFuncCall = _chunkIBMXNAOTcjs.isFuncCall; exports.isSameClient = _chunkIBMXNAOTcjs.isSameClient; exports.placeParams = _chunkIBMXNAOTcjs.placeParams; exports.readRawPointer = _chunkKXWOF6H4cjs.readRawPointer; exports.utils = _chunkIBMXNAOTcjs.utils;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  capnpc,
3
3
  compile
4
- } from "./chunk-FP42YKAZ.js";
5
- import "./chunk-NKATTHKT.js";
4
+ } from "./chunk-5QODNLKN.js";
5
+ import "./chunk-U6Y2C7CE.js";
6
6
  import {
7
7
  AnyPointerList,
8
8
  BoolList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/capnp",
3
- "version": "0.10.7",
3
+ "version": "0.10.9",
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": {
@@ -129,8 +129,8 @@
129
129
  "peerDependencies": { "typescript": ">=4.0.0" },
130
130
  "peerDependenciesMeta": { "typescript": { "optional": false } },
131
131
  "dependencies": {
132
- "@stryke/fs": "^0.23.3",
133
- "@stryke/path": "^0.12.4",
132
+ "@stryke/fs": "0.24.0",
133
+ "@stryke/path": "0.12.5",
134
134
  "defu": "^6.1.4",
135
135
  "hex2dec": "^1.1.2",
136
136
  "nanotar": "^0.2.0"
@@ -148,5 +148,5 @@
148
148
  "tsx": "^4.20.1"
149
149
  },
150
150
  "publishConfig": { "access": "public" },
151
- "gitHead": "73e7e322ba240f2a3157568d55f8c2c6e125bf73"
151
+ "gitHead": "f8abb224a6b6540e442cc664bbb2cf1273b2be2b"
152
152
  }
@@ -4075,17 +4075,6 @@ import { writeWarning as writeWarning2 } from "@storm-software/config-tools/logg
4075
4075
  import { existsSync as existsSyncFs } from "node:fs";
4076
4076
  import { access, constants } from "node:fs/promises";
4077
4077
 
4078
- // ../fs/src/helpers.ts
4079
- import { parseTar, parseTarGzip } from "nanotar";
4080
- import { createWriteStream, mkdirSync, rmSync } from "node:fs";
4081
- import { mkdir, readFile, rm } from "node:fs/promises";
4082
-
4083
- // ../path/src/get-workspace-root.ts
4084
- import { findWorkspaceRootSafe } from "@storm-software/config-tools";
4085
-
4086
- // ../path/src/is-file.ts
4087
- import { lstatSync, statSync } from "node:fs";
4088
-
4089
4078
  // src/compile.ts
4090
4079
  import defu2 from "defu";
4091
4080
  import { Buffer as Buffer2 } from "node:buffer";
@@ -4649,16 +4638,27 @@ StormJSON.instance.registerCustom({
4649
4638
  }, "Bytes");
4650
4639
 
4651
4640
  // ../fs/src/read-file.ts
4652
- import { existsSync as existsSync2, readFileSync as readFileSyncFs } from "node:fs";
4641
+ import { existsSync, readFileSync as readFileSyncFs } from "node:fs";
4653
4642
  import { readFile as readFileFs } from "node:fs/promises";
4654
4643
 
4644
+ // ../path/src/is-file.ts
4645
+ import { lstatSync, statSync } from "node:fs";
4646
+
4655
4647
  // ../path/src/file-path-fns.ts
4656
4648
  import { relative } from "node:path";
4657
4649
 
4650
+ // ../path/src/get-workspace-root.ts
4651
+ import { findWorkspaceRootSafe } from "@storm-software/config-tools";
4652
+
4658
4653
  // ../fs/src/write-file.ts
4659
4654
  import { writeFileSync as writeFileSyncFs } from "node:fs";
4660
4655
  import { writeFile as writeFileFs } from "node:fs/promises";
4661
4656
 
4657
+ // ../fs/src/helpers.ts
4658
+ import { parseTar, parseTarGzip } from "nanotar";
4659
+ import { createWriteStream, mkdirSync, rmSync } from "node:fs";
4660
+ import { mkdir, readFile, rm } from "node:fs/promises";
4661
+
4662
4662
  // ../fs/src/list-files.ts
4663
4663
  import defu from "defu";
4664
4664
  import { glob } from "glob";
@@ -6,27 +6,27 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkZ7HGBQR4cjs = require('./chunk-Z7HGBQR4.cjs');
9
+ var _chunkA5PAMTEDcjs = require('./chunk-A5PAMTED.cjs');
10
10
 
11
11
 
12
12
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
13
13
 
14
14
  // schemas/persistent.ts
15
15
  var _capnpFileId = BigInt("0xb8630836983feed7");
16
- var Persistent_SaveParams = (_class = class extends _chunkZ7HGBQR4cjs.Struct {
16
+ var Persistent_SaveParams = (_class = class extends _chunkA5PAMTEDcjs.Struct {
17
17
  static {
18
18
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent_SaveParams");
19
19
  }
20
20
  static __initStatic() {this._capnp = {
21
21
  displayName: "SaveParams",
22
22
  id: "f76fba59183073a5",
23
- size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(0, 1)
23
+ size: new (0, _chunkA5PAMTEDcjs.ObjectSize)(0, 1)
24
24
  }}
25
25
  _adoptSealFor(value) {
26
- _chunkZ7HGBQR4cjs.utils.adopt(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
26
+ _chunkA5PAMTEDcjs.utils.adopt(value, _chunkA5PAMTEDcjs.utils.getPointer(0, this));
27
27
  }
28
28
  _disownSealFor() {
29
- return _chunkZ7HGBQR4cjs.utils.disown(this.sealFor);
29
+ return _chunkA5PAMTEDcjs.utils.disown(this.sealFor);
30
30
  }
31
31
  /**
32
32
  * Seal the SturdyRef so that it can only be restored by the specified Owner. This is meant
@@ -38,41 +38,41 @@ var Persistent_SaveParams = (_class = class extends _chunkZ7HGBQR4cjs.Struct {
38
38
  *
39
39
  */
40
40
  get sealFor() {
41
- return _chunkZ7HGBQR4cjs.utils.getPointer(0, this);
41
+ return _chunkA5PAMTEDcjs.utils.getPointer(0, this);
42
42
  }
43
43
  _hasSealFor() {
44
- return !_chunkZ7HGBQR4cjs.utils.isNull(_chunkZ7HGBQR4cjs.utils.getPointer(0, this));
44
+ return !_chunkA5PAMTEDcjs.utils.isNull(_chunkA5PAMTEDcjs.utils.getPointer(0, this));
45
45
  }
46
46
  set sealFor(value) {
47
- _chunkZ7HGBQR4cjs.utils.copyFrom(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
47
+ _chunkA5PAMTEDcjs.utils.copyFrom(value, _chunkA5PAMTEDcjs.utils.getPointer(0, this));
48
48
  }
49
49
  toString() {
50
50
  return "Persistent_SaveParams_" + super.toString();
51
51
  }
52
52
  }, _class.__initStatic(), _class);
53
- var Persistent_SaveResults = (_class2 = class extends _chunkZ7HGBQR4cjs.Struct {
53
+ var Persistent_SaveResults = (_class2 = class extends _chunkA5PAMTEDcjs.Struct {
54
54
  static {
55
55
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent_SaveResults");
56
56
  }
57
57
  static __initStatic2() {this._capnp = {
58
58
  displayName: "SaveResults",
59
59
  id: "b76848c18c40efbf",
60
- size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(0, 1)
60
+ size: new (0, _chunkA5PAMTEDcjs.ObjectSize)(0, 1)
61
61
  }}
62
62
  _adoptSturdyRef(value) {
63
- _chunkZ7HGBQR4cjs.utils.adopt(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
63
+ _chunkA5PAMTEDcjs.utils.adopt(value, _chunkA5PAMTEDcjs.utils.getPointer(0, this));
64
64
  }
65
65
  _disownSturdyRef() {
66
- return _chunkZ7HGBQR4cjs.utils.disown(this.sturdyRef);
66
+ return _chunkA5PAMTEDcjs.utils.disown(this.sturdyRef);
67
67
  }
68
68
  get sturdyRef() {
69
- return _chunkZ7HGBQR4cjs.utils.getPointer(0, this);
69
+ return _chunkA5PAMTEDcjs.utils.getPointer(0, this);
70
70
  }
71
71
  _hasSturdyRef() {
72
- return !_chunkZ7HGBQR4cjs.utils.isNull(_chunkZ7HGBQR4cjs.utils.getPointer(0, this));
72
+ return !_chunkA5PAMTEDcjs.utils.isNull(_chunkA5PAMTEDcjs.utils.getPointer(0, this));
73
73
  }
74
74
  set sturdyRef(value) {
75
- _chunkZ7HGBQR4cjs.utils.copyFrom(value, _chunkZ7HGBQR4cjs.utils.getPointer(0, this));
75
+ _chunkA5PAMTEDcjs.utils.copyFrom(value, _chunkA5PAMTEDcjs.utils.getPointer(0, this));
76
76
  }
77
77
  toString() {
78
78
  return "Persistent_SaveResults_" + super.toString();
@@ -120,12 +120,12 @@ var Persistent$Client = (_class3 = class _Persistent$Client {
120
120
  method: _Persistent$Client.methods[0],
121
121
  paramsFunc
122
122
  });
123
- const pipeline = new (0, _chunkZ7HGBQR4cjs.Pipeline)(Persistent_SaveResults, answer);
123
+ const pipeline = new (0, _chunkA5PAMTEDcjs.Pipeline)(Persistent_SaveResults, answer);
124
124
  return new Persistent_SaveResults$Promise(pipeline);
125
125
  }
126
126
  }, _class3.__initStatic3(), _class3.__initStatic4(), _class3);
127
- _chunkZ7HGBQR4cjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
128
- var Persistent$Server = class extends _chunkZ7HGBQR4cjs.Server {
127
+ _chunkA5PAMTEDcjs.Registry.register(Persistent$Client.interfaceId, Persistent$Client);
128
+ var Persistent$Server = class extends _chunkA5PAMTEDcjs.Server {
129
129
  static {
130
130
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent$Server");
131
131
  }
@@ -143,7 +143,7 @@ var Persistent$Server = class extends _chunkZ7HGBQR4cjs.Server {
143
143
  return new Persistent$Client(this);
144
144
  }
145
145
  };
146
- var Persistent = (_class4 = class extends _chunkZ7HGBQR4cjs.Interface {
146
+ var Persistent = (_class4 = class extends _chunkA5PAMTEDcjs.Interface {
147
147
  static {
148
148
  _chunkUSNT2KNTcjs.__name.call(void 0, this, "Persistent");
149
149
  }
@@ -154,7 +154,7 @@ var Persistent = (_class4 = class extends _chunkZ7HGBQR4cjs.Interface {
154
154
  static __initStatic9() {this._capnp = {
155
155
  displayName: "Persistent",
156
156
  id: "c8cb212fcd9f5691",
157
- size: new (0, _chunkZ7HGBQR4cjs.ObjectSize)(0, 0)
157
+ size: new (0, _chunkA5PAMTEDcjs.ObjectSize)(0, 0)
158
158
  }}
159
159
  toString() {
160
160
  return "Persistent_" + super.toString();
@@ -6,7 +6,7 @@ import {
6
6
  Server,
7
7
  Struct,
8
8
  utils
9
- } from "./chunk-YDIMDO2B.js";
9
+ } from "./chunk-KDEFD3VP.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-SHUYVCID.js";