@alwatr/is-number 1.0.1 → 1.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.3](https://github.com/Alwatr/nanolib/compare/@alwatr/is-number@1.0.2...@alwatr/is-number@1.0.3) (2024-01-31)
7
+
8
+ ### Miscellaneous Chores
9
+
10
+ * **deps:** update ([1a45030](https://github.com/Alwatr/nanolib/commit/1a450305440b710a300787d4ca24b1ed8c6a39d7)) by @AliMD
11
+
12
+ ## [1.0.2](https://github.com/Alwatr/nanolib/compare/@alwatr/is-number@1.0.1...@alwatr/is-number@1.0.2) (2024-01-24)
13
+
14
+ **Note:** Version bump only for package @alwatr/is-number
15
+
6
16
  ## [1.0.1](https://github.com/Alwatr/nanolib/compare/@alwatr/is-number@1.0.0...@alwatr/is-number@1.0.1) (2024-01-20)
7
17
 
8
18
  **Note:** Version bump only for package @alwatr/is-number
@@ -11,9 +21,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
21
 
12
22
  ### Bug Fixes
13
23
 
14
- * **is-number:** Remove Number.isFinite polyfill ([aa149f3](https://github.com/Alwatr/nanolib/commit/aa149f302f96d961b058fc3a9d70399c1023cbe3)) by @AliMD
24
+ - **is-number:** Remove Number.isFinite polyfill ([aa149f3](https://github.com/Alwatr/nanolib/commit/aa149f302f96d961b058fc3a9d70399c1023cbe3)) by @AliMD
15
25
 
16
26
  ### Features
17
27
 
18
- * **is-number:** extract from @alwatr/util ([1c8a676](https://github.com/Alwatr/nanolib/commit/1c8a676ccefcad12436f41b96eeb39c60cc09040)) by @njfamirm
19
- * **is-number:** Update is-number package description and add Number.isFinite polyfill ([a7c8e38](https://github.com/Alwatr/nanolib/commit/a7c8e38eb3e939199cf5637feaf08ac0ed98e2e6)) by @AliMD
28
+ - **is-number:** extract from @alwatr/util ([1c8a676](https://github.com/Alwatr/nanolib/commit/1c8a676ccefcad12436f41b96eeb39c60cc09040)) by @njfamirm
29
+ - **is-number:** Update is-number package description and add Number.isFinite polyfill ([a7c8e38](https://github.com/Alwatr/nanolib/commit/a7c8e38eb3e939199cf5637feaf08ac0ed98e2e6)) by @AliMD
package/dist/main.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /* @alwatr/is-number v1.0.1 */
1
+ /* @alwatr/is-number v1.0.3 */
2
2
  "use strict";var e=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var m=(i,n)=>{for(var t in n)e(i,t,{get:n[t],enumerable:!0})},p=(i,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of s(n))!b.call(i,r)&&r!==t&&e(i,r,{get:()=>n[r],enumerable:!(o=f(n,r))||o.enumerable});return i};var u=i=>p(e({},"__esModule",{value:!0}),i);var N={};m(N,{isNumber:()=>F});module.exports=u(N);function F(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}0&&(module.exports={isNumber});
3
3
  //# sourceMappingURL=main.cjs.map
package/dist/main.mjs CHANGED
@@ -1,3 +1,3 @@
1
- /* @alwatr/is-number v1.0.1 */
1
+ /* @alwatr/is-number v1.0.3 */
2
2
  function n(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}export{n as isNumber};
3
3
  //# sourceMappingURL=main.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/is-number",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A simple utility to Check the value is number or can convert to a number, for example string ' 123 ' can be converted to 123.",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "keywords": [
@@ -85,12 +85,12 @@
85
85
  "clean": "rm -rfv dist *.tsbuildinfo"
86
86
  },
87
87
  "devDependencies": {
88
- "@alwatr/nano-build": "^1.3.1",
88
+ "@alwatr/nano-build": "^1.3.3",
89
89
  "@alwatr/prettier-config": "^1.0.4",
90
- "@alwatr/tsconfig-base": "^1.1.1",
91
- "@types/node": "^20.11.5",
90
+ "@alwatr/tsconfig-base": "^1.1.2",
91
+ "@types/node": "^20.11.13",
92
92
  "jest": "^29.7.0",
93
93
  "typescript": "^5.3.3"
94
94
  },
95
- "gitHead": "86f36bc089c81a22d5ca27b0745db65ec2f1eca3"
95
+ "gitHead": "54726b7ac06d4a6ffb42731b58e8d976de1211bd"
96
96
  }
package/src/main.test.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isNumber } from '@alwatr/is-number';
1
+ import {isNumber} from '@alwatr/is-number';
2
2
 
3
3
  describe('isNumber', () => {
4
4
  it('should return true for numbers', () => {