@thisisagile/easy 8.31.1 → 8.32.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.
@@ -3,5 +3,8 @@ declare type Pro<A> = A | PromiseLike<A>;
3
3
  declare type Aw<A> = Awaited<A>;
4
4
  export declare const resolve: <S = unknown>(subject: S | PromiseLike<S>) => Promise<S>;
5
5
  export declare const reject: <S = never>(e: ErrorOrigin) => Promise<S>;
6
- export declare const tuple: <F, S>(first: Pro<F>, second: Pro<S>) => Promise<[Awaited<F>, Awaited<S>]>;
6
+ export declare const tuple: {
7
+ 2: <F, S>(first: Pro<F>, second: Pro<S>) => Promise<[Awaited<F>, Awaited<S>]>;
8
+ 3: <F_1, S_1, T>(first: Pro<F_1>, second: Pro<S_1>, third: Pro<T>) => Promise<[Awaited<F_1>, Awaited<S_1>, Awaited<T>]>;
9
+ };
7
10
  export {};
@@ -5,6 +5,8 @@ const resolve = (subject) => Promise.resolve(subject);
5
5
  exports.resolve = resolve;
6
6
  const reject = (e) => Promise.reject(e);
7
7
  exports.reject = reject;
8
- const tuple = (first, second) => Promise.all([first, second]);
9
- exports.tuple = tuple;
8
+ exports.tuple = {
9
+ 2: (first, second) => Promise.all([first, second]),
10
+ 3: (first, second, third) => Promise.all([first, second, third]),
11
+ };
10
12
  //# sourceMappingURL=Promise.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Promise.js","sourceRoot":"","sources":["../../src/utils/Promise.ts"],"names":[],"mappings":";;;AAKO,MAAM,OAAO,GAAG,CAAc,OAA2B,EAAc,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAA7F,QAAA,OAAO,WAAsF;AACnG,MAAM,MAAM,GAAG,CAAY,CAAc,EAAc,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAAtE,QAAA,MAAM,UAAgE;AAE5E,MAAM,KAAK,GAAG,CAAO,KAAa,EAAE,MAAc,EAA2B,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAAvG,QAAA,KAAK,SAAkG"}
1
+ {"version":3,"file":"Promise.js","sourceRoot":"","sources":["../../src/utils/Promise.ts"],"names":[],"mappings":";;;AAKO,MAAM,OAAO,GAAG,CAAc,OAA2B,EAAc,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAA7F,QAAA,OAAO,WAAsF;AACnG,MAAM,MAAM,GAAG,CAAY,CAAc,EAAc,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAAtE,QAAA,MAAM,UAAgE;AAEtE,QAAA,KAAK,GAAG;IACnB,CAAC,EAAE,CAAO,KAAa,EAAE,MAAc,EAA2B,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACjG,CAAC,EAAE,CAAU,KAAa,EAAE,MAAc,EAAE,KAAa,EAAkC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;CAClI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy",
3
- "version": "8.31.1",
3
+ "version": "8.32.0",
4
4
  "description": "Straightforward library for building domain-driven microservice architectures",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "devDependencies": {
34
- "@thisisagile/easy-test": "8.31.1",
34
+ "@thisisagile/easy-test": "8.32.0",
35
35
  "@types/form-urlencoded": "^4.4.0",
36
36
  "@types/jsonwebtoken": "^8.5.8",
37
37
  "@types/validator": "^13.7.0"
@@ -6,4 +6,8 @@ type Aw<A> = Awaited<A>;
6
6
  export const resolve = <S = unknown>(subject: S | PromiseLike<S>): Promise<S> => Promise.resolve(subject);
7
7
  export const reject = <S = never>(e: ErrorOrigin): Promise<S> => Promise.reject(e);
8
8
 
9
- export const tuple = <F, S>(first: Pro<F>, second: Pro<S>): Promise<[Aw<F>, Aw<S>]> => Promise.all([first, second]);
9
+ export const tuple = {
10
+ 2: <F, S>(first: Pro<F>, second: Pro<S>): Promise<[Aw<F>, Aw<S>]> => Promise.all([first, second]),
11
+ 3: <F, S, T>(first: Pro<F>, second: Pro<S>, third: Pro<T>): Promise<[Aw<F>, Aw<S>, Aw<T>]> => Promise.all([first, second, third]),
12
+ };
13
+