@mobilabs/es6lib 3.0.0-beta.1.2 → 3.0.0-beta.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_dist/lib/es6lib.js +17 -22
- package/_dist/lib/es6lib.min.js +2 -2
- package/_dist/lib/es6lib.min.mjs +2 -2
- package/_dist/lib/es6lib.mjs +17 -22
- package/package.json +1 -1
- package/scripts/config.js +1 -3
- package/src/_head.js +3 -4
- package/src/_header +0 -2
- package/src/basic.js +2 -5
- package/src/basicplus.js +2 -5
- package/src/functional-shared.js +7 -12
- package/src/functional.js +7 -10
- package/src/lib/extend.js +2 -5
- package/src/prototypal.js +7 -12
- package/src/pseudoclassical-auto.js +6 -9
- package/src/pseudoclassical.js +6 -9
- package/src/util/util.js +2 -4
package/_dist/lib/es6lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v3.0.0-beta.1.
|
|
2
|
+
* ES6lib v3.0.0-beta.1.3
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
@@ -22,11 +22,9 @@
|
|
|
22
22
|
// Node. Does not work with strict CommonJS, but
|
|
23
23
|
// only CommonJS-like environments that support module.exports,
|
|
24
24
|
// like Node.
|
|
25
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
26
25
|
module.exports = factory(root);
|
|
27
26
|
} else {
|
|
28
27
|
// Browser globals.
|
|
29
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
30
28
|
root.ES6lib = factory(root);
|
|
31
29
|
}
|
|
32
30
|
/* c8 ignore stop */
|
|
@@ -38,7 +36,8 @@
|
|
|
38
36
|
* level of this module and are accessible to all. So, they are considered
|
|
39
37
|
* as reserved words for this library.
|
|
40
38
|
* ************************************************************************ */
|
|
41
|
-
/*
|
|
39
|
+
/* - */
|
|
40
|
+
/* eslint-disable no-unused-vars */
|
|
42
41
|
|
|
43
42
|
let ES6lib
|
|
44
43
|
, extend
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
},
|
|
52
51
|
};
|
|
53
52
|
|
|
54
|
-
/* eslint-enable
|
|
53
|
+
/* eslint-enable no-unused-vars */
|
|
55
54
|
|
|
56
55
|
/** **************************************************************************
|
|
57
56
|
*
|
|
@@ -79,7 +78,7 @@
|
|
|
79
78
|
* @version -
|
|
80
79
|
* ************************************************************************ */
|
|
81
80
|
/* - */
|
|
82
|
-
/* - */
|
|
81
|
+
/* eslint-disable no-undef */
|
|
83
82
|
|
|
84
83
|
(function() {
|
|
85
84
|
// START OF IIFE
|
|
@@ -115,14 +114,13 @@
|
|
|
115
114
|
const keys = Object.keys(methods);
|
|
116
115
|
|
|
117
116
|
for (let i = 0; i < keys.length; i++) {
|
|
118
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
119
117
|
object[keys[i]] = methods[keys[i]];
|
|
120
118
|
}
|
|
121
119
|
};
|
|
122
120
|
|
|
123
121
|
// END OF IIFE
|
|
124
122
|
}());
|
|
125
|
-
/* - */
|
|
123
|
+
/* eslint-enable no-undef */
|
|
126
124
|
|
|
127
125
|
/** **************************************************************************
|
|
128
126
|
*
|
|
@@ -150,7 +148,7 @@
|
|
|
150
148
|
* @version -
|
|
151
149
|
* ************************************************************************ */
|
|
152
150
|
/* - */
|
|
153
|
-
/*
|
|
151
|
+
/* - */
|
|
154
152
|
|
|
155
153
|
(function() {
|
|
156
154
|
// START OF IIFE
|
|
@@ -231,7 +229,7 @@
|
|
|
231
229
|
|
|
232
230
|
// END OF IIFE
|
|
233
231
|
}());
|
|
234
|
-
/*
|
|
232
|
+
/* - */
|
|
235
233
|
|
|
236
234
|
/** **************************************************************************
|
|
237
235
|
*
|
|
@@ -272,7 +270,7 @@
|
|
|
272
270
|
* @version -
|
|
273
271
|
* ************************************************************************ */
|
|
274
272
|
/* - */
|
|
275
|
-
/* eslint-disable
|
|
273
|
+
/* eslint-disable no-undef */
|
|
276
274
|
|
|
277
275
|
(function() {
|
|
278
276
|
// START OF IIFE
|
|
@@ -286,15 +284,9 @@
|
|
|
286
284
|
|
|
287
285
|
|
|
288
286
|
// -- Local Constants
|
|
289
|
-
// Saves the previous value of the library variable, so that it can be
|
|
290
|
-
// restored later on, if noConflict is used.
|
|
291
|
-
const previousES6lib = root.ES6lib
|
|
292
|
-
;
|
|
293
287
|
|
|
294
288
|
|
|
295
289
|
// -- Local Variables
|
|
296
|
-
let methods
|
|
297
|
-
;
|
|
298
290
|
|
|
299
291
|
|
|
300
292
|
// -- Public ---------------------------------------------------------------
|
|
@@ -313,14 +305,18 @@
|
|
|
313
305
|
const obj = Object.create(methods);
|
|
314
306
|
obj._library = {
|
|
315
307
|
name: 'ES6lib',
|
|
316
|
-
version: '3.0.0-beta.1.
|
|
308
|
+
version: '3.0.0-beta.1.3',
|
|
317
309
|
};
|
|
318
310
|
return obj;
|
|
319
311
|
};
|
|
320
312
|
|
|
321
313
|
// Attaches constants to ES6lib that provide name and version of the lib.
|
|
322
314
|
ES6lib.NAME = 'ES6lib';
|
|
323
|
-
ES6lib.VERSION = '3.0.0-beta.1.
|
|
315
|
+
ES6lib.VERSION = '3.0.0-beta.1.3';
|
|
316
|
+
|
|
317
|
+
// Saves the previous value of the library variable, so that it can be
|
|
318
|
+
// restored later on, if noConflict is used.
|
|
319
|
+
const previousES6lib = root.ES6lib;
|
|
324
320
|
|
|
325
321
|
|
|
326
322
|
// -- Private Static Methods -----------------------------------------------
|
|
@@ -357,7 +353,6 @@
|
|
|
357
353
|
* @since 0.0.0
|
|
358
354
|
*/
|
|
359
355
|
ES6lib.noConflict = function() {
|
|
360
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
361
356
|
root.ES6lib = previousES6lib;
|
|
362
357
|
return this;
|
|
363
358
|
};
|
|
@@ -365,7 +360,7 @@
|
|
|
365
360
|
|
|
366
361
|
// -- Public Methods -------------------------------------------------------
|
|
367
362
|
|
|
368
|
-
methods = {
|
|
363
|
+
const methods = {
|
|
369
364
|
|
|
370
365
|
/**
|
|
371
366
|
* Returns the library name and version.
|
|
@@ -412,7 +407,7 @@
|
|
|
412
407
|
|
|
413
408
|
// END OF IIFE
|
|
414
409
|
}());
|
|
415
|
-
/* eslint-enable
|
|
410
|
+
/* eslint-enable no-undef */
|
|
416
411
|
|
|
417
412
|
// Returns the library name:
|
|
418
413
|
return ES6lib;
|
package/_dist/lib/es6lib.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v3.0.0-beta.1.
|
|
2
|
+
* ES6lib v3.0.0-beta.1.3
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* at: http://www.opensource.org/licenses/mit-license.php).
|
|
9
9
|
* Built from {{boiler:name}} v{{boiler:name:version}}.
|
|
10
10
|
* ************************************************************************** */
|
|
11
|
-
!function(t,e){"use strict";"function"==typeof define&&define.amd?define([""],e):"object"==typeof exports?module.exports=e(t):t.ES6lib=e(t)}(this,t=>{"use strict";let e,n;const i={Public:{}};return n=function(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]]},function(){const t=i.Public;n(t,{getString:()=>"I am a string!",getArray:()=>[1,2,3]})}(),function(){const n=i.Public
|
|
11
|
+
!function(t,e){"use strict";"function"==typeof define&&define.amd?define([""],e):"object"==typeof exports?module.exports=e(t):t.ES6lib=e(t)}(this,t=>{"use strict";let e,n;const i={Public:{}};return n=function(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]]},function(){const t=i.Public;n(t,{getString:()=>"I am a string!",getArray:()=>[1,2,3]})}(),function(){const n=i.Public;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"3.0.0-beta.1.3"},t},e.NAME="ES6lib",e.VERSION="3.0.0-beta.1.3";const r=t.ES6lib;e._setTestMode=function(){return[]},e.noConflict=function(){return t.ES6lib=r,this};const o={whoami(){return this._library},getString:()=>n.getString(),getArray:()=>n.getArray()}}(),e});
|
package/_dist/lib/es6lib.min.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v3.0.0-beta.1.
|
|
2
|
+
* ES6lib v3.0.0-beta.1.3
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* at: http://www.opensource.org/licenses/mit-license.php).
|
|
9
9
|
* Built from {{boiler:name}} v{{boiler:name:version}}.
|
|
10
10
|
* ************************************************************************** */
|
|
11
|
-
const $__ES6GLOB={};!function(t,e){"use strict";"function"==typeof define&&define.amd?define([""],e):"object"==typeof exports?module.exports=e(t):t.ES6lib=e(t)}($__ES6GLOB,t=>{"use strict";let e,n;const i={Public:{}};return n=function(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]]},function(){const t=i.Public;n(t,{getString:()=>"I am a string!",getArray:()=>[1,2,3]})}(),function(){const n=i.Public
|
|
11
|
+
const $__ES6GLOB={};!function(t,e){"use strict";"function"==typeof define&&define.amd?define([""],e):"object"==typeof exports?module.exports=e(t):t.ES6lib=e(t)}($__ES6GLOB,t=>{"use strict";let e,n;const i={Public:{}};return n=function(t,e){const n=Object.keys(e);for(let i=0;i<n.length;i++)t[n[i]]=e[n[i]]},function(){const t=i.Public;n(t,{getString:()=>"I am a string!",getArray:()=>[1,2,3]})}(),function(){const n=i.Public;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"3.0.0-beta.1.3"},t},e.NAME="ES6lib",e.VERSION="3.0.0-beta.1.3";const r=t.ES6lib;e._setTestMode=function(){return[]},e.noConflict=function(){return t.ES6lib=r,this};const o={whoami(){return this._library},getString:()=>n.getString(),getArray:()=>n.getArray()}}(),e});export default $__ES6GLOB.ES6lib;
|
package/_dist/lib/es6lib.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v3.0.0-beta.1.
|
|
2
|
+
* ES6lib v3.0.0-beta.1.3
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
@@ -23,11 +23,9 @@ const $__ES6GLOB = {};
|
|
|
23
23
|
// Node. Does not work with strict CommonJS, but
|
|
24
24
|
// only CommonJS-like environments that support module.exports,
|
|
25
25
|
// like Node.
|
|
26
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
27
26
|
module.exports = factory(root);
|
|
28
27
|
} else {
|
|
29
28
|
// Browser globals.
|
|
30
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
31
29
|
root.ES6lib = factory(root);
|
|
32
30
|
}
|
|
33
31
|
/* c8 ignore stop */
|
|
@@ -39,7 +37,8 @@ const $__ES6GLOB = {};
|
|
|
39
37
|
* level of this module and are accessible to all. So, they are considered
|
|
40
38
|
* as reserved words for this library.
|
|
41
39
|
* ************************************************************************ */
|
|
42
|
-
/*
|
|
40
|
+
/* - */
|
|
41
|
+
/* eslint-disable no-unused-vars */
|
|
43
42
|
|
|
44
43
|
let ES6lib
|
|
45
44
|
, extend
|
|
@@ -52,7 +51,7 @@ const $__ES6GLOB = {};
|
|
|
52
51
|
},
|
|
53
52
|
};
|
|
54
53
|
|
|
55
|
-
/* eslint-enable
|
|
54
|
+
/* eslint-enable no-unused-vars */
|
|
56
55
|
|
|
57
56
|
/** **************************************************************************
|
|
58
57
|
*
|
|
@@ -80,7 +79,7 @@ const $__ES6GLOB = {};
|
|
|
80
79
|
* @version -
|
|
81
80
|
* ************************************************************************ */
|
|
82
81
|
/* - */
|
|
83
|
-
/* - */
|
|
82
|
+
/* eslint-disable no-undef */
|
|
84
83
|
|
|
85
84
|
(function() {
|
|
86
85
|
// START OF IIFE
|
|
@@ -116,14 +115,13 @@ const $__ES6GLOB = {};
|
|
|
116
115
|
const keys = Object.keys(methods);
|
|
117
116
|
|
|
118
117
|
for (let i = 0; i < keys.length; i++) {
|
|
119
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
120
118
|
object[keys[i]] = methods[keys[i]];
|
|
121
119
|
}
|
|
122
120
|
};
|
|
123
121
|
|
|
124
122
|
// END OF IIFE
|
|
125
123
|
}());
|
|
126
|
-
/* - */
|
|
124
|
+
/* eslint-enable no-undef */
|
|
127
125
|
|
|
128
126
|
/** **************************************************************************
|
|
129
127
|
*
|
|
@@ -151,7 +149,7 @@ const $__ES6GLOB = {};
|
|
|
151
149
|
* @version -
|
|
152
150
|
* ************************************************************************ */
|
|
153
151
|
/* - */
|
|
154
|
-
/*
|
|
152
|
+
/* - */
|
|
155
153
|
|
|
156
154
|
(function() {
|
|
157
155
|
// START OF IIFE
|
|
@@ -232,7 +230,7 @@ const $__ES6GLOB = {};
|
|
|
232
230
|
|
|
233
231
|
// END OF IIFE
|
|
234
232
|
}());
|
|
235
|
-
/*
|
|
233
|
+
/* - */
|
|
236
234
|
|
|
237
235
|
/** **************************************************************************
|
|
238
236
|
*
|
|
@@ -273,7 +271,7 @@ const $__ES6GLOB = {};
|
|
|
273
271
|
* @version -
|
|
274
272
|
* ************************************************************************ */
|
|
275
273
|
/* - */
|
|
276
|
-
/* eslint-disable
|
|
274
|
+
/* eslint-disable no-undef */
|
|
277
275
|
|
|
278
276
|
(function() {
|
|
279
277
|
// START OF IIFE
|
|
@@ -287,15 +285,9 @@ const $__ES6GLOB = {};
|
|
|
287
285
|
|
|
288
286
|
|
|
289
287
|
// -- Local Constants
|
|
290
|
-
// Saves the previous value of the library variable, so that it can be
|
|
291
|
-
// restored later on, if noConflict is used.
|
|
292
|
-
const previousES6lib = root.ES6lib
|
|
293
|
-
;
|
|
294
288
|
|
|
295
289
|
|
|
296
290
|
// -- Local Variables
|
|
297
|
-
let methods
|
|
298
|
-
;
|
|
299
291
|
|
|
300
292
|
|
|
301
293
|
// -- Public ---------------------------------------------------------------
|
|
@@ -314,14 +306,18 @@ const $__ES6GLOB = {};
|
|
|
314
306
|
const obj = Object.create(methods);
|
|
315
307
|
obj._library = {
|
|
316
308
|
name: 'ES6lib',
|
|
317
|
-
version: '3.0.0-beta.1.
|
|
309
|
+
version: '3.0.0-beta.1.3',
|
|
318
310
|
};
|
|
319
311
|
return obj;
|
|
320
312
|
};
|
|
321
313
|
|
|
322
314
|
// Attaches constants to ES6lib that provide name and version of the lib.
|
|
323
315
|
ES6lib.NAME = 'ES6lib';
|
|
324
|
-
ES6lib.VERSION = '3.0.0-beta.1.
|
|
316
|
+
ES6lib.VERSION = '3.0.0-beta.1.3';
|
|
317
|
+
|
|
318
|
+
// Saves the previous value of the library variable, so that it can be
|
|
319
|
+
// restored later on, if noConflict is used.
|
|
320
|
+
const previousES6lib = root.ES6lib;
|
|
325
321
|
|
|
326
322
|
|
|
327
323
|
// -- Private Static Methods -----------------------------------------------
|
|
@@ -358,7 +354,6 @@ const $__ES6GLOB = {};
|
|
|
358
354
|
* @since 0.0.0
|
|
359
355
|
*/
|
|
360
356
|
ES6lib.noConflict = function() {
|
|
361
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
362
357
|
root.ES6lib = previousES6lib;
|
|
363
358
|
return this;
|
|
364
359
|
};
|
|
@@ -366,7 +361,7 @@ const $__ES6GLOB = {};
|
|
|
366
361
|
|
|
367
362
|
// -- Public Methods -------------------------------------------------------
|
|
368
363
|
|
|
369
|
-
methods = {
|
|
364
|
+
const methods = {
|
|
370
365
|
|
|
371
366
|
/**
|
|
372
367
|
* Returns the library name and version.
|
|
@@ -413,7 +408,7 @@ const $__ES6GLOB = {};
|
|
|
413
408
|
|
|
414
409
|
// END OF IIFE
|
|
415
410
|
}());
|
|
416
|
-
/* eslint-enable
|
|
411
|
+
/* eslint-enable no-undef */
|
|
417
412
|
|
|
418
413
|
// Returns the library name:
|
|
419
414
|
return ES6lib;
|
package/package.json
CHANGED
package/scripts/config.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @since 0.0.0
|
|
12
12
|
* @version -
|
|
13
13
|
* ********************************************************************** */
|
|
14
|
-
/*
|
|
14
|
+
/* - */
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
// -- Vendor Modules
|
|
@@ -46,7 +46,6 @@ export default {
|
|
|
46
46
|
// a core file and the footer file. The files 'basic.js', 'functional.js',
|
|
47
47
|
// 'functional-shared.js', 'prototypal.js', 'pseudoclassical.js' and
|
|
48
48
|
// 'pseudoclassical-auto.js' are mutually exclusives.
|
|
49
|
-
/* eslint-disable no-multi-spaces */
|
|
50
49
|
src: [
|
|
51
50
|
// These three files (_header, _head.js and extend.js) must be declared
|
|
52
51
|
// in this order as they create the umd module, define the global
|
|
@@ -68,7 +67,6 @@ export default {
|
|
|
68
67
|
// This file must always be the last one as it closes the umd module.
|
|
69
68
|
'./src/_footer',
|
|
70
69
|
],
|
|
71
|
-
/* eslint-enable no-multi-spaces */
|
|
72
70
|
|
|
73
71
|
webfiles: [
|
|
74
72
|
// These are the files to copy to the root path of the web app,
|
package/src/_head.js
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* level of this module and are accessible to all. So, they are considered
|
|
4
4
|
* as reserved words for this library.
|
|
5
5
|
* ************************************************************************ */
|
|
6
|
-
/*
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
6
|
+
/* global */
|
|
7
|
+
/* eslint-disable no-unused-vars */
|
|
9
8
|
|
|
10
9
|
let ES6lib
|
|
11
10
|
, extend
|
|
@@ -18,4 +17,4 @@ const Tree = {
|
|
|
18
17
|
},
|
|
19
18
|
};
|
|
20
19
|
|
|
21
|
-
/* eslint-enable
|
|
20
|
+
/* eslint-enable no-unused-vars */
|
package/src/_header
CHANGED
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
// Node. Does not work with strict CommonJS, but
|
|
14
14
|
// only CommonJS-like environments that support module.exports,
|
|
15
15
|
// like Node.
|
|
16
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
17
16
|
module.exports = factory(root);
|
|
18
17
|
} else {
|
|
19
18
|
// Browser globals.
|
|
20
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
21
19
|
root.ES6lib = factory(root);
|
|
22
20
|
}
|
|
23
21
|
/* c8 ignore stop */
|
package/src/basic.js
CHANGED
|
@@ -29,9 +29,7 @@
|
|
|
29
29
|
* @version -
|
|
30
30
|
* ************************************************************************ */
|
|
31
31
|
/* global Tree, root */
|
|
32
|
-
/* eslint-disable no-
|
|
33
|
-
|
|
34
|
-
'use strict';
|
|
32
|
+
/* eslint-disable no-undef */
|
|
35
33
|
|
|
36
34
|
(function() {
|
|
37
35
|
// START OF IIFE
|
|
@@ -96,7 +94,6 @@
|
|
|
96
94
|
* @since 0.0.0
|
|
97
95
|
*/
|
|
98
96
|
noConflict() {
|
|
99
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
100
97
|
root.ES6lib = previousES6lib;
|
|
101
98
|
return this;
|
|
102
99
|
},
|
|
@@ -150,4 +147,4 @@
|
|
|
150
147
|
|
|
151
148
|
// END OF IIFE
|
|
152
149
|
}());
|
|
153
|
-
/* eslint-enable no-
|
|
150
|
+
/* eslint-enable no-undef */
|
package/src/basicplus.js
CHANGED
|
@@ -31,9 +31,7 @@
|
|
|
31
31
|
* @version -
|
|
32
32
|
* ************************************************************************ */
|
|
33
33
|
/* global Tree, root, extend */
|
|
34
|
-
/* eslint-disable
|
|
35
|
-
|
|
36
|
-
'use strict';
|
|
34
|
+
/* eslint-disable no-undef */
|
|
37
35
|
|
|
38
36
|
(function() {
|
|
39
37
|
// START OF IIFE
|
|
@@ -98,7 +96,6 @@
|
|
|
98
96
|
* @since 0.0.0
|
|
99
97
|
*/
|
|
100
98
|
noConflict() {
|
|
101
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
102
99
|
root.ES6lib = previousES6lib;
|
|
103
100
|
return this;
|
|
104
101
|
},
|
|
@@ -157,4 +154,4 @@
|
|
|
157
154
|
|
|
158
155
|
// END OF IIFE
|
|
159
156
|
}());
|
|
160
|
-
/* eslint-enable
|
|
157
|
+
/* eslint-enable no-undef */
|
package/src/functional-shared.js
CHANGED
|
@@ -37,9 +37,7 @@
|
|
|
37
37
|
* @version -
|
|
38
38
|
* ************************************************************************ */
|
|
39
39
|
/* global Tree, root, extend */
|
|
40
|
-
/* eslint-disable
|
|
41
|
-
|
|
42
|
-
'use strict';
|
|
40
|
+
/* eslint-disable no-undef */
|
|
43
41
|
|
|
44
42
|
(function() {
|
|
45
43
|
// START OF IIFE
|
|
@@ -53,15 +51,9 @@
|
|
|
53
51
|
|
|
54
52
|
|
|
55
53
|
// -- Local Constants
|
|
56
|
-
// Saves the previous value of the library variable, so that it can be
|
|
57
|
-
// restored later on, if noConflict is used.
|
|
58
|
-
const previousES6lib = root.ES6lib
|
|
59
|
-
;
|
|
60
54
|
|
|
61
55
|
|
|
62
56
|
// -- Local Variables
|
|
63
|
-
let methods
|
|
64
|
-
;
|
|
65
57
|
|
|
66
58
|
|
|
67
59
|
// -- Public ---------------------------------------------------------------
|
|
@@ -90,6 +82,10 @@
|
|
|
90
82
|
ES6lib.NAME = '{{lib:name}}';
|
|
91
83
|
ES6lib.VERSION = '{{lib:version}}';
|
|
92
84
|
|
|
85
|
+
// Saves the previous value of the library variable, so that it can be
|
|
86
|
+
// restored later on, if noConflict is used.
|
|
87
|
+
const previousES6lib = root.ES6lib;
|
|
88
|
+
|
|
93
89
|
|
|
94
90
|
// -- Private Static Methods -----------------------------------------------
|
|
95
91
|
|
|
@@ -125,7 +121,6 @@
|
|
|
125
121
|
* @since 0.0.0
|
|
126
122
|
*/
|
|
127
123
|
ES6lib.noConflict = function() {
|
|
128
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
129
124
|
root.ES6lib = previousES6lib;
|
|
130
125
|
return this;
|
|
131
126
|
};
|
|
@@ -133,7 +128,7 @@
|
|
|
133
128
|
|
|
134
129
|
// -- Public Methods -------------------------------------------------------
|
|
135
130
|
|
|
136
|
-
methods = {
|
|
131
|
+
const methods = {
|
|
137
132
|
|
|
138
133
|
/**
|
|
139
134
|
* Returns the library name and version.
|
|
@@ -180,4 +175,4 @@
|
|
|
180
175
|
|
|
181
176
|
// END OF IIFE
|
|
182
177
|
}());
|
|
183
|
-
/* eslint-enable
|
|
178
|
+
/* eslint-enable no-undef */
|
package/src/functional.js
CHANGED
|
@@ -37,9 +37,7 @@
|
|
|
37
37
|
* @version -
|
|
38
38
|
* ************************************************************************ */
|
|
39
39
|
/* global Tree, root */
|
|
40
|
-
/* eslint-disable
|
|
41
|
-
|
|
42
|
-
'use strict';
|
|
40
|
+
/* eslint-disable no-undef */
|
|
43
41
|
|
|
44
42
|
(function() {
|
|
45
43
|
// START OF IIFE
|
|
@@ -53,11 +51,7 @@
|
|
|
53
51
|
|
|
54
52
|
|
|
55
53
|
// -- Local Constants
|
|
56
|
-
|
|
57
|
-
// restored later on, if noConflict is used.
|
|
58
|
-
const previousES6lib = root.ES6lib
|
|
59
|
-
, obj = {}
|
|
60
|
-
;
|
|
54
|
+
const obj = {};
|
|
61
55
|
|
|
62
56
|
|
|
63
57
|
// -- Local Variables
|
|
@@ -87,6 +81,10 @@
|
|
|
87
81
|
ES6lib.NAME = '{{lib:name}}';
|
|
88
82
|
ES6lib.VERSION = '{{lib:version}}';
|
|
89
83
|
|
|
84
|
+
// Saves the previous value of the library variable, so that it can be
|
|
85
|
+
// restored later on, if noConflict is used.
|
|
86
|
+
const previousES6lib = root.ES6lib;
|
|
87
|
+
|
|
90
88
|
|
|
91
89
|
// -- Private Static Methods -----------------------------------------------
|
|
92
90
|
|
|
@@ -122,7 +120,6 @@
|
|
|
122
120
|
* @since 0.0.0
|
|
123
121
|
*/
|
|
124
122
|
ES6lib.noConflict = function() {
|
|
125
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
126
123
|
root.ES6lib = previousES6lib;
|
|
127
124
|
return this;
|
|
128
125
|
};
|
|
@@ -174,4 +171,4 @@
|
|
|
174
171
|
|
|
175
172
|
// END OF IIFE
|
|
176
173
|
}());
|
|
177
|
-
/* eslint-enable
|
|
174
|
+
/* eslint-enable no-undef */
|
package/src/lib/extend.js
CHANGED
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
* @version -
|
|
25
25
|
* ************************************************************************ */
|
|
26
26
|
/* global */
|
|
27
|
-
/* - */
|
|
28
|
-
|
|
29
|
-
'use strict';
|
|
27
|
+
/* eslint-disable no-undef */
|
|
30
28
|
|
|
31
29
|
(function() {
|
|
32
30
|
// START OF IIFE
|
|
@@ -62,11 +60,10 @@
|
|
|
62
60
|
const keys = Object.keys(methods);
|
|
63
61
|
|
|
64
62
|
for (let i = 0; i < keys.length; i++) {
|
|
65
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
66
63
|
object[keys[i]] = methods[keys[i]];
|
|
67
64
|
}
|
|
68
65
|
};
|
|
69
66
|
|
|
70
67
|
// END OF IIFE
|
|
71
68
|
}());
|
|
72
|
-
/* - */
|
|
69
|
+
/* eslint-enable no-undef */
|
package/src/prototypal.js
CHANGED
|
@@ -37,9 +37,7 @@
|
|
|
37
37
|
* @version -
|
|
38
38
|
* ************************************************************************ */
|
|
39
39
|
/* global Tree, root */
|
|
40
|
-
/* eslint-disable
|
|
41
|
-
|
|
42
|
-
'use strict';
|
|
40
|
+
/* eslint-disable no-undef */
|
|
43
41
|
|
|
44
42
|
(function() {
|
|
45
43
|
// START OF IIFE
|
|
@@ -53,15 +51,9 @@
|
|
|
53
51
|
|
|
54
52
|
|
|
55
53
|
// -- Local Constants
|
|
56
|
-
// Saves the previous value of the library variable, so that it can be
|
|
57
|
-
// restored later on, if noConflict is used.
|
|
58
|
-
const previousES6lib = root.ES6lib
|
|
59
|
-
;
|
|
60
54
|
|
|
61
55
|
|
|
62
56
|
// -- Local Variables
|
|
63
|
-
let methods
|
|
64
|
-
;
|
|
65
57
|
|
|
66
58
|
|
|
67
59
|
// -- Public ---------------------------------------------------------------
|
|
@@ -89,6 +81,10 @@
|
|
|
89
81
|
ES6lib.NAME = '{{lib:name}}';
|
|
90
82
|
ES6lib.VERSION = '{{lib:version}}';
|
|
91
83
|
|
|
84
|
+
// Saves the previous value of the library variable, so that it can be
|
|
85
|
+
// restored later on, if noConflict is used.
|
|
86
|
+
const previousES6lib = root.ES6lib;
|
|
87
|
+
|
|
92
88
|
|
|
93
89
|
// -- Private Static Methods -----------------------------------------------
|
|
94
90
|
|
|
@@ -124,7 +120,6 @@
|
|
|
124
120
|
* @since 0.0.0
|
|
125
121
|
*/
|
|
126
122
|
ES6lib.noConflict = function() {
|
|
127
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
128
123
|
root.ES6lib = previousES6lib;
|
|
129
124
|
return this;
|
|
130
125
|
};
|
|
@@ -132,7 +127,7 @@
|
|
|
132
127
|
|
|
133
128
|
// -- Public Methods -------------------------------------------------------
|
|
134
129
|
|
|
135
|
-
methods = {
|
|
130
|
+
const methods = {
|
|
136
131
|
|
|
137
132
|
/**
|
|
138
133
|
* Returns the library name and version.
|
|
@@ -179,4 +174,4 @@
|
|
|
179
174
|
|
|
180
175
|
// END OF IIFE
|
|
181
176
|
}());
|
|
182
|
-
/* eslint-enable
|
|
177
|
+
/* eslint-enable no-undef */
|
|
@@ -38,9 +38,7 @@
|
|
|
38
38
|
* @version -
|
|
39
39
|
* ************************************************************************ */
|
|
40
40
|
/* global Tree, root */
|
|
41
|
-
/* eslint-disable
|
|
42
|
-
|
|
43
|
-
'use strict';
|
|
41
|
+
/* eslint-disable no-undef */
|
|
44
42
|
|
|
45
43
|
(function() {
|
|
46
44
|
// START OF IIFE
|
|
@@ -54,10 +52,6 @@
|
|
|
54
52
|
|
|
55
53
|
|
|
56
54
|
// -- Local Constants
|
|
57
|
-
// Saves the previous value of the library variable, so that it can be
|
|
58
|
-
// restored later on, if noConflict is used.
|
|
59
|
-
const previousES6lib = root.ES6lib
|
|
60
|
-
;
|
|
61
55
|
|
|
62
56
|
|
|
63
57
|
// -- Local Variables
|
|
@@ -91,6 +85,10 @@
|
|
|
91
85
|
ES6lib.NAME = '{{lib:name}}';
|
|
92
86
|
ES6lib.VERSION = '{{lib:version}}';
|
|
93
87
|
|
|
88
|
+
// Saves the previous value of the library variable, so that it can be
|
|
89
|
+
// restored later on, if noConflict is used.
|
|
90
|
+
const previousES6lib = root.ES6lib;
|
|
91
|
+
|
|
94
92
|
|
|
95
93
|
// -- Private Static Methods -----------------------------------------------
|
|
96
94
|
|
|
@@ -126,7 +124,6 @@
|
|
|
126
124
|
* @since 0.0.0
|
|
127
125
|
*/
|
|
128
126
|
ES6lib.noConflict = function() {
|
|
129
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
130
127
|
root.ES6lib = previousES6lib;
|
|
131
128
|
return this;
|
|
132
129
|
};
|
|
@@ -181,4 +178,4 @@
|
|
|
181
178
|
|
|
182
179
|
// END OF IIFE
|
|
183
180
|
}());
|
|
184
|
-
/* eslint-enable
|
|
181
|
+
/* eslint-enable no-undef */
|
package/src/pseudoclassical.js
CHANGED
|
@@ -37,9 +37,7 @@
|
|
|
37
37
|
* @version -
|
|
38
38
|
* ************************************************************************ */
|
|
39
39
|
/* global Tree, root */
|
|
40
|
-
/* eslint-disable
|
|
41
|
-
|
|
42
|
-
'use strict';
|
|
40
|
+
/* eslint-disable no-undef */
|
|
43
41
|
|
|
44
42
|
(function() {
|
|
45
43
|
// START OF IIFE
|
|
@@ -53,10 +51,6 @@
|
|
|
53
51
|
|
|
54
52
|
|
|
55
53
|
// -- Local Constants
|
|
56
|
-
// Saves the previous value of the library variable, so that it can be
|
|
57
|
-
// restored later on, if noConflict is used.
|
|
58
|
-
const previousES6lib = root.ES6lib
|
|
59
|
-
;
|
|
60
54
|
|
|
61
55
|
|
|
62
56
|
// -- Local Variables
|
|
@@ -88,6 +82,10 @@
|
|
|
88
82
|
ES6lib.NAME = '{{lib:name}}';
|
|
89
83
|
ES6lib.VERSION = '{{lib:version}}';
|
|
90
84
|
|
|
85
|
+
// Saves the previous value of the library variable, so that it can be
|
|
86
|
+
// restored later on, if noConflict is used.
|
|
87
|
+
const previousES6lib = root.ES6lib;
|
|
88
|
+
|
|
91
89
|
|
|
92
90
|
// -- Private Static Methods -----------------------------------------------
|
|
93
91
|
|
|
@@ -123,7 +121,6 @@
|
|
|
123
121
|
* @since 0.0.0
|
|
124
122
|
*/
|
|
125
123
|
ES6lib.noConflict = function() {
|
|
126
|
-
/* eslint-disable-next-line no-param-reassign */
|
|
127
124
|
root.ES6lib = previousES6lib;
|
|
128
125
|
return this;
|
|
129
126
|
};
|
|
@@ -178,4 +175,4 @@
|
|
|
178
175
|
|
|
179
176
|
// END OF IIFE
|
|
180
177
|
}());
|
|
181
|
-
/* eslint-enable
|
|
178
|
+
/* eslint-enable no-undef */
|
package/src/util/util.js
CHANGED
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
* @version -
|
|
25
25
|
* ************************************************************************ */
|
|
26
26
|
/* global Tree, extend */
|
|
27
|
-
/*
|
|
28
|
-
|
|
29
|
-
'use strict';
|
|
27
|
+
/* - */
|
|
30
28
|
|
|
31
29
|
(function() {
|
|
32
30
|
// START OF IIFE
|
|
@@ -107,4 +105,4 @@
|
|
|
107
105
|
|
|
108
106
|
// END OF IIFE
|
|
109
107
|
}());
|
|
110
|
-
/*
|
|
108
|
+
/* - */
|