@warp-drive/build-config 5.4.0-alpha.149 → 5.4.0-alpha.150
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive/build-config",
|
|
3
|
-
"version": "5.4.0-alpha.
|
|
3
|
+
"version": "5.4.0-alpha.150",
|
|
4
4
|
"description": "Provides Build Configuration for projects using WarpDrive or EmberData",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-data",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"semver": "^7.7.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@warp-drive/internal-config": "5.4.0-alpha.
|
|
47
|
+
"@warp-drive/internal-config": "5.4.0-alpha.150",
|
|
48
48
|
"@types/babel__core": "^7.20.5",
|
|
49
49
|
"@types/node": "^20.17.22",
|
|
50
50
|
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
/// <reference path="./babel-macros.d.ts" />
|
|
6
6
|
/// <reference path="./validate-exports.type-test.d.ts" />
|
|
7
7
|
/// <reference path="./macros.d.ts" />
|
|
8
|
-
/// <reference path="./runtime.d.ts" />
|
|
9
8
|
/// <reference path="./canary-features.d.ts" />
|
|
10
9
|
/// <reference path="./env.d.ts" />
|
|
11
10
|
/// <reference path="./-private/utils/deprecations.d.ts" />
|
package/dist/runtime.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const RuntimeConfig = {
|
|
2
|
-
debug: {}
|
|
3
|
-
};
|
|
4
|
-
const settings = globalThis.sessionStorage?.getItem('WarpDriveRuntimeConfig');
|
|
5
|
-
if (settings) {
|
|
6
|
-
Object.assign(RuntimeConfig, JSON.parse(settings));
|
|
7
|
-
}
|
|
8
|
-
function getRuntimeConfig() {
|
|
9
|
-
return RuntimeConfig;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Upserts the specified logging configuration into the runtime
|
|
14
|
-
* config.
|
|
15
|
-
*
|
|
16
|
-
* globalThis.setWarpDriveLogging({ LOG_PAYLOADS: true } });
|
|
17
|
-
*
|
|
18
|
-
* @typedoc
|
|
19
|
-
*/
|
|
20
|
-
function setLogging(config) {
|
|
21
|
-
Object.assign(RuntimeConfig.debug, config);
|
|
22
|
-
globalThis.sessionStorage?.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { getRuntimeConfig, setLogging };
|
|
26
|
-
//# sourceMappingURL=runtime.js.map
|
package/dist/runtime.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sources":["../src/runtime.ts"],"sourcesContent":["import { LOG_CONFIG } from './-private/utils/logging';\n\nconst RuntimeConfig = {\n debug: {},\n};\n\nconst settings = globalThis.sessionStorage?.getItem('WarpDriveRuntimeConfig');\nif (settings) {\n Object.assign(RuntimeConfig, JSON.parse(settings));\n}\n\nexport function getRuntimeConfig(): typeof RuntimeConfig {\n return RuntimeConfig;\n}\n\n/**\n * Upserts the specified logging configuration into the runtime\n * config.\n *\n * globalThis.setWarpDriveLogging({ LOG_PAYLOADS: true } });\n *\n * @typedoc\n */\nexport function setLogging(config: Partial<LOG_CONFIG>): void {\n Object.assign(RuntimeConfig.debug, config);\n globalThis.sessionStorage?.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));\n}\n"],"names":["RuntimeConfig","debug","settings","globalThis","sessionStorage","getItem","Object","assign","JSON","parse","getRuntimeConfig","setLogging","config","setItem","stringify"],"mappings":"AAEA,MAAMA,aAAa,GAAG;AACpBC,EAAAA,KAAK,EAAE;AACT,CAAC;AAED,MAAMC,QAAQ,GAAGC,UAAU,CAACC,cAAc,EAAEC,OAAO,CAAC,wBAAwB,CAAC;AAC7E,IAAIH,QAAQ,EAAE;EACZI,MAAM,CAACC,MAAM,CAACP,aAAa,EAAEQ,IAAI,CAACC,KAAK,CAACP,QAAQ,CAAC,CAAC;AACpD;AAEO,SAASQ,gBAAgBA,GAAyB;AACvD,EAAA,OAAOV,aAAa;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASW,UAAUA,CAACC,MAA2B,EAAQ;EAC5DN,MAAM,CAACC,MAAM,CAACP,aAAa,CAACC,KAAK,EAAEW,MAAM,CAAC;AAC1CT,EAAAA,UAAU,CAACC,cAAc,EAAES,OAAO,CAAC,wBAAwB,EAAEL,IAAI,CAACM,SAAS,CAACd,aAAa,CAAC,CAAC;AAC7F;;;;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare module '@warp-drive/build-config/runtime' {
|
|
2
|
-
import { LOG_CONFIG } from '@warp-drive/build-config/-private/utils/logging';
|
|
3
|
-
const RuntimeConfig: {
|
|
4
|
-
debug: {};
|
|
5
|
-
};
|
|
6
|
-
export function getRuntimeConfig(): typeof RuntimeConfig;
|
|
7
|
-
/**
|
|
8
|
-
* Upserts the specified logging configuration into the runtime
|
|
9
|
-
* config.
|
|
10
|
-
*
|
|
11
|
-
* globalThis.setWarpDriveLogging({ LOG_PAYLOADS: true } });
|
|
12
|
-
*
|
|
13
|
-
* @typedoc
|
|
14
|
-
*/
|
|
15
|
-
export function setLogging(config: Partial<LOG_CONFIG>): void;
|
|
16
|
-
export {};
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,QAAA,MAAM,aAAa;;CAElB,CAAC;AAOF,wBAAgB,gBAAgB,IAAI,OAAO,aAAa,CAEvD;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAG5D"}
|