@crunchdao/shared-cli 1.1.2 → 1.1.3

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.
@@ -11979,238 +11979,6 @@ var require_eventemitter3 = __commonJS({
11979
11979
  }
11980
11980
  });
11981
11981
 
11982
- // ../../node_modules/file-uri-to-path/index.js
11983
- var require_file_uri_to_path = __commonJS({
11984
- "../../node_modules/file-uri-to-path/index.js"(exports2, module2) {
11985
- "use strict";
11986
- var sep = require("path").sep || "/";
11987
- module2.exports = fileUriToPath;
11988
- function fileUriToPath(uri) {
11989
- if ("string" != typeof uri || uri.length <= 7 || "file://" != uri.substring(0, 7)) {
11990
- throw new TypeError("must pass in a file:// URI to convert to a file path");
11991
- }
11992
- var rest = decodeURI(uri.substring(7));
11993
- var firstSlash = rest.indexOf("/");
11994
- var host = rest.substring(0, firstSlash);
11995
- var path = rest.substring(firstSlash + 1);
11996
- if ("localhost" == host) host = "";
11997
- if (host) {
11998
- host = sep + sep + host;
11999
- }
12000
- path = path.replace(/^(.+)\|/, "$1:");
12001
- if (sep == "\\") {
12002
- path = path.replace(/\//g, "\\");
12003
- }
12004
- if (/^.+\:/.test(path)) {
12005
- } else {
12006
- path = sep + path;
12007
- }
12008
- return host + path;
12009
- }
12010
- }
12011
- });
12012
-
12013
- // ../../node_modules/bindings/bindings.js
12014
- var require_bindings = __commonJS({
12015
- "../../node_modules/bindings/bindings.js"(exports2, module2) {
12016
- "use strict";
12017
- var fs = require("fs");
12018
- var path = require("path");
12019
- var fileURLToPath2 = require_file_uri_to_path();
12020
- var join = path.join;
12021
- var dirname3 = path.dirname;
12022
- var exists = fs.accessSync && function(path2) {
12023
- try {
12024
- fs.accessSync(path2);
12025
- } catch (e) {
12026
- return false;
12027
- }
12028
- return true;
12029
- } || fs.existsSync || path.existsSync;
12030
- var defaults = {
12031
- arrow: process.env.NODE_BINDINGS_ARROW || " \u2192 ",
12032
- compiled: process.env.NODE_BINDINGS_COMPILED_DIR || "compiled",
12033
- platform: process.platform,
12034
- arch: process.arch,
12035
- nodePreGyp: "node-v" + process.versions.modules + "-" + process.platform + "-" + process.arch,
12036
- version: process.versions.node,
12037
- bindings: "bindings.node",
12038
- try: [
12039
- // node-gyp's linked version in the "build" dir
12040
- ["module_root", "build", "bindings"],
12041
- // node-waf and gyp_addon (a.k.a node-gyp)
12042
- ["module_root", "build", "Debug", "bindings"],
12043
- ["module_root", "build", "Release", "bindings"],
12044
- // Debug files, for development (legacy behavior, remove for node v0.9)
12045
- ["module_root", "out", "Debug", "bindings"],
12046
- ["module_root", "Debug", "bindings"],
12047
- // Release files, but manually compiled (legacy behavior, remove for node v0.9)
12048
- ["module_root", "out", "Release", "bindings"],
12049
- ["module_root", "Release", "bindings"],
12050
- // Legacy from node-waf, node <= 0.4.x
12051
- ["module_root", "build", "default", "bindings"],
12052
- // Production "Release" buildtype binary (meh...)
12053
- ["module_root", "compiled", "version", "platform", "arch", "bindings"],
12054
- // node-qbs builds
12055
- ["module_root", "addon-build", "release", "install-root", "bindings"],
12056
- ["module_root", "addon-build", "debug", "install-root", "bindings"],
12057
- ["module_root", "addon-build", "default", "install-root", "bindings"],
12058
- // node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}
12059
- ["module_root", "lib", "binding", "nodePreGyp", "bindings"]
12060
- ]
12061
- };
12062
- function bindings(opts) {
12063
- if (typeof opts == "string") {
12064
- opts = { bindings: opts };
12065
- } else if (!opts) {
12066
- opts = {};
12067
- }
12068
- Object.keys(defaults).map(function(i2) {
12069
- if (!(i2 in opts)) opts[i2] = defaults[i2];
12070
- });
12071
- if (!opts.module_root) {
12072
- opts.module_root = exports2.getRoot(exports2.getFileName());
12073
- }
12074
- if (path.extname(opts.bindings) != ".node") {
12075
- opts.bindings += ".node";
12076
- }
12077
- var requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
12078
- var tries = [], i = 0, l = opts.try.length, n, b, err;
12079
- for (; i < l; i++) {
12080
- n = join.apply(
12081
- null,
12082
- opts.try[i].map(function(p) {
12083
- return opts[p] || p;
12084
- })
12085
- );
12086
- tries.push(n);
12087
- try {
12088
- b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
12089
- if (!opts.path) {
12090
- b.path = n;
12091
- }
12092
- return b;
12093
- } catch (e) {
12094
- if (e.code !== "MODULE_NOT_FOUND" && e.code !== "QUALIFIED_PATH_RESOLUTION_FAILED" && !/not find/i.test(e.message)) {
12095
- throw e;
12096
- }
12097
- }
12098
- }
12099
- err = new Error(
12100
- "Could not locate the bindings file. Tried:\n" + tries.map(function(a) {
12101
- return opts.arrow + a;
12102
- }).join("\n")
12103
- );
12104
- err.tries = tries;
12105
- throw err;
12106
- }
12107
- module2.exports = exports2 = bindings;
12108
- exports2.getFileName = function getFileName(calling_file) {
12109
- var origPST = Error.prepareStackTrace, origSTL = Error.stackTraceLimit, dummy = {}, fileName;
12110
- Error.stackTraceLimit = 10;
12111
- Error.prepareStackTrace = function(e, st) {
12112
- for (var i = 0, l = st.length; i < l; i++) {
12113
- fileName = st[i].getFileName();
12114
- if (fileName !== __filename) {
12115
- if (calling_file) {
12116
- if (fileName !== calling_file) {
12117
- return;
12118
- }
12119
- } else {
12120
- return;
12121
- }
12122
- }
12123
- }
12124
- };
12125
- Error.captureStackTrace(dummy);
12126
- dummy.stack;
12127
- Error.prepareStackTrace = origPST;
12128
- Error.stackTraceLimit = origSTL;
12129
- var fileSchema = "file://";
12130
- if (fileName.indexOf(fileSchema) === 0) {
12131
- fileName = fileURLToPath2(fileName);
12132
- }
12133
- return fileName;
12134
- };
12135
- exports2.getRoot = function getRoot(file) {
12136
- var dir = dirname3(file), prev;
12137
- while (true) {
12138
- if (dir === ".") {
12139
- dir = process.cwd();
12140
- }
12141
- if (exists(join(dir, "package.json")) || exists(join(dir, "node_modules"))) {
12142
- return dir;
12143
- }
12144
- if (prev === dir) {
12145
- throw new Error(
12146
- 'Could not find module root given file: "' + file + '". Do you have a `package.json` file? '
12147
- );
12148
- }
12149
- prev = dir;
12150
- dir = join(dir, "..");
12151
- }
12152
- };
12153
- }
12154
- });
12155
-
12156
- // ../../node_modules/bigint-buffer/dist/node.js
12157
- var require_node = __commonJS({
12158
- "../../node_modules/bigint-buffer/dist/node.js"(exports2) {
12159
- "use strict";
12160
- Object.defineProperty(exports2, "__esModule", { value: true });
12161
- var converter;
12162
- {
12163
- try {
12164
- converter = require_bindings()("bigint_buffer");
12165
- } catch (e) {
12166
- console.warn("bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)");
12167
- }
12168
- }
12169
- function toBigIntLE2(buf) {
12170
- if (converter === void 0) {
12171
- const reversed = Buffer.from(buf);
12172
- reversed.reverse();
12173
- const hex = reversed.toString("hex");
12174
- if (hex.length === 0) {
12175
- return BigInt(0);
12176
- }
12177
- return BigInt(`0x${hex}`);
12178
- }
12179
- return converter.toBigInt(buf, false);
12180
- }
12181
- exports2.toBigIntLE = toBigIntLE2;
12182
- function toBigIntBE2(buf) {
12183
- if (converter === void 0) {
12184
- const hex = buf.toString("hex");
12185
- if (hex.length === 0) {
12186
- return BigInt(0);
12187
- }
12188
- return BigInt(`0x${hex}`);
12189
- }
12190
- return converter.toBigInt(buf, true);
12191
- }
12192
- exports2.toBigIntBE = toBigIntBE2;
12193
- function toBufferLE2(num, width) {
12194
- if (converter === void 0) {
12195
- const hex = num.toString(16);
12196
- const buffer = Buffer.from(hex.padStart(width * 2, "0").slice(0, width * 2), "hex");
12197
- buffer.reverse();
12198
- return buffer;
12199
- }
12200
- return converter.fromBigInt(num, Buffer.allocUnsafe(width), false);
12201
- }
12202
- exports2.toBufferLE = toBufferLE2;
12203
- function toBufferBE2(num, width) {
12204
- if (converter === void 0) {
12205
- const hex = num.toString(16);
12206
- return Buffer.from(hex.padStart(width * 2, "0").slice(0, width * 2), "hex");
12207
- }
12208
- return converter.fromBigInt(num, Buffer.allocUnsafe(width), true);
12209
- }
12210
- exports2.toBufferBE = toBufferBE2;
12211
- }
12212
- });
12213
-
12214
11982
  // ../../node_modules/dotenv/config.js
12215
11983
  (function() {
12216
11984
  require_main().config(
@@ -31217,7 +30985,7 @@ var encodeDecode = (layout) => {
31217
30985
 
31218
30986
  // ../../node_modules/@solana/buffer-layout-utils/lib/esm/bigint.mjs
31219
30987
  var import_buffer_layout2 = __toESM(require_Layout(), 1);
31220
- var import_bigint_buffer = __toESM(require_node(), 1);
30988
+ var import_bigint_buffer = require("bigint-buffer");
31221
30989
  var bigInt = (length) => (property) => {
31222
30990
  const layout = (0, import_buffer_layout2.blob)(length, property);
31223
30991
  const { encode, decode } = encodeDecode(layout);