@mobilabs/es6lib 2.0.2 → 2.0.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.
@@ -1,5 +1,5 @@
1
1
  /*! ****************************************************************************
2
- * ES6lib v2.0.2
2
+ * ES6lib v2.0.3
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.0.2',
316
+ version: '2.0.3',
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.0.2';
323
+ ES6lib.VERSION = '2.0.3';
324
324
 
325
325
 
326
326
  // -- Private Static Methods -----------------------------------------------
@@ -1,5 +1,5 @@
1
1
  /*! ****************************************************************************
2
- * ES6lib v2.0.2
2
+ * ES6lib v2.0.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,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"2.0.2"},t},e.NAME="ES6lib",e.VERSION="2.0.2",e._setTestMode=function(){return[]},e.noConflict=function(){return t.ES6lib=r,this},o={whoami(){return this._library},getString:()=>n.getString(),getArray:()=>n.getArray()}}(),e}));
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.0.3"},t},e.NAME="ES6lib",e.VERSION="2.0.3",e._setTestMode=function(){return[]},e.noConflict=function(){return t.ES6lib=r,this},o={whoami(){return this._library},getString:()=>n.getString(),getArray:()=>n.getArray()}}(),e}));
@@ -1,5 +1,5 @@
1
1
  /*! ****************************************************************************
2
- * ES6lib v2.0.2
2
+ * ES6lib v2.0.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,r=t.ES6lib;let o;e=function(){const t=Object.create(o);return t._library={name:"ES6lib",version:"2.0.2"},t},e.NAME="ES6lib",e.VERSION="2.0.2",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;
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.0.3"},t},e.NAME="ES6lib",e.VERSION="2.0.3",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;
@@ -1,5 +1,5 @@
1
1
  /*! ****************************************************************************
2
- * ES6lib v2.0.2
2
+ * ES6lib v2.0.3
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.0.2',
317
+ version: '2.0.3',
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.0.2';
324
+ ES6lib.VERSION = '2.0.3';
325
325
 
326
326
 
327
327
  // -- Private Static Methods -----------------------------------------------
package/bin/es6lib.js CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * The MIT License (MIT)
6
6
  *
7
- * Copyright (c) 2023 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr)
7
+ * Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr)
8
8
  *
9
9
  * Permission is hereby granted, free of charge, to any person obtaining a copy
10
10
  * of this software and associated documentation files (the "Software"), to deal
@@ -89,6 +89,9 @@ const readme = [
89
89
  ' ',
90
90
  'MIT.',
91
91
  '',
92
+ '',
93
+ '-- oOo --',
94
+ '',
92
95
  ].join('\n');
93
96
 
94
97
  const license = [
@@ -124,7 +127,11 @@ const changelog = [
124
127
  '',
125
128
  ' * Initial commit,',
126
129
  ' * ...,',
127
- ''].join('\n');
130
+ '',
131
+ '',
132
+ '-- oOo --',
133
+ '',
134
+ ].join('\n');
128
135
 
129
136
  const index = [
130
137
  "'use strict';",
@@ -303,23 +310,11 @@ function _customize(source, dest, app, owner, boilerlib) {
303
310
  pack.unpkg = `_dist/lib/${app.toLowerCase()}.mjs`;
304
311
  pack.module = `_dist/lib/${app.toLowerCase()}.min.mjs`;
305
312
  pack.bin = {};
306
- // pack.scripts = {
307
- // build: obj.scripts.build,
308
- // watch: obj.scripts.watch,
309
- // dev: obj.scripts.dev,
310
- // test: obj.scripts.test,
311
- // 'display-coverage': obj.scripts['display-coverage'],
312
- // 'check-coverage': obj.scripts['check-coverage'],
313
- // 'report-coverage': obj.scripts['report-coverage'],
314
- // report: obj.scripts.report,
315
- // makedist: obj.scripts.makedist,
316
- // app: obj.scripts.app,
317
- // makeprivate: obj.scripts.makeprivate,
318
- // makelib: obj.scripts.makelib,
319
- // prepare: obj.scripts.prepare,
320
- // doc: obj.scripts.doc,
321
- // };
313
+
322
314
  pack.scripts = obj.scripts;
315
+ pack.scripts['check:coverage'] = 'c8 check-coverage --statements 100 --branches 100 --functions 100 --lines 100';
316
+ delete pack.scripts['dep:private:package'];
317
+
323
318
  pack.repository = obj.repository;
324
319
  pack.repository.url = `https://github.com/${owner.acronym}/${app.toLowerCase()}.git`;
325
320
  pack.keywords = ['ES6'];
@@ -333,6 +328,7 @@ function _customize(source, dest, app, owner, boilerlib) {
333
328
  pack.homepage = `https://github.com/${owner.acronym}/${app.toLowerCase()}`;
334
329
  pack.dependencies = obj.dependencies;
335
330
  pack.devDependencies = obj.devDependencies;
331
+ pack.c8 = obj.c8;
336
332
  pack.publishConfig = obj.publishConfig;
337
333
  pack.private = obj.private;
338
334
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobilabs/es6lib",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A template for writing pure ES6 Javascript libraries",
5
5
  "main": "index.js",
6
6
  "minified": "_dist/lib/es6lib.min.js",
@@ -89,6 +89,14 @@
89
89
  "nodemon": "^3.0.2",
90
90
  "terser": "^5.26.0"
91
91
  },
92
+ "c8": {
93
+ "include": [
94
+ "index.js",
95
+ "lib/**/*.js"
96
+ ],
97
+ "exclude": [],
98
+ "all": false
99
+ },
92
100
  "publishConfig": {
93
101
  "access": "public"
94
102
  },
package/rmdstore.sh CHANGED
@@ -2,8 +2,10 @@
2
2
 
3
3
  # Find '.DS_Store'
4
4
  find . -type f -name '.DS_Store'
5
+ find . -type f -name '._.DS_Store'
5
6
 
6
7
  if [[ $1 = '-del' ]]; then
7
8
  echo 'Deleting ...'
8
9
  find . -type f -name '.DS_Store' -delete
10
+ find . -type f -name '._.DS_Store' -delete
9
11
  fi