@gvnrdao/dh-sdk 0.0.286 → 0.0.287
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/browser/dist/browser.js +1 -1
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34758,9 +34758,11 @@ __export(network_configs_exports, {
|
|
|
34758
34758
|
isNetworkSupported: () => isNetworkSupported
|
|
34759
34759
|
});
|
|
34760
34760
|
function logNetworkConfig(level, message, ...args) {
|
|
34761
|
-
if (isNode2
|
|
34762
|
-
|
|
34763
|
-
|
|
34761
|
+
if (!isNode2 || isBrowser)
|
|
34762
|
+
return;
|
|
34763
|
+
if (level === "log" && !process.env["DH_DEBUG"])
|
|
34764
|
+
return;
|
|
34765
|
+
console[level](message, ...args);
|
|
34764
34766
|
}
|
|
34765
34767
|
function readInitBackedEnv(name) {
|
|
34766
34768
|
if (isNode2 && !isBrowser && typeof process !== "undefined" && process.env && typeof process.env[name] === "string") {
|
package/dist/index.mjs
CHANGED
|
@@ -34764,9 +34764,11 @@ __export(network_configs_exports, {
|
|
|
34764
34764
|
isNetworkSupported: () => isNetworkSupported
|
|
34765
34765
|
});
|
|
34766
34766
|
function logNetworkConfig(level, message, ...args) {
|
|
34767
|
-
if (isNode2
|
|
34768
|
-
|
|
34769
|
-
|
|
34767
|
+
if (!isNode2 || isBrowser)
|
|
34768
|
+
return;
|
|
34769
|
+
if (level === "log" && !process.env["DH_DEBUG"])
|
|
34770
|
+
return;
|
|
34771
|
+
console[level](message, ...args);
|
|
34770
34772
|
}
|
|
34771
34773
|
function readInitBackedEnv(name) {
|
|
34772
34774
|
if (isNode2 && !isBrowser && typeof process !== "undefined" && process.env && typeof process.env[name] === "string") {
|
package/package.json
CHANGED