@adaas/a-utils 0.1.8 → 0.1.10

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
@@ -12,11 +12,16 @@ export { ENVConfigReader } from './src/lib/A-Config/components/ENVConfigReader.c
12
12
  export { FileConfigReader } from './src/lib/A-Config/components/FileConfigReader.component';
13
13
  export * from './src/lib/A-Config/A-Config.types';
14
14
  export * from './src/lib/A-Config/A-Config.constants';
15
+ export { A_Logger } from './src/lib/A-Logger/A-Logger.component';
16
+ export { A_Manifest } from './src/lib/A-Manifest/A-Manifest.context';
17
+ export { A_ManifestError } from './src/lib/A-Manifest/A-Manifest.error';
18
+ export { A_ManifestChecker } from './src/lib/A-Manifest/classes/A-ManifestChecker.class';
19
+ export * from './src/lib/A-Manifest/A-Manifest.types';
15
20
  export { A_Memory } from './src/lib/A-Memory/A-Memory.context';
16
21
  export { A_Polyfill } from './src/lib/A-Polyfill/A-Polyfill.component';
17
22
  export { A_PolyfillClass } from './src/lib/A-Polyfill/A-Polyfills.class';
18
- export { A_Logger } from './src/lib/A-Logger/A-Logger.component';
23
+ export * from './src/lib/A-Polyfill/A-Polyfill.types';
19
24
  export { A_Schedule } from './src/lib/A-Schedule/A-Schedule.component';
20
- export * from './src/lib/A-Schedule/A-Schedule.types';
21
25
  export { A_ScheduleObject } from './src/lib/A-Schedule/A-ScheduleObject.class';
22
26
  export { A_Deferred } from './src/lib/A-Schedule/A-Deferred.class';
27
+ export * from './src/lib/A-Schedule/A-Schedule.types';
package/dist/index.js CHANGED
@@ -14,18 +14,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.A_Deferred = exports.A_ScheduleObject = exports.A_Schedule = exports.A_Logger = exports.A_PolyfillClass = exports.A_Polyfill = exports.A_Memory = exports.FileConfigReader = exports.ENVConfigReader = exports.ConfigReader = exports.A_ConfigError = exports.A_Config = exports.A_ConfigLoader = exports.A_CommandError = exports.A_Command = exports.A_ChannelError = exports.A_Channel = void 0;
17
+ exports.A_Deferred = exports.A_ScheduleObject = exports.A_Schedule = exports.A_PolyfillClass = exports.A_Polyfill = exports.A_Memory = exports.A_ManifestChecker = exports.A_ManifestError = exports.A_Manifest = exports.A_Logger = exports.FileConfigReader = exports.ENVConfigReader = exports.ConfigReader = exports.A_ConfigError = exports.A_Config = exports.A_ConfigLoader = exports.A_CommandError = exports.A_Command = exports.A_ChannelError = exports.A_Channel = void 0;
18
+ // ============================================================================
19
+ // A-Channel Components
20
+ // ============================================================================
18
21
  var A_Channel_component_1 = require("./src/lib/A-Channel/A-Channel.component");
19
22
  Object.defineProperty(exports, "A_Channel", { enumerable: true, get: function () { return A_Channel_component_1.A_Channel; } });
20
23
  var A_Channel_error_1 = require("./src/lib/A-Channel/A-Channel.error");
21
24
  Object.defineProperty(exports, "A_ChannelError", { enumerable: true, get: function () { return A_Channel_error_1.A_ChannelError; } });
22
- // export * from './src/lib/A-Channel/A-Channel.types';
25
+ // export * from './src/lib/A-Channel/A-Channel.types'; // Empty file
26
+ // ============================================================================
27
+ // A-Command Components
28
+ // ============================================================================
23
29
  var A_Command_entity_1 = require("./src/lib/A-Command/A-Command.entity");
24
30
  Object.defineProperty(exports, "A_Command", { enumerable: true, get: function () { return A_Command_entity_1.A_Command; } });
25
31
  var A_Command_error_1 = require("./src/lib/A-Command/A-Command.error");
26
32
  Object.defineProperty(exports, "A_CommandError", { enumerable: true, get: function () { return A_Command_error_1.A_CommandError; } });
27
33
  __exportStar(require("./src/lib/A-Command/A-Command.types"), exports);
28
34
  __exportStar(require("./src/lib/A-Command/A-Command.constants"), exports);
35
+ // ============================================================================
36
+ // A-Config Components
37
+ // ============================================================================
29
38
  var A_Config_container_1 = require("./src/lib/A-Config/A-Config.container");
30
39
  Object.defineProperty(exports, "A_ConfigLoader", { enumerable: true, get: function () { return A_Config_container_1.A_ConfigLoader; } });
31
40
  var A_Config_context_1 = require("./src/lib/A-Config/A-Config.context");
