core-js-pure 3.10.0 → 3.10.1

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.
@@ -1,3 +1,3 @@
1
1
  var userAgent = require('../internals/engine-user-agent');
2
2
 
3
- module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
3
+ module.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent);
@@ -4,7 +4,7 @@ var store = require('../internals/shared-store');
4
4
  (module.exports = function (key, value) {
5
5
  return store[key] || (store[key] = value !== undefined ? value : {});
6
6
  })('versions', []).push({
7
- version: '3.10.0',
7
+ version: '3.10.1',
8
8
  mode: IS_PURE ? 'pure' : 'global',
9
9
  copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
10
10
  });
@@ -2,4 +2,4 @@
2
2
  var userAgent = require('../internals/engine-user-agent');
3
3
 
4
4
  // eslint-disable-next-line unicorn/no-unsafe-regex -- safe
5
- module.exports = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
5
+ module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
@@ -40,7 +40,8 @@ var subscriptionClosed = function (subscriptionState) {
40
40
  return subscriptionState.observer === undefined;
41
41
  };
42
42
 
43
- var close = function (subscription, subscriptionState) {
43
+ var close = function (subscriptionState) {
44
+ var subscription = subscriptionState.facade;
44
45
  if (!DESCRIPTORS) {
45
46
  subscription.closed = true;
46
47
  var subscriptionObserver = subscriptionState.subscriptionObserver;
@@ -79,7 +80,7 @@ Subscription.prototype = redefineAll({}, {
79
80
  unsubscribe: function unsubscribe() {
80
81
  var subscriptionState = getInternalState(this);
81
82
  if (!subscriptionClosed(subscriptionState)) {
82
- close(this, subscriptionState);
83
+ close(subscriptionState);
83
84
  cleanupSubscription(subscriptionState);
84
85
  }
85
86
  }
@@ -111,11 +112,10 @@ SubscriptionObserver.prototype = redefineAll({}, {
111
112
  }
112
113
  },
113
114
  error: function error(value) {
114
- var subscription = getInternalState(this).subscription;
115
- var subscriptionState = getInternalState(subscription);
115
+ var subscriptionState = getInternalState(getInternalState(this).subscription);
116
116
  if (!subscriptionClosed(subscriptionState)) {
117
117
  var observer = subscriptionState.observer;
118
- close(subscription, subscriptionState);
118
+ close(subscriptionState);
119
119
  try {
120
120
  var errorMethod = getMethod(observer.error);
121
121
  if (errorMethod) errorMethod.call(observer, value);
@@ -126,11 +126,10 @@ SubscriptionObserver.prototype = redefineAll({}, {
126
126
  }
127
127
  },
128
128
  complete: function complete() {
129
- var subscription = getInternalState(this).subscription;
130
- var subscriptionState = getInternalState(subscription);
129
+ var subscriptionState = getInternalState(getInternalState(this).subscription);
131
130
  if (!subscriptionClosed(subscriptionState)) {
132
131
  var observer = subscriptionState.observer;
133
- close(subscription, subscriptionState);
132
+ close(subscriptionState);
134
133
  try {
135
134
  var completeMethod = getMethod(observer.complete);
136
135
  if (completeMethod) completeMethod.call(observer);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js-pure",
3
3
  "description": "Standard library",
4
- "version": "3.10.0",
4
+ "version": "3.10.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git",
@@ -55,5 +55,5 @@
55
55
  "scripts": {
56
56
  "postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
57
57
  },
58
- "gitHead": "bb9b7f58458914e54cb4dbc130374a4c0487fca5"
58
+ "gitHead": "dfa44ca9098d22d057f3a516940a0f5e35617830"
59
59
  }