Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oasis-std

Package Overview
Dependencies
Maintainers
17
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oasis-std - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

11

lib/src/utils.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc