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

ligolang

Package Overview
Dependencies
Maintainers
4
Versions
741
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ligolang - npm Package Compare versions

Comparing version 0.57.0-dev.3 to 0.57.0-dev.4

js_main.bc.js

14

ligo.js

@@ -12,5 +12,11 @@ import _BLS12381 from "@ligolang/ocaml-bls12-381";

async function loadJSBundle(url) {
let response = await fetch(url);
let text = await response.text();
new Function(text).call(window);
return new Promise((resolve) => {
// TODO(prometheansacrifice) Handle error while loading JS
const script = document.createElement("script");
script.src = url.pathname;
script.onload = function () {
resolve();
};
document.head.appendChild(script);
});
}

@@ -23,5 +29,5 @@

await loadJSBundle(new URL("js_main.bc.js", import.meta.url));
return compile.main(code, syntax);
return window.compile.main(code, syntax);
}
// Cant use TS because rollup expects an es6 module at the consumer end. If necessary, also distribute an es6 export
{
"name": "ligolang",
"main": "dist/ligo.js",
"module": "./ligo.js",
"version": "0.57.0-dev.3",
"version": "0.57.0-dev.4",
"scripts": {

@@ -11,3 +10,4 @@ "build": "cp ../_build/default/src/bin/js_main*.js . && chmod u+rw js_main.bc.* && rollup -c ./rollup.config.mjs"

"ligo.js",
"dist/ligo.js"
"js_main.bc.js",
"js_main.bc.runtime.js"
],

@@ -14,0 +14,0 @@ "dependencies": {

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