@equinor/fusion-framework-vite-plugin-spa 4.0.11 → 4.0.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @equinor/fusion-framework-vite-plugin-spa
2
2
 
3
+ ## 4.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7508555]
8
+ - @equinor/fusion-framework-module-msal@10.0.1
9
+
10
+ ## 4.0.12
11
+
12
+ ### Patch Changes
13
+
14
+ - 74beb1c: Fix type export paths for `./bootstrap.js` and `./sw.js` so TypeScript resolves the published declarations correctly.
15
+ - Prevent broken type resolution when consuming the SPA bootstrap and service worker entrypoints.
16
+
3
17
  ## 4.0.11
4
18
 
5
19
  ### Patch Changes
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '4.0.11';
2
+ export const version = '4.0.13';
3
3
  //# sourceMappingURL=version.js.map
@@ -23451,6 +23451,24 @@ var objectTraps = {
23451
23451
  get(state, prop) {
23452
23452
  if (prop === DRAFT_STATE)
23453
23453
  return state;
23454
+ if (prop === "constructor" || prop === "__proto__") {
23455
+ const source2 = latest(state);
23456
+ const value2 = source2[prop];
23457
+ return new Proxy(value2 || {}, {
23458
+ get: (target, key) => {
23459
+ if (key === "__proto__" || key === "prototype") {
23460
+ return Object.freeze(/* @__PURE__ */ Object.create(null));
23461
+ }
23462
+ return Reflect.get(target, key);
23463
+ },
23464
+ set: () => {
23465
+ return true;
23466
+ },
23467
+ apply: (target, thisArg, args) => {
23468
+ return Reflect.apply(target, thisArg, args);
23469
+ }
23470
+ });
23471
+ }
23454
23472
  let arrayPlugin = state.scope_.arrayMethodsPlugin_;
23455
23473
  const isArrayWithStringProp = state.type_ === 1 /* Array */ && typeof prop === "string";
23456
23474
  if (isArrayWithStringProp) {
@@ -23480,12 +23498,18 @@ var objectTraps = {
23480
23498
  return value;
23481
23499
  },
23482
23500
  has(state, prop) {
23501
+ if (prop === "constructor" || prop === "__proto__" || prop === "prototype") {
23502
+ return false;
23503
+ }
23483
23504
  return prop in latest(state);
23484
23505
  },
23485
23506
  ownKeys(state) {
23486
23507
  return Reflect.ownKeys(latest(state));
23487
23508
  },
23488
23509
  set(state, prop, value) {
23510
+ if (prop === "constructor" || prop === "__proto__" || prop === "prototype") {
23511
+ return true;
23512
+ }
23489
23513
  const desc = getDescriptorFromProto(latest(state), prop);
23490
23514
  if (desc?.set) {
23491
23515
  desc.set.call(state.draft_, value);
@@ -23505,7 +23529,7 @@ var objectTraps = {
23505
23529
  markChanged(state);
23506
23530
  }
23507
23531
  if (state.copy_[prop] === value && // special case: handle new props with value 'undefined'
23508
- (value !== void 0 || prop in state.copy_) || // special case: NaN
23532
+ (value !== void 0 || has(state.copy_, prop, state.type_)) || // special case: NaN
23509
23533
  Number.isNaN(value) && Number.isNaN(state.copy_[prop]))
23510
23534
  return true;
23511
23535
  state.copy_[prop] = value;
@@ -42719,7 +42743,7 @@ const createClientLogCallback = (provider, metadata, scope) => {
42719
42743
  };
42720
42744
 
42721
42745
  // Generated by genversion.
42722
- const version$2 = '10.0.0';
42746
+ const version$2 = '10.0.1';
42723
42747
 
42724
42748
  /**
42725
42749
  * Zod schema for telemetry configuration validation.
@@ -47536,7 +47560,7 @@ async function registerServiceWorker(framework) {
47536
47560
  }
47537
47561
 
47538
47562
  // Generated by genversion.
47539
- const version = '4.0.11';
47563
+ const version = '4.0.13';
47540
47564
 
47541
47565
  // Allow dynamic import without vite
47542
47566
  const importWithoutVite = (path) => import(/* @vite-ignore */ path);