@zenflux/core 0.0.0-development.2 → 0.0.0-development.3

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,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var name = "@zenflux/core";
6
- var version = "0.0.0-abc.17";
6
+ var version = "0.0.0-development.2";
7
7
  var description = "ZenFlux core";
8
8
  var author = "Leonid Vinikov <leonidvinikov@gmail.com> (https://github.com/iNewLegend)";
9
9
  var scripts = {
@@ -74,15 +74,15 @@ var pkg = {
74
74
  dependencies: dependencies
75
75
  };
76
76
 
77
+ const managers = {
78
+ initialize: () => {},
79
+ destroy: () => {},
80
+ commands: {},
81
+ controllers: {},
82
+ data: {},
83
+ internal: {}
84
+ };
77
85
  if (typeof __ZEN_MANAGERS__ === 'undefined' || !__ZEN_MANAGERS__) {
78
- const managers = {
79
- initialize: () => {},
80
- destroy: () => {},
81
- commands: {},
82
- controllers: {},
83
- data: {},
84
- internal: {}
85
- };
86
86
  globalThis.__ZEN_MANAGERS__ = managers;
87
87
  }
88
88
 
@@ -1,17 +1,9 @@
1
- import Commands from "./manager-bases/commands";
2
- import Controllers from "./manager-bases/controllers";
3
- import Data from "./manager-bases/data";
4
- import Internal from "./manager-bases/internal";
1
+ import { IManagers } from "./interfaces/managers";
2
+ declare const managers: IManagers;
5
3
  declare global {
6
4
  var ZenCore: any;
7
5
  }
8
6
  declare global {
9
- var __ZEN_MANAGERS__: {
10
- initialize: (config: any) => void;
11
- destroy: () => void;
12
- commands: Commands;
13
- controllers: Controllers;
14
- data: Data;
15
- internal: Internal;
16
- };
7
+ var __ZEN_MANAGERS__: typeof managers;
17
8
  }
9
+ export {};
@@ -1,5 +1,5 @@
1
1
  var name = "@zenflux/core";
2
- var version = "0.0.0-abc.17";
2
+ var version = "0.0.0-development.2";
3
3
  var description = "ZenFlux core";
4
4
  var author = "Leonid Vinikov <leonidvinikov@gmail.com> (https://github.com/iNewLegend)";
5
5
  var scripts = {
@@ -70,15 +70,15 @@ var pkg = {
70
70
  dependencies: dependencies
71
71
  };
72
72
 
73
+ const managers = {
74
+ initialize: () => {},
75
+ destroy: () => {},
76
+ commands: {},
77
+ controllers: {},
78
+ data: {},
79
+ internal: {}
80
+ };
73
81
  if (typeof __ZEN_MANAGERS__ === 'undefined' || !__ZEN_MANAGERS__) {
74
- const managers = {
75
- initialize: () => {},
76
- destroy: () => {},
77
- commands: {},
78
- controllers: {},
79
- data: {},
80
- internal: {}
81
- };
82
82
  globalThis.__ZEN_MANAGERS__ = managers;
83
83
  }
84
84
 
@@ -1,9 +1,9 @@
1
- var t="0.0.0-abc.17";if("undefined"==typeof __ZEN_MANAGERS__||!__ZEN_MANAGERS__){globalThis.__ZEN_MANAGERS__={initialize:()=>{},destroy:()=>{},commands:{},controllers:{},data:{},internal:{}}}
1
+ var t="0.0.0-development.2";"undefined"!=typeof __ZEN_MANAGERS__&&__ZEN_MANAGERS__||(globalThis.__ZEN_MANAGERS__={initialize:()=>{},destroy:()=>{},commands:{},controllers:{},data:{},internal:{}})
2
2
  /**
3
3
  * Function getCircularReplacer() : Reduce circular references.
4
4
  *
5
5
  * @copyright https://stackoverflow.com/a/53731154
6
- */const e=()=>{const t=new WeakSet;return(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return;t.add(r)}return r}},r=function(t,e){t=t.replace("#",""),e=e.replace("#","");const r=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16),o=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);let c=255-Math.abs(r-o),l=255-Math.abs(s-a),h=255-Math.abs(n-i);return c/=255,l/=255,h/=255,(c+l+h)/3};
6
+ */;const e=()=>{const t=new WeakSet;return(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return;t.add(r)}return r}},r=function(t,e){t=t.replace("#",""),e=e.replace("#","");const r=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16),o=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);let c=255-Math.abs(r-o),l=255-Math.abs(s-a),h=255-Math.abs(n-i);return c/=255,l/=255,h/=255,(c+l+h)/3};
7
7
  /**
8
8
  * Function hexColorDelta() : Return color difference in ratio decimal point.
9
9
  *
@@ -1,9 +1,9 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@zenflux/core"]={})}(this,(function(t){"use strict";var e="0.0.0-abc.17";if("undefined"==typeof __ZEN_MANAGERS__||!__ZEN_MANAGERS__){globalThis.__ZEN_MANAGERS__={initialize:()=>{},destroy:()=>{},commands:{},controllers:{},data:{},internal:{}}}
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@zenflux/core"]={})}(this,(function(t){"use strict";var e="0.0.0-development.2";"undefined"!=typeof __ZEN_MANAGERS__&&__ZEN_MANAGERS__||(globalThis.__ZEN_MANAGERS__={initialize:()=>{},destroy:()=>{},commands:{},controllers:{},data:{},internal:{}})
2
2
  /**
3
3
  * Function getCircularReplacer() : Reduce circular references.
4
4
  *
5
5
  * @copyright https://stackoverflow.com/a/53731154
6
- */const r=()=>{const t=new WeakSet;return(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return;t.add(r)}return r}},s=function(t,e){t=t.replace("#",""),e=e.replace("#","");const r=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16),o=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);let c=255-Math.abs(r-o),l=255-Math.abs(s-a),h=255-Math.abs(n-i);return c/=255,l/=255,h/=255,(c+l+h)/3};
6
+ */;const r=()=>{const t=new WeakSet;return(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return;t.add(r)}return r}},s=function(t,e){t=t.replace("#",""),e=e.replace("#","");const r=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16),o=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);let c=255-Math.abs(r-o),l=255-Math.abs(s-a),h=255-Math.abs(n-i);return c/=255,l/=255,h/=255,(c+l+h)/3};
7
7
  /**
8
8
  * Function hexColorDelta() : Return color difference in ratio decimal point.
9
9
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenflux/core",
3
- "version": "0.0.0-development.2",
3
+ "version": "0.0.0-development.3",
4
4
  "description": "ZenFlux core",
5
5
  "author": "Leonid Vinikov <leonidvinikov@gmail.com> (https://github.com/iNewLegend)",
6
6
  "scripts": {
package/src/globals.ts CHANGED
@@ -5,16 +5,17 @@ import Internal from "./manager-bases/internal";
5
5
 
6
6
  import { IManagers } from "./interfaces/managers";
7
7
 
8
- if ( typeof __ZEN_MANAGERS__ === 'undefined' || ! __ZEN_MANAGERS__ ) {
9
- const managers: IManagers = {
10
- initialize: () => {},
11
- destroy: () => {},
8
+ const managers: IManagers = {
9
+ initialize: () => {},
10
+ destroy: () => {},
12
11
 
13
- commands: {} as Commands,
14
- controllers: {} as Controllers,
15
- data: {} as Data,
16
- internal: {} as Internal,
17
- }
12
+ commands: {} as Commands,
13
+ controllers: {} as Controllers,
14
+ data: {} as Data,
15
+ internal: {} as Internal,
16
+ }
17
+
18
+ if ( typeof __ZEN_MANAGERS__ === 'undefined' || ! __ZEN_MANAGERS__ ) {
18
19
 
19
20
  globalThis.__ZEN_MANAGERS__ = managers;
20
21
  }
@@ -24,13 +25,5 @@ declare global {
24
25
  }
25
26
 
26
27
  declare global {
27
- var __ZEN_MANAGERS__: {
28
- initialize: ( config: any ) => void;
29
- destroy: () => void;
30
-
31
- commands: Commands;
32
- controllers: Controllers;
33
- data: Data;
34
- internal: Internal;
35
- }
28
+ var __ZEN_MANAGERS__: typeof managers;
36
29
  }