aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/library
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/library')
-rw-r--r--node_modules/core-js/modules/library/_add-to-unscopables.js1
-rw-r--r--node_modules/core-js/modules/library/_collection.js59
-rw-r--r--node_modules/core-js/modules/library/_export.js62
-rw-r--r--node_modules/core-js/modules/library/_library.js1
-rw-r--r--node_modules/core-js/modules/library/_path.js1
-rw-r--r--node_modules/core-js/modules/library/_redefine-all.js7
-rw-r--r--node_modules/core-js/modules/library/_redefine.js1
-rw-r--r--node_modules/core-js/modules/library/_set-species.js14
-rw-r--r--node_modules/core-js/modules/library/es6.date.to-json.js19
-rw-r--r--node_modules/core-js/modules/library/es6.date.to-primitive.js0
-rw-r--r--node_modules/core-js/modules/library/es6.date.to-string.js0
-rw-r--r--node_modules/core-js/modules/library/es6.function.name.js0
-rw-r--r--node_modules/core-js/modules/library/es6.number.constructor.js0
-rw-r--r--node_modules/core-js/modules/library/es6.object.to-string.js0
-rw-r--r--node_modules/core-js/modules/library/es6.regexp.constructor.js1
-rw-r--r--node_modules/core-js/modules/library/es6.regexp.flags.js0
-rw-r--r--node_modules/core-js/modules/library/es6.regexp.match.js0
-rw-r--r--node_modules/core-js/modules/library/es6.regexp.replace.js0
-rw-r--r--node_modules/core-js/modules/library/es6.regexp.search.js0
-rw-r--r--node_modules/core-js/modules/library/es6.regexp.split.js0
-rw-r--r--node_modules/core-js/modules/library/es6.regexp.to-string.js0
-rw-r--r--node_modules/core-js/modules/library/web.dom.iterable.js19
22 files changed, 0 insertions, 185 deletions
diff --git a/node_modules/core-js/modules/library/_add-to-unscopables.js b/node_modules/core-js/modules/library/_add-to-unscopables.js
deleted file mode 100644
index 02ef44ba4..000000000
--- a/node_modules/core-js/modules/library/_add-to-unscopables.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = function () { /* empty */ };
diff --git a/node_modules/core-js/modules/library/_collection.js b/node_modules/core-js/modules/library/_collection.js
deleted file mode 100644
index 31a36b87a..000000000
--- a/node_modules/core-js/modules/library/_collection.js
+++ /dev/null
@@ -1,59 +0,0 @@
-'use strict';
-var global = require('./_global');
-var $export = require('./_export');
-var meta = require('./_meta');
-var fails = require('./_fails');
-var hide = require('./_hide');
-var redefineAll = require('./_redefine-all');
-var forOf = require('./_for-of');
-var anInstance = require('./_an-instance');
-var isObject = require('./_is-object');
-var setToStringTag = require('./_set-to-string-tag');
-var dP = require('./_object-dp').f;
-var each = require('./_array-methods')(0);
-var DESCRIPTORS = require('./_descriptors');
-
-module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
- var Base = global[NAME];
- var C = Base;
- var ADDER = IS_MAP ? 'set' : 'add';
- var proto = C && C.prototype;
- var O = {};
- if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
- new C().entries().next();
- }))) {
- // create collection constructor
- C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
- redefineAll(C.prototype, methods);
- meta.NEED = true;
- } else {
- C = wrapper(function (target, iterable) {
- anInstance(target, C, NAME, '_c');
- target._c = new Base();
- if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
- });
- each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
- var IS_ADDER = KEY == 'add' || KEY == 'set';
- if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
- anInstance(this, C, KEY);
- if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
- var result = this._c[KEY](a === 0 ? 0 : a, b);
- return IS_ADDER ? this : result;
- });
- });
- IS_WEAK || dP(C.prototype, 'size', {
- get: function () {
- return this._c.size;
- }
- });
- }
-
- setToStringTag(C, NAME);
-
- O[NAME] = C;
- $export($export.G + $export.W + $export.F, O);
-
- if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
-
- return C;
-};
diff --git a/node_modules/core-js/modules/library/_export.js b/node_modules/core-js/modules/library/_export.js
deleted file mode 100644
index 02bddc0aa..000000000
--- a/node_modules/core-js/modules/library/_export.js
+++ /dev/null
@@ -1,62 +0,0 @@
-var global = require('./_global');
-var core = require('./_core');
-var ctx = require('./_ctx');
-var hide = require('./_hide');
-var has = require('./_has');
-var PROTOTYPE = 'prototype';
-
-var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var IS_WRAP = type & $export.W;
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE];
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
- var key, own, out;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- if (own && has(exports, key)) continue;
- // export native or passed
- out = own ? target[key] : source[key];
- // prevent global pollution for namespaces
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
- // bind timers to global for call from export context
- : IS_BIND && own ? ctx(out, global)
- // wrap global constructors for prevent change them in library
- : IS_WRAP && target[key] == out ? (function (C) {
- var F = function (a, b, c) {
- if (this instanceof C) {
- switch (arguments.length) {
- case 0: return new C();
- case 1: return new C(a);
- case 2: return new C(a, b);
- } return new C(a, b, c);
- } return C.apply(this, arguments);
- };
- F[PROTOTYPE] = C[PROTOTYPE];
- return F;
- // make static versions for prototype methods
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
- if (IS_PROTO) {
- (exports.virtual || (exports.virtual = {}))[key] = out;
- // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
- if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
- }
- }
-};
-// type bitmap
-$export.F = 1; // forced
-$export.G = 2; // global
-$export.S = 4; // static
-$export.P = 8; // proto
-$export.B = 16; // bind
-$export.W = 32; // wrap
-$export.U = 64; // safe
-$export.R = 128; // real proto method for `library`
-module.exports = $export;
diff --git a/node_modules/core-js/modules/library/_library.js b/node_modules/core-js/modules/library/_library.js
deleted file mode 100644
index ec01c2c14..000000000
--- a/node_modules/core-js/modules/library/_library.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = true;
diff --git a/node_modules/core-js/modules/library/_path.js b/node_modules/core-js/modules/library/_path.js
deleted file mode 100644
index 2796ebcb9..000000000
--- a/node_modules/core-js/modules/library/_path.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./_core');
diff --git a/node_modules/core-js/modules/library/_redefine-all.js b/node_modules/core-js/modules/library/_redefine-all.js
deleted file mode 100644
index bf8c0ea39..000000000
--- a/node_modules/core-js/modules/library/_redefine-all.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var hide = require('./_hide');
-module.exports = function (target, src, safe) {
- for (var key in src) {
- if (safe && target[key]) target[key] = src[key];
- else hide(target, key, src[key]);
- } return target;
-};
diff --git a/node_modules/core-js/modules/library/_redefine.js b/node_modules/core-js/modules/library/_redefine.js
deleted file mode 100644
index fde6108ef..000000000
--- a/node_modules/core-js/modules/library/_redefine.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./_hide');
diff --git a/node_modules/core-js/modules/library/_set-species.js b/node_modules/core-js/modules/library/_set-species.js
deleted file mode 100644
index 1f25fde1e..000000000
--- a/node_modules/core-js/modules/library/_set-species.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-var global = require('./_global');
-var core = require('./_core');
-var dP = require('./_object-dp');
-var DESCRIPTORS = require('./_descriptors');
-var SPECIES = require('./_wks')('species');
-
-module.exports = function (KEY) {
- var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
- if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
- configurable: true,
- get: function () { return this; }
- });
-};
diff --git a/node_modules/core-js/modules/library/es6.date.to-json.js b/node_modules/core-js/modules/library/es6.date.to-json.js
deleted file mode 100644
index 69b1f3018..000000000
--- a/node_modules/core-js/modules/library/es6.date.to-json.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-var $export = require('./_export');
-var toObject = require('./_to-object');
-var toPrimitive = require('./_to-primitive');
-var toISOString = require('./_date-to-iso-string');
-var classof = require('./_classof');
-
-$export($export.P + $export.F * require('./_fails')(function () {
- return new Date(NaN).toJSON() !== null
- || Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
-}), 'Date', {
- // eslint-disable-next-line no-unused-vars
- toJSON: function toJSON(key) {
- var O = toObject(this);
- var pv = toPrimitive(O);
- return typeof pv == 'number' && !isFinite(pv) ? null :
- (!('toISOString' in O) && classof(O) == 'Date') ? toISOString.call(O) : O.toISOString();
- }
-});
diff --git a/node_modules/core-js/modules/library/es6.date.to-primitive.js b/node_modules/core-js/modules/library/es6.date.to-primitive.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.date.to-primitive.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.date.to-string.js b/node_modules/core-js/modules/library/es6.date.to-string.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.date.to-string.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.function.name.js b/node_modules/core-js/modules/library/es6.function.name.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.function.name.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.number.constructor.js b/node_modules/core-js/modules/library/es6.number.constructor.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.number.constructor.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.object.to-string.js b/node_modules/core-js/modules/library/es6.object.to-string.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.object.to-string.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.regexp.constructor.js b/node_modules/core-js/modules/library/es6.regexp.constructor.js
deleted file mode 100644
index e85e3141a..000000000
--- a/node_modules/core-js/modules/library/es6.regexp.constructor.js
+++ /dev/null
@@ -1 +0,0 @@
-require('./_set-species')('RegExp');
diff --git a/node_modules/core-js/modules/library/es6.regexp.flags.js b/node_modules/core-js/modules/library/es6.regexp.flags.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.regexp.flags.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.regexp.match.js b/node_modules/core-js/modules/library/es6.regexp.match.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.regexp.match.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.regexp.replace.js b/node_modules/core-js/modules/library/es6.regexp.replace.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.regexp.replace.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.regexp.search.js b/node_modules/core-js/modules/library/es6.regexp.search.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.regexp.search.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.regexp.split.js b/node_modules/core-js/modules/library/es6.regexp.split.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.regexp.split.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/es6.regexp.to-string.js b/node_modules/core-js/modules/library/es6.regexp.to-string.js
deleted file mode 100644
index e69de29bb..000000000
--- a/node_modules/core-js/modules/library/es6.regexp.to-string.js
+++ /dev/null
diff --git a/node_modules/core-js/modules/library/web.dom.iterable.js b/node_modules/core-js/modules/library/web.dom.iterable.js
deleted file mode 100644
index fc00afac4..000000000
--- a/node_modules/core-js/modules/library/web.dom.iterable.js
+++ /dev/null
@@ -1,19 +0,0 @@
-require('./es6.array.iterator');
-var global = require('./_global');
-var hide = require('./_hide');
-var Iterators = require('./_iterators');
-var TO_STRING_TAG = require('./_wks')('toStringTag');
-
-var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
- 'TextTrackList,TouchList').split(',');
-
-for (var i = 0; i < DOMIterables.length; i++) {
- var NAME = DOMIterables[i];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = Iterators.Array;
-}