@wormhole-foundation/connect-sdk
Advanced tools
Comparing version 0.1.7-beta.1 to 0.1.7-beta.2
@@ -61,3 +61,4 @@ "use strict"; | ||
}; | ||
exports.DEFAULT_NETWORK = process?.env?.NETWORK || "Testnet"; | ||
const inNode = typeof process !== 'undefined'; | ||
exports.DEFAULT_NETWORK = (inNode && process.env.NETWORK) || "Testnet"; | ||
//# sourceMappingURL=config.js.map |
@@ -57,3 +57,4 @@ import { chains, chainToPlatform, explorerConfigs, finalityThreshold, nativeDecimals, rpcAddress, constMap, circleAPI, blockTime, } from "@wormhole-foundation/sdk-base"; | ||
}; | ||
export const DEFAULT_NETWORK = process?.env?.NETWORK || "Testnet"; | ||
const inNode = typeof process !== 'undefined'; | ||
export const DEFAULT_NETWORK = (inNode && process.env.NETWORK) || "Testnet"; | ||
//# sourceMappingURL=config.js.map |
{ | ||
"name": "@wormhole-foundation/connect-sdk", | ||
"version": "0.1.7-beta.1", | ||
"version": "0.1.7-beta.2", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -90,3 +90,5 @@ import { | ||
const inNode = typeof process !== 'undefined' | ||
export const DEFAULT_NETWORK: Network = | ||
(process?.env?.NETWORK as Network) || "Testnet"; | ||
(inNode && process.env.NETWORK as Network) || "Testnet"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
385350
5917