omnipin 1.4.0 → 1.4.2
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 +8 -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 {
|
|
@@ -20038,8 +20038,8 @@ var chains = {
|
|
|
20038
20038
|
var parseTokensFromEnv = () => {
|
|
20039
20039
|
const tokens = /* @__PURE__ */ new Map();
|
|
20040
20040
|
for (const [key, value] of Object.entries(process.env)) {
|
|
20041
|
-
if (key.startsWith("
|
|
20042
|
-
tokens.set(key.slice(
|
|
20041
|
+
if (key.startsWith("OMNIPIN_") && value)
|
|
20042
|
+
tokens.set(key.slice(8), value);
|
|
20043
20043
|
}
|
|
20044
20044
|
return tokens;
|
|
20045
20045
|
};
|
|
@@ -23786,8 +23786,8 @@ var dnsLinkAction = async ({
|
|
|
23786
23786
|
options = {}
|
|
23787
23787
|
}) => {
|
|
23788
23788
|
const { verbose = false } = options;
|
|
23789
|
-
const apiKey = process.env.
|
|
23790
|
-
const zoneId = process.env.
|
|
23789
|
+
const apiKey = process.env.OMNIPIN_CF_KEY;
|
|
23790
|
+
const zoneId = process.env.OMNIPIN_CF_ZONE_ID;
|
|
23791
23791
|
if (!apiKey)
|
|
23792
23792
|
throw new MissingKeyError(`CF_KEY`);
|
|
23793
23793
|
if (!zoneId)
|
|
@@ -27803,7 +27803,7 @@ var ensAction = async ({
|
|
|
27803
27803
|
const chain = chains[chainName];
|
|
27804
27804
|
const transport = fromHttp(rpcUrl ?? chainToRpcUrl(chainName));
|
|
27805
27805
|
const provider = from18(transport);
|
|
27806
|
-
const pk = process.env.
|
|
27806
|
+
const pk = process.env.OMNIPIN_PK;
|
|
27807
27807
|
if (!pk)
|
|
27808
27808
|
throw new MissingKeyError("PK");
|
|
27809
27809
|
let contentHash = "", node = "0x";
|
|
@@ -28395,9 +28395,9 @@ var zodiacAction = async ({
|
|
|
28395
28395
|
const safe = options.safe;
|
|
28396
28396
|
if (!safe)
|
|
28397
28397
|
throw new MissingCLIArgsError(["safe"]);
|
|
28398
|
-
let pk = process.env.
|
|
28398
|
+
let pk = process.env.OMNIPIN_PK;
|
|
28399
28399
|
if (!pk) {
|
|
28400
|
-
logger.warn("`
|
|
28400
|
+
logger.warn("`OMNIPIN_PK` environment variable not set.");
|
|
28401
28401
|
logger.info("Generating a Secp256k1 keypair");
|
|
28402
28402
|
pk = randomPrivateKey();
|
|
28403
28403
|
logger.text(` ${styleText7("bgBlue", pk)}`);
|