@mobilabs/es6lib 1.1.2 → 1.2.0
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/LICENSE.md +1 -1
- package/_dist/LICENSE.md +1 -1
- package/_dist/lib/es6lib.js +4 -4
- package/_dist/lib/es6lib.min.js +3 -3
- package/_dist/lib/es6lib.min.mjs +3 -3
- package/_dist/lib/es6lib.mjs +4 -4
- package/package.json +7 -8
- package/tasks/_build.template.js +5 -5
- package/tasks/build.js.dev.js +5 -5
- package/tasks/build.js.prod.js +5 -5
- package/tasks/build.skeleton.prod.js +5 -5
- package/tasks/dep.private.js +5 -5
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (https://www.mobilabs.fr)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/_dist/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (https://www.mobilabs.fr)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/_dist/lib/es6lib.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v1.
|
|
2
|
+
* ES6lib v1.2.0
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr/).
|
|
7
7
|
* Released under the MIT license. You may obtain a copy of the License
|
|
8
8
|
* at: http://www.opensource.org/licenses/mit-license.php).
|
|
9
9
|
* Built from {{boiler:name}} v{{boiler:name:version}}.
|
|
@@ -312,14 +312,14 @@
|
|
|
312
312
|
const obj = Object.create(methods);
|
|
313
313
|
obj._library = {
|
|
314
314
|
name: 'ES6lib',
|
|
315
|
-
version: '1.
|
|
315
|
+
version: '1.2.0',
|
|
316
316
|
};
|
|
317
317
|
return obj;
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
// Attaches constants to ES6lib that provide name and version of the lib.
|
|
321
321
|
ES6lib.NAME = 'ES6lib';
|
|
322
|
-
ES6lib.VERSION = '1.
|
|
322
|
+
ES6lib.VERSION = '1.2.0';
|
|
323
323
|
|
|
324
324
|
|
|
325
325
|
// -- Private Static Methods -----------------------------------------------
|
package/_dist/lib/es6lib.min.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v1.
|
|
2
|
+
* ES6lib v1.2.0
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr/).
|
|
7
7
|
* Released under the MIT license. You may obtain a copy of the License
|
|
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,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"1.
|
|
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,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"1.2.0"},t},e.NAME="ES6lib",e.VERSION="1.2.0",e._setTestMode=function(){return[]},e.noConflict=function(){return t.ES6lib=r,this},o={whoami(){return this._library},getString:()=>n.getString(),getArray:()=>n.getArray()}}(),e}));
|
package/_dist/lib/es6lib.min.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v1.
|
|
2
|
+
* ES6lib v1.2.0
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr/).
|
|
7
7
|
* Released under the MIT license. You may obtain a copy of the License
|
|
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,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"1.
|
|
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,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"1.2.0"},t},e.NAME="ES6lib",e.VERSION="1.2.0",e._setTestMode=function(){return[]},e.noConflict=function(){return t.ES6lib=r,this},o={whoami(){return this._library},getString:()=>n.getString(),getArray:()=>n.getArray()}}(),e}));export default $__ES6GLOB.ES6lib;
|
package/_dist/lib/es6lib.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v1.
|
|
2
|
+
* ES6lib v1.2.0
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr/).
|
|
7
7
|
* Released under the MIT license. You may obtain a copy of the License
|
|
8
8
|
* at: http://www.opensource.org/licenses/mit-license.php).
|
|
9
9
|
* Built from {{boiler:name}} v{{boiler:name:version}}.
|
|
@@ -313,14 +313,14 @@ const $__ES6GLOB = {};
|
|
|
313
313
|
const obj = Object.create(methods);
|
|
314
314
|
obj._library = {
|
|
315
315
|
name: 'ES6lib',
|
|
316
|
-
version: '1.
|
|
316
|
+
version: '1.2.0',
|
|
317
317
|
};
|
|
318
318
|
return obj;
|
|
319
319
|
};
|
|
320
320
|
|
|
321
321
|
// Attaches constants to ES6lib that provide name and version of the lib.
|
|
322
322
|
ES6lib.NAME = 'ES6lib';
|
|
323
|
-
ES6lib.VERSION = '1.
|
|
323
|
+
ES6lib.VERSION = '1.2.0';
|
|
324
324
|
|
|
325
325
|
|
|
326
326
|
// -- Private Static Methods -----------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobilabs/es6lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A template for writing pure ES6 Javascript libraries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"minified": "_dist/lib/es6lib.min.js",
|
|
@@ -75,22 +75,21 @@
|
|
|
75
75
|
},
|
|
76
76
|
"homepage": "https://github.com/jclo/es6lib",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"nopt": "^7.
|
|
78
|
+
"nopt": "^7.2.0",
|
|
79
79
|
"shelljs": "^0.8.5"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"chai": "^4.
|
|
82
|
+
"chai": "^4.4.0",
|
|
83
83
|
"coveralls": "^3.1.1",
|
|
84
84
|
"cross-env": "^7.0.3",
|
|
85
|
-
"eslint": "^8.
|
|
85
|
+
"eslint": "^8.56.0",
|
|
86
86
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
87
|
-
"eslint-plugin-import": "^2.
|
|
88
|
-
"http-server": "^14.1.1",
|
|
87
|
+
"eslint-plugin-import": "^2.29.1",
|
|
89
88
|
"husky": "^8.0.3",
|
|
90
89
|
"mocha": "^10.2.0",
|
|
91
|
-
"nodemon": "^
|
|
90
|
+
"nodemon": "^3.0.2",
|
|
92
91
|
"nyc": "^15.1.0",
|
|
93
|
-
"terser": "^5.
|
|
92
|
+
"terser": "^5.26.0"
|
|
94
93
|
},
|
|
95
94
|
"publishConfig": {
|
|
96
95
|
"access": "public"
|
package/tasks/_build.template.js
CHANGED
|
@@ -39,16 +39,16 @@ const config = require('./config')
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
// -- Local Constants
|
|
42
|
-
const VERSION
|
|
43
|
-
, opts
|
|
42
|
+
const VERSION = '0.0.0-alpha.0'
|
|
43
|
+
, opts = {
|
|
44
44
|
help: [Boolean, false],
|
|
45
45
|
version: [String, null],
|
|
46
46
|
}
|
|
47
|
-
, shortOpts
|
|
47
|
+
, shortOpts = {
|
|
48
48
|
h: ['--help'],
|
|
49
49
|
v: ['--version', VERSION],
|
|
50
50
|
}
|
|
51
|
-
, parsed
|
|
51
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
52
52
|
, destination = config.libdir
|
|
53
53
|
;
|
|
54
54
|
|
|
@@ -199,7 +199,7 @@ function _delgeneric(done) {
|
|
|
199
199
|
* Executes the script.
|
|
200
200
|
*
|
|
201
201
|
* @function ()
|
|
202
|
-
* @
|
|
202
|
+
* @public
|
|
203
203
|
* @param {} -,
|
|
204
204
|
* @returns {} -,
|
|
205
205
|
* @since 0.0.0
|
package/tasks/build.js.dev.js
CHANGED
|
@@ -43,16 +43,16 @@ const pack = require('../package.json')
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
// -- Local Constants
|
|
46
|
-
const VERSION
|
|
47
|
-
, opts
|
|
46
|
+
const VERSION = '0.0.0-alpha.0'
|
|
47
|
+
, opts = {
|
|
48
48
|
help: [Boolean, false],
|
|
49
49
|
version: [String, null],
|
|
50
50
|
}
|
|
51
|
-
, shortOpts
|
|
51
|
+
, shortOpts = {
|
|
52
52
|
h: ['--help'],
|
|
53
53
|
v: ['--version', VERSION],
|
|
54
54
|
}
|
|
55
|
-
, parsed
|
|
55
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
56
56
|
, destination = config.libdir
|
|
57
57
|
, { ES6GLOB } = config
|
|
58
58
|
, source = config.src
|
|
@@ -247,7 +247,7 @@ function _delcore() {
|
|
|
247
247
|
* Executes the script.
|
|
248
248
|
*
|
|
249
249
|
* @function ()
|
|
250
|
-
* @
|
|
250
|
+
* @public
|
|
251
251
|
* @param {} -,
|
|
252
252
|
* @returns {} -,
|
|
253
253
|
* @since 0.0.0
|
package/tasks/build.js.prod.js
CHANGED
|
@@ -44,16 +44,16 @@ const config = require('./config')
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
// -- Local Constants
|
|
47
|
-
const VERSION
|
|
48
|
-
, opts
|
|
47
|
+
const VERSION = '0.0.0-alpha.0'
|
|
48
|
+
, opts = {
|
|
49
49
|
help: [Boolean, false],
|
|
50
50
|
version: [String, null],
|
|
51
51
|
}
|
|
52
|
-
, shortOpts
|
|
52
|
+
, shortOpts = {
|
|
53
53
|
h: ['--help'],
|
|
54
54
|
v: ['--version', VERSION],
|
|
55
55
|
}
|
|
56
|
-
, parsed
|
|
56
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
57
57
|
, { dist } = config
|
|
58
58
|
, { libdir } = config
|
|
59
59
|
, { name } = config
|
|
@@ -246,7 +246,7 @@ function _makeminifiedm(done) {
|
|
|
246
246
|
* Executes the script.
|
|
247
247
|
*
|
|
248
248
|
* @function ()
|
|
249
|
-
* @
|
|
249
|
+
* @public
|
|
250
250
|
* @param {} -,
|
|
251
251
|
* @returns {} -,
|
|
252
252
|
* @since 0.0.0
|
|
@@ -41,16 +41,16 @@ const config = require('./config')
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
// -- Local Constants
|
|
44
|
-
const VERSION
|
|
45
|
-
, opts
|
|
44
|
+
const VERSION = '0.0.0-alpha.0'
|
|
45
|
+
, opts = {
|
|
46
46
|
help: [Boolean, false],
|
|
47
47
|
version: [String, null],
|
|
48
48
|
}
|
|
49
|
-
, shortOpts
|
|
49
|
+
, shortOpts = {
|
|
50
50
|
h: ['--help'],
|
|
51
51
|
v: ['--version', VERSION],
|
|
52
52
|
}
|
|
53
|
-
, parsed
|
|
53
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
54
54
|
, { dist } = config
|
|
55
55
|
, { webfiles } = config
|
|
56
56
|
;
|
|
@@ -153,7 +153,7 @@ function _doskeleton(done) {
|
|
|
153
153
|
* Executes the script.
|
|
154
154
|
*
|
|
155
155
|
* @function ()
|
|
156
|
-
* @
|
|
156
|
+
* @public
|
|
157
157
|
* @param {} -,
|
|
158
158
|
* @returns {} -,
|
|
159
159
|
* @since 0.0.0
|
package/tasks/dep.private.js
CHANGED
|
@@ -42,16 +42,16 @@ const config = require('./config')
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
// -- Local Constants
|
|
45
|
-
const VERSION
|
|
46
|
-
, opts
|
|
45
|
+
const VERSION = '0.0.0-alpha.0'
|
|
46
|
+
, opts = {
|
|
47
47
|
help: [Boolean, false],
|
|
48
48
|
version: [String, null],
|
|
49
49
|
}
|
|
50
|
-
, shortOpts
|
|
50
|
+
, shortOpts = {
|
|
51
51
|
h: ['--help'],
|
|
52
52
|
v: ['--version', VERSION],
|
|
53
53
|
}
|
|
54
|
-
, parsed
|
|
54
|
+
, parsed = nopt(opts, shortOpts, process.argv, 2)
|
|
55
55
|
, tmppriv = './private_repo/tmp'
|
|
56
56
|
, { name } = config
|
|
57
57
|
, { index } = config
|
|
@@ -186,7 +186,7 @@ function _copypackagejson(done) {
|
|
|
186
186
|
* Executes the script.
|
|
187
187
|
*
|
|
188
188
|
* @function ()
|
|
189
|
-
* @
|
|
189
|
+
* @public
|
|
190
190
|
* @param {} -,
|
|
191
191
|
* @returns {} -,
|
|
192
192
|
* @since 0.0.0
|