Skip to content

Commit

Permalink
6.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Feb 14, 2020
1 parent 3e26b1d commit dc9a1da
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
SystemJS 6.2.3
* Fix another race condition with named registers. (https://github.com/systemjs/systemjs/pull/2121)

SystemJS 6.2.2
* Supporting multiple define variations for named modules. Resolves #2118. (https://github.com/systemjs/systemjs/pull/2119)

Expand Down
9 changes: 3 additions & 6 deletions dist/extras/amd.js
Expand Up @@ -63,12 +63,6 @@
}];
}

const _import = systemPrototype.import;
systemPrototype.import = function() {
firstNamedDefine = null;
return _import.apply(this, arguments);
};

// hook System.register to know the last declaration binding
let lastRegisterDeclare;
const systemRegister = systemPrototype.register;
Expand Down Expand Up @@ -155,6 +149,9 @@
function addToRegisterRegistry(name, define) {
if (!firstNamedDefine) {
firstNamedDefine = define;
setTimeout(function () {
firstNamedDefine = null;
});
}

// We must call System.getRegister() here to give other extras, such as the named-exports extra,
Expand Down
2 changes: 1 addition & 1 deletion dist/extras/amd.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/extras/amd.min.js.map

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

9 changes: 3 additions & 6 deletions dist/extras/named-register.js
Expand Up @@ -23,12 +23,6 @@
systemInstance.registerRegistry = Object.create(null);
}

const _import = systemJSPrototype.import;
systemJSPrototype.import = function() {
firstNamedDefine = null;
return _import.apply(this, arguments);
};

const register = systemJSPrototype.register;
systemJSPrototype.register = function (name, deps, declare) {
if (typeof name !== 'string')
Expand All @@ -37,6 +31,9 @@
this.registerRegistry[name] = define;
if (!firstNamedDefine) {
firstNamedDefine = define;
setTimeout(function () {
firstNamedDefine = null;
});
}
return register.apply(this, arguments);
};
Expand Down
2 changes: 1 addition & 1 deletion dist/extras/named-register.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/extras/named-register.min.js.map

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.js
@@ -1,5 +1,5 @@
/*
* SJS 6.2.2
* SJS 6.2.3
* Minimal SystemJS Build
*/
(function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/system.js
@@ -1,5 +1,5 @@
/*
* SystemJS 6.2.2
* SystemJS 6.2.3
*/
(function () {
const hasSelf = typeof self !== 'undefined';
Expand Down

0 comments on commit dc9a1da

Please sign in to comment.