@thisisagile/easy 12.10.0 → 12.11.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.
@@ -0,0 +1 @@
1
+ export declare const isLoading: (...targets: unknown[]) => boolean;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isLoading = void 0;
4
+ const types_1 = require("../types");
5
+ const isLoading = (...targets) => (0, types_1.toArray)(targets).some(t => (0, types_1.isEmpty)(t) || (0, types_1.isEmptyObject)(t));
6
+ exports.isLoading = isLoading;
7
+ //# sourceMappingURL=Loading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../src/utils/Loading.ts"],"names":[],"mappings":";;;AAAA,oCAA2D;AAEpD,MAAM,SAAS,GAAG,CAAC,GAAG,OAAkB,EAAW,EAAE,CAAC,IAAA,eAAO,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,eAAO,EAAC,CAAC,CAAC,IAAI,IAAA,qBAAa,EAAC,CAAC,CAAC,CAAC,CAAC;AAA3G,QAAA,SAAS,aAAkG"}
@@ -1,5 +1,6 @@
1
1
  export * from './Convert';
2
2
  export * from './If';
3
+ export * from './Loading';
3
4
  export * from './Log';
4
5
  export * from './Mapper';
5
6
  export * from './Promise';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Convert"), exports);
18
18
  __exportStar(require("./If"), exports);
19
+ __exportStar(require("./Loading"), exports);
19
20
  __exportStar(require("./Log"), exports);
20
21
  __exportStar(require("./Mapper"), exports);
21
22
  __exportStar(require("./Promise"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,uCAAqB;AACrB,wCAAsB;AACtB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,6CAA2B;AAC3B,yCAAuB;AACvB,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,uCAAqB;AACrB,4CAA0B;AAC1B,wCAAsB;AACtB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,6CAA2B;AAC3B,yCAAuB;AACvB,yCAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy",
3
- "version": "12.10.0",
3
+ "version": "12.11.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": "12.10.0",
34
+ "@thisisagile/easy-test": "12.11.0",
35
35
  "@types/form-urlencoded": "^4.4.0",
36
36
  "@types/jsonwebtoken": "^8.5.9",
37
37
  "@types/luxon": "3.0.2",
@@ -0,0 +1,3 @@
1
+ import { isEmpty, isEmptyObject, toArray } from '../types';
2
+
3
+ export const isLoading = (...targets: unknown[]): boolean => toArray(targets).some(t => isEmpty(t) || isEmptyObject(t));
@@ -1,5 +1,6 @@
1
1
  export * from './Convert';
2
2
  export * from './If';
3
+ export * from './Loading';
3
4
  export * from './Log';
4
5
  export * from './Mapper';
5
6
  export * from './Promise';