omnipin 1.3.0 → 1.4.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/dist/cli.js +7 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4115,7 +4115,7 @@ class NoProvidersError extends Error {
|
|
|
4115
4115
|
class MissingKeyError extends Error {
|
|
4116
4116
|
name = "MissingKeyError";
|
|
4117
4117
|
constructor(key) {
|
|
4118
|
-
super(`
|
|
4118
|
+
super(`OMNIPIN_${key} is missing.`);
|
|
4119
4119
|
}
|
|
4120
4120
|
}
|
|
4121
4121
|
class InvalidCIDError extends Error {
|
|
@@ -9508,7 +9508,6 @@ function decode(string3, alphabetIdx, bitsPerChar, name12) {
|
|
|
9508
9508
|
for (let i = 0; i < end; ++i) {
|
|
9509
9509
|
const value = alphabetIdx[string3[i]];
|
|
9510
9510
|
if (value === void 0) {
|
|
9511
|
-
console.log(string3[i], string3, i);
|
|
9512
9511
|
throw new SyntaxError(`Non-${name12} character`);
|
|
9513
9512
|
}
|
|
9514
9513
|
buffer2 = buffer2 << bitsPerChar | value;
|
|
@@ -20039,7 +20038,7 @@ var chains = {
|
|
|
20039
20038
|
var parseTokensFromEnv = () => {
|
|
20040
20039
|
const tokens = /* @__PURE__ */ new Map();
|
|
20041
20040
|
for (const [key, value] of Object.entries(process.env)) {
|
|
20042
|
-
if (key.startsWith("
|
|
20041
|
+
if (key.startsWith("OMNIPIN_") && value)
|
|
20043
20042
|
tokens.set(key.slice(7), value);
|
|
20044
20043
|
}
|
|
20045
20044
|
return tokens;
|
|
@@ -23787,8 +23786,8 @@ var dnsLinkAction = async ({
|
|
|
23787
23786
|
options = {}
|
|
23788
23787
|
}) => {
|
|
23789
23788
|
const { verbose = false } = options;
|
|
23790
|
-
const apiKey = process.env.
|
|
23791
|
-
const zoneId = process.env.
|
|
23789
|
+
const apiKey = process.env.OMNIPIN_CF_KEY;
|
|
23790
|
+
const zoneId = process.env.OMNIPIN_CF_ZONE_ID;
|
|
23792
23791
|
if (!apiKey)
|
|
23793
23792
|
throw new MissingKeyError(`CF_KEY`);
|
|
23794
23793
|
if (!zoneId)
|
|
@@ -27804,7 +27803,7 @@ var ensAction = async ({
|
|
|
27804
27803
|
const chain = chains[chainName];
|
|
27805
27804
|
const transport = fromHttp(rpcUrl ?? chainToRpcUrl(chainName));
|
|
27806
27805
|
const provider = from18(transport);
|
|
27807
|
-
const pk = process.env.
|
|
27806
|
+
const pk = process.env.OMNIPIN_PK;
|
|
27808
27807
|
if (!pk)
|
|
27809
27808
|
throw new MissingKeyError("PK");
|
|
27810
27809
|
let contentHash = "", node = "0x";
|
|
@@ -28396,9 +28395,9 @@ var zodiacAction = async ({
|
|
|
28396
28395
|
const safe = options.safe;
|
|
28397
28396
|
if (!safe)
|
|
28398
28397
|
throw new MissingCLIArgsError(["safe"]);
|
|
28399
|
-
let pk = process.env.
|
|
28398
|
+
let pk = process.env.OMNIPIN_PK;
|
|
28400
28399
|
if (!pk) {
|
|
28401
|
-
logger.warn("`
|
|
28400
|
+
logger.warn("`OMNIPIN_PK` environment variable not set.");
|
|
28402
28401
|
logger.info("Generating a Secp256k1 keypair");
|
|
28403
28402
|
pk = randomPrivateKey();
|
|
28404
28403
|
logger.text(` ${styleText7("bgBlue", pk)}`);
|