@mll-lab/js-utils 2.13.0 → 2.15.0
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/file.d.ts +4 -0
- package/dist/file.test.d.ts +1 -0
- package/dist/index.common.js +96 -9
- package/dist/index.common.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +96 -9
- package/dist/index.js.map +1 -1
- package/dist/predicates.d.ts +1 -1
- package/dist/promise.d.ts +8 -0
- package/dist/promise.test.d.ts +1 -0
- package/package.json +3 -3
package/dist/predicates.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ export declare const isURL: PredicateFn;
|
|
|
14
14
|
export declare const isWord: PredicateFn;
|
|
15
15
|
export declare const isLabId: PredicateFn;
|
|
16
16
|
export declare const isRackBarcode: PredicateFn;
|
|
17
|
-
export declare
|
|
17
|
+
export declare const isNotNullish: PredicateFn;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Call an array of promises in order, waiting for each promise to resolve before calling the next.
|
|
3
|
+
*/
|
|
4
|
+
export declare function callSequentially(promises: Array<() => Promise<unknown>>): Promise<unknown>;
|
|
5
|
+
/**
|
|
6
|
+
* Map an array using an asynchronous callback function, waiting for each promise to resolve before calling the next.
|
|
7
|
+
*/
|
|
8
|
+
export declare function mapSequentially<TValue, TResult>(array: Array<TValue>, callbackFn: (value: TValue) => Promise<TResult>): Promise<Array<TResult>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mll-lab/js-utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"main": "dist/index.common.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@babel/plugin-transform-runtime": "^7.13.6",
|
|
48
48
|
"@babel/preset-env": "^7.13.0",
|
|
49
49
|
"@babel/runtime": "^7.13.6",
|
|
50
|
-
"@mll-lab/eslint-config": "^1.
|
|
51
|
-
"@mll-lab/eslint-plugin": "^1.
|
|
50
|
+
"@mll-lab/eslint-config": "^1.19.0",
|
|
51
|
+
"@mll-lab/eslint-plugin": "^1.3.1",
|
|
52
52
|
"@mll-lab/prettier-config": "^1.0.0",
|
|
53
53
|
"@mll-lab/tsconfig": "^1.1.0",
|
|
54
54
|
"@rollup/plugin-babel": "^5.3.0",
|