Comparing version 0.19.7 to 0.20.0
@@ -1,1 +0,1 @@ | ||
"use strict";const e=require("fs"),r=require("path"),n=require("util"),t=require("vm"),u=require("zlib"),l=module.constructor.length>1,i=l?module.constructor:require("module"),o=new i(module.id,null),c=r.resolve(__dirname,"esm.js.gz"),s=l?require:e=>o.require(e);o.filename=__filename,o.parent=module.parent;const a="(function(require,module,__shared__){"+u.gunzipSync(e.readFileSync(c))+"\n})",m=Object.create(null);m.filename=__filename;const d=t.runInThisContext(a,m);function f(){return d(s,o,p),o.exports}function _(e,r){return f()(e,r)}let p;p=f(),p.global=global;const q=Object.create(null);q.value=(()=>"@std/esm enabled");const b=n.inspect.custom||"inspect";Object.defineProperty(_,b,q),Object.freeze(_),module.exports=_; | ||
"use strict";const e=require("fs"),r=require("path"),n=require("util"),t=require("vm"),u=require("zlib"),l=module.constructor.length>1,i=l?module.constructor:require("module"),o=r.resolve(__dirname,"esm.js.gz"),c=new i(module.id,null),s=l?require:e=>c.require(e);c.filename=__filename,c.parent=module.parent;const a="(function(require,module,__shared__){"+u.gunzipSync(e.readFileSync(o))+"\n})",m=Object.create(null);m.filename=__filename;const d=t.runInThisContext(a,m);function f(){return d(s,c,p),c.exports}function _(e,r){return f()(e,r)}let p;p=f(),p.global=global;const q=Object.create(null);q.value=(()=>"@std/esm enabled");const b=n.inspect.custom||"inspect";Object.defineProperty(_,b,q),Object.freeze(_),module.exports=_; |
{ | ||
"name": "@std/esm", | ||
"version": "0.19.7", | ||
"version": "0.20.0", | ||
"description": "Enable ES modules in Node today!", | ||
@@ -5,0 +5,0 @@ "keywords": "commonjs, ecmascript, export, import, modules, node, require", |
@@ -21,3 +21,3 @@ # @std/esm | ||
```js | ||
// Provide options as a parameter or options file. | ||
// Provide options as a parameter, environment variable, or rc file. | ||
require = require("@std/esm")(module/*, options*/) | ||
@@ -106,2 +106,3 @@ module.exports = require("./main.mjs").default | ||
[`pm2`](http://pm2.keymetrics.io/docs/usage/quick-start/#options) | ||
* Load `@std/esm` with [`wallaby.js`](https://wallabyjs.com/docs/integration/node.html#es-modules) | ||
* Use `@std/esm` to load [`jasmine`](https://jasmine.github.io/setup/nodejs.html#a-simple-example-using-the-library) | ||
@@ -108,0 +109,0 @@ * Use `"@std/esm":"cjs"` for the `--watch` and `--watch-extensions` options of |
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
64959
111