num-only 1.2.9 → 1.2.10
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/LICENSE +1 -1
- 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 +2 -2
- package/package.json +23 -19
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2020-
|
|
3
|
+
Copyright (c) 2020-2026 Julio L. Muller
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguY2pzIiwic291cmNlcyI6WyIuLi9zcmMvbnVtLW9ubHkudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gbnVtT25seSh0YXJnZXQ6IHVua25vd24pOiBzdHJpbmcge1xuICByZXR1cm4gU3RyaW5nKHRhcmdldCkucmVwbGFjZSgvXFxEL2csICcnKTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgbnVtT25seTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLFNBQVMsUUFBUSxNQUFBLEVBQXlCO0FBQ3hDLEVBQUEsT0FBTyxNQUFBLENBQU8sTUFBTSxDQUFBLENBQUUsT0FBQSxDQUFRLE9BQU8sRUFBRSxDQUFBO0FBQ3pDOzsifQ==
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgubWpzIiwic291cmNlcyI6WyIuLi9zcmMvbnVtLW9ubHkudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gbnVtT25seSh0YXJnZXQ6IHVua25vd24pOiBzdHJpbmcge1xuICByZXR1cm4gU3RyaW5nKHRhcmdldCkucmVwbGFjZSgvXFxEL2csICcnKTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgbnVtT25seTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxTQUFTLFFBQVEsTUFBQSxFQUF5QjtBQUN4QyxFQUFBLE9BQU8sTUFBQSxDQUFPLE1BQU0sQ0FBQSxDQUFFLE9BQUEsQ0FBUSxPQUFPLEVBQUUsQ0FBQTtBQUN6Qzs7In0=
|
package/dist/num-only.js
CHANGED
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
return numOnly;
|
|
19
19
|
|
|
20
20
|
}));
|
|
21
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtLW9ubHkuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy9udW0tb25seS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBudW1Pbmx5KHRhcmdldDogdW5rbm93bik6IHN0cmluZyB7XG4gIHJldHVybiBTdHJpbmcodGFyZ2V0KS5yZXBsYWNlKC9cXEQvZywgJycpO1xufVxuXG5leHBvcnQgZGVmYXVsdCBudW1Pbmx5O1xuIl0sIm5hbWVzIjpbIm51bU9ubHkiLCJ0YXJnZXQiLCJTdHJpbmciLCJyZXBsYWNlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0lBQUEsU0FBU0EsT0FBT0EsQ0FBQ0MsTUFBZSxFQUFBO01BQzlCLE9BQU9DLE1BQU0sQ0FBQ0QsTUFBTSxDQUFDLENBQUNFLE9BQU8sQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDO0lBQzFDOzs7OyJ9
|
package/dist/num-only.min.js
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* @author Julio L. Muller.
|
|
5
5
|
* @license MIT - 2020-2026
|
|
6
6
|
*/
|
|
7
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).numOnly=n()}(this,
|
|
8
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
7
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).numOnly=n()}(this,function(){"use strict";return function(e){return String(e).replace(/\D/g,"")}});
|
|
8
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtLW9ubHkubWluLmpzIiwic291cmNlcyI6WyIuLi9zcmMvbnVtLW9ubHkudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gbnVtT25seSh0YXJnZXQ6IHVua25vd24pOiBzdHJpbmcge1xuICByZXR1cm4gU3RyaW5nKHRhcmdldCkucmVwbGFjZSgvXFxEL2csICcnKTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgbnVtT25seTtcbiJdLCJuYW1lcyI6WyJ0YXJnZXQiLCJTdHJpbmciLCJyZXBsYWNlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7OE9BQUEsU0FBaUJBLEdBQ2YsT0FBT0MsT0FBT0QsR0FBUUUsUUFBUSxNQUFPLEdBQ3ZDIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "num-only",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "Utility function to remove non-numeric characters of input.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -26,38 +26,42 @@
|
|
|
26
26
|
"url": "https://github.com/LacusSolutions/num-only-js/issues"
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/LacusSolutions/num-only-js#readme",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"provenance": true,
|
|
31
|
+
"access": "public",
|
|
32
|
+
"tag": "latest"
|
|
33
|
+
},
|
|
29
34
|
"main": "build/index.cjs",
|
|
30
35
|
"types": "build/index.d.ts",
|
|
31
36
|
"scripts": {
|
|
32
|
-
"prepare": "
|
|
37
|
+
"prepare": "husky",
|
|
33
38
|
"commit": "commit",
|
|
34
39
|
"build": "rollup --config",
|
|
35
40
|
"type-check": "tsc --noEmit",
|
|
36
|
-
"lint": "eslint
|
|
41
|
+
"lint": "eslint src/ test/ eslint.config.mjs rollup.config.mjs",
|
|
37
42
|
"test": "bun test --coverage --coverage-reporter=lcov --coverage-dir=test/__coverage__",
|
|
38
43
|
"test:ci": "bun test"
|
|
39
44
|
},
|
|
40
45
|
"devDependencies": {
|
|
41
|
-
"@babel/preset-env": "^
|
|
42
|
-
"@commitlint/cli": "^
|
|
43
|
-
"@commitlint/config-conventional": "^
|
|
44
|
-
"@commitlint/prompt-cli": "^
|
|
45
|
-
"@rollup/plugin-babel": "^
|
|
46
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
46
|
+
"@babel/preset-env": "^8.0.7",
|
|
47
|
+
"@commitlint/cli": "^21.2.3",
|
|
48
|
+
"@commitlint/config-conventional": "^21.2.3",
|
|
49
|
+
"@commitlint/prompt-cli": "^21.2.3",
|
|
50
|
+
"@rollup/plugin-babel": "^7.1.0",
|
|
51
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
47
52
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
48
|
-
"@rollup/plugin-terser": "~0.
|
|
53
|
+
"@rollup/plugin-terser": "~1.0.0",
|
|
49
54
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
50
|
-
"@types/bun": "^1.3
|
|
51
|
-
"@types/node": "^
|
|
52
|
-
"eslint": "^9.39.
|
|
53
|
-
"eslint-config-any": "^2.
|
|
55
|
+
"@types/bun": "^1.4.3",
|
|
56
|
+
"@types/node": "^24.19.2",
|
|
57
|
+
"eslint": "^9.39.5",
|
|
58
|
+
"eslint-config-any": "^2.5.0",
|
|
54
59
|
"husky": "^9.1.7",
|
|
55
|
-
"lint-staged": "^
|
|
56
|
-
"
|
|
57
|
-
"rollup": "^4.55.1",
|
|
60
|
+
"lint-staged": "^17.6.0",
|
|
61
|
+
"rollup": "^4.64.6",
|
|
58
62
|
"rollup-plugin-delete": "^3.0.2",
|
|
59
|
-
"rollup-plugin-dts": "^6.
|
|
63
|
+
"rollup-plugin-dts": "^6.5.1",
|
|
60
64
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
61
|
-
"typescript": "
|
|
65
|
+
"typescript": "~6.0.3"
|
|
62
66
|
}
|
|
63
67
|
}
|