From fbbf74361769d468d6516ed4479684aec18fe145 Mon Sep 17 00:00:00 2001 From: Github action Date: Fri, 20 Jan 2023 14:34:49 +0000 Subject: [PATCH] push files --- node_modules/.package-lock.json | 6 +- node_modules/core-js/LICENSE | 2 +- node_modules/core-js/actual/set/index.js | 7 +++ node_modules/core-js/actual/string/index.js | 3 + .../core-js/actual/string/virtual/index.js | 3 + node_modules/core-js/actual/symbol/index.js | 2 + node_modules/core-js/es/number/constructor.js | 3 +- .../core-js/full/async-iterator/drop.js | 9 +-- .../core-js/full/async-iterator/every.js | 9 +-- .../core-js/full/async-iterator/filter.js | 9 +-- .../core-js/full/async-iterator/find.js | 9 +-- .../core-js/full/async-iterator/flat-map.js | 9 +-- .../core-js/full/async-iterator/for-each.js | 9 +-- .../core-js/full/async-iterator/from.js | 12 +--- .../core-js/full/async-iterator/index.js | 24 +------- .../core-js/full/async-iterator/indexed.js | 1 + .../core-js/full/async-iterator/map.js | 9 +-- .../core-js/full/async-iterator/reduce.js | 9 +-- .../core-js/full/async-iterator/some.js | 9 +-- .../core-js/full/async-iterator/take.js | 9 +-- .../core-js/full/async-iterator/to-array.js | 9 +-- node_modules/core-js/full/index.js | 13 +++++ node_modules/core-js/full/iterator/drop.js | 8 +-- node_modules/core-js/full/iterator/every.js | 8 +-- node_modules/core-js/full/iterator/filter.js | 8 +-- node_modules/core-js/full/iterator/find.js | 8 +-- .../core-js/full/iterator/flat-map.js | 8 +-- .../core-js/full/iterator/for-each.js | 8 +-- node_modules/core-js/full/iterator/from.js | 11 +--- node_modules/core-js/full/iterator/index.js | 24 +------- node_modules/core-js/full/iterator/indexed.js | 1 + node_modules/core-js/full/iterator/map.js | 8 +-- node_modules/core-js/full/iterator/reduce.js | 8 +-- node_modules/core-js/full/iterator/some.js | 8 +-- node_modules/core-js/full/iterator/take.js | 8 +-- .../core-js/full/iterator/to-array.js | 8 +-- .../core-js/full/iterator/to-async.js | 9 +-- node_modules/core-js/full/set/difference.js | 2 +- node_modules/core-js/full/set/intersection.js | 2 +- .../core-js/full/set/is-disjoint-from.js | 2 +- node_modules/core-js/full/set/is-subset-of.js | 2 +- .../core-js/full/set/is-superset-of.js | 2 +- .../core-js/full/set/symmetric-difference.js | 2 +- node_modules/core-js/full/set/union.js | 2 +- node_modules/core-js/full/string/index.js | 5 +- .../core-js/full/string/virtual/index.js | 2 - node_modules/core-js/full/symbol/dispose.js | 5 +- node_modules/core-js/full/symbol/index.js | 1 - .../core-js/internals/array-group-to-map.js | 11 ++-- .../core-js/internals/array-unique-by.js | 16 +++-- .../internals/async-iterator-create-proxy.js | 25 +++----- .../internals/async-iterator-indexed.js | 30 +++------- node_modules/core-js/internals/classof-raw.js | 6 +- .../core-js/internals/collection-add-all.js | 14 ----- .../internals/collection-delete-all.js | 17 ------ .../core-js/internals/collection-weak.js | 4 +- .../core-js/internals/document-all.js | 1 + .../core-js/internals/engine-is-ios-pebble.js | 3 +- .../core-js/internals/engine-is-node.js | 3 +- .../core-js/internals/engine-user-agent.js | 4 +- .../fix-regexp-well-known-symbol-logic.js | 2 +- .../internals/function-bind-context.js | 2 +- .../internals/function-uncurry-this.js | 16 ++--- .../core-js/internals/get-map-iterator.js | 6 -- .../core-js/internals/get-set-iterator.js | 6 -- .../core-js/internals/host-report-errors.js | 8 +-- .../core-js/internals/is-big-int-array.js | 6 +- .../internals/iterator-create-proxy.js | 27 +++------ .../core-js/internals/iterator-indexed.js | 19 +++--- .../core-js/internals/make-built-in.js | 11 +++- node_modules/core-js/internals/map-emplace.js | 24 -------- node_modules/core-js/internals/map-upsert.js | 2 +- node_modules/core-js/internals/microtask.js | 45 +++++++------- node_modules/core-js/internals/queue.js | 7 ++- .../core-js/internals/schedulers-fix.js | 40 ++++++------- node_modules/core-js/internals/shared.js | 6 +- .../internals/string-punycode-to-ascii.js | 1 - node_modules/core-js/internals/task.js | 16 ++--- .../core-js/internals/well-known-symbol.js | 18 ++---- .../wrap-error-constructor-with-cause.js | 5 +- .../modules/es.aggregate-error.constructor.js | 8 +-- .../core-js/modules/es.array-buffer.slice.js | 2 +- .../core-js/modules/es.array.concat.js | 4 +- .../core-js/modules/es.array.index-of.js | 6 +- node_modules/core-js/modules/es.array.join.js | 4 +- node_modules/core-js/modules/es.array.push.js | 8 ++- .../core-js/modules/es.array.reduce-right.js | 4 +- .../core-js/modules/es.array.reduce.js | 4 +- .../core-js/modules/es.array.unshift.js | 8 ++- .../core-js/modules/es.date.get-year.js | 1 + .../core-js/modules/es.error.cause.js | 1 + node_modules/core-js/modules/es.math.asinh.js | 4 +- node_modules/core-js/modules/es.math.atanh.js | 4 +- node_modules/core-js/modules/es.math.cosh.js | 4 +- node_modules/core-js/modules/es.math.hypot.js | 4 +- .../core-js/modules/es.number.constructor.js | 52 +++++++++++------ .../modules/es.number.to-exponential.js | 25 ++++---- .../es.object.get-own-property-descriptor.js | 3 +- .../core-js/modules/es.object.is-frozen.js | 5 +- .../core-js/modules/es.object.is-sealed.js | 5 +- .../core-js/modules/es.promise.all-settled.js | 3 +- .../core-js/modules/es.promise.any.js | 3 +- .../core-js/modules/es.regexp.sticky.js | 2 +- .../core-js/modules/es.string.ends-with.js | 2 +- .../core-js/modules/es.string.match-all.js | 2 +- node_modules/core-js/modules/es.string.raw.js | 3 +- .../core-js/modules/es.string.starts-with.js | 2 +- .../core-js/modules/es.string.substr.js | 2 +- .../core-js/modules/es.typed-array.sort.js | 2 +- .../modules/es.weak-map.constructor.js | 49 ++++++++++++++-- .../modules/esnext.array.from-async.js | 2 +- .../esnext.async-iterator.as-indexed-pairs.js | 3 +- .../esnext.async-iterator.constructor.js | 3 +- .../modules/esnext.async-iterator.drop.js | 5 +- .../modules/esnext.async-iterator.every.js | 9 +-- .../modules/esnext.async-iterator.filter.js | 13 +++-- .../modules/esnext.async-iterator.find.js | 9 +-- .../modules/esnext.async-iterator.flat-map.js | 5 +- .../modules/esnext.async-iterator.for-each.js | 5 +- .../modules/esnext.async-iterator.from.js | 8 ++- .../modules/esnext.async-iterator.indexed.js | 3 +- .../modules/esnext.async-iterator.map.js | 58 ++----------------- .../modules/esnext.async-iterator.reduce.js | 5 +- .../modules/esnext.async-iterator.some.js | 9 +-- .../modules/esnext.async-iterator.take.js | 5 +- .../modules/esnext.async-iterator.to-array.js | 5 +- .../modules/esnext.function.un-this.js | 4 +- .../esnext.iterator.as-indexed-pairs.js | 3 +- .../modules/esnext.iterator.constructor.js | 3 +- .../core-js/modules/esnext.iterator.drop.js | 5 +- .../core-js/modules/esnext.iterator.every.js | 11 ++-- .../core-js/modules/esnext.iterator.filter.js | 13 +++-- .../core-js/modules/esnext.iterator.find.js | 11 ++-- .../modules/esnext.iterator.flat-map.js | 5 +- .../modules/esnext.iterator.for-each.js | 5 +- .../core-js/modules/esnext.iterator.from.js | 8 ++- .../modules/esnext.iterator.indexed.js | 3 +- .../core-js/modules/esnext.iterator.map.js | 26 ++------- .../core-js/modules/esnext.iterator.reduce.js | 5 +- .../core-js/modules/esnext.iterator.some.js | 11 ++-- .../core-js/modules/esnext.iterator.take.js | 5 +- .../modules/esnext.iterator.to-array.js | 5 +- .../modules/esnext.iterator.to-async.js | 5 +- .../core-js/modules/esnext.map.delete-all.js | 13 ++++- .../core-js/modules/esnext.map.emplace.js | 24 +++++++- .../core-js/modules/esnext.map.every.js | 14 ++--- .../core-js/modules/esnext.map.filter.js | 25 ++++---- .../core-js/modules/esnext.map.find-key.js | 15 +++-- .../core-js/modules/esnext.map.find.js | 15 +++-- .../core-js/modules/esnext.map.group-by.js | 11 ++-- .../core-js/modules/esnext.map.includes.js | 11 ++-- .../core-js/modules/esnext.map.key-by.js | 5 +- .../core-js/modules/esnext.map.key-of.js | 12 ++-- .../core-js/modules/esnext.map.map-keys.js | 25 ++++---- .../core-js/modules/esnext.map.map-values.js | 25 ++++---- .../core-js/modules/esnext.map.merge.js | 11 ++-- .../core-js/modules/esnext.map.reduce.js | 12 ++-- .../core-js/modules/esnext.map.some.js | 16 +++-- .../core-js/modules/esnext.map.update.js | 20 +++---- .../core-js/modules/esnext.set.add-all.js | 10 +++- .../core-js/modules/esnext.set.delete-all.js | 13 ++++- .../core-js/modules/esnext.set.difference.js | 18 ++---- .../core-js/modules/esnext.set.every.js | 14 ++--- .../core-js/modules/esnext.set.filter.js | 25 ++++---- .../core-js/modules/esnext.set.find.js | 15 +++-- .../modules/esnext.set.intersection.js | 19 ++---- .../modules/esnext.set.is-disjoint-from.js | 16 ++--- .../modules/esnext.set.is-subset-of.js | 24 ++------ .../modules/esnext.set.is-superset-of.js | 16 ++--- .../core-js/modules/esnext.set.join.js | 18 +++--- .../core-js/modules/esnext.set.map.js | 25 ++++---- .../core-js/modules/esnext.set.reduce.js | 12 ++-- .../core-js/modules/esnext.set.some.js | 14 ++--- .../esnext.set.symmetric-difference.js | 19 ++---- .../core-js/modules/esnext.set.union.js | 16 ++--- .../core-js/modules/esnext.string.cooked.js | 25 +------- .../modules/esnext.symbol.async-dispose.js | 2 +- .../core-js/modules/esnext.symbol.dispose.js | 2 +- .../modules/esnext.typed-array.unique-by.js | 6 +- .../modules/esnext.weak-map.delete-all.js | 13 ++++- .../modules/esnext.weak-map.emplace.js | 22 ++++++- .../modules/esnext.weak-set.add-all.js | 10 +++- .../modules/esnext.weak-set.delete-all.js | 13 ++++- node_modules/core-js/modules/web.atob.js | 7 ++- node_modules/core-js/modules/web.btoa.js | 7 ++- .../modules/web.dom-exception.constructor.js | 4 ++ .../web.dom-exception.to-string-tag.js | 1 + .../core-js/modules/web.set-immediate.js | 6 +- .../core-js/modules/web.set-interval.js | 6 +- .../core-js/modules/web.set-timeout.js | 6 +- .../core-js/modules/web.structured-clone.js | 18 +++--- node_modules/core-js/package.json | 2 +- node_modules/core-js/postinstall.js | 2 +- .../core-js/proposals/iterator-helpers.js | 31 +--------- node_modules/core-js/proposals/set-methods.js | 8 +++ .../core-js/proposals/using-statement.js | 3 +- node_modules/core-js/stage/2.js | 9 +-- node_modules/core-js/stage/3.js | 4 ++ 198 files changed, 878 insertions(+), 1094 deletions(-) delete mode 100644 node_modules/core-js/internals/collection-add-all.js delete mode 100644 node_modules/core-js/internals/collection-delete-all.js delete mode 100644 node_modules/core-js/internals/get-map-iterator.js delete mode 100644 node_modules/core-js/internals/get-set-iterator.js delete mode 100644 node_modules/core-js/internals/map-emplace.js diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 828e33dc0..e9e4068e3 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -6892,9 +6892,9 @@ } }, "node_modules/core-js": { - "version": "3.26.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.0.tgz", - "integrity": "sha512-+DkDrhoR4Y0PxDz6rurahuB+I45OsEUv8E1maPTB6OuHRohMMcznBq9TMpdpDMm/hUPob/mJJS3PqgbHpMTQgw==", + "version": "3.27.2", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.27.2.tgz", + "integrity": "sha512-9ashVQskuh5AZEZ1JdQWp1GqSoC1e1G87MzRqg2gIfVAQ7Qn9K+uFj8EcniUFA4P2NLZfV+TOlX1SzoKfo+s7w==", "hasInstallScript": true, "funding": { "type": "opencollective", diff --git a/node_modules/core-js/LICENSE b/node_modules/core-js/LICENSE index 1256c1dd9..445fc9d46 100644 --- a/node_modules/core-js/LICENSE +++ b/node_modules/core-js/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014-2022 Denis Pushkarev +Copyright (c) 2014-2023 Denis Pushkarev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/core-js/actual/set/index.js b/node_modules/core-js/actual/set/index.js index 7962e69ec..9375f8a75 100644 --- a/node_modules/core-js/actual/set/index.js +++ b/node_modules/core-js/actual/set/index.js @@ -1,3 +1,10 @@ var parent = require('../../stable/set'); +require('../../modules/esnext.set.difference.v2'); +require('../../modules/esnext.set.intersection.v2'); +require('../../modules/esnext.set.is-disjoint-from.v2'); +require('../../modules/esnext.set.is-subset-of.v2'); +require('../../modules/esnext.set.is-superset-of.v2'); +require('../../modules/esnext.set.symmetric-difference.v2'); +require('../../modules/esnext.set.union.v2'); module.exports = parent; diff --git a/node_modules/core-js/actual/string/index.js b/node_modules/core-js/actual/string/index.js index 4b4a2636b..e75b34e00 100644 --- a/node_modules/core-js/actual/string/index.js +++ b/node_modules/core-js/actual/string/index.js @@ -1,3 +1,6 @@ var parent = require('../../stable/string'); +require('../../modules/esnext.string.is-well-formed'); +require('../../modules/esnext.string.to-well-formed'); + module.exports = parent; diff --git a/node_modules/core-js/actual/string/virtual/index.js b/node_modules/core-js/actual/string/virtual/index.js index 844286083..539e1515c 100644 --- a/node_modules/core-js/actual/string/virtual/index.js +++ b/node_modules/core-js/actual/string/virtual/index.js @@ -1,3 +1,6 @@ var parent = require('../../../stable/string/virtual'); +require('../../../modules/esnext.string.is-well-formed'); +require('../../../modules/esnext.string.to-well-formed'); + module.exports = parent; diff --git a/node_modules/core-js/actual/symbol/index.js b/node_modules/core-js/actual/symbol/index.js index 5eeb6fbc6..92842b61a 100644 --- a/node_modules/core-js/actual/symbol/index.js +++ b/node_modules/core-js/actual/symbol/index.js @@ -1,3 +1,5 @@ var parent = require('../../stable/symbol'); +require('../../modules/esnext.symbol.dispose'); + module.exports = parent; diff --git a/node_modules/core-js/es/number/constructor.js b/node_modules/core-js/es/number/constructor.js index a77a1aa8d..7dbf25e24 100644 --- a/node_modules/core-js/es/number/constructor.js +++ b/node_modules/core-js/es/number/constructor.js @@ -1,3 +1,4 @@ require('../../modules/es.number.constructor'); +var path = require('../../internals/path'); -module.exports = Number; +module.exports = path.Number; diff --git a/node_modules/core-js/full/async-iterator/drop.js b/node_modules/core-js/full/async-iterator/drop.js index 601cb269b..667ce2398 100644 --- a/node_modules/core-js/full/async-iterator/drop.js +++ b/node_modules/core-js/full/async-iterator/drop.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.drop'); +var parent = require('../../actual/async-iterator/drop'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'drop'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/every.js b/node_modules/core-js/full/async-iterator/every.js index 655a8495f..b9a378fde 100644 --- a/node_modules/core-js/full/async-iterator/every.js +++ b/node_modules/core-js/full/async-iterator/every.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.every'); +var parent = require('../../actual/async-iterator/every'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'every'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/filter.js b/node_modules/core-js/full/async-iterator/filter.js index 4043d2be5..be25da935 100644 --- a/node_modules/core-js/full/async-iterator/filter.js +++ b/node_modules/core-js/full/async-iterator/filter.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.filter'); +var parent = require('../../actual/async-iterator/filter'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'filter'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/find.js b/node_modules/core-js/full/async-iterator/find.js index ab9115f01..56cf64af2 100644 --- a/node_modules/core-js/full/async-iterator/find.js +++ b/node_modules/core-js/full/async-iterator/find.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.find'); +var parent = require('../../actual/async-iterator/find'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'find'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/flat-map.js b/node_modules/core-js/full/async-iterator/flat-map.js index 9d3d8c41e..dacdfa71a 100644 --- a/node_modules/core-js/full/async-iterator/flat-map.js +++ b/node_modules/core-js/full/async-iterator/flat-map.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.flat-map'); +var parent = require('../../actual/async-iterator/flat-map'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'flatMap'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/for-each.js b/node_modules/core-js/full/async-iterator/for-each.js index 8016cd9cf..820c90531 100644 --- a/node_modules/core-js/full/async-iterator/for-each.js +++ b/node_modules/core-js/full/async-iterator/for-each.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.for-each'); +var parent = require('../../actual/async-iterator/for-each'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'forEach'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/from.js b/node_modules/core-js/full/async-iterator/from.js index 2c40d30d5..87475bf2f 100644 --- a/node_modules/core-js/full/async-iterator/from.js +++ b/node_modules/core-js/full/async-iterator/from.js @@ -1,11 +1,3 @@ -require('../../modules/es.array.iterator'); -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/es.string.iterator'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.from'); -require('../../modules/web.dom-collections.iterator'); +var parent = require('../../actual/async-iterator/from'); -var path = require('../../internals/path'); - -module.exports = path.AsyncIterator.from; +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/index.js b/node_modules/core-js/full/async-iterator/index.js index 867cf7f8e..e213c98a9 100644 --- a/node_modules/core-js/full/async-iterator/index.js +++ b/node_modules/core-js/full/async-iterator/index.js @@ -1,25 +1,7 @@ -require('../../modules/es.array.iterator'); -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/es.string.iterator'); -require('../../modules/esnext.async-iterator.constructor'); +var parent = require('../../actual/async-iterator'); +require('../../modules/esnext.async-iterator.async-dispose'); // TODO: Remove from `core-js@4` require('../../modules/esnext.async-iterator.as-indexed-pairs'); -require('../../modules/esnext.async-iterator.drop'); -require('../../modules/esnext.async-iterator.every'); -require('../../modules/esnext.async-iterator.filter'); -require('../../modules/esnext.async-iterator.find'); -require('../../modules/esnext.async-iterator.flat-map'); -require('../../modules/esnext.async-iterator.for-each'); -require('../../modules/esnext.async-iterator.from'); require('../../modules/esnext.async-iterator.indexed'); -require('../../modules/esnext.async-iterator.map'); -require('../../modules/esnext.async-iterator.reduce'); -require('../../modules/esnext.async-iterator.some'); -require('../../modules/esnext.async-iterator.take'); -require('../../modules/esnext.async-iterator.to-array'); -require('../../modules/web.dom-collections.iterator'); -var path = require('../../internals/path'); - -module.exports = path.AsyncIterator; +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/indexed.js b/node_modules/core-js/full/async-iterator/indexed.js index 2686c40d5..1fec52cab 100644 --- a/node_modules/core-js/full/async-iterator/indexed.js +++ b/node_modules/core-js/full/async-iterator/indexed.js @@ -1,3 +1,4 @@ +// TODO: Remove from `core-js@4` require('../../modules/es.object.to-string'); require('../../modules/es.promise'); require('../../modules/esnext.async-iterator.constructor'); diff --git a/node_modules/core-js/full/async-iterator/map.js b/node_modules/core-js/full/async-iterator/map.js index a0b1021e6..d58297d5e 100644 --- a/node_modules/core-js/full/async-iterator/map.js +++ b/node_modules/core-js/full/async-iterator/map.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.map'); +var parent = require('../../actual/async-iterator/map'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'map'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/reduce.js b/node_modules/core-js/full/async-iterator/reduce.js index 8efb49647..ff064a898 100644 --- a/node_modules/core-js/full/async-iterator/reduce.js +++ b/node_modules/core-js/full/async-iterator/reduce.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.reduce'); +var parent = require('../../actual/async-iterator/reduce'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'reduce'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/some.js b/node_modules/core-js/full/async-iterator/some.js index cd4a6c5d5..e59d0b8c7 100644 --- a/node_modules/core-js/full/async-iterator/some.js +++ b/node_modules/core-js/full/async-iterator/some.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.some'); +var parent = require('../../actual/async-iterator/some'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'some'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/take.js b/node_modules/core-js/full/async-iterator/take.js index a2ddea477..72527bea8 100644 --- a/node_modules/core-js/full/async-iterator/take.js +++ b/node_modules/core-js/full/async-iterator/take.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.take'); +var parent = require('../../actual/async-iterator/take'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'take'); +module.exports = parent; diff --git a/node_modules/core-js/full/async-iterator/to-array.js b/node_modules/core-js/full/async-iterator/to-array.js index 67586e056..b8dc59fd6 100644 --- a/node_modules/core-js/full/async-iterator/to-array.js +++ b/node_modules/core-js/full/async-iterator/to-array.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.async-iterator.constructor'); -require('../../modules/esnext.async-iterator.to-array'); +var parent = require('../../actual/async-iterator/to-array'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('AsyncIterator', 'toArray'); +module.exports = parent; diff --git a/node_modules/core-js/full/index.js b/node_modules/core-js/full/index.js index c5bc16a4c..1955b8808 100644 --- a/node_modules/core-js/full/index.js +++ b/node_modules/core-js/full/index.js @@ -232,6 +232,7 @@ require('../modules/es.unescape'); require('../modules/es.weak-map'); require('../modules/es.weak-set'); require('../modules/esnext.aggregate-error'); +require('../modules/esnext.suppressed-error.constructor'); require('../modules/esnext.array.from-async'); require('../modules/esnext.array.at'); require('../modules/esnext.array.filter-out'); @@ -250,8 +251,10 @@ require('../modules/esnext.array.to-sorted'); require('../modules/esnext.array.to-spliced'); require('../modules/esnext.array.unique-by'); require('../modules/esnext.array.with'); +require('../modules/esnext.async-disposable-stack.constructor'); require('../modules/esnext.async-iterator.constructor'); require('../modules/esnext.async-iterator.as-indexed-pairs'); +require('../modules/esnext.async-iterator.async-dispose'); require('../modules/esnext.async-iterator.drop'); require('../modules/esnext.async-iterator.every'); require('../modules/esnext.async-iterator.filter'); @@ -268,12 +271,14 @@ require('../modules/esnext.async-iterator.to-array'); require('../modules/esnext.bigint.range'); require('../modules/esnext.composite-key'); require('../modules/esnext.composite-symbol'); +require('../modules/esnext.disposable-stack.constructor'); require('../modules/esnext.function.is-callable'); require('../modules/esnext.function.is-constructor'); require('../modules/esnext.function.un-this'); require('../modules/esnext.global-this'); require('../modules/esnext.iterator.constructor'); require('../modules/esnext.iterator.as-indexed-pairs'); +require('../modules/esnext.iterator.dispose'); require('../modules/esnext.iterator.drop'); require('../modules/esnext.iterator.every'); require('../modules/esnext.iterator.filter'); @@ -342,25 +347,33 @@ require('../modules/esnext.reflect.has-own-metadata'); require('../modules/esnext.reflect.metadata'); require('../modules/esnext.set.add-all'); require('../modules/esnext.set.delete-all'); +require('../modules/esnext.set.difference.v2'); require('../modules/esnext.set.difference'); require('../modules/esnext.set.every'); require('../modules/esnext.set.filter'); require('../modules/esnext.set.find'); require('../modules/esnext.set.from'); +require('../modules/esnext.set.intersection.v2'); require('../modules/esnext.set.intersection'); +require('../modules/esnext.set.is-disjoint-from.v2'); require('../modules/esnext.set.is-disjoint-from'); +require('../modules/esnext.set.is-subset-of.v2'); require('../modules/esnext.set.is-subset-of'); +require('../modules/esnext.set.is-superset-of.v2'); require('../modules/esnext.set.is-superset-of'); require('../modules/esnext.set.join'); require('../modules/esnext.set.map'); require('../modules/esnext.set.of'); require('../modules/esnext.set.reduce'); require('../modules/esnext.set.some'); +require('../modules/esnext.set.symmetric-difference.v2'); require('../modules/esnext.set.symmetric-difference'); +require('../modules/esnext.set.union.v2'); require('../modules/esnext.set.union'); require('../modules/esnext.string.at'); require('../modules/esnext.string.cooked'); require('../modules/esnext.string.code-points'); +require('../modules/esnext.string.dedent'); require('../modules/esnext.string.is-well-formed'); require('../modules/esnext.string.match-all'); require('../modules/esnext.string.replace-all'); diff --git a/node_modules/core-js/full/iterator/drop.js b/node_modules/core-js/full/iterator/drop.js index 1104c56b9..26c146dea 100644 --- a/node_modules/core-js/full/iterator/drop.js +++ b/node_modules/core-js/full/iterator/drop.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.drop'); +var parent = require('../../actual/iterator/drop'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'drop'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/every.js b/node_modules/core-js/full/iterator/every.js index 497fd0832..d0ce04563 100644 --- a/node_modules/core-js/full/iterator/every.js +++ b/node_modules/core-js/full/iterator/every.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.every'); +var parent = require('../../actual/iterator/every'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'every'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/filter.js b/node_modules/core-js/full/iterator/filter.js index e521ed04e..711cf7a77 100644 --- a/node_modules/core-js/full/iterator/filter.js +++ b/node_modules/core-js/full/iterator/filter.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.filter'); +var parent = require('../../actual/iterator/filter'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'filter'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/find.js b/node_modules/core-js/full/iterator/find.js index f09d1a86d..9c6177082 100644 --- a/node_modules/core-js/full/iterator/find.js +++ b/node_modules/core-js/full/iterator/find.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.find'); +var parent = require('../../actual/iterator/find'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'find'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/flat-map.js b/node_modules/core-js/full/iterator/flat-map.js index 33ac98211..6d2f8ccbc 100644 --- a/node_modules/core-js/full/iterator/flat-map.js +++ b/node_modules/core-js/full/iterator/flat-map.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.flat-map'); +var parent = require('../../actual/iterator/flat-map'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'flatMap'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/for-each.js b/node_modules/core-js/full/iterator/for-each.js index f99aa2172..7c12fbf63 100644 --- a/node_modules/core-js/full/iterator/for-each.js +++ b/node_modules/core-js/full/iterator/for-each.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.for-each'); +var parent = require('../../actual/iterator/for-each'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'forEach'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/from.js b/node_modules/core-js/full/iterator/from.js index 02b7e3d28..9e8cae595 100644 --- a/node_modules/core-js/full/iterator/from.js +++ b/node_modules/core-js/full/iterator/from.js @@ -1,10 +1,3 @@ -require('../../modules/es.array.iterator'); -require('../../modules/es.object.to-string'); -require('../../modules/es.string.iterator'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.from'); -require('../../modules/web.dom-collections.iterator'); +var parent = require('../../actual/iterator/from'); -var path = require('../../internals/path'); - -module.exports = path.Iterator.from; +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/index.js b/node_modules/core-js/full/iterator/index.js index 181901486..9a0ebc60e 100644 --- a/node_modules/core-js/full/iterator/index.js +++ b/node_modules/core-js/full/iterator/index.js @@ -1,26 +1,6 @@ -require('../../modules/es.array.iterator'); -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/es.string.iterator'); -require('../../modules/esnext.iterator.constructor'); +var parent = require('../../actual/iterator'); // TODO: Remove from `core-js@4` require('../../modules/esnext.iterator.as-indexed-pairs'); -require('../../modules/esnext.iterator.drop'); -require('../../modules/esnext.iterator.every'); -require('../../modules/esnext.iterator.filter'); -require('../../modules/esnext.iterator.find'); -require('../../modules/esnext.iterator.flat-map'); -require('../../modules/esnext.iterator.for-each'); -require('../../modules/esnext.iterator.from'); require('../../modules/esnext.iterator.indexed'); -require('../../modules/esnext.iterator.map'); -require('../../modules/esnext.iterator.reduce'); -require('../../modules/esnext.iterator.some'); -require('../../modules/esnext.iterator.take'); -require('../../modules/esnext.iterator.to-array'); -require('../../modules/esnext.iterator.to-async'); -require('../../modules/web.dom-collections.iterator'); -var path = require('../../internals/path'); - -module.exports = path.Iterator; +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/indexed.js b/node_modules/core-js/full/iterator/indexed.js index 133712fff..4d7df998c 100644 --- a/node_modules/core-js/full/iterator/indexed.js +++ b/node_modules/core-js/full/iterator/indexed.js @@ -1,3 +1,4 @@ +// TODO: Remove from `core-js@4` require('../../modules/es.object.to-string'); require('../../modules/esnext.iterator.constructor'); require('../../modules/esnext.iterator.indexed'); diff --git a/node_modules/core-js/full/iterator/map.js b/node_modules/core-js/full/iterator/map.js index 404ab0b68..34bbc0daf 100644 --- a/node_modules/core-js/full/iterator/map.js +++ b/node_modules/core-js/full/iterator/map.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.map'); +var parent = require('../../actual/iterator/map'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'map'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/reduce.js b/node_modules/core-js/full/iterator/reduce.js index 1586b61b5..ca40bbd77 100644 --- a/node_modules/core-js/full/iterator/reduce.js +++ b/node_modules/core-js/full/iterator/reduce.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.reduce'); +var parent = require('../../actual/iterator/reduce'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'reduce'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/some.js b/node_modules/core-js/full/iterator/some.js index 35c1b4d3b..2aad25b47 100644 --- a/node_modules/core-js/full/iterator/some.js +++ b/node_modules/core-js/full/iterator/some.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.some'); +var parent = require('../../actual/iterator/some'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'some'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/take.js b/node_modules/core-js/full/iterator/take.js index 4ba01b022..5b22ff958 100644 --- a/node_modules/core-js/full/iterator/take.js +++ b/node_modules/core-js/full/iterator/take.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.take'); +var parent = require('../../actual/iterator/take'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'take'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/to-array.js b/node_modules/core-js/full/iterator/to-array.js index 65e543a5e..c9c8d0946 100644 --- a/node_modules/core-js/full/iterator/to-array.js +++ b/node_modules/core-js/full/iterator/to-array.js @@ -1,7 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.to-array'); +var parent = require('../../actual/iterator/to-array'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'toArray'); +module.exports = parent; diff --git a/node_modules/core-js/full/iterator/to-async.js b/node_modules/core-js/full/iterator/to-async.js index 5d1887eef..a5cbaeffd 100644 --- a/node_modules/core-js/full/iterator/to-async.js +++ b/node_modules/core-js/full/iterator/to-async.js @@ -1,8 +1,3 @@ -require('../../modules/es.object.to-string'); -require('../../modules/es.promise'); -require('../../modules/esnext.iterator.constructor'); -require('../../modules/esnext.iterator.to-async'); +var parent = require('../../actual/iterator/to-async'); -var entryUnbind = require('../../internals/entry-unbind'); - -module.exports = entryUnbind('Iterator', 'toAsync'); +module.exports = parent; diff --git a/node_modules/core-js/full/set/difference.js b/node_modules/core-js/full/set/difference.js index c48cab13b..55e611ad2 100644 --- a/node_modules/core-js/full/set/difference.js +++ b/node_modules/core-js/full/set/difference.js @@ -1,5 +1,5 @@ +require('../../actual/set/difference'); require('../../modules/es.array.iterator'); -require('../../modules/es.set'); require('../../modules/es.string.iterator'); require('../../modules/esnext.set.difference'); require('../../modules/web.dom-collections.iterator'); diff --git a/node_modules/core-js/full/set/intersection.js b/node_modules/core-js/full/set/intersection.js index cb6190806..d2586c60b 100644 --- a/node_modules/core-js/full/set/intersection.js +++ b/node_modules/core-js/full/set/intersection.js @@ -1,5 +1,5 @@ +require('../../actual/set/intersection'); require('../../modules/es.array.iterator'); -require('../../modules/es.set'); require('../../modules/es.string.iterator'); require('../../modules/esnext.set.intersection'); require('../../modules/web.dom-collections.iterator'); diff --git a/node_modules/core-js/full/set/is-disjoint-from.js b/node_modules/core-js/full/set/is-disjoint-from.js index 223fe94f1..b017552ae 100644 --- a/node_modules/core-js/full/set/is-disjoint-from.js +++ b/node_modules/core-js/full/set/is-disjoint-from.js @@ -1,5 +1,5 @@ +require('../../actual/set/is-disjoint-from'); require('../../modules/es.array.iterator'); -require('../../modules/es.set'); require('../../modules/es.string.iterator'); require('../../modules/esnext.set.is-disjoint-from'); require('../../modules/web.dom-collections.iterator'); diff --git a/node_modules/core-js/full/set/is-subset-of.js b/node_modules/core-js/full/set/is-subset-of.js index 2e1d868ed..1b1c78c1a 100644 --- a/node_modules/core-js/full/set/is-subset-of.js +++ b/node_modules/core-js/full/set/is-subset-of.js @@ -1,5 +1,5 @@ +require('../../actual/set/is-subset-of'); require('../../modules/es.array.iterator'); -require('../../modules/es.set'); require('../../modules/es.string.iterator'); require('../../modules/esnext.set.is-subset-of'); require('../../modules/web.dom-collections.iterator'); diff --git a/node_modules/core-js/full/set/is-superset-of.js b/node_modules/core-js/full/set/is-superset-of.js index 008da15ab..1ac816927 100644 --- a/node_modules/core-js/full/set/is-superset-of.js +++ b/node_modules/core-js/full/set/is-superset-of.js @@ -1,5 +1,5 @@ +require('../../actual/set/is-superset-of'); require('../../modules/es.array.iterator'); -require('../../modules/es.set'); require('../../modules/es.string.iterator'); require('../../modules/esnext.set.is-superset-of'); require('../../modules/web.dom-collections.iterator'); diff --git a/node_modules/core-js/full/set/symmetric-difference.js b/node_modules/core-js/full/set/symmetric-difference.js index 33f08a2be..1aebeb219 100644 --- a/node_modules/core-js/full/set/symmetric-difference.js +++ b/node_modules/core-js/full/set/symmetric-difference.js @@ -1,5 +1,5 @@ +require('../../actual/set/symmetric-difference'); require('../../modules/es.array.iterator'); -require('../../modules/es.set'); require('../../modules/es.string.iterator'); require('../../modules/esnext.set.symmetric-difference'); require('../../modules/web.dom-collections.iterator'); diff --git a/node_modules/core-js/full/set/union.js b/node_modules/core-js/full/set/union.js index 7906cac70..d88ed004a 100644 --- a/node_modules/core-js/full/set/union.js +++ b/node_modules/core-js/full/set/union.js @@ -1,5 +1,5 @@ +require('../../actual/set/union'); require('../../modules/es.array.iterator'); -require('../../modules/es.set'); require('../../modules/es.string.iterator'); require('../../modules/esnext.set.union'); require('../../modules/web.dom-collections.iterator'); diff --git a/node_modules/core-js/full/string/index.js b/node_modules/core-js/full/string/index.js index 35b61127b..b7d860225 100644 --- a/node_modules/core-js/full/string/index.js +++ b/node_modules/core-js/full/string/index.js @@ -1,12 +1,11 @@ var parent = require('../../actual/string'); +require('../../modules/es.weak-map'); // TODO: remove from `core-js@4` require('../../modules/esnext.string.at'); require('../../modules/esnext.string.cooked'); require('../../modules/esnext.string.code-points'); -require('../../modules/esnext.string.is-well-formed'); -// TODO: remove from `core-js@4` +require('../../modules/esnext.string.dedent'); require('../../modules/esnext.string.match-all'); require('../../modules/esnext.string.replace-all'); -require('../../modules/esnext.string.to-well-formed'); module.exports = parent; diff --git a/node_modules/core-js/full/string/virtual/index.js b/node_modules/core-js/full/string/virtual/index.js index d72428636..5838517a3 100644 --- a/node_modules/core-js/full/string/virtual/index.js +++ b/node_modules/core-js/full/string/virtual/index.js @@ -2,10 +2,8 @@ var parent = require('../../../actual/string/virtual'); // TODO: remove from `core-js@4` require('../../../modules/esnext.string.at'); require('../../../modules/esnext.string.code-points'); -require('../../../modules/esnext.string.is-well-formed'); // TODO: remove from `core-js@4` require('../../../modules/esnext.string.match-all'); require('../../../modules/esnext.string.replace-all'); -require('../../../modules/esnext.string.to-well-formed'); module.exports = parent; diff --git a/node_modules/core-js/full/symbol/dispose.js b/node_modules/core-js/full/symbol/dispose.js index 71a4d5044..188e06930 100644 --- a/node_modules/core-js/full/symbol/dispose.js +++ b/node_modules/core-js/full/symbol/dispose.js @@ -1,4 +1,3 @@ -require('../../modules/esnext.symbol.dispose'); -var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped'); +var parent = require('../../actual/symbol/dispose'); -module.exports = WrappedWellKnownSymbolModule.f('dispose'); +module.exports = parent; diff --git a/node_modules/core-js/full/symbol/index.js b/node_modules/core-js/full/symbol/index.js index 5dbbfb6a4..19cf18008 100644 --- a/node_modules/core-js/full/symbol/index.js +++ b/node_modules/core-js/full/symbol/index.js @@ -1,6 +1,5 @@ var parent = require('../../actual/symbol'); require('../../modules/esnext.symbol.async-dispose'); -require('../../modules/esnext.symbol.dispose'); require('../../modules/esnext.symbol.matcher'); require('../../modules/esnext.symbol.metadata-key'); require('../../modules/esnext.symbol.observable'); diff --git a/node_modules/core-js/internals/array-group-to-map.js b/node_modules/core-js/internals/array-group-to-map.js index dc5cc9081..608d45ad5 100644 --- a/node_modules/core-js/internals/array-group-to-map.js +++ b/node_modules/core-js/internals/array-group-to-map.js @@ -1,16 +1,15 @@ 'use strict'; -var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); var uncurryThis = require('../internals/function-uncurry-this'); var IndexedObject = require('../internals/indexed-object'); var toObject = require('../internals/to-object'); var lengthOfArrayLike = require('../internals/length-of-array-like'); +var MapHelpers = require('../internals/map-helpers'); -var Map = getBuiltIn('Map'); -var MapPrototype = Map.prototype; -var mapGet = uncurryThis(MapPrototype.get); -var mapHas = uncurryThis(MapPrototype.has); -var mapSet = uncurryThis(MapPrototype.set); +var Map = MapHelpers.Map; +var mapGet = MapHelpers.get; +var mapHas = MapHelpers.has; +var mapSet = MapHelpers.set; var push = uncurryThis([].push); // `Array.prototype.groupToMap` method diff --git a/node_modules/core-js/internals/array-unique-by.js b/node_modules/core-js/internals/array-unique-by.js index 539474449..42f24253c 100644 --- a/node_modules/core-js/internals/array-unique-by.js +++ b/node_modules/core-js/internals/array-unique-by.js @@ -1,17 +1,15 @@ 'use strict'; -var getBuiltIn = require('../internals/get-built-in'); var uncurryThis = require('../internals/function-uncurry-this'); var aCallable = require('../internals/a-callable'); var isNullOrUndefined = require('../internals/is-null-or-undefined'); var lengthOfArrayLike = require('../internals/length-of-array-like'); var toObject = require('../internals/to-object'); -var arraySpeciesCreate = require('../internals/array-species-create'); +var MapHelpers = require('../internals/map-helpers'); +var iterate = require('../internals/map-iterate'); -var Map = getBuiltIn('Map'); -var MapPrototype = Map.prototype; -var mapForEach = uncurryThis(MapPrototype.forEach); -var mapHas = uncurryThis(MapPrototype.has); -var mapSet = uncurryThis(MapPrototype.set); +var Map = MapHelpers.Map; +var mapHas = MapHelpers.has; +var mapSet = MapHelpers.set; var push = uncurryThis([].push); // `Array.prototype.uniqueBy` method @@ -19,7 +17,7 @@ var push = uncurryThis([].push); module.exports = function uniqueBy(resolver) { var that = toObject(this); var length = lengthOfArrayLike(that); - var result = arraySpeciesCreate(that, 0); + var result = []; var map = new Map(); var resolverFunction = !isNullOrUndefined(resolver) ? aCallable(resolver) : function (value) { return value; @@ -30,7 +28,7 @@ module.exports = function uniqueBy(resolver) { key = resolverFunction(item); if (!mapHas(map, key)) mapSet(map, key, item); } - mapForEach(map, function (value) { + iterate(map, function (value) { push(result, value); }); return result; diff --git a/node_modules/core-js/internals/async-iterator-create-proxy.js b/node_modules/core-js/internals/async-iterator-create-proxy.js index 436b4e4fb..efd6edc7c 100644 --- a/node_modules/core-js/internals/async-iterator-create-proxy.js +++ b/node_modules/core-js/internals/async-iterator-create-proxy.js @@ -15,17 +15,14 @@ var iteratorClose = require('../internals/iterator-close'); var Promise = getBuiltIn('Promise'); +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper'; var WRAP_FOR_VALID_ASYNC_ITERATOR = 'WrapForValidAsyncIterator'; var setInternalState = InternalStateModule.set; -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); - var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) { var IS_GENERATOR = !IS_ITERATOR; - var ASYNC_ITERATOR_PROXY = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER; - - var getInternalState = InternalStateModule.getterFor(ASYNC_ITERATOR_PROXY); + var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER); var getStateOrEarlyExit = function (that) { var stateCompletion = perform(function () { @@ -55,7 +52,7 @@ var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) { return state.awaiting ? state.awaiting = state.awaiting.then(task, task) : task(); }; - var AsyncIteratorProxyPrototype = defineBuiltIns(create(AsyncIteratorPrototype), { + return defineBuiltIns(create(AsyncIteratorPrototype), { next: function next() { var stateCompletion = getStateOrEarlyExit(this); var exit = stateCompletion.exit; @@ -82,7 +79,7 @@ var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) { var returnMethod, result; var completion = perform(function () { if (state.inner) try { - iteratorClose(state.inner.iterator, 'return'); + iteratorClose(state.inner.iterator, 'normal'); } catch (error) { return iteratorClose(iterator, 'throw', error); } @@ -103,26 +100,20 @@ var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) { }); } }); - - if (IS_GENERATOR) { - createNonEnumerableProperty(AsyncIteratorProxyPrototype, TO_STRING_TAG, 'Async Iterator Helper'); - } - - return AsyncIteratorProxyPrototype; }; -var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false); var WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true); +var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false); -module.exports = function (nextHandler, IS_ITERATOR) { - var ASYNC_ITERATOR_PROXY = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER; +createNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, 'Async Iterator Helper'); +module.exports = function (nextHandler, IS_ITERATOR) { var AsyncIteratorProxy = function AsyncIterator(record, state) { if (state) { state.iterator = record.iterator; state.next = record.next; } else state = record; - state.type = ASYNC_ITERATOR_PROXY; + state.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER; state.nextHandler = nextHandler; state.counter = 0; state.done = false; diff --git a/node_modules/core-js/internals/async-iterator-indexed.js b/node_modules/core-js/internals/async-iterator-indexed.js index 9f4d2e1e3..8ed667161 100644 --- a/node_modules/core-js/internals/async-iterator-indexed.js +++ b/node_modules/core-js/internals/async-iterator-indexed.js @@ -1,29 +1,13 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var call = require('../internals/function-call'); -var anObject = require('../internals/an-object'); -var getIteratorDirect = require('../internals/get-iterator-direct'); -var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); -var createIterResultObject = require('../internals/create-iter-result-object'); - -var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { - var state = this; - var iterator = state.iterator; +var map = require('../internals/async-iterator-map'); - return Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { - if (anObject(step).done) { - state.done = true; - return createIterResultObject(undefined, true); - } - return createIterResultObject([state.index++, step.value], false); - }).then(null, function (error) { - state.done = true; - throw error; - }); -}); +var callback = function (value, counter) { + return [counter, value]; +}; +// `AsyncIterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers module.exports = function indexed() { - return new AsyncIteratorProxy(getIteratorDirect(this), { - index: 0 - }); + return call(map, this, callback); }; diff --git a/node_modules/core-js/internals/classof-raw.js b/node_modules/core-js/internals/classof-raw.js index da1e701ea..9f25a89ac 100644 --- a/node_modules/core-js/internals/classof-raw.js +++ b/node_modules/core-js/internals/classof-raw.js @@ -1,7 +1,7 @@ -var uncurryThisRaw = require('../internals/function-uncurry-this-raw'); +var uncurryThis = require('../internals/function-uncurry-this'); -var toString = uncurryThisRaw({}.toString); -var stringSlice = uncurryThisRaw(''.slice); +var toString = uncurryThis({}.toString); +var stringSlice = uncurryThis(''.slice); module.exports = function (it) { return stringSlice(toString(it), 8, -1); diff --git a/node_modules/core-js/internals/collection-add-all.js b/node_modules/core-js/internals/collection-add-all.js deleted file mode 100644 index e0bc4ed82..000000000 --- a/node_modules/core-js/internals/collection-add-all.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); - -// https://github.com/tc39/collection-methods -module.exports = function addAll(/* ...elements */) { - var set = anObject(this); - var adder = aCallable(set.add); - for (var k = 0, len = arguments.length; k < len; k++) { - call(adder, set, arguments[k]); - } - return set; -}; diff --git a/node_modules/core-js/internals/collection-delete-all.js b/node_modules/core-js/internals/collection-delete-all.js deleted file mode 100644 index dd32fc3ae..000000000 --- a/node_modules/core-js/internals/collection-delete-all.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); - -// https://github.com/tc39/collection-methods -module.exports = function deleteAll(/* ...elements */) { - var collection = anObject(this); - var remover = aCallable(collection['delete']); - var allDeleted = true; - var wasDeleted; - for (var k = 0, len = arguments.length; k < len; k++) { - wasDeleted = call(remover, collection, arguments[k]); - allDeleted = allDeleted && wasDeleted; - } - return !!allDeleted; -}; diff --git a/node_modules/core-js/internals/collection-weak.js b/node_modules/core-js/internals/collection-weak.js index dd847739c..646974097 100644 --- a/node_modules/core-js/internals/collection-weak.js +++ b/node_modules/core-js/internals/collection-weak.js @@ -19,8 +19,8 @@ var splice = uncurryThis([].splice); var id = 0; // fallback for uncaught frozen keys -var uncaughtFrozenStore = function (store) { - return store.frozen || (store.frozen = new UncaughtFrozenStore()); +var uncaughtFrozenStore = function (state) { + return state.frozen || (state.frozen = new UncaughtFrozenStore()); }; var UncaughtFrozenStore = function () { diff --git a/node_modules/core-js/internals/document-all.js b/node_modules/core-js/internals/document-all.js index 2030f0dbc..29a670bab 100644 --- a/node_modules/core-js/internals/document-all.js +++ b/node_modules/core-js/internals/document-all.js @@ -1,6 +1,7 @@ var documentAll = typeof document == 'object' && document.all; // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot +// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined; module.exports = { diff --git a/node_modules/core-js/internals/engine-is-ios-pebble.js b/node_modules/core-js/internals/engine-is-ios-pebble.js index dc9c16d0a..7bd8f7301 100644 --- a/node_modules/core-js/internals/engine-is-ios-pebble.js +++ b/node_modules/core-js/internals/engine-is-ios-pebble.js @@ -1,4 +1,3 @@ var userAgent = require('../internals/engine-user-agent'); -var global = require('../internals/global'); -module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined; +module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined'; diff --git a/node_modules/core-js/internals/engine-is-node.js b/node_modules/core-js/internals/engine-is-node.js index 56fdc036d..1862e17f9 100644 --- a/node_modules/core-js/internals/engine-is-node.js +++ b/node_modules/core-js/internals/engine-is-node.js @@ -1,4 +1,3 @@ var classof = require('../internals/classof-raw'); -var global = require('../internals/global'); -module.exports = classof(global.process) == 'process'; +module.exports = typeof process != 'undefined' && classof(process) == 'process'; diff --git a/node_modules/core-js/internals/engine-user-agent.js b/node_modules/core-js/internals/engine-user-agent.js index 30dfa9d7f..3cf0f2613 100644 --- a/node_modules/core-js/internals/engine-user-agent.js +++ b/node_modules/core-js/internals/engine-user-agent.js @@ -1,3 +1 @@ -var getBuiltIn = require('../internals/get-built-in'); - -module.exports = getBuiltIn('navigator', 'userAgent') || ''; +module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; diff --git a/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js b/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js index 20853b413..c0c29f837 100644 --- a/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js +++ b/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js @@ -1,7 +1,7 @@ 'use strict'; // TODO: Remove from `core-js@4` since it's moved to entry points require('../modules/es.regexp.exec'); -var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); var defineBuiltIn = require('../internals/define-built-in'); var regexpExec = require('../internals/regexp-exec'); var fails = require('../internals/fails'); diff --git a/node_modules/core-js/internals/function-bind-context.js b/node_modules/core-js/internals/function-bind-context.js index 4409ae0da..2a23acbdf 100644 --- a/node_modules/core-js/internals/function-bind-context.js +++ b/node_modules/core-js/internals/function-bind-context.js @@ -1,4 +1,4 @@ -var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); var aCallable = require('../internals/a-callable'); var NATIVE_BIND = require('../internals/function-bind-native'); diff --git a/node_modules/core-js/internals/function-uncurry-this.js b/node_modules/core-js/internals/function-uncurry-this.js index 654430e22..c7abf30a6 100644 --- a/node_modules/core-js/internals/function-uncurry-this.js +++ b/node_modules/core-js/internals/function-uncurry-this.js @@ -1,9 +1,11 @@ -var classofRaw = require('../internals/classof-raw'); -var uncurryThisRaw = require('../internals/function-uncurry-this-raw'); +var NATIVE_BIND = require('../internals/function-bind-native'); -module.exports = function (fn) { - // Nashorn bug: - // https://github.com/zloirock/core-js/issues/1128 - // https://github.com/zloirock/core-js/issues/1130 - if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn); +var FunctionPrototype = Function.prototype; +var call = FunctionPrototype.call; +var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); + +module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { + return call.apply(fn, arguments); + }; }; diff --git a/node_modules/core-js/internals/get-map-iterator.js b/node_modules/core-js/internals/get-map-iterator.js deleted file mode 100644 index a0d0c8929..000000000 --- a/node_modules/core-js/internals/get-map-iterator.js +++ /dev/null @@ -1,6 +0,0 @@ -var call = require('../internals/function-call'); - -module.exports = function (it) { - // eslint-disable-next-line es/no-map -- safe - return call(Map.prototype.entries, it); -}; diff --git a/node_modules/core-js/internals/get-set-iterator.js b/node_modules/core-js/internals/get-set-iterator.js deleted file mode 100644 index f459ba633..000000000 --- a/node_modules/core-js/internals/get-set-iterator.js +++ /dev/null @@ -1,6 +0,0 @@ -var call = require('../internals/function-call'); - -module.exports = function (it) { - // eslint-disable-next-line es/no-set -- safe - return call(Set.prototype.values, it); -}; diff --git a/node_modules/core-js/internals/host-report-errors.js b/node_modules/core-js/internals/host-report-errors.js index 3ce085311..038240a20 100644 --- a/node_modules/core-js/internals/host-report-errors.js +++ b/node_modules/core-js/internals/host-report-errors.js @@ -1,8 +1,6 @@ -var global = require('../internals/global'); - module.exports = function (a, b) { - var console = global.console; - if (console && console.error) { + try { + // eslint-disable-next-line no-console -- safe arguments.length == 1 ? console.error(a) : console.error(a, b); - } + } catch (error) { /* empty */ } }; diff --git a/node_modules/core-js/internals/is-big-int-array.js b/node_modules/core-js/internals/is-big-int-array.js index 3d5559e2b..2a0b6a952 100644 --- a/node_modules/core-js/internals/is-big-int-array.js +++ b/node_modules/core-js/internals/is-big-int-array.js @@ -1,8 +1,6 @@ var classof = require('../internals/classof'); -var uncurryThis = require('../internals/function-uncurry-this'); - -var slice = uncurryThis(''.slice); module.exports = function (it) { - return slice(classof(it), 0, 3) === 'Big'; + var klass = classof(it); + return klass == 'BigInt64Array' || klass == 'BigUint64Array'; }; diff --git a/node_modules/core-js/internals/iterator-create-proxy.js b/node_modules/core-js/internals/iterator-create-proxy.js index 3382388bf..ffb9d7454 100644 --- a/node_modules/core-js/internals/iterator-create-proxy.js +++ b/node_modules/core-js/internals/iterator-create-proxy.js @@ -10,18 +10,15 @@ var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype var createIterResultObject = require('../internals/create-iter-result-object'); var iteratorClose = require('../internals/iterator-close'); +var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var ITERATOR_HELPER = 'IteratorHelper'; var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator'; var setInternalState = InternalStateModule.set; -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); - var createIteratorProxyPrototype = function (IS_ITERATOR) { - var ITERATOR_PROXY = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER; + var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER); - var getInternalState = InternalStateModule.getterFor(ITERATOR_PROXY); - - var IteratorProxyPrototype = defineBuiltIns(create(IteratorPrototype), { + return defineBuiltIns(create(IteratorPrototype), { next: function next() { var state = getInternalState(this); // for simplification: @@ -45,34 +42,28 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) { return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true); } if (state.inner) try { - iteratorClose(state.inner.iterator, 'return'); + iteratorClose(state.inner.iterator, 'normal'); } catch (error) { return iteratorClose(iterator, 'throw', error); } - iteratorClose(iterator, 'return'); + iteratorClose(iterator, 'normal'); return createIterResultObject(undefined, true); } }); - - if (!IS_ITERATOR) { - createNonEnumerableProperty(IteratorProxyPrototype, TO_STRING_TAG, 'Iterator Helper'); - } - - return IteratorProxyPrototype; }; -var IteratorHelperPrototype = createIteratorProxyPrototype(false); var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true); +var IteratorHelperPrototype = createIteratorProxyPrototype(false); -module.exports = function (nextHandler, IS_ITERATOR) { - var ITERATOR_PROXY = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER; +createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper'); +module.exports = function (nextHandler, IS_ITERATOR) { var IteratorProxy = function Iterator(record, state) { if (state) { state.iterator = record.iterator; state.next = record.next; } else state = record; - state.type = ITERATOR_PROXY; + state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER; state.nextHandler = nextHandler; state.counter = 0; state.done = false; diff --git a/node_modules/core-js/internals/iterator-indexed.js b/node_modules/core-js/internals/iterator-indexed.js index 1a64ec7c4..e7e667664 100644 --- a/node_modules/core-js/internals/iterator-indexed.js +++ b/node_modules/core-js/internals/iterator-indexed.js @@ -1,18 +1,13 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var call = require('../internals/function-call'); -var anObject = require('../internals/an-object'); -var getIteratorDirect = require('../internals/get-iterator-direct'); -var createIteratorProxy = require('../internals/iterator-create-proxy'); +var map = require('../internals/iterator-map'); -var IteratorProxy = createIteratorProxy(function () { - var result = anObject(call(this.next, this.iterator)); - var done = this.done = !!result.done; - if (!done) return [this.index++, result.value]; -}); +var callback = function (value, counter) { + return [counter, value]; +}; +// `Iterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers module.exports = function indexed() { - return new IteratorProxy(getIteratorDirect(this), { - index: 0 - }); + return call(map, this, callback); }; diff --git a/node_modules/core-js/internals/make-built-in.js b/node_modules/core-js/internals/make-built-in.js index 91436ac33..7cac202c7 100644 --- a/node_modules/core-js/internals/make-built-in.js +++ b/node_modules/core-js/internals/make-built-in.js @@ -1,3 +1,4 @@ +var uncurryThis = require('../internals/function-uncurry-this'); var fails = require('../internals/fails'); var isCallable = require('../internals/is-callable'); var hasOwn = require('../internals/has-own-property'); @@ -8,8 +9,12 @@ var InternalStateModule = require('../internals/internal-state'); var enforceInternalState = InternalStateModule.enforce; var getInternalState = InternalStateModule.get; +var $String = String; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty = Object.defineProperty; +var stringSlice = uncurryThis(''.slice); +var replace = uncurryThis(''.replace); +var join = uncurryThis([].join); var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; @@ -18,8 +23,8 @@ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { var TEMPLATE = String(String).split('String'); var makeBuiltIn = module.exports = function (value, name, options) { - if (String(name).slice(0, 7) === 'Symbol(') { - name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']'; + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; } if (options && options.getter) name = 'get ' + name; if (options && options.setter) name = 'set ' + name; @@ -38,7 +43,7 @@ var makeBuiltIn = module.exports = function (value, name, options) { } catch (error) { /* empty */ } var state = enforceInternalState(value); if (!hasOwn(state, 'source')) { - state.source = TEMPLATE.join(typeof name == 'string' ? name : ''); + state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); } return value; }; diff --git a/node_modules/core-js/internals/map-emplace.js b/node_modules/core-js/internals/map-emplace.js deleted file mode 100644 index 08c95d0ba..000000000 --- a/node_modules/core-js/internals/map-emplace.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); - -// `Map.prototype.emplace` method -// https://github.com/thumbsupep/proposal-upsert -module.exports = function emplace(key, handler) { - var map = anObject(this); - var get = aCallable(map.get); - var has = aCallable(map.has); - var set = aCallable(map.set); - var value, inserted; - if (call(has, map, key)) { - value = call(get, map, key); - if ('update' in handler) { - value = handler.update(value, key, map); - call(set, map, key, value); - } return value; - } - inserted = handler.insert(key, map); - call(set, map, key, inserted); - return inserted; -}; diff --git a/node_modules/core-js/internals/map-upsert.js b/node_modules/core-js/internals/map-upsert.js index 7be2726fe..c4bf21e7a 100644 --- a/node_modules/core-js/internals/map-upsert.js +++ b/node_modules/core-js/internals/map-upsert.js @@ -7,7 +7,7 @@ var anObject = require('../internals/an-object'); var $TypeError = TypeError; // `Map.prototype.upsert` method -// https://github.com/thumbsupep/proposal-upsert +// https://github.com/tc39/proposal-upsert module.exports = function upsert(key, updateFn /* , insertFn */) { var map = anObject(this); var get = aCallable(map.get); diff --git a/node_modules/core-js/internals/microtask.js b/node_modules/core-js/internals/microtask.js index 99d556e2f..25668ef94 100644 --- a/node_modules/core-js/internals/microtask.js +++ b/node_modules/core-js/internals/microtask.js @@ -2,6 +2,7 @@ var global = require('../internals/global'); var bind = require('../internals/function-bind-context'); var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; var macrotask = require('../internals/task').set; +var Queue = require('../internals/queue'); var IS_IOS = require('../internals/engine-is-ios'); var IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble'); var IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit'); @@ -13,26 +14,22 @@ var process = global.process; var Promise = global.Promise; // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask` var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask'); -var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; - -var flush, head, last, notify, toggle, node, promise, then; +var microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; +var notify, toggle, node, promise, then; // modern engines have queueMicrotask method -if (!queueMicrotask) { - flush = function () { +if (!microtask) { + var queue = new Queue(); + + var flush = function () { var parent, fn; if (IS_NODE && (parent = process.domain)) parent.exit(); - while (head) { - fn = head.fn; - head = head.next; - try { - fn(); - } catch (error) { - if (head) notify(); - else last = undefined; - throw error; - } - } last = undefined; + while (fn = queue.get()) try { + fn(); + } catch (error) { + if (queue.head) notify(); + throw error; + } if (parent) parent.enter(); }; @@ -67,19 +64,17 @@ if (!queueMicrotask) { // - onreadystatechange // - setTimeout } else { - // strange IE + webpack dev server bug - use .bind(global) + // `webpack` dev server bug on IE global methods - use bind(fn, global) macrotask = bind(macrotask, global); notify = function () { macrotask(flush); }; } + + microtask = function (fn) { + if (!queue.head) notify(); + queue.add(fn); + }; } -module.exports = queueMicrotask || function (fn) { - var task = { fn: fn, next: undefined }; - if (last) last.next = task; - if (!head) { - head = task; - notify(); - } last = task; -}; +module.exports = microtask; diff --git a/node_modules/core-js/internals/queue.js b/node_modules/core-js/internals/queue.js index 2137d0603..79e857fe6 100644 --- a/node_modules/core-js/internals/queue.js +++ b/node_modules/core-js/internals/queue.js @@ -6,15 +6,16 @@ var Queue = function () { Queue.prototype = { add: function (item) { var entry = { item: item, next: null }; - if (this.head) this.tail.next = entry; + var tail = this.tail; + if (tail) tail.next = entry; else this.head = entry; this.tail = entry; }, get: function () { var entry = this.head; if (entry) { - this.head = entry.next; - if (this.tail === entry) this.tail = null; + var next = this.head = entry.next; + if (next === null) this.tail = null; return entry.item; } } diff --git a/node_modules/core-js/internals/schedulers-fix.js b/node_modules/core-js/internals/schedulers-fix.js index 1c9302511..2d38413e9 100644 --- a/node_modules/core-js/internals/schedulers-fix.js +++ b/node_modules/core-js/internals/schedulers-fix.js @@ -1,31 +1,31 @@ +'use strict'; var global = require('../internals/global'); var apply = require('../internals/function-apply'); var isCallable = require('../internals/is-callable'); -var userAgent = require('../internals/engine-user-agent'); +var ENGINE_IS_BUN = require('../internals/engine-is-bun'); +var USER_AGENT = require('../internals/engine-user-agent'); var arraySlice = require('../internals/array-slice'); var validateArgumentsLength = require('../internals/validate-arguments-length'); -var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check var Function = global.Function; +// dirty IE9- and Bun 0.3.0- checks +var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () { + var version = global.Bun.version.split('.'); + return version.length < 3 || version[0] == 0 && (version[1] < 3 || version[1] == 3 && version[2] == 0); +})(); -var wrap = function (scheduler) { - return MSIE ? function (handler, timeout /* , ...arguments */) { - var boundArgs = validateArgumentsLength(arguments.length, 1) > 2; +// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix +// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers +// https://github.com/oven-sh/bun/issues/1633 +module.exports = function (scheduler, hasTimeArg) { + var firstParamIndex = hasTimeArg ? 2 : 1; + return WRAP ? function (handler, timeout /* , ...arguments */) { + var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex; var fn = isCallable(handler) ? handler : Function(handler); - var args = boundArgs ? arraySlice(arguments, 2) : undefined; - return scheduler(boundArgs ? function () { - apply(fn, this, args); - } : fn, timeout); + var params = boundArgs ? arraySlice(arguments, firstParamIndex) : []; + var callback = boundArgs ? function () { + apply(fn, this, params); + } : fn; + return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback); } : scheduler; }; - -// ie9- setTimeout & setInterval additional parameters fix -// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers -module.exports = { - // `setTimeout` method - // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout - setTimeout: wrap(global.setTimeout), - // `setInterval` method - // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval - setInterval: wrap(global.setInterval) -}; diff --git a/node_modules/core-js/internals/shared.js b/node_modules/core-js/internals/shared.js index 8ecf685aa..0c892e143 100644 --- a/node_modules/core-js/internals/shared.js +++ b/node_modules/core-js/internals/shared.js @@ -4,9 +4,9 @@ var store = require('../internals/shared-store'); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.26.0', + version: '3.27.2', mode: IS_PURE ? 'pure' : 'global', - copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE', source: 'https://github.com/zloirock/core-js' }); diff --git a/node_modules/core-js/internals/string-punycode-to-ascii.js b/node_modules/core-js/internals/string-punycode-to-ascii.js index d0e265016..f1482ba96 100644 --- a/node_modules/core-js/internals/string-punycode-to-ascii.js +++ b/node_modules/core-js/internals/string-punycode-to-ascii.js @@ -1,4 +1,3 @@ -'use strict'; // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js var uncurryThis = require('../internals/function-uncurry-this'); diff --git a/node_modules/core-js/internals/task.js b/node_modules/core-js/internals/task.js index ca3b2402f..ab8e0b3fc 100644 --- a/node_modules/core-js/internals/task.js +++ b/node_modules/core-js/internals/task.js @@ -23,10 +23,10 @@ var queue = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; var $location, defer, channel, port; -try { +fails(function () { // Deno throws a ReferenceError on `location` access without `--location` flag $location = global.location; -} catch (error) { /* empty */ } +}); var run = function (id) { if (hasOwn(queue, id)) { @@ -42,11 +42,11 @@ var runner = function (id) { }; }; -var listener = function (event) { +var eventListener = function (event) { run(event.data); }; -var post = function (id) { +var globalPostMessageDefer = function (id) { // old engines have not location.origin global.postMessage(String(id), $location.protocol + '//' + $location.host); }; @@ -81,7 +81,7 @@ if (!set || !clear) { } else if (MessageChannel && !IS_IOS) { channel = new MessageChannel(); port = channel.port2; - channel.port1.onmessage = listener; + channel.port1.onmessage = eventListener; defer = bind(port.postMessage, port); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' @@ -90,10 +90,10 @@ if (!set || !clear) { isCallable(global.postMessage) && !global.importScripts && $location && $location.protocol !== 'file:' && - !fails(post) + !fails(globalPostMessageDefer) ) { - defer = post; - global.addEventListener('message', listener, false); + defer = globalPostMessageDefer; + global.addEventListener('message', eventListener, false); // IE8- } else if (ONREADYSTATECHANGE in createElement('script')) { defer = function (id) { diff --git a/node_modules/core-js/internals/well-known-symbol.js b/node_modules/core-js/internals/well-known-symbol.js index 606e95a1b..9979b1bc2 100644 --- a/node_modules/core-js/internals/well-known-symbol.js +++ b/node_modules/core-js/internals/well-known-symbol.js @@ -5,20 +5,14 @@ var uid = require('../internals/uid'); var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid'); -var WellKnownSymbolsStore = shared('wks'); var Symbol = global.Symbol; -var symbolFor = Symbol && Symbol['for']; -var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid; +var WellKnownSymbolsStore = shared('wks'); +var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid; module.exports = function (name) { - if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) { - var description = 'Symbol.' + name; - if (NATIVE_SYMBOL && hasOwn(Symbol, name)) { - WellKnownSymbolsStore[name] = Symbol[name]; - } else if (USE_SYMBOL_AS_UID && symbolFor) { - WellKnownSymbolsStore[name] = symbolFor(description); - } else { - WellKnownSymbolsStore[name] = createWellKnownSymbol(description); - } + if (!hasOwn(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name) + ? Symbol[name] + : createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore[name]; }; diff --git a/node_modules/core-js/internals/wrap-error-constructor-with-cause.js b/node_modules/core-js/internals/wrap-error-constructor-with-cause.js index 67582cbc6..5431c5b0a 100644 --- a/node_modules/core-js/internals/wrap-error-constructor-with-cause.js +++ b/node_modules/core-js/internals/wrap-error-constructor-with-cause.js @@ -9,8 +9,7 @@ var proxyAccessor = require('../internals/proxy-accessor'); var inheritIfRequired = require('../internals/inherit-if-required'); var normalizeStringArgument = require('../internals/normalize-string-argument'); var installErrorCause = require('../internals/install-error-cause'); -var clearErrorStack = require('../internals/error-stack-clear'); -var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable'); +var installErrorStack = require('../internals/error-stack-install'); var DESCRIPTORS = require('../internals/descriptors'); var IS_PURE = require('../internals/is-pure'); @@ -36,7 +35,7 @@ module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); if (message !== undefined) createNonEnumerableProperty(result, 'message', message); - if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2)); + installErrorStack(result, WrappedError, result.stack, 2); if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError); if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); return result; diff --git a/node_modules/core-js/modules/es.aggregate-error.constructor.js b/node_modules/core-js/modules/es.aggregate-error.constructor.js index cb42a8f64..63381a843 100644 --- a/node_modules/core-js/modules/es.aggregate-error.constructor.js +++ b/node_modules/core-js/modules/es.aggregate-error.constructor.js @@ -7,19 +7,17 @@ var copyConstructorProperties = require('../internals/copy-constructor-propertie var create = require('../internals/object-create'); var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); var createPropertyDescriptor = require('../internals/create-property-descriptor'); -var clearErrorStack = require('../internals/error-stack-clear'); var installErrorCause = require('../internals/install-error-cause'); +var installErrorStack = require('../internals/error-stack-install'); var iterate = require('../internals/iterate'); var normalizeStringArgument = require('../internals/normalize-string-argument'); var wellKnownSymbol = require('../internals/well-known-symbol'); -var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable'); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var $Error = Error; var push = [].push; var $AggregateError = function AggregateError(errors, message /* , options */) { - var options = arguments.length > 2 ? arguments[2] : undefined; var isInstance = isPrototypeOf(AggregateErrorPrototype, this); var that; if (setPrototypeOf) { @@ -29,8 +27,8 @@ var $AggregateError = function AggregateError(errors, message /* , options */) { createNonEnumerableProperty(that, TO_STRING_TAG, 'Error'); } if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message)); - if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(that, 'stack', clearErrorStack(that.stack, 1)); - installErrorCause(that, options); + installErrorStack(that, $AggregateError, that.stack, 1); + if (arguments.length > 2) installErrorCause(that, arguments[2]); var errorsArray = []; iterate(errors, push, { that: errorsArray }); createNonEnumerableProperty(that, 'errors', errorsArray); diff --git a/node_modules/core-js/modules/es.array-buffer.slice.js b/node_modules/core-js/modules/es.array-buffer.slice.js index 2bf37ef26..52af48cae 100644 --- a/node_modules/core-js/modules/es.array-buffer.slice.js +++ b/node_modules/core-js/modules/es.array-buffer.slice.js @@ -1,6 +1,6 @@ 'use strict'; var $ = require('../internals/export'); -var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); var fails = require('../internals/fails'); var ArrayBufferModule = require('../internals/array-buffer'); var anObject = require('../internals/an-object'); diff --git a/node_modules/core-js/modules/es.array.concat.js b/node_modules/core-js/modules/es.array.concat.js index a7654fe02..e1a019327 100644 --- a/node_modules/core-js/modules/es.array.concat.js +++ b/node_modules/core-js/modules/es.array.concat.js @@ -23,15 +23,13 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { return array.concat()[0] !== array; }); -var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); - var isConcatSpreadable = function (O) { if (!isObject(O)) return false; var spreadable = O[IS_CONCAT_SPREADABLE]; return spreadable !== undefined ? !!spreadable : isArray(O); }; -var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; +var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); // `Array.prototype.concat` method // https://tc39.es/ecma262/#sec-array.prototype.concat diff --git a/node_modules/core-js/modules/es.array.index-of.js b/node_modules/core-js/modules/es.array.index-of.js index 9926ff1fd..9cca6115e 100644 --- a/node_modules/core-js/modules/es.array.index-of.js +++ b/node_modules/core-js/modules/es.array.index-of.js @@ -1,18 +1,18 @@ 'use strict'; /* eslint-disable es/no-array-prototype-indexof -- required for testing */ var $ = require('../internals/export'); -var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); var $indexOf = require('../internals/array-includes').indexOf; var arrayMethodIsStrict = require('../internals/array-method-is-strict'); var nativeIndexOf = uncurryThis([].indexOf); var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0; -var STRICT_METHOD = arrayMethodIsStrict('indexOf'); +var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf'); // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof -$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, { +$({ target: 'Array', proto: true, forced: FORCED }, { indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { var fromIndex = arguments.length > 1 ? arguments[1] : undefined; return NEGATIVE_ZERO diff --git a/node_modules/core-js/modules/es.array.join.js b/node_modules/core-js/modules/es.array.join.js index e4e063bd6..ee3cb9e6d 100644 --- a/node_modules/core-js/modules/es.array.join.js +++ b/node_modules/core-js/modules/es.array.join.js @@ -8,11 +8,11 @@ var arrayMethodIsStrict = require('../internals/array-method-is-strict'); var nativeJoin = uncurryThis([].join); var ES3_STRINGS = IndexedObject != Object; -var STRICT_METHOD = arrayMethodIsStrict('join', ','); +var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ','); // `Array.prototype.join` method // https://tc39.es/ecma262/#sec-array.prototype.join -$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, { +$({ target: 'Array', proto: true, forced: FORCED }, { join: function join(separator) { return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator); } diff --git a/node_modules/core-js/modules/es.array.push.js b/node_modules/core-js/modules/es.array.push.js index 48929a2a0..61a9b9143 100644 --- a/node_modules/core-js/modules/es.array.push.js +++ b/node_modules/core-js/modules/es.array.push.js @@ -12,18 +12,20 @@ var INCORRECT_TO_LENGTH = fails(function () { // V8 and Safari <= 15.4, FF < 23 throws InternalError // https://bugs.chromium.org/p/v8/issues/detail?id=12681 -var SILENT_ON_NON_WRITABLE_LENGTH = !function () { +var properErrorOnNonWritableLength = function () { try { // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty([], 'length', { writable: false }).push(); } catch (error) { return error instanceof TypeError; } -}(); +}; + +var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength(); // `Array.prototype.push` method // https://tc39.es/ecma262/#sec-array.prototype.push -$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILENT_ON_NON_WRITABLE_LENGTH }, { +$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { // eslint-disable-next-line no-unused-vars -- required for `.length` push: function push(item) { var O = toObject(this); diff --git a/node_modules/core-js/modules/es.array.reduce-right.js b/node_modules/core-js/modules/es.array.reduce-right.js index 79af2d8c6..c9ed11200 100644 --- a/node_modules/core-js/modules/es.array.reduce-right.js +++ b/node_modules/core-js/modules/es.array.reduce-right.js @@ -5,14 +5,14 @@ var arrayMethodIsStrict = require('../internals/array-method-is-strict'); var CHROME_VERSION = require('../internals/engine-v8-version'); var IS_NODE = require('../internals/engine-is-node'); -var STRICT_METHOD = arrayMethodIsStrict('reduceRight'); // Chrome 80-82 has a critical bug // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982 var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83; +var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduceRight'); // `Array.prototype.reduceRight` method // https://tc39.es/ecma262/#sec-array.prototype.reduceright -$({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, { +$({ target: 'Array', proto: true, forced: FORCED }, { reduceRight: function reduceRight(callbackfn /* , initialValue */) { return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); } diff --git a/node_modules/core-js/modules/es.array.reduce.js b/node_modules/core-js/modules/es.array.reduce.js index a45fc3879..0c299075d 100644 --- a/node_modules/core-js/modules/es.array.reduce.js +++ b/node_modules/core-js/modules/es.array.reduce.js @@ -5,14 +5,14 @@ var arrayMethodIsStrict = require('../internals/array-method-is-strict'); var CHROME_VERSION = require('../internals/engine-v8-version'); var IS_NODE = require('../internals/engine-is-node'); -var STRICT_METHOD = arrayMethodIsStrict('reduce'); // Chrome 80-82 has a critical bug // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982 var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83; +var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce'); // `Array.prototype.reduce` method // https://tc39.es/ecma262/#sec-array.prototype.reduce -$({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, { +$({ target: 'Array', proto: true, forced: FORCED }, { reduce: function reduce(callbackfn /* , initialValue */) { var length = arguments.length; return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined); diff --git a/node_modules/core-js/modules/es.array.unshift.js b/node_modules/core-js/modules/es.array.unshift.js index 6ae7af9da..4d31cd894 100644 --- a/node_modules/core-js/modules/es.array.unshift.js +++ b/node_modules/core-js/modules/es.array.unshift.js @@ -10,18 +10,20 @@ var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-intege var INCORRECT_RESULT = [].unshift(0) !== 1; // V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError -var SILENT_ON_NON_WRITABLE_LENGTH = !function () { +var properErrorOnNonWritableLength = function () { try { // eslint-disable-next-line es/no-object-defineproperty -- safe Object.defineProperty([], 'length', { writable: false }).unshift(); } catch (error) { return error instanceof TypeError; } -}(); +}; + +var FORCED = INCORRECT_RESULT || !properErrorOnNonWritableLength(); // `Array.prototype.unshift` method // https://tc39.es/ecma262/#sec-array.prototype.unshift -$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_RESULT || SILENT_ON_NON_WRITABLE_LENGTH }, { +$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { // eslint-disable-next-line no-unused-vars -- required for `.length` unshift: function unshift(item) { var O = toObject(this); diff --git a/node_modules/core-js/modules/es.date.get-year.js b/node_modules/core-js/modules/es.date.get-year.js index 6bd3a7d69..28bcd1bb6 100644 --- a/node_modules/core-js/modules/es.date.get-year.js +++ b/node_modules/core-js/modules/es.date.get-year.js @@ -3,6 +3,7 @@ var $ = require('../internals/export'); var uncurryThis = require('../internals/function-uncurry-this'); var fails = require('../internals/fails'); +// IE8- non-standard case var FORCED = fails(function () { return new Date(16e11).getYear() !== 120; }); diff --git a/node_modules/core-js/modules/es.error.cause.js b/node_modules/core-js/modules/es.error.cause.js index c887901ad..72122c172 100644 --- a/node_modules/core-js/modules/es.error.cause.js +++ b/node_modules/core-js/modules/es.error.cause.js @@ -23,6 +23,7 @@ var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { } }; +// https://tc39.es/ecma262/#sec-nativeerror // https://github.com/tc39/proposal-error-cause exportGlobalErrorCauseWrapper('Error', function (init) { return function Error(message) { return apply(init, this, arguments); }; diff --git a/node_modules/core-js/modules/es.math.asinh.js b/node_modules/core-js/modules/es.math.asinh.js index a9c104528..acccac0f6 100644 --- a/node_modules/core-js/modules/es.math.asinh.js +++ b/node_modules/core-js/modules/es.math.asinh.js @@ -10,9 +10,11 @@ function asinh(x) { return !isFinite(n) || n == 0 ? n : n < 0 ? -asinh(-n) : log(n + sqrt(n * n + 1)); } +var FORCED = !($asinh && 1 / $asinh(0) > 0); + // `Math.asinh` method // https://tc39.es/ecma262/#sec-math.asinh // Tor Browser bug: Math.asinh(0) -> -0 -$({ target: 'Math', stat: true, forced: !($asinh && 1 / $asinh(0) > 0) }, { +$({ target: 'Math', stat: true, forced: FORCED }, { asinh: asinh }); diff --git a/node_modules/core-js/modules/es.math.atanh.js b/node_modules/core-js/modules/es.math.atanh.js index a55426c74..d4e19d431 100644 --- a/node_modules/core-js/modules/es.math.atanh.js +++ b/node_modules/core-js/modules/es.math.atanh.js @@ -4,10 +4,12 @@ var $ = require('../internals/export'); var $atanh = Math.atanh; var log = Math.log; +var FORCED = !($atanh && 1 / $atanh(-0) < 0); + // `Math.atanh` method // https://tc39.es/ecma262/#sec-math.atanh // Tor Browser bug: Math.atanh(-0) -> 0 -$({ target: 'Math', stat: true, forced: !($atanh && 1 / $atanh(-0) < 0) }, { +$({ target: 'Math', stat: true, forced: FORCED }, { atanh: function atanh(x) { var n = +x; return n == 0 ? n : log((1 + n) / (1 - n)) / 2; diff --git a/node_modules/core-js/modules/es.math.cosh.js b/node_modules/core-js/modules/es.math.cosh.js index 4c666c093..4de54e329 100644 --- a/node_modules/core-js/modules/es.math.cosh.js +++ b/node_modules/core-js/modules/es.math.cosh.js @@ -6,9 +6,11 @@ var $cosh = Math.cosh; var abs = Math.abs; var E = Math.E; +var FORCED = !$cosh || $cosh(710) === Infinity; + // `Math.cosh` method // https://tc39.es/ecma262/#sec-math.cosh -$({ target: 'Math', stat: true, forced: !$cosh || $cosh(710) === Infinity }, { +$({ target: 'Math', stat: true, forced: FORCED }, { cosh: function cosh(x) { var t = expm1(abs(x) - 1) + 1; return (t + 1 / (t * E * E)) * (E / 2); diff --git a/node_modules/core-js/modules/es.math.hypot.js b/node_modules/core-js/modules/es.math.hypot.js index 5b5b0edae..8688f542c 100644 --- a/node_modules/core-js/modules/es.math.hypot.js +++ b/node_modules/core-js/modules/es.math.hypot.js @@ -7,11 +7,11 @@ var sqrt = Math.sqrt; // Chrome 77 bug // https://bugs.chromium.org/p/v8/issues/detail?id=9546 -var BUGGY = !!$hypot && $hypot(Infinity, NaN) !== Infinity; +var FORCED = !!$hypot && $hypot(Infinity, NaN) !== Infinity; // `Math.hypot` method // https://tc39.es/ecma262/#sec-math.hypot -$({ target: 'Math', stat: true, arity: 2, forced: BUGGY }, { +$({ target: 'Math', stat: true, arity: 2, forced: FORCED }, { // eslint-disable-next-line no-unused-vars -- required for `.length` hypot: function hypot(value1, value2) { var sum = 0; diff --git a/node_modules/core-js/modules/es.number.constructor.js b/node_modules/core-js/modules/es.number.constructor.js index db491a205..055701ecf 100644 --- a/node_modules/core-js/modules/es.number.constructor.js +++ b/node_modules/core-js/modules/es.number.constructor.js @@ -1,9 +1,11 @@ 'use strict'; +var $ = require('../internals/export'); +var IS_PURE = require('../internals/is-pure'); var DESCRIPTORS = require('../internals/descriptors'); var global = require('../internals/global'); +var path = require('../internals/path'); var uncurryThis = require('../internals/function-uncurry-this'); var isForced = require('../internals/is-forced'); -var defineBuiltIn = require('../internals/define-built-in'); var hasOwn = require('../internals/has-own-property'); var inheritIfRequired = require('../internals/inherit-if-required'); var isPrototypeOf = require('../internals/object-is-prototype-of'); @@ -18,9 +20,10 @@ var trim = require('../internals/string-trim').trim; var NUMBER = 'Number'; var NativeNumber = global[NUMBER]; +var PureNumberNamespace = path[NUMBER]; var NumberPrototype = NativeNumber.prototype; var TypeError = global.TypeError; -var arraySlice = uncurryThis(''.slice); +var stringSlice = uncurryThis(''.slice); var charCodeAt = uncurryThis(''.charCodeAt); // `ToNumeric` abstract operation @@ -48,7 +51,7 @@ var toNumber = function (argument) { case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i default: return +it; } - digits = arraySlice(it, 2); + digits = stringSlice(it, 2); length = digits.length; for (index = 0; index < length; index++) { code = charCodeAt(digits, index); @@ -60,17 +63,30 @@ var toNumber = function (argument) { } return +it; }; +var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1')); + +var calledWithNew = function (dummy) { + // includes check on 1..constructor(foo) case + return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); }); +}; + // `Number` constructor // https://tc39.es/ecma262/#sec-number-constructor -if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) { - var NumberWrapper = function Number(value) { - var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); - var dummy = this; - // check on 1..constructor(foo) case - return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); }) - ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n; - }; - for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : ( +var NumberWrapper = function Number(value) { + var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); + return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n; +}; + +NumberWrapper.prototype = NumberPrototype; +if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper; + +$({ global: true, constructor: true, wrap: true, forced: FORCED }, { + Number: NumberWrapper +}); + +// Use `internal/copy-constructor-properties` helper in `core-js@4` +var copyConstructorProperties = function (target, source) { + for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : ( // ES3: 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before): @@ -78,11 +94,11 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb // ESNext 'fromString,range' ).split(','), j = 0, key; keys.length > j; j++) { - if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) { - defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key)); + if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } - NumberWrapper.prototype = NumberPrototype; - NumberPrototype.constructor = NumberWrapper; - defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true }); -} +}; + +if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace); +if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber); diff --git a/node_modules/core-js/modules/es.number.to-exponential.js b/node_modules/core-js/modules/es.number.to-exponential.js index d140f663a..597938d22 100644 --- a/node_modules/core-js/modules/es.number.to-exponential.js +++ b/node_modules/core-js/modules/es.number.to-exponential.js @@ -28,20 +28,23 @@ var ROUNDS_PROPERLY = nativeToExponential(-6.9e-11, 4) === '-6.9000e-11' && nativeToExponential(25, 0) === '3e+1'; // IE8- -var THROWS_ON_INFINITY_FRACTION = fails(function () { - nativeToExponential(1, Infinity); -}) && fails(function () { - nativeToExponential(1, -Infinity); -}); +var throwsOnInfinityFraction = function () { + return fails(function () { + nativeToExponential(1, Infinity); + }) && fails(function () { + nativeToExponential(1, -Infinity); + }); +}; // Safari <11 && FF <50 -var PROPER_NON_FINITE_THIS_CHECK = !fails(function () { - nativeToExponential(Infinity, Infinity); -}) && !fails(function () { - nativeToExponential(NaN, Infinity); -}); +var properNonFiniteThisCheck = function () { + return !fails(function () { + nativeToExponential(Infinity, Infinity); + nativeToExponential(NaN, Infinity); + }); +}; -var FORCED = !ROUNDS_PROPERLY || !THROWS_ON_INFINITY_FRACTION || !PROPER_NON_FINITE_THIS_CHECK; +var FORCED = !ROUNDS_PROPERLY || !throwsOnInfinityFraction() || !properNonFiniteThisCheck(); // `Number.prototype.toExponential` method // https://tc39.es/ecma262/#sec-number.prototype.toexponential diff --git a/node_modules/core-js/modules/es.object.get-own-property-descriptor.js b/node_modules/core-js/modules/es.object.get-own-property-descriptor.js index 729bca7d4..a95c7ed23 100644 --- a/node_modules/core-js/modules/es.object.get-own-property-descriptor.js +++ b/node_modules/core-js/modules/es.object.get-own-property-descriptor.js @@ -4,8 +4,7 @@ var toIndexedObject = require('../internals/to-indexed-object'); var nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; var DESCRIPTORS = require('../internals/descriptors'); -var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); }); -var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES; +var FORCED = !DESCRIPTORS || fails(function () { nativeGetOwnPropertyDescriptor(1); }); // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor diff --git a/node_modules/core-js/modules/es.object.is-frozen.js b/node_modules/core-js/modules/es.object.is-frozen.js index f261afa67..2c47e0bd5 100644 --- a/node_modules/core-js/modules/es.object.is-frozen.js +++ b/node_modules/core-js/modules/es.object.is-frozen.js @@ -6,11 +6,12 @@ var ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensi // eslint-disable-next-line es/no-object-isfrozen -- safe var $isFrozen = Object.isFrozen; -var FAILS_ON_PRIMITIVES = fails(function () { $isFrozen(1); }); + +var FORCED = ARRAY_BUFFER_NON_EXTENSIBLE || fails(function () { $isFrozen(1); }); // `Object.isFrozen` method // https://tc39.es/ecma262/#sec-object.isfrozen -$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE }, { +$({ target: 'Object', stat: true, forced: FORCED }, { isFrozen: function isFrozen(it) { if (!isObject(it)) return true; if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return true; diff --git a/node_modules/core-js/modules/es.object.is-sealed.js b/node_modules/core-js/modules/es.object.is-sealed.js index ea8f146ae..c9efe3182 100644 --- a/node_modules/core-js/modules/es.object.is-sealed.js +++ b/node_modules/core-js/modules/es.object.is-sealed.js @@ -6,11 +6,12 @@ var ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensi // eslint-disable-next-line es/no-object-issealed -- safe var $isSealed = Object.isSealed; -var FAILS_ON_PRIMITIVES = fails(function () { $isSealed(1); }); + +var FORCED = ARRAY_BUFFER_NON_EXTENSIBLE || fails(function () { $isSealed(1); }); // `Object.isSealed` method // https://tc39.es/ecma262/#sec-object.issealed -$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE }, { +$({ target: 'Object', stat: true, forced: FORCED }, { isSealed: function isSealed(it) { if (!isObject(it)) return true; if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return true; diff --git a/node_modules/core-js/modules/es.promise.all-settled.js b/node_modules/core-js/modules/es.promise.all-settled.js index 48e017356..73b282a49 100644 --- a/node_modules/core-js/modules/es.promise.all-settled.js +++ b/node_modules/core-js/modules/es.promise.all-settled.js @@ -5,10 +5,11 @@ var aCallable = require('../internals/a-callable'); var newPromiseCapabilityModule = require('../internals/new-promise-capability'); var perform = require('../internals/perform'); var iterate = require('../internals/iterate'); +var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration'); // `Promise.allSettled` method // https://tc39.es/ecma262/#sec-promise.allsettled -$({ target: 'Promise', stat: true }, { +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { allSettled: function allSettled(iterable) { var C = this; var capability = newPromiseCapabilityModule.f(C); diff --git a/node_modules/core-js/modules/es.promise.any.js b/node_modules/core-js/modules/es.promise.any.js index 6a414d81f..dd92bd76b 100644 --- a/node_modules/core-js/modules/es.promise.any.js +++ b/node_modules/core-js/modules/es.promise.any.js @@ -6,12 +6,13 @@ var getBuiltIn = require('../internals/get-built-in'); var newPromiseCapabilityModule = require('../internals/new-promise-capability'); var perform = require('../internals/perform'); var iterate = require('../internals/iterate'); +var PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration'); var PROMISE_ANY_ERROR = 'No one promise resolved'; // `Promise.any` method // https://tc39.es/ecma262/#sec-promise.any -$({ target: 'Promise', stat: true }, { +$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, { any: function any(iterable) { var C = this; var AggregateError = getBuiltIn('AggregateError'); diff --git a/node_modules/core-js/modules/es.regexp.sticky.js b/node_modules/core-js/modules/es.regexp.sticky.js index b66530646..2f1beb8aa 100644 --- a/node_modules/core-js/modules/es.regexp.sticky.js +++ b/node_modules/core-js/modules/es.regexp.sticky.js @@ -13,7 +13,7 @@ if (DESCRIPTORS && MISSED_STICKY) { defineBuiltInAccessor(RegExpPrototype, 'sticky', { configurable: true, get: function sticky() { - if (this === RegExpPrototype) return undefined; + if (this === RegExpPrototype) return; // We can't use InternalStateModule.getterFor because // we don't add metadata for regexps created by a literal. if (classof(this) === 'RegExp') { diff --git a/node_modules/core-js/modules/es.string.ends-with.js b/node_modules/core-js/modules/es.string.ends-with.js index ceea69d87..3124aa17a 100644 --- a/node_modules/core-js/modules/es.string.ends-with.js +++ b/node_modules/core-js/modules/es.string.ends-with.js @@ -1,6 +1,6 @@ 'use strict'; var $ = require('../internals/export'); -var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; var toLength = require('../internals/to-length'); var toString = require('../internals/to-string'); diff --git a/node_modules/core-js/modules/es.string.match-all.js b/node_modules/core-js/modules/es.string.match-all.js index cd25d901a..a01381b40 100644 --- a/node_modules/core-js/modules/es.string.match-all.js +++ b/node_modules/core-js/modules/es.string.match-all.js @@ -2,7 +2,7 @@ /* eslint-disable es/no-string-prototype-matchall -- safe */ var $ = require('../internals/export'); var call = require('../internals/function-call'); -var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); var createIteratorConstructor = require('../internals/iterator-create-constructor'); var createIterResultObject = require('../internals/create-iter-result-object'); var requireObjectCoercible = require('../internals/require-object-coercible'); diff --git a/node_modules/core-js/modules/es.string.raw.js b/node_modules/core-js/modules/es.string.raw.js index b485cfa63..b341bb651 100644 --- a/node_modules/core-js/modules/es.string.raw.js +++ b/node_modules/core-js/modules/es.string.raw.js @@ -14,10 +14,11 @@ $({ target: 'String', stat: true }, { raw: function raw(template) { var rawTemplate = toIndexedObject(toObject(template).raw); var literalSegments = lengthOfArrayLike(rawTemplate); + if (!literalSegments) return ''; var argumentsLength = arguments.length; var elements = []; var i = 0; - while (literalSegments > i) { + while (true) { push(elements, toString(rawTemplate[i++])); if (i === literalSegments) return join(elements, ''); if (i < argumentsLength) push(elements, toString(arguments[i])); diff --git a/node_modules/core-js/modules/es.string.starts-with.js b/node_modules/core-js/modules/es.string.starts-with.js index 533be0aed..32424109d 100644 --- a/node_modules/core-js/modules/es.string.starts-with.js +++ b/node_modules/core-js/modules/es.string.starts-with.js @@ -1,6 +1,6 @@ 'use strict'; var $ = require('../internals/export'); -var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f; var toLength = require('../internals/to-length'); var toString = require('../internals/to-string'); diff --git a/node_modules/core-js/modules/es.string.substr.js b/node_modules/core-js/modules/es.string.substr.js index 2f7c8037b..57595da64 100644 --- a/node_modules/core-js/modules/es.string.substr.js +++ b/node_modules/core-js/modules/es.string.substr.js @@ -9,7 +9,7 @@ var stringSlice = uncurryThis(''.slice); var max = Math.max; var min = Math.min; -// eslint-disable-next-line unicorn/prefer-string-slice, es/no-string-prototype-substr -- required for testing +// eslint-disable-next-line unicorn/prefer-string-slice -- required for testing var FORCED = !''.substr || 'ab'.substr(-1) !== 'b'; // `String.prototype.substr` method diff --git a/node_modules/core-js/modules/es.typed-array.sort.js b/node_modules/core-js/modules/es.typed-array.sort.js index 49ad937bb..40cfcbb51 100644 --- a/node_modules/core-js/modules/es.typed-array.sort.js +++ b/node_modules/core-js/modules/es.typed-array.sort.js @@ -1,6 +1,6 @@ 'use strict'; var global = require('../internals/global'); -var uncurryThis = require('../internals/function-uncurry-this'); +var uncurryThis = require('../internals/function-uncurry-this-clause'); var fails = require('../internals/fails'); var aCallable = require('../internals/a-callable'); var internalSort = require('../internals/array-sort'); diff --git a/node_modules/core-js/modules/es.weak-map.constructor.js b/node_modules/core-js/modules/es.weak-map.constructor.js index 1894d849b..72632c4b5 100644 --- a/node_modules/core-js/modules/es.weak-map.constructor.js +++ b/node_modules/core-js/modules/es.weak-map.constructor.js @@ -1,4 +1,5 @@ 'use strict'; +var FREEZING = require('../internals/freezing'); var global = require('../internals/global'); var uncurryThis = require('../internals/function-uncurry-this'); var defineBuiltIns = require('../internals/define-built-ins'); @@ -6,10 +7,26 @@ var InternalMetadataModule = require('../internals/internal-metadata'); var collection = require('../internals/collection'); var collectionWeak = require('../internals/collection-weak'); var isObject = require('../internals/is-object'); -var isExtensible = require('../internals/object-is-extensible'); var enforceInternalState = require('../internals/internal-state').enforce; +var fails = require('../internals/fails'); var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection'); +var $Object = Object; +// eslint-disable-next-line es/no-array-isarray -- safe +var isArray = Array.isArray; +// eslint-disable-next-line es/no-object-isextensible -- safe +var isExtensible = $Object.isExtensible; +// eslint-disable-next-line es/no-object-isfrozen -- safe +var isFrozen = $Object.isFrozen; +// eslint-disable-next-line es/no-object-issealed -- safe +var isSealed = $Object.isSealed; +// eslint-disable-next-line es/no-object-freeze -- safe +var freeze = $Object.freeze; +// eslint-disable-next-line es/no-object-seal -- safe +var seal = $Object.seal; + +var FROZEN = {}; +var SEALED = {}; var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global; var InternalWeakMap; @@ -22,18 +39,27 @@ var wrapper = function (init) { // `WeakMap` constructor // https://tc39.es/ecma262/#sec-weakmap-constructor var $WeakMap = collection('WeakMap', wrapper, collectionWeak); +var WeakMapPrototype = $WeakMap.prototype; +var nativeSet = uncurryThis(WeakMapPrototype.set); + +// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them +var hasMSEdgeFreezingBug = function () { + return FREEZING && fails(function () { + var frozenArray = freeze([]); + nativeSet(new $WeakMap(), frozenArray, 1); + return !isFrozen(frozenArray); + }); +}; // IE11 WeakMap frozen keys fix // We can't use feature detection because it crash some old IE builds // https://github.com/zloirock/core-js/issues/485 -if (NATIVE_WEAK_MAP && IS_IE11) { +if (NATIVE_WEAK_MAP) if (IS_IE11) { InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true); InternalMetadataModule.enable(); - var WeakMapPrototype = $WeakMap.prototype; var nativeDelete = uncurryThis(WeakMapPrototype['delete']); var nativeHas = uncurryThis(WeakMapPrototype.has); var nativeGet = uncurryThis(WeakMapPrototype.get); - var nativeSet = uncurryThis(WeakMapPrototype.set); defineBuiltIns(WeakMapPrototype, { 'delete': function (key) { if (isObject(key) && !isExtensible(key)) { @@ -65,4 +91,19 @@ if (NATIVE_WEAK_MAP && IS_IE11) { return this; } }); +// Chakra Edge frozen keys fix +} else if (hasMSEdgeFreezingBug()) { + defineBuiltIns(WeakMapPrototype, { + set: function set(key, value) { + var arrayIntegrityLevel; + if (isArray(key)) { + if (isFrozen(key)) arrayIntegrityLevel = FROZEN; + else if (isSealed(key)) arrayIntegrityLevel = SEALED; + } + nativeSet(this, key, value); + if (arrayIntegrityLevel == FROZEN) freeze(key); + if (arrayIntegrityLevel == SEALED) seal(key); + return this; + } + }); } diff --git a/node_modules/core-js/modules/esnext.array.from-async.js b/node_modules/core-js/modules/esnext.array.from-async.js index 301288e2f..30b7155c0 100644 --- a/node_modules/core-js/modules/esnext.array.from-async.js +++ b/node_modules/core-js/modules/esnext.array.from-async.js @@ -3,6 +3,6 @@ var fromAsync = require('../internals/array-from-async'); // `Array.fromAsync` method // https://github.com/tc39/proposal-array-from-async -$({ target: 'Array', stat: true, forced: true }, { +$({ target: 'Array', stat: true }, { fromAsync: fromAsync }); diff --git a/node_modules/core-js/modules/esnext.async-iterator.as-indexed-pairs.js b/node_modules/core-js/modules/esnext.async-iterator.as-indexed-pairs.js index da3de5b08..3db008f57 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.as-indexed-pairs.js +++ b/node_modules/core-js/modules/esnext.async-iterator.as-indexed-pairs.js @@ -1,8 +1,9 @@ // TODO: Remove from `core-js@4` -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var indexed = require('../internals/async-iterator-indexed'); +// `AsyncIterator.prototype.asIndexedPairs` method +// https://github.com/tc39/proposal-iterator-helpers $({ target: 'AsyncIterator', name: 'indexed', proto: true, real: true, forced: true }, { asIndexedPairs: indexed }); diff --git a/node_modules/core-js/modules/esnext.async-iterator.constructor.js b/node_modules/core-js/modules/esnext.async-iterator.constructor.js index 9658fc68d..047b2fc7b 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.constructor.js +++ b/node_modules/core-js/modules/esnext.async-iterator.constructor.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var anInstance = require('../internals/an-instance'); var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); @@ -24,6 +23,8 @@ if (IS_PURE || !hasOwn(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPr createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor); } +// `AsyncIterator` constructor +// https://github.com/tc39/proposal-iterator-helpers $({ global: true, constructor: true, forced: IS_PURE }, { AsyncIterator: AsyncIteratorConstructor }); diff --git a/node_modules/core-js/modules/esnext.async-iterator.drop.js b/node_modules/core-js/modules/esnext.async-iterator.drop.js index cea4a3dfd..834cbb3f9 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.drop.js +++ b/node_modules/core-js/modules/esnext.async-iterator.drop.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var anObject = require('../internals/an-object'); @@ -38,7 +37,9 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { +// `AsyncIterator.prototype.drop` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { drop: function drop(limit) { return new AsyncIteratorProxy(getIteratorDirect(this), { remaining: toPositiveInteger(notANaN(+limit)) diff --git a/node_modules/core-js/modules/esnext.async-iterator.every.js b/node_modules/core-js/modules/esnext.async-iterator.every.js index db989b619..d13a83b96 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.every.js +++ b/node_modules/core-js/modules/esnext.async-iterator.every.js @@ -1,10 +1,11 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var $every = require('../internals/async-iterator-iteration').every; -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { - every: function every(fn) { - return $every(this, fn); +// `AsyncIterator.prototype.every` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + every: function every(predicate) { + return $every(this, predicate); } }); diff --git a/node_modules/core-js/modules/esnext.async-iterator.filter.js b/node_modules/core-js/modules/esnext.async-iterator.filter.js index 693210f70..3fda0f3a3 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.filter.js +++ b/node_modules/core-js/modules/esnext.async-iterator.filter.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); @@ -13,7 +12,7 @@ var closeAsyncIteration = require('../internals/async-iterator-close'); var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { var state = this; var iterator = state.iterator; - var filterer = state.filterer; + var predicate = state.predicate; return new Promise(function (resolve, reject) { var doneAndReject = function (error) { @@ -35,7 +34,7 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { } else { var value = step.value; try { - var result = filterer(value, state.counter++); + var result = predicate(value, state.counter++); var handler = function (selected) { selected ? resolve(createIterResultObject(value, false)) : loop(); @@ -54,10 +53,12 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { - filter: function filter(filterer) { +// `AsyncIterator.prototype.filter` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + filter: function filter(predicate) { return new AsyncIteratorProxy(getIteratorDirect(this), { - filterer: aCallable(filterer) + predicate: aCallable(predicate) }); } }); diff --git a/node_modules/core-js/modules/esnext.async-iterator.find.js b/node_modules/core-js/modules/esnext.async-iterator.find.js index 14588137a..2b0e0847a 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.find.js +++ b/node_modules/core-js/modules/esnext.async-iterator.find.js @@ -1,10 +1,11 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var $find = require('../internals/async-iterator-iteration').find; -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { - find: function find(fn) { - return $find(this, fn); +// `AsyncIterator.prototype.find` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + find: function find(predicate) { + return $find(this, predicate); } }); diff --git a/node_modules/core-js/modules/esnext.async-iterator.flat-map.js b/node_modules/core-js/modules/esnext.async-iterator.flat-map.js index 06913c3b8..d84b23879 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.flat-map.js +++ b/node_modules/core-js/modules/esnext.async-iterator.flat-map.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); @@ -74,7 +73,9 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { +// `AsyncIterator.prototype.flaMap` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { flatMap: function flatMap(mapper) { return new AsyncIteratorProxy(getIteratorDirect(this), { mapper: aCallable(mapper), diff --git a/node_modules/core-js/modules/esnext.async-iterator.for-each.js b/node_modules/core-js/modules/esnext.async-iterator.for-each.js index 6e9d71f39..c0a9c2a53 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.for-each.js +++ b/node_modules/core-js/modules/esnext.async-iterator.for-each.js @@ -1,9 +1,10 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var $forEach = require('../internals/async-iterator-iteration').forEach; -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { +// `AsyncIterator.prototype.forEach` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { forEach: function forEach(fn) { return $forEach(this, fn); } diff --git a/node_modules/core-js/modules/esnext.async-iterator.from.js b/node_modules/core-js/modules/esnext.async-iterator.from.js index 76aec4603..db7f92eb1 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.from.js +++ b/node_modules/core-js/modules/esnext.async-iterator.from.js @@ -1,13 +1,15 @@ -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); +var toObject = require('../internals/to-object'); var isPrototypeOf = require('../internals/object-is-prototype-of'); var getAsyncIteratorFlattenable = require('../internals/get-async-iterator-flattenable'); var AsyncIteratorPrototype = require('../internals/async-iterator-prototype'); var WrapAsyncIterator = require('../internals/async-iterator-wrap'); -$({ target: 'AsyncIterator', stat: true, forced: true }, { +// `AsyncIterator.from` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', stat: true }, { from: function from(O) { - var iteratorRecord = getAsyncIteratorFlattenable(O); + var iteratorRecord = getAsyncIteratorFlattenable(typeof O == 'string' ? toObject(O) : O); return isPrototypeOf(AsyncIteratorPrototype, iteratorRecord.iterator) ? iteratorRecord.iterator : new WrapAsyncIterator(iteratorRecord); diff --git a/node_modules/core-js/modules/esnext.async-iterator.indexed.js b/node_modules/core-js/modules/esnext.async-iterator.indexed.js index 43965e178..4fd74e376 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.indexed.js +++ b/node_modules/core-js/modules/esnext.async-iterator.indexed.js @@ -1,8 +1,9 @@ // TODO: Remove from `core-js@4` -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var indexed = require('../internals/async-iterator-indexed'); +// `AsyncIterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers $({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { indexed: indexed }); diff --git a/node_modules/core-js/modules/esnext.async-iterator.map.js b/node_modules/core-js/modules/esnext.async-iterator.map.js index b8b2226e9..4112ba277 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.map.js +++ b/node_modules/core-js/modules/esnext.async-iterator.map.js @@ -1,57 +1,9 @@ -'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var isObject = require('../internals/is-object'); -var getIteratorDirect = require('../internals/get-iterator-direct'); -var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy'); -var createIterResultObject = require('../internals/create-iter-result-object'); -var closeAsyncIteration = require('../internals/async-iterator-close'); - -var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { - var state = this; - var iterator = state.iterator; - var mapper = state.mapper; - - return new Promise(function (resolve, reject) { - var doneAndReject = function (error) { - state.done = true; - reject(error); - }; - - var ifAbruptCloseAsyncIterator = function (error) { - closeAsyncIteration(iterator, doneAndReject, error, doneAndReject); - }; +var map = require('../internals/async-iterator-map'); - Promise.resolve(anObject(call(state.next, iterator))).then(function (step) { - try { - if (anObject(step).done) { - state.done = true; - resolve(createIterResultObject(undefined, true)); - } else { - var value = step.value; - try { - var result = mapper(value, state.counter++); - - var handler = function (mapped) { - resolve(createIterResultObject(mapped, false)); - }; - - if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator); - else handler(result); - } catch (error2) { ifAbruptCloseAsyncIterator(error2); } - } - } catch (error) { doneAndReject(error); } - }, doneAndReject); - }); +// `AsyncIterator.prototype.map` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + map: map }); -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { - map: function map(mapper) { - return new AsyncIteratorProxy(getIteratorDirect(this), { - mapper: aCallable(mapper) - }); - } -}); diff --git a/node_modules/core-js/modules/esnext.async-iterator.reduce.js b/node_modules/core-js/modules/esnext.async-iterator.reduce.js index 01f3e444d..86ca9a58d 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.reduce.js +++ b/node_modules/core-js/modules/esnext.async-iterator.reduce.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); @@ -12,7 +11,9 @@ var closeAsyncIteration = require('../internals/async-iterator-close'); var Promise = getBuiltIn('Promise'); var $TypeError = TypeError; -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { +// `AsyncIterator.prototype.reduce` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { reduce: function reduce(reducer /* , initialValue */) { var record = getIteratorDirect(this); var iterator = record.iterator; diff --git a/node_modules/core-js/modules/esnext.async-iterator.some.js b/node_modules/core-js/modules/esnext.async-iterator.some.js index f0101fd0d..1c0097748 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.some.js +++ b/node_modules/core-js/modules/esnext.async-iterator.some.js @@ -1,10 +1,11 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var $some = require('../internals/async-iterator-iteration').some; -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { - some: function some(fn) { - return $some(this, fn); +// `AsyncIterator.prototype.some` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { + some: function some(predicate) { + return $some(this, predicate); } }); diff --git a/node_modules/core-js/modules/esnext.async-iterator.take.js b/node_modules/core-js/modules/esnext.async-iterator.take.js index 69acf9b38..c8a348527 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.take.js +++ b/node_modules/core-js/modules/esnext.async-iterator.take.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var anObject = require('../internals/an-object'); @@ -35,7 +34,9 @@ var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) { }); }); -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { +// `AsyncIterator.prototype.take` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { take: function take(limit) { return new AsyncIteratorProxy(getIteratorDirect(this), { remaining: toPositiveInteger(notANaN(+limit)) diff --git a/node_modules/core-js/modules/esnext.async-iterator.to-array.js b/node_modules/core-js/modules/esnext.async-iterator.to-array.js index 378510221..fb1349ea7 100644 --- a/node_modules/core-js/modules/esnext.async-iterator.to-array.js +++ b/node_modules/core-js/modules/esnext.async-iterator.to-array.js @@ -1,9 +1,10 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var $toArray = require('../internals/async-iterator-iteration').toArray; -$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, { +// `AsyncIterator.prototype.toArray` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'AsyncIterator', proto: true, real: true }, { toArray: function toArray() { return $toArray(this, undefined, []); } diff --git a/node_modules/core-js/modules/esnext.function.un-this.js b/node_modules/core-js/modules/esnext.function.un-this.js index 49e249115..bc09339f0 100644 --- a/node_modules/core-js/modules/esnext.function.un-this.js +++ b/node_modules/core-js/modules/esnext.function.un-this.js @@ -1,11 +1,11 @@ var $ = require('../internals/export'); -var uncurryThisRaw = require('../internals/function-uncurry-this-raw'); +var uncurryThis = require('../internals/function-uncurry-this'); var aCallable = require('../internals/a-callable'); // `Function.prototype.unThis` method // https://github.com/js-choi/proposal-function-un-this $({ target: 'Function', proto: true, forced: true }, { unThis: function unThis() { - return uncurryThisRaw(aCallable(this)); + return uncurryThis(aCallable(this)); } }); diff --git a/node_modules/core-js/modules/esnext.iterator.as-indexed-pairs.js b/node_modules/core-js/modules/esnext.iterator.as-indexed-pairs.js index 2e241af1a..86986da42 100644 --- a/node_modules/core-js/modules/esnext.iterator.as-indexed-pairs.js +++ b/node_modules/core-js/modules/esnext.iterator.as-indexed-pairs.js @@ -1,8 +1,9 @@ // TODO: Remove from `core-js@4` -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var indexed = require('../internals/iterator-indexed'); +// `Iterator.prototype.asIndexedPairs` method +// https://github.com/tc39/proposal-iterator-helpers $({ target: 'Iterator', name: 'indexed', proto: true, real: true, forced: true }, { asIndexedPairs: indexed }); diff --git a/node_modules/core-js/modules/esnext.iterator.constructor.js b/node_modules/core-js/modules/esnext.iterator.constructor.js index a676c496c..8c833b47d 100644 --- a/node_modules/core-js/modules/esnext.iterator.constructor.js +++ b/node_modules/core-js/modules/esnext.iterator.constructor.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var global = require('../internals/global'); var anInstance = require('../internals/an-instance'); @@ -36,6 +35,8 @@ if (FORCED || !hasOwn(IteratorPrototype, 'constructor') || IteratorPrototype.con IteratorConstructor.prototype = IteratorPrototype; +// `Iterator` constructor +// https://github.com/tc39/proposal-iterator-helpers $({ global: true, constructor: true, forced: FORCED }, { Iterator: IteratorConstructor }); diff --git a/node_modules/core-js/modules/esnext.iterator.drop.js b/node_modules/core-js/modules/esnext.iterator.drop.js index 8737e8137..5ec43dcab 100644 --- a/node_modules/core-js/modules/esnext.iterator.drop.js +++ b/node_modules/core-js/modules/esnext.iterator.drop.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var anObject = require('../internals/an-object'); @@ -23,7 +22,9 @@ var IteratorProxy = createIteratorProxy(function () { if (!done) return result.value; }); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { +// `Iterator.prototype.drop` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { drop: function drop(limit) { return new IteratorProxy(getIteratorDirect(this), { remaining: toPositiveInteger(notANaN(+limit)) diff --git a/node_modules/core-js/modules/esnext.iterator.every.js b/node_modules/core-js/modules/esnext.iterator.every.js index f7fbe35c5..b66ab3320 100644 --- a/node_modules/core-js/modules/esnext.iterator.every.js +++ b/node_modules/core-js/modules/esnext.iterator.every.js @@ -1,17 +1,18 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var iterate = require('../internals/iterate'); var aCallable = require('../internals/a-callable'); var getIteratorDirect = require('../internals/get-iterator-direct'); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { - every: function every(fn) { +// `Iterator.prototype.every` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + every: function every(predicate) { var record = getIteratorDirect(this); var counter = 0; - aCallable(fn); + aCallable(predicate); return !iterate(record, function (value, stop) { - if (!fn(value, counter++)) return stop(); + if (!predicate(value, counter++)) return stop(); }, { IS_RECORD: true, INTERRUPTED: true }).stopped; } }); diff --git a/node_modules/core-js/modules/esnext.iterator.filter.js b/node_modules/core-js/modules/esnext.iterator.filter.js index fb8081e95..8bf544f12 100644 --- a/node_modules/core-js/modules/esnext.iterator.filter.js +++ b/node_modules/core-js/modules/esnext.iterator.filter.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); @@ -10,7 +9,7 @@ var callWithSafeIterationClosing = require('../internals/call-with-safe-iteratio var IteratorProxy = createIteratorProxy(function () { var iterator = this.iterator; - var filterer = this.filterer; + var predicate = this.predicate; var next = this.next; var result, done, value; while (true) { @@ -18,14 +17,16 @@ var IteratorProxy = createIteratorProxy(function () { done = this.done = !!result.done; if (done) return; value = result.value; - if (callWithSafeIterationClosing(iterator, filterer, [value, this.counter++], true)) return value; + if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value; } }); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { - filter: function filter(filterer) { +// `Iterator.prototype.filter` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + filter: function filter(predicate) { return new IteratorProxy(getIteratorDirect(this), { - filterer: aCallable(filterer) + predicate: aCallable(predicate) }); } }); diff --git a/node_modules/core-js/modules/esnext.iterator.find.js b/node_modules/core-js/modules/esnext.iterator.find.js index 39a0e1308..92d3101d3 100644 --- a/node_modules/core-js/modules/esnext.iterator.find.js +++ b/node_modules/core-js/modules/esnext.iterator.find.js @@ -1,17 +1,18 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var iterate = require('../internals/iterate'); var aCallable = require('../internals/a-callable'); var getIteratorDirect = require('../internals/get-iterator-direct'); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { - find: function find(fn) { +// `Iterator.prototype.find` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + find: function find(predicate) { var record = getIteratorDirect(this); var counter = 0; - aCallable(fn); + aCallable(predicate); return iterate(record, function (value, stop) { - if (fn(value, counter++)) return stop(value); + if (predicate(value, counter++)) return stop(value); }, { IS_RECORD: true, INTERRUPTED: true }).result; } }); diff --git a/node_modules/core-js/modules/esnext.iterator.flat-map.js b/node_modules/core-js/modules/esnext.iterator.flat-map.js index b26562a0c..b0a722864 100644 --- a/node_modules/core-js/modules/esnext.iterator.flat-map.js +++ b/node_modules/core-js/modules/esnext.iterator.flat-map.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); @@ -31,7 +30,9 @@ var IteratorProxy = createIteratorProxy(function () { } }); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { +// `Iterator.prototype.flatMap` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { flatMap: function flatMap(mapper) { return new IteratorProxy(getIteratorDirect(this), { mapper: aCallable(mapper), diff --git a/node_modules/core-js/modules/esnext.iterator.for-each.js b/node_modules/core-js/modules/esnext.iterator.for-each.js index 107f778d4..105187eb4 100644 --- a/node_modules/core-js/modules/esnext.iterator.for-each.js +++ b/node_modules/core-js/modules/esnext.iterator.for-each.js @@ -1,11 +1,12 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var iterate = require('../internals/iterate'); var aCallable = require('../internals/a-callable'); var getIteratorDirect = require('../internals/get-iterator-direct'); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { +// `Iterator.prototype.forEach` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { forEach: function forEach(fn) { var record = getIteratorDirect(this); var counter = 0; diff --git a/node_modules/core-js/modules/esnext.iterator.from.js b/node_modules/core-js/modules/esnext.iterator.from.js index 185f14f0e..55daaf0ee 100644 --- a/node_modules/core-js/modules/esnext.iterator.from.js +++ b/node_modules/core-js/modules/esnext.iterator.from.js @@ -1,6 +1,6 @@ -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); +var toObject = require('../internals/to-object'); var isPrototypeOf = require('../internals/object-is-prototype-of'); var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype; var createIteratorProxy = require('../internals/iterator-create-proxy'); @@ -10,9 +10,11 @@ var IteratorProxy = createIteratorProxy(function () { return call(this.next, this.iterator); }, true); -$({ target: 'Iterator', stat: true, forced: true }, { +// `Iterator.from` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', stat: true }, { from: function from(O) { - var iteratorRecord = getIteratorFlattenable(O); + var iteratorRecord = getIteratorFlattenable(typeof O == 'string' ? toObject(O) : O); return isPrototypeOf(IteratorPrototype, iteratorRecord.iterator) ? iteratorRecord.iterator : new IteratorProxy(iteratorRecord); diff --git a/node_modules/core-js/modules/esnext.iterator.indexed.js b/node_modules/core-js/modules/esnext.iterator.indexed.js index ed3eb1664..8842ec9b6 100644 --- a/node_modules/core-js/modules/esnext.iterator.indexed.js +++ b/node_modules/core-js/modules/esnext.iterator.indexed.js @@ -1,8 +1,9 @@ // TODO: Remove from `core-js@4` -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var indexed = require('../internals/iterator-indexed'); +// `Iterator.prototype.indexed` method +// https://github.com/tc39/proposal-iterator-helpers $({ target: 'Iterator', proto: true, real: true, forced: true }, { indexed: indexed }); diff --git a/node_modules/core-js/modules/esnext.iterator.map.js b/node_modules/core-js/modules/esnext.iterator.map.js index fc6806122..3969d258b 100644 --- a/node_modules/core-js/modules/esnext.iterator.map.js +++ b/node_modules/core-js/modules/esnext.iterator.map.js @@ -1,24 +1,8 @@ -'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var getIteratorDirect = require('../internals/get-iterator-direct'); -var createIteratorProxy = require('../internals/iterator-create-proxy'); -var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing'); - -var IteratorProxy = createIteratorProxy(function () { - var iterator = this.iterator; - var result = anObject(call(this.next, iterator)); - var done = this.done = !!result.done; - if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true); -}); +var map = require('../internals/iterator-map'); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { - map: function map(mapper) { - return new IteratorProxy(getIteratorDirect(this), { - mapper: aCallable(mapper) - }); - } +// `Iterator.prototype.map` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + map: map }); diff --git a/node_modules/core-js/modules/esnext.iterator.reduce.js b/node_modules/core-js/modules/esnext.iterator.reduce.js index ca4587d56..7cd8faf30 100644 --- a/node_modules/core-js/modules/esnext.iterator.reduce.js +++ b/node_modules/core-js/modules/esnext.iterator.reduce.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var iterate = require('../internals/iterate'); var aCallable = require('../internals/a-callable'); @@ -7,7 +6,9 @@ var getIteratorDirect = require('../internals/get-iterator-direct'); var $TypeError = TypeError; -$({ target: 'Iterator', proto: true, real: true, forced: true }, { +// `Iterator.prototype.reduce` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { reduce: function reduce(reducer /* , initialValue */) { var record = getIteratorDirect(this); aCallable(reducer); diff --git a/node_modules/core-js/modules/esnext.iterator.some.js b/node_modules/core-js/modules/esnext.iterator.some.js index a679e2dba..848d8fec5 100644 --- a/node_modules/core-js/modules/esnext.iterator.some.js +++ b/node_modules/core-js/modules/esnext.iterator.some.js @@ -1,17 +1,18 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var iterate = require('../internals/iterate'); var aCallable = require('../internals/a-callable'); var getIteratorDirect = require('../internals/get-iterator-direct'); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { - some: function some(fn) { +// `Iterator.prototype.some` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { + some: function some(predicate) { var record = getIteratorDirect(this); var counter = 0; - aCallable(fn); + aCallable(predicate); return iterate(record, function (value, stop) { - if (fn(value, counter++)) return stop(); + if (predicate(value, counter++)) return stop(); }, { IS_RECORD: true, INTERRUPTED: true }).stopped; } }); diff --git a/node_modules/core-js/modules/esnext.iterator.take.js b/node_modules/core-js/modules/esnext.iterator.take.js index 05c5e46b5..313832ca5 100644 --- a/node_modules/core-js/modules/esnext.iterator.take.js +++ b/node_modules/core-js/modules/esnext.iterator.take.js @@ -1,5 +1,4 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var anObject = require('../internals/an-object'); @@ -20,7 +19,9 @@ var IteratorProxy = createIteratorProxy(function () { if (!done) return result.value; }); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { +// `Iterator.prototype.take` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { take: function take(limit) { return new IteratorProxy(getIteratorDirect(this), { remaining: toPositiveInteger(notANaN(+limit)) diff --git a/node_modules/core-js/modules/esnext.iterator.to-array.js b/node_modules/core-js/modules/esnext.iterator.to-array.js index a0ce06cb7..40f51ec36 100644 --- a/node_modules/core-js/modules/esnext.iterator.to-array.js +++ b/node_modules/core-js/modules/esnext.iterator.to-array.js @@ -1,12 +1,13 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var iterate = require('../internals/iterate'); var getIteratorDirect = require('../internals/get-iterator-direct'); var push = [].push; -$({ target: 'Iterator', proto: true, real: true, forced: true }, { +// `Iterator.prototype.toArray` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { toArray: function toArray() { var result = []; iterate(getIteratorDirect(this), push, { that: result, IS_RECORD: true }); diff --git a/node_modules/core-js/modules/esnext.iterator.to-async.js b/node_modules/core-js/modules/esnext.iterator.to-async.js index 55982c466..46e94f878 100644 --- a/node_modules/core-js/modules/esnext.iterator.to-async.js +++ b/node_modules/core-js/modules/esnext.iterator.to-async.js @@ -1,11 +1,12 @@ 'use strict'; -// https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator'); var WrapAsyncIterator = require('../internals/async-iterator-wrap'); var getIteratorDirect = require('../internals/get-iterator-direct'); -$({ target: 'Iterator', proto: true, real: true, forced: true }, { +// `Iterator.prototype.toAsync` method +// https://github.com/tc39/proposal-iterator-helpers +$({ target: 'Iterator', proto: true, real: true }, { toAsync: function toAsync() { return new WrapAsyncIterator(getIteratorDirect(new AsyncFromSyncIterator(getIteratorDirect(this)))); } diff --git a/node_modules/core-js/modules/esnext.map.delete-all.js b/node_modules/core-js/modules/esnext.map.delete-all.js index 2b56e7321..5a0d24255 100644 --- a/node_modules/core-js/modules/esnext.map.delete-all.js +++ b/node_modules/core-js/modules/esnext.map.delete-all.js @@ -1,9 +1,18 @@ 'use strict'; var $ = require('../internals/export'); -var deleteAll = require('../internals/collection-delete-all'); +var aMap = require('../internals/a-map'); +var remove = require('../internals/map-helpers').remove; // `Map.prototype.deleteAll` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { - deleteAll: deleteAll + deleteAll: function deleteAll(/* ...elements */) { + var collection = aMap(this); + var allDeleted = true; + var wasDeleted; + for (var k = 0, len = arguments.length; k < len; k++) { + wasDeleted = remove(collection, arguments[k]); + allDeleted = allDeleted && wasDeleted; + } return !!allDeleted; + } }); diff --git a/node_modules/core-js/modules/esnext.map.emplace.js b/node_modules/core-js/modules/esnext.map.emplace.js index 02a0ea864..24fe86ef8 100644 --- a/node_modules/core-js/modules/esnext.map.emplace.js +++ b/node_modules/core-js/modules/esnext.map.emplace.js @@ -1,9 +1,27 @@ 'use strict'; var $ = require('../internals/export'); -var emplace = require('../internals/map-emplace'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); + +var get = MapHelpers.get; +var has = MapHelpers.has; +var set = MapHelpers.set; // `Map.prototype.emplace` method -// https://github.com/thumbsupep/proposal-upsert +// https://github.com/tc39/proposal-upsert $({ target: 'Map', proto: true, real: true, forced: true }, { - emplace: emplace + emplace: function emplace(key, handler) { + var map = aMap(this); + var value, inserted; + if (has(map, key)) { + value = get(map, key); + if ('update' in handler) { + value = handler.update(value, key, map); + set(map, key, value); + } return value; + } + inserted = handler.insert(key, map); + set(map, key, inserted); + return inserted; + } }); diff --git a/node_modules/core-js/modules/esnext.map.every.js b/node_modules/core-js/modules/esnext.map.every.js index af1e2c5d8..85264c7bc 100644 --- a/node_modules/core-js/modules/esnext.map.every.js +++ b/node_modules/core-js/modules/esnext.map.every.js @@ -1,19 +1,17 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); // `Map.prototype.every` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { every: function every(callbackfn /* , thisArg */) { - var map = anObject(this); - var iterator = getMapIterator(map); + var map = aMap(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return !iterate(iterator, function (key, value, stop) { - if (!boundFunction(value, key, map)) return stop(); - }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped; + return iterate(map, function (value, key) { + if (!boundFunction(value, key, map)) return false; + }, true) !== false; } }); diff --git a/node_modules/core-js/modules/esnext.map.filter.js b/node_modules/core-js/modules/esnext.map.filter.js index f265e60a6..67ffe5c81 100644 --- a/node_modules/core-js/modules/esnext.map.filter.js +++ b/node_modules/core-js/modules/esnext.map.filter.js @@ -1,26 +1,23 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var speciesConstructor = require('../internals/species-constructor'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); +var iterate = require('../internals/map-iterate'); + +var Map = MapHelpers.Map; +var set = MapHelpers.set; // `Map.prototype.filter` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { filter: function filter(callbackfn /* , thisArg */) { - var map = anObject(this); - var iterator = getMapIterator(map); + var map = aMap(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - var newMap = new (speciesConstructor(map, getBuiltIn('Map')))(); - var setter = aCallable(newMap.set); - iterate(iterator, function (key, value) { - if (boundFunction(value, key, map)) call(setter, newMap, key, value); - }, { AS_ENTRIES: true, IS_ITERATOR: true }); + var newMap = new Map(); + iterate(map, function (value, key) { + if (boundFunction(value, key, map)) set(newMap, key, value); + }); return newMap; } }); diff --git a/node_modules/core-js/modules/esnext.map.find-key.js b/node_modules/core-js/modules/esnext.map.find-key.js index e6bda89ca..c3779a82b 100644 --- a/node_modules/core-js/modules/esnext.map.find-key.js +++ b/node_modules/core-js/modules/esnext.map.find-key.js @@ -1,19 +1,18 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); // `Map.prototype.findKey` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { findKey: function findKey(callbackfn /* , thisArg */) { - var map = anObject(this); - var iterator = getMapIterator(map); + var map = aMap(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return iterate(iterator, function (key, value, stop) { - if (boundFunction(value, key, map)) return stop(key); - }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result; + var result = iterate(map, function (value, key) { + if (boundFunction(value, key, map)) return { key: key }; + }, true); + return result && result.key; } }); diff --git a/node_modules/core-js/modules/esnext.map.find.js b/node_modules/core-js/modules/esnext.map.find.js index 6e3707ddb..ca1f0f9b8 100644 --- a/node_modules/core-js/modules/esnext.map.find.js +++ b/node_modules/core-js/modules/esnext.map.find.js @@ -1,19 +1,18 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); // `Map.prototype.find` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { find: function find(callbackfn /* , thisArg */) { - var map = anObject(this); - var iterator = getMapIterator(map); + var map = aMap(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return iterate(iterator, function (key, value, stop) { - if (boundFunction(value, key, map)) return stop(value); - }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result; + var result = iterate(map, function (value, key) { + if (boundFunction(value, key, map)) return { value: value }; + }, true); + return result && result.value; } }); diff --git a/node_modules/core-js/modules/esnext.map.group-by.js b/node_modules/core-js/modules/esnext.map.group-by.js index 7cf72765b..0a68f6d6a 100644 --- a/node_modules/core-js/modules/esnext.map.group-by.js +++ b/node_modules/core-js/modules/esnext.map.group-by.js @@ -2,9 +2,10 @@ var $ = require('../internals/export'); var call = require('../internals/function-call'); var uncurryThis = require('../internals/function-uncurry-this'); +var isCallable = require('../internals/is-callable'); var aCallable = require('../internals/a-callable'); -var getIterator = require('../internals/get-iterator'); var iterate = require('../internals/iterate'); +var Map = require('../internals/map-helpers').Map; var push = uncurryThis([].push); @@ -12,17 +13,17 @@ var push = uncurryThis([].push); // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', stat: true, forced: true }, { groupBy: function groupBy(iterable, keyDerivative) { + var C = isCallable(this) ? this : Map; + var newMap = new C(); aCallable(keyDerivative); - var iterator = getIterator(iterable); - var newMap = new this(); var has = aCallable(newMap.has); var get = aCallable(newMap.get); var set = aCallable(newMap.set); - iterate(iterator, function (element) { + iterate(iterable, function (element) { var derivedKey = keyDerivative(element); if (!call(has, newMap, derivedKey)) call(set, newMap, derivedKey, [element]); else push(call(get, newMap, derivedKey), element); - }, { IS_ITERATOR: true }); + }); return newMap; } }); diff --git a/node_modules/core-js/modules/esnext.map.includes.js b/node_modules/core-js/modules/esnext.map.includes.js index 5e1e8552a..14b51ab5e 100644 --- a/node_modules/core-js/modules/esnext.map.includes.js +++ b/node_modules/core-js/modules/esnext.map.includes.js @@ -1,16 +1,15 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); -var getMapIterator = require('../internals/get-map-iterator'); var sameValueZero = require('../internals/same-value-zero'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); // `Map.prototype.includes` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { includes: function includes(searchElement) { - return iterate(getMapIterator(anObject(this)), function (key, value, stop) { - if (sameValueZero(value, searchElement)) return stop(); - }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped; + return iterate(aMap(this), function (value) { + if (sameValueZero(value, searchElement)) return true; + }, true) === true; } }); diff --git a/node_modules/core-js/modules/esnext.map.key-by.js b/node_modules/core-js/modules/esnext.map.key-by.js index 03a377e69..67933b599 100644 --- a/node_modules/core-js/modules/esnext.map.key-by.js +++ b/node_modules/core-js/modules/esnext.map.key-by.js @@ -2,13 +2,16 @@ var $ = require('../internals/export'); var call = require('../internals/function-call'); var iterate = require('../internals/iterate'); +var isCallable = require('../internals/is-callable'); var aCallable = require('../internals/a-callable'); +var Map = require('../internals/map-helpers').Map; // `Map.keyBy` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', stat: true, forced: true }, { keyBy: function keyBy(iterable, keyDerivative) { - var newMap = new this(); + var C = isCallable(this) ? this : Map; + var newMap = new C(); aCallable(keyDerivative); var setter = aCallable(newMap.set); iterate(iterable, function (element) { diff --git a/node_modules/core-js/modules/esnext.map.key-of.js b/node_modules/core-js/modules/esnext.map.key-of.js index 061413e38..07d5d18e8 100644 --- a/node_modules/core-js/modules/esnext.map.key-of.js +++ b/node_modules/core-js/modules/esnext.map.key-of.js @@ -1,15 +1,15 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); // `Map.prototype.keyOf` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { keyOf: function keyOf(searchElement) { - return iterate(getMapIterator(anObject(this)), function (key, value, stop) { - if (value === searchElement) return stop(key); - }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result; + var result = iterate(aMap(this), function (value, key) { + if (value === searchElement) return { key: key }; + }, true); + return result && result.key; } }); diff --git a/node_modules/core-js/modules/esnext.map.map-keys.js b/node_modules/core-js/modules/esnext.map.map-keys.js index 79ed20d16..dcb1ea82a 100644 --- a/node_modules/core-js/modules/esnext.map.map-keys.js +++ b/node_modules/core-js/modules/esnext.map.map-keys.js @@ -1,26 +1,23 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var speciesConstructor = require('../internals/species-constructor'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); +var iterate = require('../internals/map-iterate'); + +var Map = MapHelpers.Map; +var set = MapHelpers.set; // `Map.prototype.mapKeys` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { mapKeys: function mapKeys(callbackfn /* , thisArg */) { - var map = anObject(this); - var iterator = getMapIterator(map); + var map = aMap(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - var newMap = new (speciesConstructor(map, getBuiltIn('Map')))(); - var setter = aCallable(newMap.set); - iterate(iterator, function (key, value) { - call(setter, newMap, boundFunction(value, key, map), value); - }, { AS_ENTRIES: true, IS_ITERATOR: true }); + var newMap = new Map(); + iterate(map, function (value, key) { + set(newMap, boundFunction(value, key, map), value); + }); return newMap; } }); diff --git a/node_modules/core-js/modules/esnext.map.map-values.js b/node_modules/core-js/modules/esnext.map.map-values.js index ca54c70a3..e10f42be1 100644 --- a/node_modules/core-js/modules/esnext.map.map-values.js +++ b/node_modules/core-js/modules/esnext.map.map-values.js @@ -1,26 +1,23 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var speciesConstructor = require('../internals/species-constructor'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); +var iterate = require('../internals/map-iterate'); + +var Map = MapHelpers.Map; +var set = MapHelpers.set; // `Map.prototype.mapValues` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { mapValues: function mapValues(callbackfn /* , thisArg */) { - var map = anObject(this); - var iterator = getMapIterator(map); + var map = aMap(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - var newMap = new (speciesConstructor(map, getBuiltIn('Map')))(); - var setter = aCallable(newMap.set); - iterate(iterator, function (key, value) { - call(setter, newMap, key, boundFunction(value, key, map)); - }, { AS_ENTRIES: true, IS_ITERATOR: true }); + var newMap = new Map(); + iterate(map, function (value, key) { + set(newMap, key, boundFunction(value, key, map)); + }); return newMap; } }); diff --git a/node_modules/core-js/modules/esnext.map.merge.js b/node_modules/core-js/modules/esnext.map.merge.js index e3c45df1e..d2174f800 100644 --- a/node_modules/core-js/modules/esnext.map.merge.js +++ b/node_modules/core-js/modules/esnext.map.merge.js @@ -1,20 +1,21 @@ 'use strict'; var $ = require('../internals/export'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); +var aMap = require('../internals/a-map'); var iterate = require('../internals/iterate'); +var set = require('../internals/map-helpers').set; // `Map.prototype.merge` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, arity: 1, forced: true }, { // eslint-disable-next-line no-unused-vars -- required for `.length` merge: function merge(iterable /* ...iterables */) { - var map = anObject(this); - var setter = aCallable(map.set); + var map = aMap(this); var argumentsLength = arguments.length; var i = 0; while (i < argumentsLength) { - iterate(arguments[i++], setter, { that: map, AS_ENTRIES: true }); + iterate(arguments[i++], function (key, value) { + set(map, key, value); + }, { AS_ENTRIES: true }); } return map; } diff --git a/node_modules/core-js/modules/esnext.map.reduce.js b/node_modules/core-js/modules/esnext.map.reduce.js index 597eedbb0..d6ab3b430 100644 --- a/node_modules/core-js/modules/esnext.map.reduce.js +++ b/node_modules/core-js/modules/esnext.map.reduce.js @@ -1,9 +1,8 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); var aCallable = require('../internals/a-callable'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); var $TypeError = TypeError; @@ -11,19 +10,18 @@ var $TypeError = TypeError; // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { reduce: function reduce(callbackfn /* , initialValue */) { - var map = anObject(this); - var iterator = getMapIterator(map); + var map = aMap(this); var noInitial = arguments.length < 2; var accumulator = noInitial ? undefined : arguments[1]; aCallable(callbackfn); - iterate(iterator, function (key, value) { + iterate(map, function (value, key) { if (noInitial) { noInitial = false; accumulator = value; } else { accumulator = callbackfn(accumulator, value, key, map); } - }, { AS_ENTRIES: true, IS_ITERATOR: true }); + }); if (noInitial) throw $TypeError('Reduce of empty map with no initial value'); return accumulator; } diff --git a/node_modules/core-js/modules/esnext.map.some.js b/node_modules/core-js/modules/esnext.map.some.js index cc3dcabc1..c3d6421fa 100644 --- a/node_modules/core-js/modules/esnext.map.some.js +++ b/node_modules/core-js/modules/esnext.map.some.js @@ -1,19 +1,17 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); -var getMapIterator = require('../internals/get-map-iterator'); -var iterate = require('../internals/iterate'); +var aMap = require('../internals/a-map'); +var iterate = require('../internals/map-iterate'); -// `Set.prototype.some` method +// `Map.prototype.some` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { some: function some(callbackfn /* , thisArg */) { - var map = anObject(this); - var iterator = getMapIterator(map); + var map = aMap(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return iterate(iterator, function (key, value, stop) { - if (boundFunction(value, key, map)) return stop(); - }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped; + return iterate(map, function (value, key) { + if (boundFunction(value, key, map)) return true; + }, true) === true; } }); diff --git a/node_modules/core-js/modules/esnext.map.update.js b/node_modules/core-js/modules/esnext.map.update.js index 143d096fd..b2ac2e815 100644 --- a/node_modules/core-js/modules/esnext.map.update.js +++ b/node_modules/core-js/modules/esnext.map.update.js @@ -1,27 +1,27 @@ 'use strict'; var $ = require('../internals/export'); -var call = require('../internals/function-call'); -var anObject = require('../internals/an-object'); var aCallable = require('../internals/a-callable'); +var aMap = require('../internals/a-map'); +var MapHelpers = require('../internals/map-helpers'); var $TypeError = TypeError; +var get = MapHelpers.get; +var has = MapHelpers.has; +var set = MapHelpers.set; -// `Set.prototype.update` method +// `Map.prototype.update` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Map', proto: true, real: true, forced: true }, { update: function update(key, callback /* , thunk */) { - var map = anObject(this); - var get = aCallable(map.get); - var has = aCallable(map.has); - var set = aCallable(map.set); + var map = aMap(this); var length = arguments.length; aCallable(callback); - var isPresentInMap = call(has, map, key); + var isPresentInMap = has(map, key); if (!isPresentInMap && length < 3) { throw $TypeError('Updating absent value'); } - var value = isPresentInMap ? call(get, map, key) : aCallable(length > 2 ? arguments[2] : undefined)(key, map); - call(set, map, key, callback(value, key, map)); + var value = isPresentInMap ? get(map, key) : aCallable(length > 2 ? arguments[2] : undefined)(key, map); + set(map, key, callback(value, key, map)); return map; } }); diff --git a/node_modules/core-js/modules/esnext.set.add-all.js b/node_modules/core-js/modules/esnext.set.add-all.js index 85431d80f..d168fbe45 100644 --- a/node_modules/core-js/modules/esnext.set.add-all.js +++ b/node_modules/core-js/modules/esnext.set.add-all.js @@ -1,9 +1,15 @@ 'use strict'; var $ = require('../internals/export'); -var addAll = require('../internals/collection-add-all'); +var aSet = require('../internals/a-set'); +var add = require('../internals/set-helpers').add; // `Set.prototype.addAll` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { - addAll: addAll + addAll: function addAll(/* ...elements */) { + var set = aSet(this); + for (var k = 0, len = arguments.length; k < len; k++) { + add(set, arguments[k]); + } return set; + } }); diff --git a/node_modules/core-js/modules/esnext.set.delete-all.js b/node_modules/core-js/modules/esnext.set.delete-all.js index 96176a3b6..cbba8743d 100644 --- a/node_modules/core-js/modules/esnext.set.delete-all.js +++ b/node_modules/core-js/modules/esnext.set.delete-all.js @@ -1,9 +1,18 @@ 'use strict'; var $ = require('../internals/export'); -var deleteAll = require('../internals/collection-delete-all'); +var aSet = require('../internals/a-set'); +var remove = require('../internals/set-helpers').remove; // `Set.prototype.deleteAll` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { - deleteAll: deleteAll + deleteAll: function deleteAll(/* ...elements */) { + var collection = aSet(this); + var allDeleted = true; + var wasDeleted; + for (var k = 0, len = arguments.length; k < len; k++) { + wasDeleted = remove(collection, arguments[k]); + allDeleted = allDeleted && wasDeleted; + } return !!allDeleted; + } }); diff --git a/node_modules/core-js/modules/esnext.set.difference.js b/node_modules/core-js/modules/esnext.set.difference.js index 9509035fb..d2a400883 100644 --- a/node_modules/core-js/modules/esnext.set.difference.js +++ b/node_modules/core-js/modules/esnext.set.difference.js @@ -1,22 +1,14 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var speciesConstructor = require('../internals/species-constructor'); -var iterate = require('../internals/iterate'); +var toSetLike = require('../internals/to-set-like'); +var $difference = require('../internals/set-difference'); // `Set.prototype.difference` method // https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` $({ target: 'Set', proto: true, real: true, forced: true }, { - difference: function difference(iterable) { - var set = anObject(this); - var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set); - var remover = aCallable(newSet['delete']); - iterate(iterable, function (value) { - call(remover, newSet, value); - }); - return newSet; + difference: function difference(other) { + return call($difference, this, toSetLike(other)); } }); diff --git a/node_modules/core-js/modules/esnext.set.every.js b/node_modules/core-js/modules/esnext.set.every.js index 2e972b131..999c6be4c 100644 --- a/node_modules/core-js/modules/esnext.set.every.js +++ b/node_modules/core-js/modules/esnext.set.every.js @@ -1,19 +1,17 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); -var getSetIterator = require('../internals/get-set-iterator'); -var iterate = require('../internals/iterate'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); // `Set.prototype.every` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { every: function every(callbackfn /* , thisArg */) { - var set = anObject(this); - var iterator = getSetIterator(set); + var set = aSet(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return !iterate(iterator, function (value, stop) { - if (!boundFunction(value, value, set)) return stop(); - }, { IS_ITERATOR: true, INTERRUPTED: true }).stopped; + return iterate(set, function (value) { + if (!boundFunction(value, value, set)) return false; + }, true) !== false; } }); diff --git a/node_modules/core-js/modules/esnext.set.filter.js b/node_modules/core-js/modules/esnext.set.filter.js index 4de458f11..84e1dac7b 100644 --- a/node_modules/core-js/modules/esnext.set.filter.js +++ b/node_modules/core-js/modules/esnext.set.filter.js @@ -1,26 +1,23 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); -var speciesConstructor = require('../internals/species-constructor'); -var getSetIterator = require('../internals/get-set-iterator'); -var iterate = require('../internals/iterate'); +var aSet = require('../internals/a-set'); +var SetHelpers = require('../internals/set-helpers'); +var iterate = require('../internals/set-iterate'); + +var Set = SetHelpers.Set; +var add = SetHelpers.add; // `Set.prototype.filter` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { filter: function filter(callbackfn /* , thisArg */) { - var set = anObject(this); - var iterator = getSetIterator(set); + var set = aSet(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(); - var adder = aCallable(newSet.add); - iterate(iterator, function (value) { - if (boundFunction(value, value, set)) call(adder, newSet, value); - }, { IS_ITERATOR: true }); + var newSet = new Set(); + iterate(set, function (value) { + if (boundFunction(value, value, set)) add(newSet, value); + }); return newSet; } }); diff --git a/node_modules/core-js/modules/esnext.set.find.js b/node_modules/core-js/modules/esnext.set.find.js index 207b322ea..ae18ca7c9 100644 --- a/node_modules/core-js/modules/esnext.set.find.js +++ b/node_modules/core-js/modules/esnext.set.find.js @@ -1,19 +1,18 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); -var getSetIterator = require('../internals/get-set-iterator'); -var iterate = require('../internals/iterate'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); // `Set.prototype.find` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { find: function find(callbackfn /* , thisArg */) { - var set = anObject(this); - var iterator = getSetIterator(set); + var set = aSet(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return iterate(iterator, function (value, stop) { - if (boundFunction(value, value, set)) return stop(value); - }, { IS_ITERATOR: true, INTERRUPTED: true }).result; + var result = iterate(set, function (value) { + if (boundFunction(value, value, set)) return { value: value }; + }, true); + return result && result.value; } }); diff --git a/node_modules/core-js/modules/esnext.set.intersection.js b/node_modules/core-js/modules/esnext.set.intersection.js index 9fecc8a18..fed2c4380 100644 --- a/node_modules/core-js/modules/esnext.set.intersection.js +++ b/node_modules/core-js/modules/esnext.set.intersection.js @@ -1,23 +1,14 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var speciesConstructor = require('../internals/species-constructor'); -var iterate = require('../internals/iterate'); +var toSetLike = require('../internals/to-set-like'); +var $intersection = require('../internals/set-intersection'); // `Set.prototype.intersection` method // https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` $({ target: 'Set', proto: true, real: true, forced: true }, { - intersection: function intersection(iterable) { - var set = anObject(this); - var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(); - var hasCheck = aCallable(set.has); - var adder = aCallable(newSet.add); - iterate(iterable, function (value) { - if (call(hasCheck, set, value)) call(adder, newSet, value); - }); - return newSet; + intersection: function intersection(other) { + return call($intersection, this, toSetLike(other)); } }); diff --git a/node_modules/core-js/modules/esnext.set.is-disjoint-from.js b/node_modules/core-js/modules/esnext.set.is-disjoint-from.js index 2dde2ab76..bec2b235e 100644 --- a/node_modules/core-js/modules/esnext.set.is-disjoint-from.js +++ b/node_modules/core-js/modules/esnext.set.is-disjoint-from.js @@ -1,18 +1,14 @@ 'use strict'; var $ = require('../internals/export'); var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var iterate = require('../internals/iterate'); +var toSetLike = require('../internals/to-set-like'); +var $isDisjointFrom = require('../internals/set-is-disjoint-from'); // `Set.prototype.isDisjointFrom` method -// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` $({ target: 'Set', proto: true, real: true, forced: true }, { - isDisjointFrom: function isDisjointFrom(iterable) { - var set = anObject(this); - var hasCheck = aCallable(set.has); - return !iterate(iterable, function (value, stop) { - if (call(hasCheck, set, value) === true) return stop(); - }, { INTERRUPTED: true }).stopped; + isDisjointFrom: function isDisjointFrom(other) { + return call($isDisjointFrom, this, toSetLike(other)); } }); diff --git a/node_modules/core-js/modules/esnext.set.is-subset-of.js b/node_modules/core-js/modules/esnext.set.is-subset-of.js index c1235250b..7b30e9350 100644 --- a/node_modules/core-js/modules/esnext.set.is-subset-of.js +++ b/node_modules/core-js/modules/esnext.set.is-subset-of.js @@ -1,26 +1,14 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var isCallable = require('../internals/is-callable'); -var anObject = require('../internals/an-object'); -var getIterator = require('../internals/get-iterator'); -var iterate = require('../internals/iterate'); +var toSetLike = require('../internals/to-set-like'); +var $isSubsetOf = require('../internals/set-is-subset-of'); // `Set.prototype.isSubsetOf` method -// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` $({ target: 'Set', proto: true, real: true, forced: true }, { - isSubsetOf: function isSubsetOf(iterable) { - var iterator = getIterator(this); - var otherSet = anObject(iterable); - var hasCheck = otherSet.has; - if (!isCallable(hasCheck)) { - otherSet = new (getBuiltIn('Set'))(iterable); - hasCheck = aCallable(otherSet.has); - } - return !iterate(iterator, function (value, stop) { - if (call(hasCheck, otherSet, value) === false) return stop(); - }, { IS_ITERATOR: true, INTERRUPTED: true }).stopped; + isSubsetOf: function isSubsetOf(other) { + return call($isSubsetOf, this, toSetLike(other)); } }); diff --git a/node_modules/core-js/modules/esnext.set.is-superset-of.js b/node_modules/core-js/modules/esnext.set.is-superset-of.js index 59b15bb17..432508534 100644 --- a/node_modules/core-js/modules/esnext.set.is-superset-of.js +++ b/node_modules/core-js/modules/esnext.set.is-superset-of.js @@ -1,18 +1,14 @@ 'use strict'; var $ = require('../internals/export'); var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var iterate = require('../internals/iterate'); +var toSetLike = require('../internals/to-set-like'); +var $isSupersetOf = require('../internals/set-is-superset-of'); // `Set.prototype.isSupersetOf` method -// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf +// https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` $({ target: 'Set', proto: true, real: true, forced: true }, { - isSupersetOf: function isSupersetOf(iterable) { - var set = anObject(this); - var hasCheck = aCallable(set.has); - return !iterate(iterable, function (value, stop) { - if (call(hasCheck, set, value) === false) return stop(); - }, { INTERRUPTED: true }).stopped; + isSupersetOf: function isSupersetOf(other) { + return call($isSupersetOf, this, toSetLike(other)); } }); diff --git a/node_modules/core-js/modules/esnext.set.join.js b/node_modules/core-js/modules/esnext.set.join.js index 53ff605f8..4f7a62aab 100644 --- a/node_modules/core-js/modules/esnext.set.join.js +++ b/node_modules/core-js/modules/esnext.set.join.js @@ -1,23 +1,23 @@ 'use strict'; var $ = require('../internals/export'); var uncurryThis = require('../internals/function-uncurry-this'); -var anObject = require('../internals/an-object'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); var toString = require('../internals/to-string'); -var getSetIterator = require('../internals/get-set-iterator'); -var iterate = require('../internals/iterate'); var arrayJoin = uncurryThis([].join); -var push = [].push; +var push = uncurryThis([].push); // `Set.prototype.join` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { join: function join(separator) { - var set = anObject(this); - var iterator = getSetIterator(set); + var set = aSet(this); var sep = separator === undefined ? ',' : toString(separator); - var result = []; - iterate(iterator, push, { that: result, IS_ITERATOR: true }); - return arrayJoin(result, sep); + var array = []; + iterate(set, function (value) { + push(array, value); + }); + return arrayJoin(array, sep); } }); diff --git a/node_modules/core-js/modules/esnext.set.map.js b/node_modules/core-js/modules/esnext.set.map.js index d23405af0..2eea3de7c 100644 --- a/node_modules/core-js/modules/esnext.set.map.js +++ b/node_modules/core-js/modules/esnext.set.map.js @@ -1,26 +1,23 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); var bind = require('../internals/function-bind-context'); -var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var speciesConstructor = require('../internals/species-constructor'); -var getSetIterator = require('../internals/get-set-iterator'); -var iterate = require('../internals/iterate'); +var aSet = require('../internals/a-set'); +var SetHelpers = require('../internals/set-helpers'); +var iterate = require('../internals/set-iterate'); + +var Set = SetHelpers.Set; +var add = SetHelpers.add; // `Set.prototype.map` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { map: function map(callbackfn /* , thisArg */) { - var set = anObject(this); - var iterator = getSetIterator(set); + var set = aSet(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(); - var adder = aCallable(newSet.add); - iterate(iterator, function (value) { - call(adder, newSet, boundFunction(value, value, set)); - }, { IS_ITERATOR: true }); + var newSet = new Set(); + iterate(set, function (value) { + add(newSet, boundFunction(value, value, set)); + }); return newSet; } }); diff --git a/node_modules/core-js/modules/esnext.set.reduce.js b/node_modules/core-js/modules/esnext.set.reduce.js index f716cf94c..77a95df49 100644 --- a/node_modules/core-js/modules/esnext.set.reduce.js +++ b/node_modules/core-js/modules/esnext.set.reduce.js @@ -1,9 +1,8 @@ 'use strict'; var $ = require('../internals/export'); var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var getSetIterator = require('../internals/get-set-iterator'); -var iterate = require('../internals/iterate'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); var $TypeError = TypeError; @@ -11,19 +10,18 @@ var $TypeError = TypeError; // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { reduce: function reduce(callbackfn /* , initialValue */) { - var set = anObject(this); - var iterator = getSetIterator(set); + var set = aSet(this); var noInitial = arguments.length < 2; var accumulator = noInitial ? undefined : arguments[1]; aCallable(callbackfn); - iterate(iterator, function (value) { + iterate(set, function (value) { if (noInitial) { noInitial = false; accumulator = value; } else { accumulator = callbackfn(accumulator, value, value, set); } - }, { IS_ITERATOR: true }); + }); if (noInitial) throw $TypeError('Reduce of empty set with no initial value'); return accumulator; } diff --git a/node_modules/core-js/modules/esnext.set.some.js b/node_modules/core-js/modules/esnext.set.some.js index 9d7d3da9c..ab86d1cff 100644 --- a/node_modules/core-js/modules/esnext.set.some.js +++ b/node_modules/core-js/modules/esnext.set.some.js @@ -1,19 +1,17 @@ 'use strict'; var $ = require('../internals/export'); -var anObject = require('../internals/an-object'); var bind = require('../internals/function-bind-context'); -var getSetIterator = require('../internals/get-set-iterator'); -var iterate = require('../internals/iterate'); +var aSet = require('../internals/a-set'); +var iterate = require('../internals/set-iterate'); // `Set.prototype.some` method // https://github.com/tc39/proposal-collection-methods $({ target: 'Set', proto: true, real: true, forced: true }, { some: function some(callbackfn /* , thisArg */) { - var set = anObject(this); - var iterator = getSetIterator(set); + var set = aSet(this); var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined); - return iterate(iterator, function (value, stop) { - if (boundFunction(value, value, set)) return stop(); - }, { IS_ITERATOR: true, INTERRUPTED: true }).stopped; + return iterate(set, function (value) { + if (boundFunction(value, value, set)) return true; + }, true) === true; } }); diff --git a/node_modules/core-js/modules/esnext.set.symmetric-difference.js b/node_modules/core-js/modules/esnext.set.symmetric-difference.js index 0c45a9b8b..fa697f02d 100644 --- a/node_modules/core-js/modules/esnext.set.symmetric-difference.js +++ b/node_modules/core-js/modules/esnext.set.symmetric-difference.js @@ -1,23 +1,14 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); var call = require('../internals/function-call'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var speciesConstructor = require('../internals/species-constructor'); -var iterate = require('../internals/iterate'); +var toSetLike = require('../internals/to-set-like'); +var $symmetricDifference = require('../internals/set-symmetric-difference'); // `Set.prototype.symmetricDifference` method // https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` $({ target: 'Set', proto: true, real: true, forced: true }, { - symmetricDifference: function symmetricDifference(iterable) { - var set = anObject(this); - var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set); - var remover = aCallable(newSet['delete']); - var adder = aCallable(newSet.add); - iterate(iterable, function (value) { - call(remover, newSet, value) || call(adder, newSet, value); - }); - return newSet; + symmetricDifference: function symmetricDifference(other) { + return call($symmetricDifference, this, toSetLike(other)); } }); diff --git a/node_modules/core-js/modules/esnext.set.union.js b/node_modules/core-js/modules/esnext.set.union.js index 49888e06b..0ff069625 100644 --- a/node_modules/core-js/modules/esnext.set.union.js +++ b/node_modules/core-js/modules/esnext.set.union.js @@ -1,18 +1,14 @@ 'use strict'; var $ = require('../internals/export'); -var getBuiltIn = require('../internals/get-built-in'); -var aCallable = require('../internals/a-callable'); -var anObject = require('../internals/an-object'); -var speciesConstructor = require('../internals/species-constructor'); -var iterate = require('../internals/iterate'); +var call = require('../internals/function-call'); +var toSetLike = require('../internals/to-set-like'); +var $union = require('../internals/set-union'); // `Set.prototype.union` method // https://github.com/tc39/proposal-set-methods +// TODO: Obsolete version, remove from `core-js@4` $({ target: 'Set', proto: true, real: true, forced: true }, { - union: function union(iterable) { - var set = anObject(this); - var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set); - iterate(iterable, aCallable(newSet.add), { that: newSet }); - return newSet; + union: function union(other) { + return call($union, this, toSetLike(other)); } }); diff --git a/node_modules/core-js/modules/esnext.string.cooked.js b/node_modules/core-js/modules/esnext.string.cooked.js index 3f6a37f09..0c27c8d3d 100644 --- a/node_modules/core-js/modules/esnext.string.cooked.js +++ b/node_modules/core-js/modules/esnext.string.cooked.js @@ -1,29 +1,8 @@ var $ = require('../internals/export'); -var uncurryThis = require('../internals/function-uncurry-this'); -var toIndexedObject = require('../internals/to-indexed-object'); -var toString = require('../internals/to-string'); -var lengthOfArrayLike = require('../internals/length-of-array-like'); - -var $TypeError = TypeError; -var ArrayPrototype = Array.prototype; -var push = uncurryThis(ArrayPrototype.push); -var join = uncurryThis(ArrayPrototype.join); +var cooked = require('../internals/string-cooked'); // `String.cooked` method // https://github.com/tc39/proposal-string-cooked $({ target: 'String', stat: true, forced: true }, { - cooked: function cooked(template /* , ...substitutions */) { - var cookedTemplate = toIndexedObject(template); - var literalSegments = lengthOfArrayLike(cookedTemplate); - var argumentsLength = arguments.length; - var elements = []; - var i = 0; - while (literalSegments > i) { - var nextVal = cookedTemplate[i++]; - if (nextVal === undefined) throw $TypeError('Incorrect template'); - push(elements, toString(nextVal)); - if (i === literalSegments) return join(elements, ''); - if (i < argumentsLength) push(elements, toString(arguments[i])); - } - } + cooked: cooked }); diff --git a/node_modules/core-js/modules/esnext.symbol.async-dispose.js b/node_modules/core-js/modules/esnext.symbol.async-dispose.js index c38839d28..d108d7631 100644 --- a/node_modules/core-js/modules/esnext.symbol.async-dispose.js +++ b/node_modules/core-js/modules/esnext.symbol.async-dispose.js @@ -1,5 +1,5 @@ var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); // `Symbol.asyncDispose` well-known symbol -// https://github.com/tc39/proposal-using-statement +// https://github.com/tc39/proposal-async-explicit-resource-management defineWellKnownSymbol('asyncDispose'); diff --git a/node_modules/core-js/modules/esnext.symbol.dispose.js b/node_modules/core-js/modules/esnext.symbol.dispose.js index 8ea9d8fb8..13ddbd1ea 100644 --- a/node_modules/core-js/modules/esnext.symbol.dispose.js +++ b/node_modules/core-js/modules/esnext.symbol.dispose.js @@ -1,5 +1,5 @@ var defineWellKnownSymbol = require('../internals/well-known-symbol-define'); // `Symbol.dispose` well-known symbol -// https://github.com/tc39/proposal-using-statement +// https://github.com/tc39/proposal-explicit-resource-management defineWellKnownSymbol('dispose'); diff --git a/node_modules/core-js/modules/esnext.typed-array.unique-by.js b/node_modules/core-js/modules/esnext.typed-array.unique-by.js index 60b9ca144..4a99e6d80 100644 --- a/node_modules/core-js/modules/esnext.typed-array.unique-by.js +++ b/node_modules/core-js/modules/esnext.typed-array.unique-by.js @@ -1,15 +1,17 @@ 'use strict'; var uncurryThis = require('../internals/function-uncurry-this'); var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); +var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list'); var $arrayUniqueBy = require('../internals/array-unique-by'); -var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list'); var aTypedArray = ArrayBufferViewCore.aTypedArray; +var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var arrayUniqueBy = uncurryThis($arrayUniqueBy); // `%TypedArray%.prototype.uniqueBy` method // https://github.com/tc39/proposal-array-unique exportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) { - return fromSpeciesAndList(this, arrayUniqueBy(aTypedArray(this), resolver)); + aTypedArray(this); + return arrayFromConstructorAndList(getTypedArrayConstructor(this), arrayUniqueBy(this, resolver)); }, true); diff --git a/node_modules/core-js/modules/esnext.weak-map.delete-all.js b/node_modules/core-js/modules/esnext.weak-map.delete-all.js index 700a7e513..7d83a4acf 100644 --- a/node_modules/core-js/modules/esnext.weak-map.delete-all.js +++ b/node_modules/core-js/modules/esnext.weak-map.delete-all.js @@ -1,9 +1,18 @@ 'use strict'; var $ = require('../internals/export'); -var deleteAll = require('../internals/collection-delete-all'); +var aWeakMap = require('../internals/a-weak-map'); +var remove = require('../internals/weak-map-helpers').remove; // `WeakMap.prototype.deleteAll` method // https://github.com/tc39/proposal-collection-methods $({ target: 'WeakMap', proto: true, real: true, forced: true }, { - deleteAll: deleteAll + deleteAll: function deleteAll(/* ...elements */) { + var collection = aWeakMap(this); + var allDeleted = true; + var wasDeleted; + for (var k = 0, len = arguments.length; k < len; k++) { + wasDeleted = remove(collection, arguments[k]); + allDeleted = allDeleted && wasDeleted; + } return !!allDeleted; + } }); diff --git a/node_modules/core-js/modules/esnext.weak-map.emplace.js b/node_modules/core-js/modules/esnext.weak-map.emplace.js index f24ab84da..9050c153a 100644 --- a/node_modules/core-js/modules/esnext.weak-map.emplace.js +++ b/node_modules/core-js/modules/esnext.weak-map.emplace.js @@ -1,9 +1,27 @@ 'use strict'; var $ = require('../internals/export'); -var emplace = require('../internals/map-emplace'); +var aWeakMap = require('../internals/a-weak-map'); +var WeakMapHelpers = require('../internals/weak-map-helpers'); + +var get = WeakMapHelpers.get; +var has = WeakMapHelpers.has; +var set = WeakMapHelpers.set; // `WeakMap.prototype.emplace` method // https://github.com/tc39/proposal-upsert $({ target: 'WeakMap', proto: true, real: true, forced: true }, { - emplace: emplace + emplace: function emplace(key, handler) { + var map = aWeakMap(this); + var value, inserted; + if (has(map, key)) { + value = get(map, key); + if ('update' in handler) { + value = handler.update(value, key, map); + set(map, key, value); + } return value; + } + inserted = handler.insert(key, map); + set(map, key, inserted); + return inserted; + } }); diff --git a/node_modules/core-js/modules/esnext.weak-set.add-all.js b/node_modules/core-js/modules/esnext.weak-set.add-all.js index 338763bb0..3880c7095 100644 --- a/node_modules/core-js/modules/esnext.weak-set.add-all.js +++ b/node_modules/core-js/modules/esnext.weak-set.add-all.js @@ -1,9 +1,15 @@ 'use strict'; var $ = require('../internals/export'); -var addAll = require('../internals/collection-add-all'); +var aWeakSet = require('../internals/a-weak-set'); +var add = require('../internals/weak-set-helpers').add; // `WeakSet.prototype.addAll` method // https://github.com/tc39/proposal-collection-methods $({ target: 'WeakSet', proto: true, real: true, forced: true }, { - addAll: addAll + addAll: function addAll(/* ...elements */) { + var set = aWeakSet(this); + for (var k = 0, len = arguments.length; k < len; k++) { + add(set, arguments[k]); + } return set; + } }); diff --git a/node_modules/core-js/modules/esnext.weak-set.delete-all.js b/node_modules/core-js/modules/esnext.weak-set.delete-all.js index 27d3db23a..a3913ac6e 100644 --- a/node_modules/core-js/modules/esnext.weak-set.delete-all.js +++ b/node_modules/core-js/modules/esnext.weak-set.delete-all.js @@ -1,9 +1,18 @@ 'use strict'; var $ = require('../internals/export'); -var deleteAll = require('../internals/collection-delete-all'); +var aWeakSet = require('../internals/a-weak-set'); +var remove = require('../internals/weak-set-helpers').remove; // `WeakSet.prototype.deleteAll` method // https://github.com/tc39/proposal-collection-methods $({ target: 'WeakSet', proto: true, real: true, forced: true }, { - deleteAll: deleteAll + deleteAll: function deleteAll(/* ...elements */) { + var collection = aWeakSet(this); + var allDeleted = true; + var wasDeleted; + for (var k = 0, len = arguments.length; k < len; k++) { + wasDeleted = remove(collection, arguments[k]); + allDeleted = allDeleted && wasDeleted; + } return !!allDeleted; + } }); diff --git a/node_modules/core-js/modules/web.atob.js b/node_modules/core-js/modules/web.atob.js index d9674712c..d5efd344d 100644 --- a/node_modules/core-js/modules/web.atob.js +++ b/node_modules/core-js/modules/web.atob.js @@ -1,6 +1,8 @@ var $ = require('../internals/export'); +var global = require('../internals/global'); var getBuiltIn = require('../internals/get-built-in'); var uncurryThis = require('../internals/function-uncurry-this'); +var call = require('../internals/function-call'); var fails = require('../internals/fails'); var toString = require('../internals/to-string'); var hasOwn = require('../internals/has-own-property'); @@ -33,10 +35,11 @@ var WRONG_ARITY = !NO_SPACES_IGNORE && !NO_ENCODING_CHECK && $atob.length !== 1; // `atob` method // https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob -$({ global: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK || WRONG_ARITY }, { +$({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK || WRONG_ARITY }, { atob: function atob(data) { validateArgumentsLength(arguments.length, 1); - if (NO_ARG_RECEIVING_CHECK || WRONG_ARITY) return $atob(data); + // `webpack` dev server bug on IE global methods - use call(fn, global, ...) + if (NO_ARG_RECEIVING_CHECK || WRONG_ARITY) return call($atob, global, data); var string = replace(toString(data), whitespaces, ''); var output = ''; var position = 0; diff --git a/node_modules/core-js/modules/web.btoa.js b/node_modules/core-js/modules/web.btoa.js index 25641398a..d8eebce8e 100644 --- a/node_modules/core-js/modules/web.btoa.js +++ b/node_modules/core-js/modules/web.btoa.js @@ -1,6 +1,8 @@ var $ = require('../internals/export'); +var global = require('../internals/global'); var getBuiltIn = require('../internals/get-built-in'); var uncurryThis = require('../internals/function-uncurry-this'); +var call = require('../internals/function-call'); var fails = require('../internals/fails'); var toString = require('../internals/to-string'); var validateArgumentsLength = require('../internals/validate-arguments-length'); @@ -22,10 +24,11 @@ var WRONG_ARITY = !!$btoa && $btoa.length !== 1; // `btoa` method // https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa -$({ global: true, enumerable: true, forced: NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, { +$({ global: true, bind: true, enumerable: true, forced: NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, { btoa: function btoa(data) { validateArgumentsLength(arguments.length, 1); - if (NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY) return $btoa(toString(data)); + // `webpack` dev server bug on IE global methods - use call(fn, global, ...) + if (NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY) return call($btoa, global, toString(data)); var string = toString(data); var output = ''; var position = 0; diff --git a/node_modules/core-js/modules/web.dom-exception.constructor.js b/node_modules/core-js/modules/web.dom-exception.constructor.js index 69536b743..e2c638d95 100644 --- a/node_modules/core-js/modules/web.dom-exception.constructor.js +++ b/node_modules/core-js/modules/web.dom-exception.constructor.js @@ -80,8 +80,11 @@ var getterFor = function (key) { }; if (DESCRIPTORS) { + // `DOMException.prototype.code` getter defineBuiltInAccessor(DOMExceptionPrototype, 'code', getterFor('code')); + // `DOMException.prototype.message` getter defineBuiltInAccessor(DOMExceptionPrototype, 'message', getterFor('message')); + // `DOMException.prototype.name` getter defineBuiltInAccessor(DOMExceptionPrototype, 'name', getterFor('name')); } @@ -128,6 +131,7 @@ if (INCORRECT_CODE && DESCRIPTORS && NativeDOMException === PolyfilledDOMExcepti })); } +// `DOMException` constants for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) { var constant = DOMExceptionConstants[key]; var constantName = constant.s; diff --git a/node_modules/core-js/modules/web.dom-exception.to-string-tag.js b/node_modules/core-js/modules/web.dom-exception.to-string-tag.js index fdb720c2a..40414aee0 100644 --- a/node_modules/core-js/modules/web.dom-exception.to-string-tag.js +++ b/node_modules/core-js/modules/web.dom-exception.to-string-tag.js @@ -3,4 +3,5 @@ var setToStringTag = require('../internals/set-to-string-tag'); var DOM_EXCEPTION = 'DOMException'; +// `DOMException.prototype[@@toStringTag]` property setToStringTag(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION); diff --git a/node_modules/core-js/modules/web.set-immediate.js b/node_modules/core-js/modules/web.set-immediate.js index 79e7441b1..ed8c4bade 100644 --- a/node_modules/core-js/modules/web.set-immediate.js +++ b/node_modules/core-js/modules/web.set-immediate.js @@ -1,6 +1,10 @@ var $ = require('../internals/export'); var global = require('../internals/global'); -var setImmediate = require('../internals/task').set; +var setTask = require('../internals/task').set; +var schedulersFix = require('../internals/schedulers-fix'); + +// https://github.com/oven-sh/bun/issues/1633 +var setImmediate = global.setImmediate ? schedulersFix(setTask, false) : setTask; // `setImmediate` method // http://w3c.github.io/setImmediate/#si-setImmediate diff --git a/node_modules/core-js/modules/web.set-interval.js b/node_modules/core-js/modules/web.set-interval.js index 68ba32c32..50391126c 100644 --- a/node_modules/core-js/modules/web.set-interval.js +++ b/node_modules/core-js/modules/web.set-interval.js @@ -1,8 +1,10 @@ var $ = require('../internals/export'); var global = require('../internals/global'); -var setInterval = require('../internals/schedulers-fix').setInterval; +var schedulersFix = require('../internals/schedulers-fix'); -// ie9- setInterval additional parameters fix +var setInterval = schedulersFix(global.setInterval, true); + +// Bun / IE9- setInterval additional parameters fix // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval $({ global: true, bind: true, forced: global.setInterval !== setInterval }, { setInterval: setInterval diff --git a/node_modules/core-js/modules/web.set-timeout.js b/node_modules/core-js/modules/web.set-timeout.js index 38cbceabd..728565e49 100644 --- a/node_modules/core-js/modules/web.set-timeout.js +++ b/node_modules/core-js/modules/web.set-timeout.js @@ -1,8 +1,10 @@ var $ = require('../internals/export'); var global = require('../internals/global'); -var setTimeout = require('../internals/schedulers-fix').setTimeout; +var schedulersFix = require('../internals/schedulers-fix'); -// ie9- setTimeout additional parameters fix +var setTimeout = schedulersFix(global.setTimeout, true); + +// Bun / IE9- setTimeout additional parameters fix // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout $({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, { setTimeout: setTimeout diff --git a/node_modules/core-js/modules/web.structured-clone.js b/node_modules/core-js/modules/web.structured-clone.js index dbe5be59c..75c598089 100644 --- a/node_modules/core-js/modules/web.structured-clone.js +++ b/node_modules/core-js/modules/web.structured-clone.js @@ -19,6 +19,8 @@ var createNonEnumerableProperty = require('../internals/create-non-enumerable-pr var lengthOfArrayLike = require('../internals/length-of-array-like'); var validateArgumentsLength = require('../internals/validate-arguments-length'); var getRegExpFlags = require('../internals/regexp-get-flags'); +var MapHelpers = require('../internals/map-helpers'); +var SetHelpers = require('../internals/set-helpers'); var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable'); var V8 = require('../internals/engine-v8-version'); var IS_BROWSER = require('../internals/engine-is-browser'); @@ -26,6 +28,7 @@ var IS_DENO = require('../internals/engine-is-deno'); var IS_NODE = require('../internals/engine-is-node'); var Object = global.Object; +var Array = global.Array; var Date = global.Date; var Error = global.Error; var EvalError = global.EvalError; @@ -40,13 +43,12 @@ var CompileError = WebAssembly && WebAssembly.CompileError || Error; var LinkError = WebAssembly && WebAssembly.LinkError || Error; var RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error; var DOMException = getBuiltin('DOMException'); -var Set = getBuiltin('Set'); -var Map = getBuiltin('Map'); -var MapPrototype = Map.prototype; -var mapHas = uncurryThis(MapPrototype.has); -var mapGet = uncurryThis(MapPrototype.get); -var mapSet = uncurryThis(MapPrototype.set); -var setAdd = uncurryThis(Set.prototype.add); +var Map = MapHelpers.Map; +var mapHas = MapHelpers.has; +var mapGet = MapHelpers.get; +var mapSet = MapHelpers.set; +var Set = SetHelpers.Set; +var setAdd = SetHelpers.add; var objectKeys = getBuiltin('Object', 'keys'); var push = uncurryThis([].push); var thisBooleanValue = uncurryThis(true.valueOf); @@ -152,7 +154,7 @@ var structuredCloneInternal = function (value, map) { switch (type) { case 'Array': - cloned = []; + cloned = Array(lengthOfArrayLike(value)); deep = true; break; case 'Object': diff --git a/node_modules/core-js/package.json b/node_modules/core-js/package.json index a5bce7f5e..424109f0e 100644 --- a/node_modules/core-js/package.json +++ b/node_modules/core-js/package.json @@ -1,6 +1,6 @@ { "name": "core-js", - "version": "3.26.0", + "version": "3.27.2", "description": "Standard library", "keywords": [ "ES3", diff --git a/node_modules/core-js/postinstall.js b/node_modules/core-js/postinstall.js index 50f71835e..599fec5ae 100644 --- a/node_modules/core-js/postinstall.js +++ b/node_modules/core-js/postinstall.js @@ -1,8 +1,8 @@ var fs = require('fs'); var os = require('os'); var path = require('path'); -var env = process.env; +var env = process.env; var ADBLOCK = is(env.ADBLOCK); var COLOR = is(env.npm_config_color); var DISABLE_OPENCOLLECTIVE = is(env.DISABLE_OPENCOLLECTIVE); diff --git a/node_modules/core-js/proposals/iterator-helpers.js b/node_modules/core-js/proposals/iterator-helpers.js index a08daf950..5b08192e4 100644 --- a/node_modules/core-js/proposals/iterator-helpers.js +++ b/node_modules/core-js/proposals/iterator-helpers.js @@ -1,34 +1,7 @@ -// https://github.com/tc39/proposal-iterator-helpers -require('../modules/esnext.async-iterator.constructor'); // TODO: remove from `core-js@4` +// https://github.com/tc39/proposal-iterator-helpers +require('./iterator-helpers-stage-3'); require('../modules/esnext.async-iterator.as-indexed-pairs'); -require('../modules/esnext.async-iterator.drop'); -require('../modules/esnext.async-iterator.every'); -require('../modules/esnext.async-iterator.filter'); -require('../modules/esnext.async-iterator.find'); -require('../modules/esnext.async-iterator.flat-map'); -require('../modules/esnext.async-iterator.for-each'); -require('../modules/esnext.async-iterator.from'); require('../modules/esnext.async-iterator.indexed'); -require('../modules/esnext.async-iterator.map'); -require('../modules/esnext.async-iterator.reduce'); -require('../modules/esnext.async-iterator.some'); -require('../modules/esnext.async-iterator.take'); -require('../modules/esnext.async-iterator.to-array'); -require('../modules/esnext.iterator.constructor'); -// TODO: remove from `core-js@4` require('../modules/esnext.iterator.as-indexed-pairs'); -require('../modules/esnext.iterator.drop'); -require('../modules/esnext.iterator.every'); -require('../modules/esnext.iterator.filter'); -require('../modules/esnext.iterator.find'); -require('../modules/esnext.iterator.flat-map'); -require('../modules/esnext.iterator.for-each'); -require('../modules/esnext.iterator.from'); require('../modules/esnext.iterator.indexed'); -require('../modules/esnext.iterator.map'); -require('../modules/esnext.iterator.reduce'); -require('../modules/esnext.iterator.some'); -require('../modules/esnext.iterator.take'); -require('../modules/esnext.iterator.to-array'); -require('../modules/esnext.iterator.to-async'); diff --git a/node_modules/core-js/proposals/set-methods.js b/node_modules/core-js/proposals/set-methods.js index e54fd30f8..888a30c8a 100644 --- a/node_modules/core-js/proposals/set-methods.js +++ b/node_modules/core-js/proposals/set-methods.js @@ -1,4 +1,12 @@ // https://github.com/tc39/proposal-set-methods +require('../modules/esnext.set.difference.v2'); +require('../modules/esnext.set.intersection.v2'); +require('../modules/esnext.set.is-disjoint-from.v2'); +require('../modules/esnext.set.is-subset-of.v2'); +require('../modules/esnext.set.is-superset-of.v2'); +require('../modules/esnext.set.union.v2'); +require('../modules/esnext.set.symmetric-difference.v2'); +// TODO: Obsolete versions, remove from `core-js@4` require('../modules/esnext.set.difference'); require('../modules/esnext.set.intersection'); require('../modules/esnext.set.is-disjoint-from'); diff --git a/node_modules/core-js/proposals/using-statement.js b/node_modules/core-js/proposals/using-statement.js index 2ac3df7fc..b236f1768 100644 --- a/node_modules/core-js/proposals/using-statement.js +++ b/node_modules/core-js/proposals/using-statement.js @@ -1,3 +1,4 @@ -// https://github.com/tc39/proposal-using-statement +// TODO: Renamed, remove from `core-js@4` +// https://github.com/tc39/proposal-explicit-resource-management require('../modules/esnext.symbol.async-dispose'); require('../modules/esnext.symbol.dispose'); diff --git a/node_modules/core-js/stage/2.js b/node_modules/core-js/stage/2.js index b96cfe7cf..df7c5217d 100644 --- a/node_modules/core-js/stage/2.js +++ b/node_modules/core-js/stage/2.js @@ -1,14 +1,15 @@ var parent = require('./3'); require('../proposals/array-is-template-object'); +require('../proposals/async-explicit-resource-management'); require('../proposals/decorator-metadata'); -require('../proposals/iterator-helpers'); require('../proposals/map-upsert-stage-2'); -require('../proposals/set-methods'); -require('../proposals/using-statement'); -require('../proposals/well-formed-unicode-strings'); +require('../proposals/string-dedent'); // TODO: Obsolete versions, remove from `core-js@4` require('../proposals/array-grouping'); require('../proposals/decorators'); +require('../proposals/iterator-helpers'); +require('../proposals/set-methods'); +require('../proposals/using-statement'); module.exports = parent; diff --git a/node_modules/core-js/stage/3.js b/node_modules/core-js/stage/3.js index 9097f2dbf..bd00ae57c 100644 --- a/node_modules/core-js/stage/3.js +++ b/node_modules/core-js/stage/3.js @@ -3,6 +3,10 @@ var parent = require('./4'); require('../proposals/array-from-async-stage-2'); require('../proposals/array-grouping-stage-3-2'); require('../proposals/change-array-by-copy'); +require('../proposals/explicit-resource-management'); +require('../proposals/iterator-helpers-stage-3'); +require('../proposals/set-methods-v2'); +require('../proposals/well-formed-unicode-strings'); // TODO: Obsolete versions, remove from `core-js@4` require('../proposals/array-grouping-stage-3');