zklib-ts 1.0.2-development → 1.0.3-development
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/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +2 -9
package/dist/index.cjs.js
CHANGED
|
@@ -365,7 +365,7 @@ const parseTimeToDate = (time) => {
|
|
|
365
365
|
const month = time % 12;
|
|
366
366
|
time = (time - month) / 12;
|
|
367
367
|
const year = time + 2000;
|
|
368
|
-
return new Date(year, month, day, hour, minute, second);
|
|
368
|
+
return new Date(Date.UTC(year, month, day, hour, minute, second));
|
|
369
369
|
};
|
|
370
370
|
const decodeUserData28 = (userData) => {
|
|
371
371
|
return {
|
package/dist/index.es.js
CHANGED
|
@@ -344,7 +344,7 @@ const parseTimeToDate = (time) => {
|
|
|
344
344
|
const month = time % 12;
|
|
345
345
|
time = (time - month) / 12;
|
|
346
346
|
const year = time + 2000;
|
|
347
|
-
return new Date(year, month, day, hour, minute, second);
|
|
347
|
+
return new Date(Date.UTC(year, month, day, hour, minute, second));
|
|
348
348
|
};
|
|
349
349
|
const decodeUserData28 = (userData) => {
|
|
350
350
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zklib-ts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3-development",
|
|
4
4
|
"description": "Unofficial zkteco library allows Node.js developers to easily interface with ZK BioMetric Fingerprint Attendance Devices",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"repositoryUrl": "https://github.com/guspaz0/zklib-ts.git",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/guspaz0/zklib-ts.git"
|
|
23
|
+
"url": "git+https://github.com/guspaz0/zklib-ts.git"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
26
|
"typescript",
|
|
@@ -49,22 +49,15 @@
|
|
|
49
49
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
50
50
|
"@types/jest": "^29.5.14",
|
|
51
51
|
"@types/node": "^22.13.14",
|
|
52
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
53
52
|
"dotenv": "^16.4.7",
|
|
54
53
|
"jest": "^29.7.0",
|
|
55
54
|
"rollup": "^4.37.0",
|
|
56
55
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
57
|
-
"semantic-release": "^24.0.0",
|
|
58
56
|
"ts-jest": "^29.3.0",
|
|
59
57
|
"ts-node": "^10.9.2",
|
|
60
58
|
"tslib": "^2.8.1",
|
|
61
59
|
"typescript": "^5.8.2"
|
|
62
60
|
},
|
|
63
|
-
"config": {
|
|
64
|
-
"commitizen": {
|
|
65
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
61
|
"precommit": [
|
|
69
62
|
"build"
|
|
70
63
|
]
|