Comparing version 3.2.0 to 3.2.1
@@ -1,1 +0,1 @@ | ||
const e="Object.<anonymous>",t=(function(){return this||Function("return this")()})(),{apply:n,defineProperty:r}=Reflect,{freeze:o}=Object,{hasOwnProperty:l}=Object.prototype,{type:u,versions:i}=process,{filename:c,id:a,parent:_}=module,s=C(i,"electron"),p=s&&"renderer"===u;let m="";"string"==typeof a&&a.startsWith("internal/")&&(m=x("internal/esm/loader"));const f=require("module"),{Script:d}=require("vm"),{createCachedData:y,runInNewContext:h,runInThisContext:b}=d.prototype,{sep:j}=require("path"),{readFileSync:g}=require("fs"),v=new f(a);let q;function x(e){let t;try{const{internalBinding:n}=require("internal/bootstrap/loaders"),r=n("natives");C(r,e)&&(t=r[e])}catch(e){}return"string"==typeof t?t:""}function C(e,t){return null!=e&&n(l,e,[t])}function w(){return V(require,v,q,z),v.exports}function S(e,t){return w()(e,t)}function D(e,t){try{return g(e,t)}catch(e){}return null}function I(e){try{return require(e)}catch(e){}}v.filename=c,v.parent=_,"object"==typeof jest&&null!==jest&&global.jest!==jest&&(q=jest);const O={__proto__:null};function N(t,n,{cwd:r,testEnvironment:o}){C(O,r)||(O[r]={compile:{__proto__:null},loader:S(module)});const l=I(o);if("function"!=typeof l)return;const{loader:u}=O[r],{runScript:i}=l.prototype,{symbol:c}=z,{CachingCompiler:a,moduleInternalCompileSource:_}=z.module,s=u(c.entry),p=u(c.runtime),m=a.compile(t,{cjsVars:!0,filename:n,runtimeName:"_",sourceType:3});O[r].compile[n]=m;const f=2===m.sourceType,d=_(m,{cjsVars:!0,runtimeName:"_"});return C(O[r],o)||(O[o]=!0,l.prototype.runScript=function(...t){const n=Reflect.apply(i,this,t),o=n[e];return n[e]=function(...e){const[t]=e,n=s.get(t);n.compileData=O[r].compile[n.filename],n.runtimeName="_",n.type=f?2:1;const l=p.enable(n,{});let u=Reflect.apply(o,this,e);if(f){const{_runResult:e}=l;e.next(),u=e.next().value}return u},n}),{code:d}}let R,T,k="",F="";""!==m?(F=m,T={__proto__:null,filename:"esm.js"}):(k=__dirname+j+"node_modules"+j+".cache"+j+"esm",R=D(k+j+".data.blob"),F=D(__dirname+j+"esm"+j+"loader.js","utf8"),null===R&&(R=void 0),null===F&&(F=""),T={__proto__:null,cachedData:R,filename:c,produceCachedData:"function"!=typeof y});const P=new d("var __global__ = this;(function (require, module, __jest__, __shared__) { "+F+"\n});",T);let V,z;if(V=p?n(b,P,[{__proto__:null,filename:c}]):n(h,P,[{__proto__:null,global:t},{__proto__:null,filename:c}]),z=w(),""!==k){const{dir:e}=z.package;C(e,k)||(e[k]={buffer:R,compile:{__proto__:null,esm:{changed:!1,circular:0,code:null,filename:null,firstAwaitOutsideFunction:null,mtime:-1,scriptData:R||null,sourceType:1,yieldIndex:-1}},map:{__proto__:null}}),z.pendingScripts[k]={__proto__:null,esm:P}}r(S,z.symbol.package,{__proto__:null,value:!0}),r(S,z.customInspectKey,{__proto__:null,value:()=>"esm enabled"}),r(S,"esm:package",{__proto__:null,value:!0}),r(S,"process",{__proto__:null,value:N}),o(S),module.exports=S; | ||
const e=(function(){return this||Function("return this")()})(),{apply:t,defineProperty:n}=Reflect,{freeze:r}=Object,{hasOwnProperty:l}=Object.prototype,o=Symbol.for,{type:u,versions:a}=process,{filename:_,id:i,parent:s}=module,c=C(a,"electron"),p=c&&"renderer"===u;let d="";"string"==typeof i&&i.startsWith("internal/")&&(d=D("internal/esm/loader"));const m=require("module"),{Script:f}=require("vm"),{createCachedData:y,runInNewContext:h,runInThisContext:b}=f.prototype,{sep:g}=require("path"),{readFileSync:j}=require("fs"),v=new m(i);let q,w,x;function D(e){let t;try{const{internalBinding:n}=require("internal/bootstrap/loaders"),r=n("natives");C(r,e)&&(t=r[e])}catch(e){}return"string"==typeof t?t:""}function C(e,n){return null!=e&&t(l,e,[n])}function I(){return P(require,v,q,W),v.exports}function O(e,t){return I()(e,t)}function S(e,t){try{return j(e,t)}catch(e){}return null}v.filename=_,v.parent=s,"object"==typeof jest&&null!==jest&&global.jest!==jest&&(q=jest);let k="",F="";""!==d?(F=d,x={__proto__:null,filename:"esm.js"}):(k=__dirname+g+"node_modules"+g+".cache"+g+"esm",w=S(k+g+".data.blob"),F=S(__dirname+g+"esm"+g+"loader.js","utf8"),null===w&&(w=void 0),null===F&&(F=""),x={__proto__:null,cachedData:w,filename:_,produceCachedData:"function"!=typeof y});const T=new f("var __global__ = this;(function (require, module, __jest__, __shared__) { "+F+"\n});",x);let P,W;if(P=p?t(b,T,[{__proto__:null,filename:_}]):t(h,T,[{__proto__:null,global:e},{__proto__:null,filename:_}]),W=I(),""!==k){const{dir:e}=W.package;C(e,k)||(e[k]={buffer:w,compile:{__proto__:null,esm:{changed:!1,circular:0,code:null,codeWithTDZ:null,filename:null,firstAwaitOutsideFunction:null,mtime:-1,scriptData:w||null,sourceType:1,yieldIndex:-1}},map:{__proto__:null}}),W.pendingScripts[k]={__proto__:null,esm:T}}n(O,W.symbol.package,{__proto__:null,value:!0}),n(O,W.customInspectKey,{__proto__:null,value:()=>"esm enabled"}),n(O,o("esm:package"),{__proto__:null,value:!0}),r(O),module.exports=O; |
{ | ||
"name": "esm", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Tomorrow's ECMAScript modules today!", | ||
@@ -5,0 +5,0 @@ "keywords": "commonjs, ecmascript, export, import, modules, node, require", |
@@ -81,3 +81,3 @@ # esm | ||
<table><tr><td colspan=2><code>{</code><tr><td valign=top><code>"await":</code><td><p>A boolean for top-level <a href=https://node.green/#ES2018-features-Asynchronous-Iterators-async-generators><code>await</code></a> in modules <a href=https://github.com/mylesborins/proposal-top-level-await/#optional-constraint-top-level-await-can-only-be-used-in-modules-without-exports>without ESM exports</a>. <em>(Node 10+)</em><tr><td valign=top><code>"cjs":</code><td><p>A boolean or object for toggling CJS features in ESM.<details><summary>Features</summary><table><tr><td colspan=2><code>{</code><tr><td valign=top><code>"cache":</code><td><p>A boolean for storing ES modules in <code>require.cache</code>.<tr><td valign=top><code>"extensions":</code><td><p>A boolean for respecting <code>require.extensions</code> in ESM.<tr><td valign=top><code>"interop":</code><td><p>A boolean for <code>__esModule</code> and <code>require</code> interoperability.<tr><td valign=top><code>"mutableNamespace":</code><td><p>A boolean for mutable <a href=https://ponyfoo.com/articles/es6-modules-in-depth#import-all-the-things>namespace objects</a>.<tr><td valign=top><code>"namedExports":</code><td><p>A boolean for <a href=https://ponyfoo.com/articles/es6-modules-in-depth#importing-named-exports>importing named exports</a> of CJS modules.<tr><td valign=top><code>"paths":</code><td><p>A boolean for following CJS <a href=https://github.com/nodejs/node-eps/blob/master/002-es-modules.md#432-removal-of-non-local-dependencies>path rules</a> in ESM.<tr><td valign=top><code>"vars":</code><td><p>A boolean for <code>__dirname</code>, <code>__filename</code>, and <code>require</code> in ESM.<tr><td colspan=2><code>}</code></table></details><tr><td valign=top><code>"force":</code><td><p>A boolean to apply these options to all module loads.<tr><td valign=top><code>"mainFields":</code><td><p>An array of fields, e.g. <code>["main"]</code>, checked when importing a package.<tr><td valign=top><code>"mode":</code><td><p>A string mode:<ul><li><code>"auto"</code> detect files with <code>import</code>, <code>import.meta</code>, <code>export</code>,<br><a href=https://github.com/tc39/proposal-modules-pragma><code>"use module"</code></a>, or <code>.mjs</code> as ESM.<li><code>"all"</code> script files are treated as ESM.<li><code>"strict"</code> to treat <strong>only</strong> <code>.mjs</code> files as ESM.</ul><tr><td valign=top><code>"wasm":</code><td><p>A boolean for <a href=https://nodejs.org/api/globals.html#globals_webassembly>WebAssembly</a> module support. <em>(Node 8+)</em><tr><td colspan=2><code>}</code></table> | ||
<table><tr><td colspan=2><code>{</code><tr><td valign=top><code>"await":</code><td><p>A boolean for top-level <a href=https://node.green/#ES2018-features-Asynchronous-Iterators-async-generators><code>await</code></a> in modules <a href=https://github.com/mylesborins/proposal-top-level-await/#optional-constraint-top-level-await-can-only-be-used-in-modules-without-exports>without ESM exports</a>. <em>(Node 10+)</em><tr><td valign=top><code>"cjs":</code><td><p>A boolean or object for toggling CJS features in ESM.<details><summary>Features</summary><table><tr><td colspan=2><code>{</code><tr><td valign=top><code>"cache":</code><td><p>A boolean for storing ES modules in <code>require.cache</code>.<tr><td valign=top><code>"esModule":</code><td><p>A boolean for <code>__esModule</code> interoperability.<tr><td valign=top><code>"extensions":</code><td><p>A boolean for respecting <code>require.extensions</code> in ESM.<tr><td valign=top><code>"mutableNamespace":</code><td><p>A boolean for mutable <a href=https://ponyfoo.com/articles/es6-modules-in-depth#import-all-the-things>namespace objects</a>.<tr><td valign=top><code>"namedExports":</code><td><p>A boolean for <a href=https://ponyfoo.com/articles/es6-modules-in-depth#importing-named-exports>importing named exports</a> of CJS modules.<tr><td valign=top><code>"paths":</code><td><p>A boolean for following CJS <a href=https://github.com/nodejs/node-eps/blob/master/002-es-modules.md#432-removal-of-non-local-dependencies>path rules</a> in ESM.<tr><td valign=top><code>"vars":</code><td><p>A boolean for <code>__dirname</code>, <code>__filename</code>, and <code>require</code> in ESM.<tr><td colspan=2><code>}</code></table></details><tr><td valign=top><code>"force":</code><td><p>A boolean to apply these options to all module loads.<tr><td valign=top><code>"mainFields":</code><td><p>An array of fields, e.g. <code>["main"]</code>, checked when importing a package.<tr><td valign=top><code>"mode":</code><td><p>A string mode:<ul><li><code>"auto"</code> detect files with <code>import</code>, <code>import.meta</code>, <code>export</code>,<br><a href=https://github.com/tc39/proposal-modules-pragma><code>"use module"</code></a>, or <code>.mjs</code> as ESM.<li><code>"all"</code> script files are treated as ESM.<li><code>"strict"</code> to treat <strong>only</strong> <code>.mjs</code> files as ESM.</ul><tr><td valign=top><code>"wasm":</code><td><p>A boolean for <a href=https://nodejs.org/api/globals.html#globals_webassembly>WebAssembly</a> module support. <em>(Node 8+)</em><tr><td colspan=2><code>}</code></table> | ||
@@ -84,0 +84,0 @@ DevOpts |
Sorry, the diff of this file is too big to display
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
283367
9