core-js-pure 3.6.4 → 3.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/internals/task.js +7 -1
- package/modules/web.url.js +1 -1
- package/package.json +1 -1
- package/postinstall.js +3 -1
package/internals/task.js
CHANGED
|
@@ -76,7 +76,13 @@ if (!set || !clear) {
|
|
|
76
76
|
defer = bind(port.postMessage, port, 1);
|
|
77
77
|
// Browsers with postMessage, skip WebWorkers
|
|
78
78
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
79
|
-
} else if (
|
|
79
|
+
} else if (
|
|
80
|
+
global.addEventListener &&
|
|
81
|
+
typeof postMessage == 'function' &&
|
|
82
|
+
!global.importScripts &&
|
|
83
|
+
!fails(post) &&
|
|
84
|
+
location.protocol !== 'file:'
|
|
85
|
+
) {
|
|
80
86
|
defer = post;
|
|
81
87
|
global.addEventListener('message', listener, false);
|
|
82
88
|
// IE8-
|
package/modules/web.url.js
CHANGED
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -8,6 +8,7 @@ var ADBLOCK = is(env.ADBLOCK);
|
|
|
8
8
|
var COLOR = is(env.npm_config_color);
|
|
9
9
|
var DISABLE_OPENCOLLECTIVE = is(env.DISABLE_OPENCOLLECTIVE);
|
|
10
10
|
var SILENT = ['silent', 'error', 'warn'].indexOf(env.npm_config_loglevel) !== -1;
|
|
11
|
+
var OPEN_SOURCE_CONTRIBUTOR = is(env.OPEN_SOURCE_CONTRIBUTOR);
|
|
11
12
|
var MINUTE = 60 * 1000;
|
|
12
13
|
|
|
13
14
|
// you could add a PR with an env variable for your CI detection
|
|
@@ -15,6 +16,7 @@ var CI = [
|
|
|
15
16
|
'BUILD_NUMBER',
|
|
16
17
|
'CI',
|
|
17
18
|
'CONTINUOUS_INTEGRATION',
|
|
19
|
+
'DRONE',
|
|
18
20
|
'RUN_ID'
|
|
19
21
|
].some(function (it) { return is(env[it]); });
|
|
20
22
|
|
|
@@ -29,7 +31,7 @@ function is(it) {
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
function isBannerRequired() {
|
|
32
|
-
if (ADBLOCK || CI || DISABLE_OPENCOLLECTIVE || SILENT) return false;
|
|
34
|
+
if (ADBLOCK || CI || DISABLE_OPENCOLLECTIVE || SILENT || OPEN_SOURCE_CONTRIBUTOR) return false;
|
|
33
35
|
var file = path.join(os.tmpdir(), 'core-js-banners');
|
|
34
36
|
var banners = [];
|
|
35
37
|
try {
|