Socket
Socket
Sign inDemoInstall

core-js-pure

Package Overview
Dependencies
0
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.18.0 to 3.18.1

internals/install-error-cause.js

5

internals/array-from-async.js

@@ -25,9 +25,8 @@ 'use strict';

var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR);
var usingIterator;
if (!usingAsyncIterator) usingIterator = getIteratorMethod(O);
var usingSyncIterator = usingAsyncIterator ? undefined : getIteratorMethod(O) || arrayIterator;
var A = isConstructor(this) ? new this() : [];
var iterator = usingAsyncIterator
? getAsyncIterator(O, usingAsyncIterator)
: new AsyncFromSyncIterator(getIterator(O, usingIterator || arrayIterator));
: new AsyncFromSyncIterator(getIterator(O, usingSyncIterator));
return toArray(iterator, mapfn, A);
};

1

internals/async-iterator-iteration.js
'use strict';
// https://github.com/tc39/proposal-iterator-helpers
// https://github.com/tc39/proposal-array-from-async
var aCallable = require('../internals/a-callable');

@@ -4,0 +5,0 @@ var anObject = require('../internals/an-object');

@@ -1,2 +0,2 @@

// `isCallable` abstract operation
// `IsCallable` abstract operation
// https://tc39.es/ecma262/#sec-iscallable

@@ -3,0 +3,0 @@ module.exports = function (argument) {

// https://github.com/zloirock/core-js/issues/280
var userAgent = require('../internals/engine-user-agent');
// eslint-disable-next-line unicorn/no-unsafe-regex -- safe
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);

@@ -8,6 +8,7 @@ 'use strict';

var createPropertyDescriptor = require('../internals/create-property-descriptor');
var installErrorCause = require('../internals/install-error-cause');
var iterate = require('../internals/iterate');
var toString = require('../internals/to-string');
var $AggregateError = function AggregateError(errors, message) {
var $AggregateError = function AggregateError(errors, message /* , options */) {
var that = this;

@@ -20,2 +21,3 @@ if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message);

if (message !== undefined) createNonEnumerableProperty(that, 'message', toString(message));
if (arguments.length > 2) installErrorCause(that, arguments[2]);
var errorsArray = [];

@@ -22,0 +24,0 @@ iterate(errors, errorsArray.push, { that: errorsArray });

@@ -11,5 +11,8 @@ 'use strict';

// eslint-disable-next-line unicorn/prefer-string-slice -- required for testing
var FORCED = !''.substr || 'ab'.substr(-1) !== 'b';
// `String.prototype.substr` method
// https://tc39.es/ecma262/#sec-string.prototype.substr
$({ target: 'String', proto: true }, {
$({ target: 'String', proto: true, forced: FORCED }, {
substr: function substr(start, length) {

@@ -16,0 +19,0 @@ var that = toString(requireObjectCoercible(this));

@@ -42,3 +42,3 @@ 'use strict';

var HEX = /^[\dA-Fa-f]+$/;
/* eslint-disable no-control-regex -- safe */
/* eslint-disable regexp/no-control-character -- safe */
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;

@@ -48,3 +48,3 @@ var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;

var TAB_AND_NEW_LINE = /[\t\n\r]/g;
/* eslint-enable no-control-regex -- safe */
/* eslint-enable regexp/no-control-character -- safe */
var EOF;

@@ -51,0 +51,0 @@

{
"name": "core-js-pure",
"description": "Standard library",
"version": "3.18.0",
"version": "3.18.1",
"repository": {

@@ -57,3 +57,3 @@ "type": "git",

},
"gitHead": "272ac1b4515c5cfbf348b069f1da829165a7181e"
"gitHead": "1a347bdf0297884ed8d9e32e1971267c6d572822"
}

@@ -55,3 +55,3 @@ var fs = require('fs');

function showBanner() {
// eslint-disable-next-line no-console,no-control-regex -- output
// eslint-disable-next-line no-console, regexp/no-control-character -- output
console.log(COLOR ? BANNER : BANNER.replace(/\u001B\[\d+m/g, ''));

@@ -58,0 +58,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc