@hapiboo/date 3.0.0 → 3.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/dist/class.d.ts +1 -0
- package/dist/class.js +3 -0
- package/package.json +7 -2
package/dist/class.d.ts
CHANGED
package/dist/class.js
CHANGED
|
@@ -160,5 +160,8 @@ class DateObject {
|
|
|
160
160
|
getHoursDifference(dateToCompare) {
|
|
161
161
|
return luxon_1.Interval.fromDateTimes(this.val, dateToCompare.val).toDuration(['hours', 'minutes']).hours;
|
|
162
162
|
}
|
|
163
|
+
getMilisecondsDifference(dateToCompare) {
|
|
164
|
+
return this.val.diff(dateToCompare.val).as('milliseconds');
|
|
165
|
+
}
|
|
163
166
|
}
|
|
164
167
|
exports.DateObject = DateObject;
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hapiboo/date",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "MK13 Studio Hapiboo - date services",
|
|
5
5
|
"author": "MK13 Studio",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
9
12
|
"files": [
|
|
10
13
|
"dist"
|
|
11
14
|
],
|
|
@@ -21,8 +24,10 @@
|
|
|
21
24
|
"typescript-eslint": "^8.51.0"
|
|
22
25
|
},
|
|
23
26
|
"scripts": {
|
|
27
|
+
"version-to-publish": "pnpm exec tsx ../../scripts/version_update.ts packages/date --publish-version",
|
|
24
28
|
"publish-check": "bash ../../scripts/publish.sh ./",
|
|
29
|
+
"version-to-children": "pnpm exec tsx ../../scripts/version_update.ts packages/date --update-children",
|
|
25
30
|
"ci:publish-prepare": "rm -f pnpm-lock.yaml && rm -rf node_modules dist && pnpm install --ignore-workspace --no-frozen-lockfile && eslint 'src/*.ts' && echo \"Linter OK\" && tsc && echo \"Build OK\"",
|
|
26
|
-
"ci:publish": "pnpm ci:publish-prepare && pnpm publish-check"
|
|
31
|
+
"ci:publish": "pnpm ci:publish-prepare && pnpm version-to-publish && pnpm publish-check && pnpm version-to-children"
|
|
27
32
|
}
|
|
28
33
|
}
|