@alwatr/parse-duration 5.5.5 → 5.5.7

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/README.md CHANGED
@@ -97,7 +97,3 @@ The following companies, organizations, and individuals support Nanolib ongoing
97
97
  ## Contributing
98
98
 
99
99
  Contributions are welcome! Please read our [contribution guidelines](https://github.com/Alwatr/.github/blob/next/CONTRIBUTING.md) before submitting a pull request.
100
-
101
- ## License
102
-
103
- This project is licensed under the [AGPL-3.0 License](LICENSE).
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/parse-duration v5.5.5 */
1
+ /* @alwatr/parse-duration v5.5.7 */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -26,7 +26,7 @@ __export(main_exports, {
26
26
  module.exports = __toCommonJS(main_exports);
27
27
  var import_is_number = require("@alwatr/is-number");
28
28
  var import_package_tracer = require("@alwatr/package-tracer");
29
- __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/parse-duration", "5.5.5");
29
+ __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/parse-duration", "5.5.7");
30
30
  var unitConversion = /* @__PURE__ */ Object.freeze({
31
31
  s: 1e3,
32
32
  m: 6e4,
package/dist/main.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /* @alwatr/parse-duration v5.5.5 */
1
+ /* @alwatr/parse-duration v5.5.7 */
2
2
 
3
3
  // src/main.ts
4
4
  import { toNumber } from "@alwatr/is-number";
5
5
  import { packageTracer } from "@alwatr/package-tracer";
6
- __dev_mode__: packageTracer.add("@alwatr/parse-duration", "5.5.5");
6
+ __dev_mode__: packageTracer.add("@alwatr/parse-duration", "5.5.7");
7
7
  var unitConversion = /* @__PURE__ */ Object.freeze({
8
8
  s: 1e3,
9
9
  m: 6e4,
package/package.json CHANGED
@@ -1,32 +1,20 @@
1
1
  {
2
2
  "name": "@alwatr/parse-duration",
3
- "version": "5.5.5",
4
3
  "description": "A simple utility to parse a duration string into milliseconds number.",
4
+ "version": "5.5.7",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
- "keywords": [
7
- "parse",
8
- "duration",
9
- "time",
10
- "parse-duration",
11
- "cross-platform",
12
- "ECMAScript",
13
- "typescript",
14
- "javascript",
15
- "node",
16
- "nodejs",
17
- "browser",
18
- "esm",
19
- "module",
20
- "utility",
21
- "util",
22
- "utils",
23
- "nanolib",
24
- "alwatr"
25
- ],
26
- "type": "module",
27
- "main": "./dist/main.cjs",
28
- "module": "./dist/main.mjs",
29
- "types": "./dist/main.d.ts",
6
+ "bugs": "https://github.com/Alwatr/nanolib/issues",
7
+ "dependencies": {
8
+ "@alwatr/is-number": "5.7.3",
9
+ "@alwatr/package-tracer": "5.5.6"
10
+ },
11
+ "devDependencies": {
12
+ "@alwatr/nano-build": "6.0.1",
13
+ "@alwatr/prettier-config": "5.0.2",
14
+ "@alwatr/tsconfig-base": "5.0.2",
15
+ "jest": "^30.0.5",
16
+ "typescript": "^5.9.2"
17
+ },
30
18
  "exports": {
31
19
  ".": {
32
20
  "types": "./dist/main.d.ts",
@@ -34,12 +22,36 @@
34
22
  "require": "./dist/main.cjs"
35
23
  }
36
24
  },
37
- "license": "AGPL-3.0-only",
38
25
  "files": [
39
26
  "**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}",
40
27
  "LICENSE",
41
28
  "!demo/**/*"
42
29
  ],
30
+ "homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/parse-duration#readme",
31
+ "keywords": [
32
+ "alwatr",
33
+ "browser",
34
+ "cross-platform",
35
+ "duration",
36
+ "ECMAScript",
37
+ "esm",
38
+ "javascript",
39
+ "module",
40
+ "nanolib",
41
+ "node",
42
+ "nodejs",
43
+ "parse",
44
+ "parse-duration",
45
+ "time",
46
+ "typescript",
47
+ "util",
48
+ "utility",
49
+ "utils"
50
+ ],
51
+ "license": "MPL-2.0",
52
+ "main": "./dist/main.cjs",
53
+ "module": "./dist/main.mjs",
54
+ "prettier": "@alwatr/prettier-config",
43
55
  "publishConfig": {
44
56
  "access": "public"
45
57
  },
@@ -48,37 +60,23 @@
48
60
  "url": "https://github.com/Alwatr/nanolib",
49
61
  "directory": "packages/parse-duration"
50
62
  },
51
- "homepage": "https://github.com/Alwatr/nanolib/tree/next/packages/parse-duration#readme",
52
- "bugs": {
53
- "url": "https://github.com/Alwatr/nanolib/issues"
54
- },
55
- "prettier": "@alwatr/prettier-config",
56
63
  "scripts": {
57
64
  "b": "yarn run build",
58
- "t": "yarn run test",
59
- "w": "yarn run watch",
60
- "c": "yarn run clean",
61
- "cb": "yarn run clean && yarn run build",
62
- "d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
63
65
  "build": "yarn run build:ts && yarn run build:es",
64
66
  "build:es": "nano-build --preset=module",
65
67
  "build:ts": "tsc --build",
68
+ "c": "yarn run clean",
69
+ "cb": "yarn run clean && yarn run build",
70
+ "clean": "rm -rfv dist *.tsbuildinfo",
71
+ "d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
72
+ "t": "yarn run test",
66
73
  "test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest",
74
+ "w": "yarn run watch",
67
75
  "watch": "yarn run watch:ts & yarn run watch:es",
68
76
  "watch:es": "yarn run build:es --watch",
69
- "watch:ts": "yarn run build:ts --watch --preserveWatchOutput",
70
- "clean": "rm -rfv dist *.tsbuildinfo"
71
- },
72
- "dependencies": {
73
- "@alwatr/is-number": "5.7.1",
74
- "@alwatr/package-tracer": "5.5.4"
77
+ "watch:ts": "yarn run build:ts --watch --preserveWatchOutput"
75
78
  },
76
- "devDependencies": {
77
- "@alwatr/nano-build": "5.5.4",
78
- "@alwatr/prettier-config": "5.0.0",
79
- "@alwatr/tsconfig-base": "5.0.0",
80
- "jest": "^29.7.0",
81
- "typescript": "^5.8.3"
82
- },
83
- "gitHead": "dd749e0b9adecdefa8e906669858c014b53bdab0"
79
+ "type": "module",
80
+ "types": "./dist/main.d.ts",
81
+ "gitHead": "be87ff1a4a783c0707e0b06efe728a54b5348b38"
84
82
  }