@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 +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/number.d.ts +3 -0
- package/dist/number.d.ts.map +1 -0
- package/dist/number.js +7 -0
- package/dist/number.js.map +1 -0
- package/dist/string-utils.d.ts +2 -0
- package/dist/string-utils.d.ts.map +1 -0
- package/dist/string-utils.js +14 -0
- package/dist/string-utils.js.map +1 -0
- package/package.json +1 -1
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 './
|
|
9
|
-
export * from './is-even';
|
|
10
|
-
export * from './
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,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 './
|
|
9
|
-
export * from './is-even';
|
|
10
|
-
export * from './
|
|
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,
|
|
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"}
|
package/dist/number.d.ts
ADDED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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"}
|