@lowdefy/operators-moment 4.0.0-alpha.37 → 4.0.0-rc.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/ import moment from 'moment';
|
|
16
16
|
import { runClass } from '@lowdefy/operators';
|
|
17
|
-
function format(on, locale = 'en',
|
|
18
|
-
return moment(on).locale(locale).format(
|
|
17
|
+
function format(on, locale = 'en', format) {
|
|
18
|
+
return moment(on).locale(locale).format(format);
|
|
19
19
|
}
|
|
20
20
|
function humanizeDuration(on, locale = 'en', withSuffix = false, thresholds) {
|
|
21
21
|
return moment.duration(on).locale(locale).humanize(withSuffix, thresholds);
|
package/dist/operatorsClient.js
CHANGED
package/dist/operatorsServer.js
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/operators-moment",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-rc.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
44
44
|
"clean": "rm -rf dist",
|
|
45
45
|
"prepublishOnly": "pnpm build",
|
|
46
|
-
"test": "TZ=UTC
|
|
46
|
+
"test": "TZ=UTC node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lowdefy/operators": "4.0.0-
|
|
49
|
+
"@lowdefy/operators": "4.0.0-rc.1",
|
|
50
50
|
"moment": "2.29.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@swc/cli": "0.1.
|
|
54
|
-
"@swc/core": "1.
|
|
55
|
-
"@swc/jest": "0.2.
|
|
53
|
+
"@swc/cli": "0.1.59",
|
|
54
|
+
"@swc/core": "1.3.24",
|
|
55
|
+
"@swc/jest": "0.2.24",
|
|
56
56
|
"jest": "28.1.0",
|
|
57
57
|
"jest-environment-jsdom": "28.1.0"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ecc4f16c19eede929eda177db524cf13a8053379"
|
|
63
63
|
}
|