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 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 (global.addEventListener && typeof postMessage == 'function' && !global.importScripts && !fails(post)) {
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-
@@ -31,7 +31,7 @@ var INVALID_HOST = 'Invalid host';
31
31
  var INVALID_PORT = 'Invalid port';
32
32
 
33
33
  var ALPHA = /[A-Za-z]/;
34
- var ALPHANUMERIC = /[\d+\-.A-Za-z]/;
34
+ var ALPHANUMERIC = /[\d+-.A-Za-z]/;
35
35
  var DIGIT = /\d/;
36
36
  var HEX_START = /^(0x|0X)/;
37
37
  var OCT = /^[0-7]+$/;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js-pure",
3
3
  "description": "Standard library",
4
- "version": "3.6.4",
4
+ "version": "3.6.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git"
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 {