@warp-drive/build-config 5.4.0-alpha.146 → 5.4.0-alpha.147

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/runtime.js CHANGED
@@ -1,6 +1,10 @@
1
1
  const RuntimeConfig = {
2
2
  debug: {}
3
3
  };
4
+ const settings = globalThis.sessionStorage?.getItem('WarpDriveRuntimeConfig');
5
+ if (settings) {
6
+ Object.assign(RuntimeConfig, JSON.parse(settings));
7
+ }
4
8
  function getRuntimeConfig() {
5
9
  return RuntimeConfig;
6
10
  }
@@ -15,6 +19,7 @@ function getRuntimeConfig() {
15
19
  */
16
20
  function setLogging(config) {
17
21
  Object.assign(RuntimeConfig.debug, config);
22
+ globalThis.sessionStorage?.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));
18
23
  }
19
24
 
20
25
  export { getRuntimeConfig, setLogging };
@@ -1 +1 @@
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\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}\n"],"names":["RuntimeConfig","debug","getRuntimeConfig","setLogging","config","Object","assign"],"mappings":"AAEA,MAAMA,aAAa,GAAG;AACpBC,EAAAA,KAAK,EAAE;AACT,CAAC;AAEM,SAASC,gBAAgBA,GAAyB;AACvD,EAAA,OAAOF,aAAa;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,UAAUA,CAACC,MAA2B,EAAQ;EAC5DC,MAAM,CAACC,MAAM,CAACN,aAAa,CAACC,KAAK,EAAEG,MAAM,CAAC;AAC5C;;;;"}
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;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/build-config",
3
- "version": "5.4.0-alpha.146",
3
+ "version": "5.4.0-alpha.147",
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.146",
47
+ "@warp-drive/internal-config": "5.4.0-alpha.147",
48
48
  "@types/babel__core": "^7.20.5",
49
49
  "@types/node": "^20.17.22",
50
50
  "@babel/plugin-transform-typescript": "^7.26.8",
@@ -1 +1 @@
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;AAEF,wBAAgB,gBAAgB,IAAI,OAAO,aAAa,CAEvD;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAE5D"}
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"}