cronapi-js 3.2.1 → 4.0.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/cronapi.js +72 -72
- package/dist/cronapi.min.js +1 -37
- package/gulpfile.js +16 -18
- package/i18n/locale_en_us.json +1 -0
- package/i18n/locale_pt_br.json +1 -0
- package/package.json +13 -13
package/gulpfile.js
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
minify = require("gulp-babel-minify"),
|
|
6
|
-
concat = require('gulp-concat');
|
|
1
|
+
import gulp from 'gulp';
|
|
2
|
+
import terser from 'gulp-terser';
|
|
3
|
+
import rename from 'gulp-rename';
|
|
4
|
+
import concat from 'gulp-concat';
|
|
7
5
|
|
|
8
6
|
gulp.task('minify', function () {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
return gulp.src('cronapi.js')
|
|
8
|
+
.pipe(terser({
|
|
9
|
+
mangle: {
|
|
10
|
+
keep_classnames: true
|
|
11
|
+
}
|
|
12
|
+
}))
|
|
13
|
+
.pipe(rename('cronapi.min.js'))
|
|
14
|
+
.pipe(gulp.dest('dist/'));
|
|
17
15
|
});
|
|
18
16
|
|
|
19
|
-
gulp.task('joinfiles',
|
|
17
|
+
gulp.task('joinfiles', gulp.series('minify'), function () {
|
|
20
18
|
return gulp.src(['dist/cronapi.min.js', 'node_modules/@zxing/library/umd/index.min.js'])
|
|
21
19
|
.pipe(concat('cronapi.min.js'))
|
|
22
20
|
.pipe(gulp.dest('dist/'));
|
|
23
21
|
});
|
|
24
22
|
|
|
25
23
|
gulp.task('i18n', function () {
|
|
26
|
-
|
|
24
|
+
return gulp.src('i18n/').pipe(gulp.dest('i18n/'));
|
|
27
25
|
});
|
|
28
26
|
|
|
29
|
-
gulp.task('build',
|
|
27
|
+
gulp.task('build', gulp.series('minify', 'i18n', 'joinfiles'));
|
|
30
28
|
|
|
31
|
-
gulp.task('default',
|
|
29
|
+
gulp.task('default', gulp.series('build'));
|
package/i18n/locale_en_us.json
CHANGED
|
@@ -1844,6 +1844,7 @@
|
|
|
1844
1844
|
"getHourFromDate": "Get date time",
|
|
1845
1845
|
"getHoursBetweenDates": "Get hours total between dates",
|
|
1846
1846
|
"getImageFrom": "Get image from...",
|
|
1847
|
+
"getLastDayOfMonth": "Get the last day of the month",
|
|
1847
1848
|
"getLocalStorage": "Get Local Storage Item",
|
|
1848
1849
|
"getLocalStorageDesc": "Function that get an item in session storage on browser (global). This Item is keeped when the browser are closed and are visible to all tabs",
|
|
1849
1850
|
"getMapValueByKey": "Get Map Field by Key",
|
package/i18n/locale_pt_br.json
CHANGED
|
@@ -1847,6 +1847,7 @@
|
|
|
1847
1847
|
"getHourFromDate": "Obter hora da data",
|
|
1848
1848
|
"getHoursBetweenDates": "Obter total de horas entre datas",
|
|
1849
1849
|
"getImageFrom": "Obter imagem da...",
|
|
1850
|
+
"getLastDayOfMonth": "Obter o último dia do mês",
|
|
1850
1851
|
"getLocalStorage": "Obter Item da Sessão do navegador",
|
|
1851
1852
|
"getLocalStorageDesc": "Função que obtém um item na sessão global do navegador. Esse item é mantido ao fechar o navegador e é visível em todas as abas",
|
|
1852
1853
|
"getMapValueByKey": "Obter Campo do Mapa por Chave",
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cronapi-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Public library for CronApp's users",
|
|
5
5
|
"main": "cronapi.js",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "jest --coverage",
|
|
8
9
|
"build": "gulp"
|
|
@@ -23,24 +24,23 @@
|
|
|
23
24
|
"javascript"
|
|
24
25
|
],
|
|
25
26
|
"devDependencies": {
|
|
26
|
-
"@types/chai": "^4.
|
|
27
|
+
"@types/chai": "^4.3.19",
|
|
27
28
|
"@types/jest": "^26.0.15",
|
|
28
29
|
"@types/node": "^14.14.6",
|
|
29
|
-
"chai": "^
|
|
30
|
-
"gulp": "^
|
|
31
|
-
"gulp-autoprefixer": "^
|
|
32
|
-
"gulp-
|
|
33
|
-
"gulp-
|
|
34
|
-
"gulp-
|
|
35
|
-
"gulp-
|
|
36
|
-
"gulp-uglify": "^
|
|
30
|
+
"chai": "^5.1.1",
|
|
31
|
+
"gulp": "^5.0.0",
|
|
32
|
+
"gulp-autoprefixer": "^9.0.0",
|
|
33
|
+
"gulp-concat": "2.6.1",
|
|
34
|
+
"gulp-notify": "^5.0.0",
|
|
35
|
+
"gulp-rename": "^2.0.0",
|
|
36
|
+
"gulp-terser": "^2.1.0",
|
|
37
|
+
"gulp-uglify": "^3.0.2",
|
|
37
38
|
"gulp-util": "^3.0.8",
|
|
38
39
|
"jest": "^26.6.3",
|
|
39
|
-
"jquery": "3.5.1"
|
|
40
|
-
"gulp-concat": "2.6.1"
|
|
40
|
+
"jquery": "3.5.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@zxing/library": "0.18.5",
|
|
44
44
|
"natives": "1.1.6"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|