es-module-loader
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -314,6 +314,2 @@ import { Loader, ModuleNamespace } from './loader-polyfill.js'; | ||
function traceDynamicLoad (loader, parentKey, key) { | ||
loader.loads[parentKey].dynamicDeps.push(key); | ||
} | ||
/* | ||
@@ -479,6 +475,10 @@ * Convert a CJS module.exports into a valid object for new Module: | ||
// ContextualLoader class | ||
// backwards-compatible with previous System.register context argument by exposing .id | ||
// backwards-compatible with previous System.register context argument by exposing .id, .key | ||
function ContextualLoader (loader, key) { | ||
this.loader = loader; | ||
this.key = this.id = key; | ||
this.meta = { | ||
url: key | ||
// scriptElement: null | ||
}; | ||
} | ||
@@ -490,3 +490,3 @@ /*ContextualLoader.prototype.constructor = function () { | ||
if (this.loader.trace) | ||
traceDynamicLoad(this.loader, this.key, key); | ||
this.loader.loads[this.key].dynamicDeps.push(key); | ||
return this.loader.import(key, this.key); | ||
@@ -493,0 +493,0 @@ }; |
{ | ||
"name": "es-module-loader", | ||
"description": "An ES Module Loader shim", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"homepage": "https://github.com/ModuleLoader/es-module-loader", | ||
@@ -6,0 +6,0 @@ "author": { |
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
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
es-module-lexer |
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
8777
0
263928