@@ -40,21 +49,43 @@ var FileConfigReader_component_1 = require("./src/lib/A-Config/components/FileCo
40
49
  Object.defineProperty(exports, "FileConfigReader", { enumerable: true, get: function () { return FileConfigReader_component_1.FileConfigReader; } });
41
50
  __exportStar(require("./src/lib/A-Config/A-Config.types"), exports);
42
51
  __exportStar(require("./src/lib/A-Config/A-Config.constants"), exports);
52
+ // ============================================================================
53
+ // A-Logger Components
54
+ // ============================================================================
55
+ var A_Logger_component_1 = require("./src/lib/A-Logger/A-Logger.component");
56
+ Object.defineProperty(exports, "A_Logger", { enumerable: true, get: function () { return A_Logger_component_1.A_Logger; } });
57
+ // export * from './src/lib/A-Logger/A-Logger.types'; // Empty file
58
+ // ============================================================================
59
+ // A-Manifest Components
60
+ // ============================================================================
61
+ var A_Manifest_context_1 = require("./src/lib/A-Manifest/A-Manifest.context");
62
+ Object.defineProperty(exports, "A_Manifest", { enumerable: true, get: function () { return A_Manifest_context_1.A_Manifest; } });
63
+ var A_Manifest_error_1 = require("./src/lib/A-Manifest/A-Manifest.error");
64
+ Object.defineProperty(exports, "A_ManifestError", { enumerable: true, get: function () { return A_Manifest_error_1.A_ManifestError; } });
65
+ var A_ManifestChecker_class_1 = require("./src/lib/A-Manifest/classes/A-ManifestChecker.class");
66
+ Object.defineProperty(exports, "A_ManifestChecker", { enumerable: true, get: function () { return A_ManifestChecker_class_1.A_ManifestChecker; } });
67
+ __exportStar(require("./src/lib/A-Manifest/A-Manifest.types"), exports);
68
+ // ============================================================================
69
+ // A-Memory Components
70
+ // ============================================================================
43
71
  var A_Memory_context_1 = require("./src/lib/A-Memory/A-Memory.context");
44
72
  Object.defineProperty(exports, "A_Memory", { enumerable: true, get: function () { return A_Memory_context_1.A_Memory; } });
73
+ // ============================================================================
74
+ // A-Polyfill Components
75
+ // ============================================================================
45
76
  var A_Polyfill_component_1 = require("./src/lib/A-Polyfill/A-Polyfill.component");
46
77
  Object.defineProperty(exports, "A_Polyfill", { enumerable: true, get: function () { return A_Polyfill_component_1.A_Polyfill; } });
47
78
  var A_Polyfills_class_1 = require("./src/lib/A-Polyfill/A-Polyfills.class");
48
79
  Object.defineProperty(exports, "A_PolyfillClass", { enumerable: true, get: function () { return A_Polyfills_class_1.A_PolyfillClass; } });
49
- // export * from './src/lib/A-Polyfill/A-Polyfill.types';
50
- var A_Logger_component_1 = require("./src/lib/A-Logger/A-Logger.component");
51
- Object.defineProperty(exports, "A_Logger", { enumerable: true, get: function () { return A_Logger_component_1.A_Logger; } });
52
- // export * from './src/lib/A-Logger/A-Logger.types';
80
+ __exportStar(require("./src/lib/A-Polyfill/A-Polyfill.types"), exports);
81
+ // ============================================================================
82
+ // A-Schedule Components
83
+ // ============================================================================
53
84
  var A_Schedule_component_1 = require("./src/lib/A-Schedule/A-Schedule.component");
54
85
  Object.defineProperty(exports, "A_Schedule", { enumerable: true, get: function () { return A_Schedule_component_1.A_Schedule; } });
55
- __exportStar(require("./src/lib/A-Schedule/A-Schedule.types"), exports);
56
86
  var A_ScheduleObject_class_1 = require("./src/lib/A-Schedule/A-ScheduleObject.class");
57
87
  Object.defineProperty(exports, "A_ScheduleObject", { enumerable: true, get: function () { return A_ScheduleObject_class_1.A_ScheduleObject; } });
58
88
  var A_Deferred_class_1 = require("./src/lib/A-Schedule/A-Deferred.class");
59
89
  Object.defineProperty(exports, "A_Deferred", { enumerable: true, get: function () { return A_Deferred_class_1.A_Deferred; } });
90
+ __exportStar(require("./src/lib/A-Schedule/A-Schedule.types"), exports);
60
91
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,+EAAoE;AAA3D,gHAAA,SAAS,OAAA;AAClB,uEAAqE;AAA5D,iHAAA,cAAc,OAA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,4GAAA,QAAQ,OAAA;AACjB,oEAAkE;AAAzD,+GAAA,aAAa,OAAA;AACtB,+FAAoF;AAA3E,sHAAA,YAAY,OAAA;AACrB,qGAA0F;AAAjF,4HAAA,eAAe,OAAA;AACxB,uGAA4F;AAAnF,8HAAA,gBAAgB,OAAA;AACzB,oEAAkD;AAClD,wEAAsD;AAGtD,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAC/E,4EAAiE;AAAxD,8GAAA,QAAQ,OAAA;AACjB,mEAAmE;AAGnE,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAC/E,8EAAqE;AAA5D,gHAAA,UAAU,OAAA;AACnB,0EAAwE;AAA/D,mHAAA,eAAe,OAAA;AACxB,gGAAyF;AAAhF,4HAAA,iBAAiB,OAAA;AAC1B,wEAAsD;AAGtD,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAC/E,wEAA+D;AAAtD,4GAAA,QAAQ,OAAA;AAGjB,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAC/E,kFAAuE;AAA9D,kHAAA,UAAU,OAAA;AACnB,4EAAyE;AAAhE,oHAAA,eAAe,OAAA;AACxB,wEAAsD;AAGtD,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAC/E,kFAAuE;AAA9D,kHAAA,UAAU,OAAA;AACnB,sFAA+E;AAAtE,0HAAA,gBAAgB,OAAA;AACzB,0EAAmE;AAA1D,8GAAA,UAAU,OAAA;AACnB,wEAAsD"}
@@ -39,5 +39,5 @@ export interface A_UTILS_TYPES__ManifestRule {
39
39
  export interface A_UTILS_TYPES__ManifestQuery {
40
40
  component: A_TYPES__Component_Constructor;
41
41
  method: string;
42
- target: A_TYPES__Component_Constructor;
42
+ target: A_UTILS_TYPES__Manifest_AllowedComponents;
43
43
  }
@@ -1,5 +1,6 @@
1
1
  import { A_TYPES__Component_Constructor } from "@adaas/a-concept";
2
2
  import { A_Manifest } from "../A-Manifest.context";
3
+ import { A_UTILS_TYPES__Manifest_AllowedComponents } from "../A-Manifest.types";
3
4
  /**
4
5
  * Fluent API for checking manifest permissions
5
6
  */
@@ -9,5 +10,5 @@ export declare class A_ManifestChecker {
9
10
  private method;
10
11
  private checkExclusion;
11
12
  constructor(manifest: A_Manifest, component: A_TYPES__Component_Constructor, method: string, checkExclusion?: boolean);
12
- for(target: A_TYPES__Component_Constructor): boolean;
13
+ for(target: A_UTILS_TYPES__Manifest_AllowedComponents): boolean;
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"A-ManifestChecker.class.js","sourceRoot":"","sources":["../../../../../src/lib/A-Manifest/classes/A-ManifestChecker.class.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAa,iBAAiB;IAC1B,YACY,QAAoB,EACpB,SAAyC,EACzC,MAAc,EACd,iBAA0B,KAAK;QAH/B,aAAQ,GAAR,QAAQ,CAAY;QACpB,cAAS,GAAT,SAAS,CAAgC;QACzC,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAAiB;IACxC,CAAC;IAEJ,GAAG,CAAC,MAAsC;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC;YAC9C,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,MAAM;SACjB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAClD,CAAC;CACJ;AAjBD,8CAiBC"}
1
+ {"version":3,"file":"A-ManifestChecker.class.js","sourceRoot":"","sources":["../../../../../src/lib/A-Manifest/classes/A-ManifestChecker.class.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACH,MAAa,iBAAiB;IAC1B,YACY,QAAoB,EACpB,SAAyC,EACzC,MAAc,EACd,iBAA0B,KAAK;QAH/B,aAAQ,GAAR,QAAQ,CAAY;QACpB,cAAS,GAAT,SAAS,CAAgC;QACzC,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAAiB;IACxC,CAAC;IAEJ,GAAG,CAAC,MAAiD;QACjD,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC;YAC9C,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,MAAM;SACjB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAClD,CAAC;CACJ;AAjBD,8CAiBC"}
package/index.ts CHANGED
@@ -1,15 +1,24 @@
1
1
 
2
+ // ============================================================================
3
+ // A-Channel Components
4
+ // ============================================================================
2
5
  export { A_Channel } from './src/lib/A-Channel/A-Channel.component';
3
6
  export { A_ChannelError } from './src/lib/A-Channel/A-Channel.error';
4
- // export * from './src/lib/A-Channel/A-Channel.types';
7
+ // export * from './src/lib/A-Channel/A-Channel.types'; // Empty file
5
8
 
6
9
 
10
+ // ============================================================================
11
+ // A-Command Components
12
+ // ============================================================================
7
13
  export { A_Command } from './src/lib/A-Command/A-Command.entity';
8
14
  export { A_CommandError } from './src/lib/A-Command/A-Command.error';
9
15
  export * from './src/lib/A-Command/A-Command.types';
10
16
  export * from './src/lib/A-Command/A-Command.constants';
11
17
 
12
18
 
19
+ // ============================================================================
20
+ // A-Config Components
21
+ // ============================================================================
13
22
  export { A_ConfigLoader } from './src/lib/A-Config/A-Config.container';
14
23
  export { A_Config } from './src/lib/A-Config/A-Config.context';
15
24
  export { A_ConfigError } from './src/lib/A-Config/A-Config.error';
@@ -20,20 +29,43 @@ export * from './src/lib/A-Config/A-Config.types';
20
29
  export * from './src/lib/A-Config/A-Config.constants';
21
30
 
22
31
 
23
- export { A_Memory } from './src/lib/A-Memory/A-Memory.context'
32
+ // ============================================================================
33
+ // A-Logger Components
34
+ // ============================================================================
35
+ export { A_Logger } from './src/lib/A-Logger/A-Logger.component';
36
+ // export * from './src/lib/A-Logger/A-Logger.types'; // Empty file
37
+
38
+
39
+ // ============================================================================
40
+ // A-Manifest Components
41
+ // ============================================================================
42
+ export { A_Manifest } from './src/lib/A-Manifest/A-Manifest.context';
43
+ export { A_ManifestError } from './src/lib/A-Manifest/A-Manifest.error';
44
+ export { A_ManifestChecker } from './src/lib/A-Manifest/classes/A-ManifestChecker.class';
45
+ export * from './src/lib/A-Manifest/A-Manifest.types';
46
+
24
47
 
48
+ // ============================================================================
49
+ // A-Memory Components
50
+ // ============================================================================
51
+ export { A_Memory } from './src/lib/A-Memory/A-Memory.context';
52
+
53
+
54
+ // ============================================================================
55
+ // A-Polyfill Components
56
+ // ============================================================================
25
57
  export { A_Polyfill } from './src/lib/A-Polyfill/A-Polyfill.component';
26
58
  export { A_PolyfillClass } from './src/lib/A-Polyfill/A-Polyfills.class';
27
- // export * from './src/lib/A-Polyfill/A-Polyfill.types';
28
-
29
- export { A_Logger } from './src/lib/A-Logger/A-Logger.component';
30
- // export * from './src/lib/A-Logger/A-Logger.types';
59
+ export * from './src/lib/A-Polyfill/A-Polyfill.types';
31
60
 
32
61
 
33
- export { A_Schedule } from './src/lib/A-Schedule/A-Schedule.component'
34
- export * from './src/lib/A-Schedule/A-Schedule.types'
35
- export { A_ScheduleObject } from './src/lib/A-Schedule/A-ScheduleObject.class'
36
- export { A_Deferred } from './src/lib/A-Schedule/A-Deferred.class'
62
+ // ============================================================================
63
+ // A-Schedule Components
64
+ // ============================================================================
65
+ export { A_Schedule } from './src/lib/A-Schedule/A-Schedule.component';
66
+ export { A_ScheduleObject } from './src/lib/A-Schedule/A-ScheduleObject.class';
67
+ export { A_Deferred } from './src/lib/A-Schedule/A-Deferred.class';
68
+ export * from './src/lib/A-Schedule/A-Schedule.types';
37
69
 
38
70
 
39
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaas/a-utils",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "A-Utils is a set of utilities that are used across the ADAAS ecosystem. This package is designed to be a collection of utilities that are used across the ADAAS ecosystem.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -58,5 +58,5 @@ export interface A_UTILS_TYPES__ManifestRule {
58
58
  export interface A_UTILS_TYPES__ManifestQuery {
59
59
  component: A_TYPES__Component_Constructor;
60
60
  method: string;
61
- target: A_TYPES__Component_Constructor;
61
+ target: A_UTILS_TYPES__Manifest_AllowedComponents;
62
62
  }
@@ -1,5 +1,6 @@
1
1
  import { A_TYPES__Component_Constructor } from "@adaas/a-concept";
2
2
  import { A_Manifest } from "../A-Manifest.context";
3
+ import { A_UTILS_TYPES__Manifest_AllowedComponents } from "../A-Manifest.types";
3
4
 
4
5
  /**
5
6
  * Fluent API for checking manifest permissions
@@ -12,7 +13,7 @@ export class A_ManifestChecker {
12
13
  private checkExclusion: boolean = false
13
14
  ) {}
14
15
 
15
- for(target: A_TYPES__Component_Constructor): boolean {
16
+ for(target: A_UTILS_TYPES__Manifest_AllowedComponents): boolean {
16
17
  const result = this.manifest.internal_checkAccess({
17
18
  component: this.component,
18
19
  method: this.method,