oasis-std
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -11,9 +11,8 @@ "use strict"; | ||
}; | ||
var _a; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const buffer_1 = require("buffer"); | ||
const isNode = typeof process !== 'undefined' && !!((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node); | ||
if (isNode) { | ||
globalThis.fetch = require('node-fetch'); | ||
} | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
/** Parses a (possibly 0x-prefixed) big-endian hex string into bytes */ | ||
@@ -42,3 +41,3 @@ function decodeHex(hex) { | ||
else { | ||
return new Uint8Array(yield (yield fetch(bytecodeUrl)).arrayBuffer()); | ||
return new Uint8Array(yield (yield node_fetch_1.default(bytecodeUrl)).arrayBuffer()); | ||
} | ||
@@ -45,0 +44,0 @@ }); |
{ | ||
"name": "oasis-std", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Oasis platform standard library", | ||
@@ -29,3 +29,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "8126667cdf23ffa97ccb7b7b410170ac0d6f4336" | ||
"gitHead": "7081e2cb724dc1123f2e1e7050f671158d9802cd" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
324932
0
2066