num-only 1.2.1 → 1.2.3

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
@@ -1,9 +1,9 @@
1
1
  # num-only
2
2
 
3
3
  ![NPM Latest Version](https://img.shields.io/npm/v/num-only)
4
+ ![Bundle Size](https://img.shields.io/bundlephobia/min/num-only?label=bundle%20size)
4
5
  ![Downloads Count](https://img.shields.io/npm/dm/num-only.svg)
5
- ![Bundle Size](https://packagephobia.now.sh/badge?p=num-only)
6
- ![Test Status](https://img.shields.io/travis/juliolmuller/num-only-js/main.svg)
6
+ ![Test Status](https://img.shields.io/github/actions/workflow/status/juliolmuller/num-only-js/publish.yml?label=tests)
7
7
  ![Last Update Date](https://img.shields.io/github/last-commit/juliolmuller/num-only-js)
8
8
  ![Project License](https://img.shields.io/github/license/juliolmuller/num-only-js)
9
9
 
@@ -18,7 +18,11 @@ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
18
18
  ## Installation
19
19
 
20
20
  ```bash
21
+ # using NPM
21
22
  $ npm install num-only
23
+
24
+ # using Bun
25
+ $ bun add num-only
22
26
  ```
23
27
 
24
28
  ## Import
@@ -1,7 +1,7 @@
1
1
  /**
2
- * num-only v1.2.1
2
+ * num-only v1.2.3
3
3
  *
4
- * @author Julio L. Muller.
4
+ * @author [object Object].
5
5
  * @license MIT - 2020-2025
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * num-only v1.2.1
2
+ * num-only v1.2.3
3
3
  *
4
- * @author Julio L. Muller.
4
+ * @author [object Object].
5
5
  * @license MIT - 2020-2025
6
6
  */
7
7
 
package/dist/num-only.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * num-only v1.2.1
2
+ * num-only v1.2.3
3
3
  *
4
- * @author Julio L. Muller.
4
+ * @author [object Object].
5
5
  * @license MIT - 2020-2025
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * num-only v1.2.1
2
+ * num-only v1.2.3
3
3
  *
4
- * @author Julio L. Muller.
4
+ * @author [object Object].
5
5
  * @license MIT - 2020-2025
6
6
  */
7
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,"")}}));
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "num-only",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Utility function to remove non-numeric characters of input.",
5
- "author": "Julio L. Muller",
6
5
  "license": "MIT",
6
+ "author": {
7
+ "name": "Julio L. Muller",
8
+ "url": "https://github.com/juliolmuller"
9
+ },
7
10
  "keywords": [
8
11
  "strip",
9
12
  "remove",
@@ -26,13 +29,14 @@
26
29
  "main": "build/index.cjs.js",
27
30
  "types": "build/index.d.ts",
28
31
  "scripts": {
29
- "prepare": "husky",
32
+ "prepare": "bun x husky",
30
33
  "commit": "git-cz",
31
34
  "build": "rollup --config",
35
+ "type-check": "tsc --noEmit",
32
36
  "lint": "eslint --fix src/ test/ eslint.config.mjs rollup.config.mjs",
33
- "pretest": "bun run build",
37
+ "pretest": "bun run build --silent",
34
38
  "test": "bun test --coverage --coverage-reporter=lcov --coverage-dir=test/__coverage__",
35
- "prepublishOnly": "bun run test"
39
+ "test:ci": "bun test"
36
40
  },
37
41
  "devDependencies": {
38
42
  "@babel/preset-env": "^7.26.9",
@@ -46,8 +50,8 @@
46
50
  "@types/node": "^22.14.0",
47
51
  "commitizen": "^4.3.1",
48
52
  "cz-conventional-changelog": "^3.3.0",
49
- "eslint": "^9.23.0",
50
- "eslint-config-any": "^1.0.0",
53
+ "eslint": "^9.24.0",
54
+ "eslint-config-any": "^1.0.3",
51
55
  "husky": "^9.1.7",
52
56
  "lint-staged": "^15.5.0",
53
57
  "prettier": "^3.5.3",
@@ -55,6 +59,6 @@
55
59
  "rollup-plugin-delete": "^3.0.1",
56
60
  "rollup-plugin-dts": "^6.2.1",
57
61
  "rollup-plugin-esbuild": "^6.2.1",
58
- "typescript": "^5.8.2"
62
+ "typescript": "^5.8.3"
59
63
  }
60
64
  }