Comparing version 0.1.0-rc.19 to 0.1.0-rc.20
@@ -11,7 +11,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
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'); | ||
} | ||
/** Parses a (possibly 0x-prefixed) big-endian hex string into bytes */ | ||
@@ -40,3 +41,3 @@ function decodeHex(hex) { | ||
else { | ||
return new Uint8Array(yield (yield node_fetch_1.default(bytecodeUrl)).arrayBuffer()); | ||
return new Uint8Array(yield (yield fetch(bytecodeUrl)).arrayBuffer()); | ||
} | ||
@@ -43,0 +44,0 @@ }); |
{ | ||
"name": "oasis-std", | ||
"version": "0.1.0-rc.19", | ||
"version": "0.1.0-rc.20", | ||
"description": "Oasis platform standard library", | ||
@@ -30,3 +30,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "c8f11b7a696b6661e99a3cd52a641e78aa85206b" | ||
"gitHead": "9efc59744d5016f05914c69bcbb09d17d4d2011e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
283093
1580
1