@common-stack/core 8.2.2-alpha.0 → 8.2.2-alpha.1
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/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FieldError}from'./field-error.js';export{ClientTypes,CommonType,ElectronTypes,TaggedType}from'./constants/types.js';export{getEnvironment}from'
|
|
1
|
+
export{FieldError}from'./field-error.js';export{ClientTypes,CommonType,ElectronTypes,TaggedType}from'./constants/types.js';export{getEnvironment}from'@cdm-logger/core';export{getGlobalVariable,setGlobalVariable}from'./utils/globalVariable.js';export{IMenuPosition}from'./component/interfaces/menu.js';//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { getEnvironment } from '@cdm-logger/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalVariable.js","sources":["../../src/utils/globalVariable.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"globalVariable.js","sources":["../../src/utils/globalVariable.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAAA;AACA;AAIA;AAEA;AACA,MAAM,UAAU,GAAG,MACf,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,KAAK,YAAY,GAAG,OAAO,CAAC,GAAG,GAAG,MAAM,CAAC;AAE/F,MAAA,iBAAiB,GAAG,CAAC,GAAG,EAAE,QAAQ,GAAG,SAAS,KAAI;AAC3D,IAAA,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;AAC7B,IAAA,IAAI,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;AAC7B,QAAA,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC3B,OAAO,KAAK,KAAK,MAAM,GAAG,IAAI,GAAG,KAAK,KAAK,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC;KACtE;AACD,IAAA,OAAO,QAAQ,CAAC;AACpB,EAAE;MAEW,iBAAiB,GAAG,CAAC,GAAG,EAAE,KAAK,KAAI;AAC5C,IAAA,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;AAC7B,IAAA,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/core",
|
|
3
|
-
"version": "8.2.2-alpha.
|
|
3
|
+
"version": "8.2.2-alpha.1",
|
|
4
4
|
"description": "Common core for higher packages to depend on",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -23,10 +23,13 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"common": "8.2.2-alpha.0"
|
|
25
25
|
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@cdm-logger/core": ">=9.0.17"
|
|
28
|
+
},
|
|
26
29
|
"publishConfig": {
|
|
27
30
|
"access": "public"
|
|
28
31
|
},
|
|
29
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "404d0bcb02c61d0cdeb7fd3c64d321c8b92f0a18",
|
|
30
33
|
"typescript": {
|
|
31
34
|
"definition": "lib/index.d.ts"
|
|
32
35
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-underscore-dangle */
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
3
|
-
function getEnvironment() {
|
|
4
|
-
// Browser or web-based mobile environment
|
|
5
|
-
// @ts-ignore: Object is possibly 'undefined'.
|
|
6
|
-
if (typeof window !== 'undefined') {
|
|
7
|
-
// @ts-ignore: Object is possibly 'undefined'.
|
|
8
|
-
return window.process?.APP_ENV || window?.__ENV__;
|
|
9
|
-
}
|
|
10
|
-
// Node.js environment
|
|
11
|
-
// @ts-ignore: Object is possibly 'undefined'.
|
|
12
|
-
if (typeof window === 'undefined' && typeof process !== 'undefined') {
|
|
13
|
-
return process.env;
|
|
14
|
-
}
|
|
15
|
-
// Default fallback if neither window nor process is defined
|
|
16
|
-
return {}; // Empty object as fallback if no env detected
|
|
17
|
-
}export{getEnvironment};//# sourceMappingURL=getEnvironment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getEnvironment.js","sources":["../../src/utils/getEnvironment.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;SACgB,cAAc,GAAA;;;AAG1B,IAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;;QAE/B,OAAO,MAAM,CAAC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,OAAO,CAAC;KACrD;;;IAGD,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;QACjE,OAAO,OAAO,CAAC,GAAG,CAAC;KACtB;;IAGD,OAAO,EAAE,CAAC;AACd"}
|