@mobilabs/es6lib 2.2.0 → 2.2.1
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 +3 -3
- package/_dist/lib/es6lib.min.js +2 -2
- package/_dist/lib/es6lib.min.mjs +2 -2
- package/_dist/lib/es6lib.mjs +3 -3
- package/package.json +10 -10
- package/test/index.html +6 -18
package/_dist/lib/es6lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v2.2.
|
|
2
|
+
* ES6lib v2.2.1
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
@@ -313,14 +313,14 @@
|
|
|
313
313
|
const obj = Object.create(methods);
|
|
314
314
|
obj._library = {
|
|
315
315
|
name: 'ES6lib',
|
|
316
|
-
version: '2.2.
|
|
316
|
+
version: '2.2.1',
|
|
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 = '2.2.
|
|
323
|
+
ES6lib.VERSION = '2.2.1';
|
|
324
324
|
|
|
325
325
|
|
|
326
326
|
// -- Private Static Methods -----------------------------------------------
|
package/_dist/lib/es6lib.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v2.2.
|
|
2
|
+
* ES6lib v2.2.1
|
|
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,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"2.2.
|
|
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:"2.2.1"},t},e.NAME="ES6lib",e.VERSION="2.2.1",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,5 +1,5 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v2.2.
|
|
2
|
+
* ES6lib v2.2.1
|
|
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,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"2.2.
|
|
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:"2.2.1"},t},e.NAME="ES6lib",e.VERSION="2.2.1",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,5 +1,5 @@
|
|
|
1
1
|
/*! ****************************************************************************
|
|
2
|
-
* ES6lib v2.2.
|
|
2
|
+
* ES6lib v2.2.1
|
|
3
3
|
*
|
|
4
4
|
* A template for writing pure ES6 Javascript libraries.
|
|
5
5
|
* (you can download it from npm or github repositories)
|
|
@@ -314,14 +314,14 @@ const $__ES6GLOB = {};
|
|
|
314
314
|
const obj = Object.create(methods);
|
|
315
315
|
obj._library = {
|
|
316
316
|
name: 'ES6lib',
|
|
317
|
-
version: '2.2.
|
|
317
|
+
version: '2.2.1',
|
|
318
318
|
};
|
|
319
319
|
return obj;
|
|
320
320
|
};
|
|
321
321
|
|
|
322
322
|
// Attaches constants to ES6lib that provide name and version of the lib.
|
|
323
323
|
ES6lib.NAME = 'ES6lib';
|
|
324
|
-
ES6lib.VERSION = '2.2.
|
|
324
|
+
ES6lib.VERSION = '2.2.1';
|
|
325
325
|
|
|
326
326
|
|
|
327
327
|
// -- Private Static Methods -----------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobilabs/es6lib",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "A template for writing pure ES6 Javascript libraries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"minified": "_dist/lib/es6lib.min.js",
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"general": " --- GENERAL ---",
|
|
14
14
|
|
|
15
|
-
"build:js": " --- JAVASCRIPT --- ",
|
|
15
|
+
"build:js": " --- BUILDING JAVASCRIPT --- ",
|
|
16
16
|
"build:js:dev": "node scripts/build.js.dev.js $1",
|
|
17
17
|
"build:js:prod": "node scripts/build.js.prod.js $1",
|
|
18
18
|
|
|
19
|
-
"build:css": " --- CSS --- ",
|
|
19
|
+
"build:css": " --- BUILDING CSS --- ",
|
|
20
20
|
|
|
21
|
-
"build:generic": " ---
|
|
21
|
+
"build:generic": " --- BUILDING (GENERIC) --- ",
|
|
22
22
|
|
|
23
|
-
"build:development": " ---
|
|
23
|
+
"build:development": " --- BUILDING (DEVELOPMENT) --- ",
|
|
24
24
|
"build:dev": "npm run build:js:dev",
|
|
25
25
|
|
|
26
|
-
"build:production": " ---
|
|
26
|
+
"build:production": " --- BUILDING (PRODUCTION) --- ",
|
|
27
27
|
"build:skeleton:prod": "node scripts/build.skeleton.prod.js $1",
|
|
28
28
|
"prebuild:prod": "npm run build:dev && npm run build:skeleton:prod",
|
|
29
29
|
"build:prod": "npm run build:js:prod",
|
|
@@ -42,14 +42,13 @@
|
|
|
42
42
|
"watch:js": "nodemon --watch './src/**/*.js' --exec npm run build:dev",
|
|
43
43
|
"watch": "npm run watch:js",
|
|
44
44
|
|
|
45
|
-
"deployment": " ---
|
|
45
|
+
"deployment": " --- DEPLOYING --- ",
|
|
46
46
|
"dep:prod": "rm -rf _dist-$npm_package_version && npm run build:prod && cp -r _dist _dist-$npm_package_version",
|
|
47
47
|
"dep:private:package": "npm run build:prod && node scripts/dep.private.js && sh scripts/compress.sh ${npm_package_name} ${npm_package_version} @mobilabs",
|
|
48
|
-
"dep:npm:private:package": "npm pack && sh scripts/dep.npm.private.sh ${npm_package_name} ${npm_package_version} @mobilabs",
|
|
48
|
+
"dep:npm:private:package": "npm run build:prod && npm pack && sh scripts/dep.npm.private.sh ${npm_package_name} ${npm_package_version} @mobilabs",
|
|
49
49
|
|
|
50
50
|
"others": " --- OTHERS ---",
|
|
51
|
-
"prepare": "husky install"
|
|
52
|
-
"doc": ""
|
|
51
|
+
"prepare": "husky install"
|
|
53
52
|
},
|
|
54
53
|
"repository": {
|
|
55
54
|
"type": "git",
|
|
@@ -85,6 +84,7 @@
|
|
|
85
84
|
"eslint": "^8.56.0",
|
|
86
85
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
87
86
|
"eslint-plugin-import": "^2.29.1",
|
|
87
|
+
"http-server": "^14.1.1",
|
|
88
88
|
"husky": "^8.0.3",
|
|
89
89
|
"mocha": "^10.2.0",
|
|
90
90
|
"nodemon": "^3.0.2",
|
package/test/index.html
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
<!-- x -->
|
|
2
1
|
<!doctype html>
|
|
3
2
|
<html class="no-js" lang="">
|
|
4
3
|
<head>
|
|
5
4
|
<meta charset="utf-8">
|
|
6
|
-
<title>View ES6lib</title>
|
|
7
|
-
<meta name="description" content="{{app:description}}">
|
|
8
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
|
|
6
|
+
<title>View ES6lib</title>
|
|
10
7
|
<link rel="stylesheet" href="">
|
|
11
|
-
<meta name="
|
|
8
|
+
<meta name="description" content="">
|
|
9
|
+
<meta name="theme-color" content="#fafafa">
|
|
10
|
+
|
|
12
11
|
<style>
|
|
13
12
|
/* - */
|
|
14
13
|
</style>
|
|
15
|
-
|
|
16
|
-
<!-- <script src='./lib/view.js'></script> -->
|
|
17
14
|
<script>
|
|
18
15
|
document.addEventListener('DOMContentLoaded', () => {
|
|
19
|
-
/* global
|
|
16
|
+
/* global ... */
|
|
20
17
|
'use strict';
|
|
21
18
|
//
|
|
22
19
|
});
|
|
@@ -24,16 +21,8 @@
|
|
|
24
21
|
</head>
|
|
25
22
|
|
|
26
23
|
<body>
|
|
27
|
-
<!--[if IE]>
|
|
28
|
-
<p class="browserupgrade">You are using an <strong>outdated and unsupported</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to benefit of all the features of this web App.</p>
|
|
29
|
-
<![endif]-->
|
|
30
|
-
|
|
31
24
|
<!-- Warning message if Javascript isn't enabled -->
|
|
32
|
-
<noscript>
|
|
33
|
-
<p style="text-align:center;padding-top:3em;">
|
|
34
|
-
We are sorry, but this website doesn't work properly without JavaScript enabled!
|
|
35
|
-
</p>
|
|
36
|
-
</noscript>
|
|
25
|
+
<noscript><p style="text-align:center;padding-top:3em;">We are sorry, but this website doesn't work properly without JavaScript enabled!</p></noscript>
|
|
37
26
|
|
|
38
27
|
<!-- Add your site or application content here -->
|
|
39
28
|
<div id="app"></div>
|
|
@@ -53,7 +42,6 @@
|
|
|
53
42
|
el.append(`Es6lib v${ES6lib.VERSION}`);
|
|
54
43
|
el.append(` ... ${lib.getString()}`);
|
|
55
44
|
el.append(` ... ${lib.getArray()}`);
|
|
56
|
-
|
|
57
45
|
</script>
|
|
58
46
|
</body>
|
|
59
47
|
</html>
|