num-only 1.2.6 → 1.2.8
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 +4 -4
- package/build/index.cjs +1 -1
- package/build/index.mjs +1 -1
- package/dist/num-only.js +1 -1
- package/dist/num-only.min.js +1 -1
- package/package.json +22 -23
package/README.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|

|
|
4
4
|

|
|
5
5
|

|
|
6
|
-

|
|
7
|
+

|
|
8
|
+

|
|
9
9
|
|
|
10
10
|
JavaScript package with a function to stringify and remove non-numeric characters of items.
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# using NPM
|
|
22
|
-
$ npm install num-only
|
|
22
|
+
$ npm install --save num-only
|
|
23
23
|
|
|
24
24
|
# using Bun
|
|
25
25
|
$ bun add num-only
|
package/build/index.cjs
CHANGED
|
@@ -5,4 +5,4 @@ function numOnly(target) {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
module.exports = numOnly;
|
|
8
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguY2pzIiwic291cmNlcyI6WyIuLi9zcmMvbnVtLW9ubHkudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gbnVtT25seSh0YXJnZXQ6IHVua25vd24pOiBzdHJpbmcge1xuICByZXR1cm4gU3RyaW5nKHRhcmdldCkucmVwbGFjZSgvXFxEL2csICcnKTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgbnVtT25seTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLFNBQVMsUUFBUSxNQUFBLEVBQXlCO0FBQ3hDLEVBQUEsT0FBTyxNQUFBLENBQU8sTUFBTSxDQUFBLENBQUUsT0FBQSxDQUFRLE9BQU8sRUFBRSxDQUFBO0FBQ3pDOzs7OyJ9
|
package/build/index.mjs
CHANGED
|
@@ -3,4 +3,4 @@ function numOnly(target) {
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
export { numOnly as default };
|
|
6
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgubWpzIiwic291cmNlcyI6WyIuLi9zcmMvbnVtLW9ubHkudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gbnVtT25seSh0YXJnZXQ6IHVua25vd24pOiBzdHJpbmcge1xuICByZXR1cm4gU3RyaW5nKHRhcmdldCkucmVwbGFjZSgvXFxEL2csICcnKTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgbnVtT25seTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxTQUFTLFFBQVEsTUFBQSxFQUF5QjtBQUN4QyxFQUFBLE9BQU8sTUFBQSxDQUFPLE1BQU0sQ0FBQSxDQUFFLE9BQUEsQ0FBUSxPQUFPLEVBQUUsQ0FBQTtBQUN6Qzs7OzsifQ==
|
package/dist/num-only.js
CHANGED
package/dist/num-only.min.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "num-only",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "Utility function to remove non-numeric characters of input.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -20,45 +20,44 @@
|
|
|
20
20
|
],
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/
|
|
23
|
+
"url": "git+https://github.com/LacusSolutions/num-only-js.git"
|
|
24
24
|
},
|
|
25
25
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/
|
|
26
|
+
"url": "https://github.com/LacusSolutions/num-only-js/issues"
|
|
27
27
|
},
|
|
28
|
-
"homepage": "https://github.com/
|
|
28
|
+
"homepage": "https://github.com/LacusSolutions/num-only-js#readme",
|
|
29
29
|
"main": "build/index.cjs",
|
|
30
30
|
"types": "build/index.d.ts",
|
|
31
31
|
"scripts": {
|
|
32
32
|
"prepare": "bun x husky",
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "commit",
|
|
34
34
|
"build": "rollup --config",
|
|
35
35
|
"type-check": "tsc --noEmit",
|
|
36
36
|
"lint": "eslint --fix src/ test/ eslint.config.mjs rollup.config.mjs",
|
|
37
|
-
"pretest": "bun run build --silent",
|
|
38
37
|
"test": "bun test --coverage --coverage-reporter=lcov --coverage-dir=test/__coverage__",
|
|
39
38
|
"test:ci": "bun test"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@babel/preset-env": "^7.
|
|
43
|
-
"@commitlint/cli": "^
|
|
44
|
-
"@commitlint/config-conventional": "^
|
|
45
|
-
"@
|
|
46
|
-
"@rollup/plugin-
|
|
47
|
-
"@rollup/plugin-
|
|
41
|
+
"@babel/preset-env": "^7.28.5",
|
|
42
|
+
"@commitlint/cli": "^20.1.0",
|
|
43
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
44
|
+
"@commitlint/prompt-cli": "^20.1.0",
|
|
45
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
46
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
47
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
48
48
|
"@rollup/plugin-terser": "~0.4.4",
|
|
49
|
-
"@rollup/plugin-typescript": "^12.
|
|
50
|
-
"@types/
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint-config-any": "^1.0.3",
|
|
49
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
50
|
+
"@types/bun": "^1.3.1",
|
|
51
|
+
"@types/node": "^22.18.13",
|
|
52
|
+
"eslint": "^9.39.0",
|
|
53
|
+
"eslint-config-any": "^2.2.1",
|
|
55
54
|
"husky": "^9.1.7",
|
|
56
|
-
"lint-staged": "^
|
|
57
|
-
"prettier": "^3.
|
|
58
|
-
"rollup": "^4.
|
|
55
|
+
"lint-staged": "^16.2.6",
|
|
56
|
+
"prettier": "^3.6.2",
|
|
57
|
+
"rollup": "^4.52.5",
|
|
59
58
|
"rollup-plugin-delete": "^3.0.1",
|
|
60
|
-
"rollup-plugin-dts": "^6.2.
|
|
59
|
+
"rollup-plugin-dts": "^6.2.3",
|
|
61
60
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
62
|
-
"typescript": "^5.
|
|
61
|
+
"typescript": "^5.9.3"
|
|
63
62
|
}
|
|
64
63
|
}
|