aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/library
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
commit5f466137ad6ac596600e3ff53c9b786815398445 (patch)
treef914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/core-js/modules/library
parentc9f5ac8e763eda19aa0564179300cfff76785435 (diff)
node_modules, clean up package.json
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.js55
-rw-r--r--node_modules/core-js/modules/library/$.export.js46
-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.js1
-rw-r--r--node_modules/core-js/modules/library/$.set-species.js13
-rw-r--r--node_modules/core-js/modules/library/es6.regexp.constructor.js2
-rw-r--r--node_modules/core-js/modules/library/web.dom.iterable.js14
9 files changed, 13 insertions, 121 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 faf87af36..000000000
--- a/node_modules/core-js/modules/library/$.add-to-unscopables.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = function(){ /* empty */ }; \ No newline at end of file
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 9d234d135..000000000
--- a/node_modules/core-js/modules/library/$.collection.js
+++ /dev/null
@@ -1,55 +0,0 @@
-'use strict';
-var $ = require('./$')
- , global = require('./$.global')
- , $export = require('./$.export')
- , fails = require('./$.fails')
- , hide = require('./$.hide')
- , redefineAll = require('./$.redefine-all')
- , forOf = require('./$.for-of')
- , strictNew = require('./$.strict-new')
- , isObject = require('./$.is-object')
- , setToStringTag = require('./$.set-to-string-tag')
- , DESCRIPTORS = require('./$.descriptors');
-
-module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){
- var Base = global[NAME]
- , C = Base
- , ADDER = IS_MAP ? 'set' : 'add'
- , proto = C && C.prototype
- , 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);
- } else {
- C = wrapper(function(target, iterable){
- strictNew(target, C, NAME);
- target._c = new Base;
- if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);
- });
- $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.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){
- 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;
- });
- });
- if('size' in proto)$.setDesc(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;
-}; \ No newline at end of file
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 507b5a226..000000000
--- a/node_modules/core-js/modules/library/$.export.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var global = require('./$.global')
- , core = require('./$.core')
- , ctx = require('./$.ctx')
- , PROTOTYPE = 'prototype';
-
-var $export = function(type, name, source){
- var IS_FORCED = type & $export.F
- , IS_GLOBAL = type & $export.G
- , IS_STATIC = type & $export.S
- , IS_PROTO = type & $export.P
- , IS_BIND = type & $export.B
- , IS_WRAP = type & $export.W
- , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})
- , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]
- , key, own, out;
- if(IS_GLOBAL)source = name;
- for(key in source){
- // contains in native
- own = !IS_FORCED && target && key in target;
- if(own && key in exports)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(param){
- return this instanceof C ? new C(param) : C(param);
- };
- F[PROTOTYPE] = C[PROTOTYPE];
- return F;
- // make static versions for prototype methods
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[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
-module.exports = $export; \ No newline at end of file
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 73f737c59..000000000
--- a/node_modules/core-js/modules/library/$.library.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = true; \ No newline at end of file
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 27bb24b89..000000000
--- a/node_modules/core-js/modules/library/$.path.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./$.core'); \ No newline at end of file
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 57453fd17..000000000
--- a/node_modules/core-js/modules/library/$.redefine.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./$.hide'); \ No newline at end of file
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 f6720c36d..000000000
--- a/node_modules/core-js/modules/library/$.set-species.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-var core = require('./$.core')
- , $ = require('./$')
- , DESCRIPTORS = require('./$.descriptors')
- , SPECIES = require('./$.wks')('species');
-
-module.exports = function(KEY){
- var C = core[KEY];
- if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {
- configurable: true,
- get: function(){ return this; }
- });
-}; \ No newline at end of file
diff --git a/node_modules/core-js/modules/library/es6.regexp.constructor.js b/node_modules/core-js/modules/library/es6.regexp.constructor.js
index 087d9beb9..7313c52b3 100644
--- a/node_modules/core-js/modules/library/es6.regexp.constructor.js
+++ b/node_modules/core-js/modules/library/es6.regexp.constructor.js
@@ -1 +1 @@
-require('./$.set-species')('RegExp'); \ No newline at end of file
+require('./_set-species')('RegExp'); \ No newline at end of file
diff --git a/node_modules/core-js/modules/library/web.dom.iterable.js b/node_modules/core-js/modules/library/web.dom.iterable.js
index 988c6da20..e56371a9d 100644
--- a/node_modules/core-js/modules/library/web.dom.iterable.js
+++ b/node_modules/core-js/modules/library/web.dom.iterable.js
@@ -1,3 +1,13 @@
require('./es6.array.iterator');
-var Iterators = require('./$.iterators');
-Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array; \ No newline at end of file
+var global = require('./_global')
+ , hide = require('./_hide')
+ , Iterators = require('./_iterators')
+ , TO_STRING_TAG = require('./_wks')('toStringTag');
+
+for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){
+ var NAME = collections[i]
+ , Collection = global[NAME]
+ , proto = Collection && Collection.prototype;
+ if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);
+ Iterators[NAME] = Iterators.Array;
+} \ No newline at end of file