Skip to content

Commit

Permalink
6.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Sep 2, 2020
1 parent 3270005 commit 5145217
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 38 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
SystemJS 6.5.1
* Fix depcache hook (https://github.com/systemjs/systemjs/pull/2242)

SystemJS 6.5.0
* import.meta.resolve implementation (https://github.com/systemjs/systemjs/pull/2230)
* Import maps integrity feature (https://github.com/systemjs/systemjs/pull/2229)
Expand Down
22 changes: 11 additions & 11 deletions dist/s.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SJS 6.5.0
* SJS 6.5.1
* Minimal SystemJS Build
*/
(function () {
Expand Down Expand Up @@ -513,16 +513,6 @@
window.addEventListener('DOMContentLoaded', processScripts);
}

var systemInstantiate = systemJSPrototype.instantiate;
systemJSPrototype.instantiate = function (url, firstParentUrl) {
var preloads = ( importMap).depcache[url];
if (preloads) {
for (var i = 0; i < preloads.length; i++)
getOrCreateLoad(this, this.resolve(preloads[i], url), url);
}
return systemInstantiate.call(this, url, firstParentUrl);
};

function processScripts () {
[].forEach.call(document.querySelectorAll('script'), function (script) {
if (script.sp) // sp marker = systemjs processed
Expand Down Expand Up @@ -650,6 +640,16 @@
throw Error(errMsg(8, [id, parentUrl].join(', ') ));
}

var systemInstantiate = systemJSPrototype.instantiate;
systemJSPrototype.instantiate = function (url, firstParentUrl) {
var preloads = ( importMap).depcache[url];
if (preloads) {
for (var i = 0; i < preloads.length; i++)
getOrCreateLoad(this, this.resolve(preloads[i], url), url);
}
return systemInstantiate.call(this, url, firstParentUrl);
};

/*
* Supports loading System.register in workers
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/s.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/s.min.js.map

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions dist/system-node.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2638,16 +2638,6 @@ if (hasDocument) {
window.addEventListener('DOMContentLoaded', processScripts);
}

var systemInstantiate = system_core_systemJSPrototype.instantiate;
system_core_systemJSPrototype.instantiate = function (url, firstParentUrl) {
var preloads = (!process.env.SYSTEM_BROWSER && this[IMPORT_MAP] || import_maps_importMap).depcache[url];
if (preloads) {
for (var i = 0; i < preloads.length; i++)
getOrCreateLoad(this, this.resolve(preloads[i], url), url);
}
return systemInstantiate.call(this, url, firstParentUrl);
};

function processScripts () {
[].forEach.call(document.querySelectorAll('script'), function (script) {
if (script.sp) // sp marker = systemjs processed
Expand Down
22 changes: 11 additions & 11 deletions dist/system.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SystemJS 6.5.0
* SystemJS 6.5.1
*/
(function () {
function errMsg(errCode, msg) {
Expand Down Expand Up @@ -521,16 +521,6 @@
window.addEventListener('DOMContentLoaded', processScripts);
}

var systemInstantiate = systemJSPrototype.instantiate;
systemJSPrototype.instantiate = function (url, firstParentUrl) {
var preloads = ( importMap).depcache[url];
if (preloads) {
for (var i = 0; i < preloads.length; i++)
getOrCreateLoad(this, this.resolve(preloads[i], url), url);
}
return systemInstantiate.call(this, url, firstParentUrl);
};

function processScripts () {
[].forEach.call(document.querySelectorAll('script'), function (script) {
if (script.sp) // sp marker = systemjs processed
Expand Down Expand Up @@ -658,6 +648,16 @@
throw Error(errMsg(8, "Unable to resolve bare specifier '" + id + (parentUrl ? "' from " + parentUrl : "'")));
}

var systemInstantiate = systemJSPrototype.instantiate;
systemJSPrototype.instantiate = function (url, firstParentUrl) {
var preloads = ( importMap).depcache[url];
if (preloads) {
for (var i = 0; i < preloads.length; i++)
getOrCreateLoad(this, this.resolve(preloads[i], url), url);
}
return systemInstantiate.call(this, url, firstParentUrl);
};

/*
* Supports loading System.register in workers
*/
Expand Down

0 comments on commit 5145217

Please sign in to comment.