@simcups/swiss-tools 1.0.11 → 1.0.13

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/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- export * from './array-utils';
2
- export * from './chunk-pots';
3
- export * from './delay';
4
- export * from './errors';
5
- export * from './format-signed-number';
6
- export * from './get-ordinal';
7
- export * from './get-percentage';
8
- export * from './has-vals';
9
- export * from './is-even';
10
- export * from './is-number';
11
- export * from './pagination-helpers';
12
- export * from './power-of-2';
1
+ export * from './array-utils.js';
2
+ export * from './chunk-pots.js';
3
+ export * from './delay.js';
4
+ export * from './errors.js';
5
+ export * from './format-signed-number.js';
6
+ export * from './get-ordinal.js';
7
+ export * from './get-percentage.js';
8
+ export * from './string-utils.js';
9
+ export * from './is-even.js';
10
+ export * from './number.js';
11
+ export * from './pagination-helpers.js';
12
+ export * from './power-of-2.js';
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- export * from './array-utils';
2
- export * from './chunk-pots';
3
- export * from './delay';
4
- export * from './errors';
5
- export * from './format-signed-number';
6
- export * from './get-ordinal';
7
- export * from './get-percentage';
8
- export * from './has-vals';
9
- export * from './is-even';
10
- export * from './is-number';
11
- export * from './pagination-helpers';
12
- export * from './power-of-2';
1
+ export * from './array-utils.js';
2
+ export * from './chunk-pots.js';
3
+ export * from './delay.js';
4
+ export * from './errors.js';
5
+ export * from './format-signed-number.js';
6
+ export * from './get-ordinal.js';
7
+ export * from './get-percentage.js';
8
+ export * from './string-utils.js';
9
+ export * from './is-even.js';
10
+ export * from './number.js';
11
+ export * from './pagination-helpers.js';
12
+ export * from './power-of-2.js';
13
13
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const isNumber: (value: unknown) => value is number;
2
+ export declare function convertNumberToLetter(index: number): string;
3
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../src/number.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAElD,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,UAElD"}
package/dist/number.js ADDED
@@ -0,0 +1,7 @@
1
+ export const isNumber = (value) => {
2
+ return typeof value === 'number' && Number.isFinite(value);
3
+ };
4
+ export function convertNumberToLetter(index) {
5
+ return String.fromCharCode(index + "A".charCodeAt(0)).toUpperCase();
6
+ }
7
+ //# sourceMappingURL=number.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.js","sourceRoot":"","sources":["../src/number.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAmB,EAAE;IACxD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,MAAM,UAAU,qBAAqB,CAAC,KAAa;IAC/C,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AACxE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function hasVal(val: string | number | any): val is string;
2
+ //# sourceMappingURL=string-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../src/string-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG,IAAI,MAAM,CAahE"}
@@ -0,0 +1,14 @@
1
+ export function hasVal(val) {
2
+ if (val === null ||
3
+ val === undefined ||
4
+ val === "null" ||
5
+ val === "undefined" ||
6
+ val === "" ||
7
+ !String(val).trim()) {
8
+ return false;
9
+ }
10
+ else {
11
+ return true;
12
+ }
13
+ }
14
+ //# sourceMappingURL=string-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../src/string-utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,GAA0B;IAC/C,IACE,GAAG,KAAK,IAAI;QACZ,GAAG,KAAK,SAAS;QACjB,GAAG,KAAK,MAAM;QACd,GAAG,KAAK,WAAW;QACnB,GAAG,KAAK,EAAE;QACV,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EACnB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;SAAM,CAAC;QACN,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simcups/swiss-tools",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Slim utility.",
5
5
  "type": "module",
6
6
  "sideEffects": false,