@equinor/fusion-framework-vite-plugin-spa 2.0.0 → 2.0.2
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 +48 -0
- package/dist/esm/version.js +1 -1
- package/dist/html/bootstrap.js +250 -48
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/html/index.html.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +13 -13
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @equinor/fusion-framework-vite-plugin-spa
|
|
2
2
|
|
|
3
|
+
## 2.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3637](https://github.com/equinor/fusion-framework/pull/3637) [`f5b88e7`](https://github.com/equinor/fusion-framework/commit/f5b88e7ff8e896624de67bdf29091ba44bf8a628) Thanks [@dependabot](https://github.com/apps/dependabot)! - Internal: bump rollup from 4.52.4 to 4.52.5 to fix sourcemap debugId generation; no public API changes.
|
|
8
|
+
|
|
9
|
+
- [#3679](https://github.com/equinor/fusion-framework/pull/3679) [`1706e4c`](https://github.com/equinor/fusion-framework/commit/1706e4c503d8ef4db46a9572392d23e9c081c82c) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update @rollup/plugin-commonjs from 28.0.6 to 29.0.0, which reverts previous Node.js builtins handling changes and adds requireNodeBuiltins option.
|
|
10
|
+
|
|
11
|
+
- [#3646](https://github.com/equinor/fusion-framework/pull/3646) [`581306b`](https://github.com/equinor/fusion-framework/commit/581306bb7ace1646548865ea1711255065e90570) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update @rollup/plugin-typescript from 12.1.4 to 12.3.0 for improved TypeScript processing in watch mode and allowJs support.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`7ef76e3`](https://github.com/equinor/fusion-framework/commit/7ef76e36a854f01d1cd7bc1c40b1ca0172a01fc3), [`cd06a8a`](https://github.com/equinor/fusion-framework/commit/cd06a8a8de86a44edf349103fb9da6c8615a1d59), [`443414f`](https://github.com/equinor/fusion-framework/commit/443414fe0351b529cecf0a667383640567d05e74)]:
|
|
14
|
+
- @equinor/fusion-framework-module-telemetry@4.3.1
|
|
15
|
+
- @equinor/fusion-framework-module@5.0.5
|
|
16
|
+
- @equinor/fusion-framework-module-msal@5.1.2
|
|
17
|
+
- @equinor/fusion-framework-module-http@7.0.4
|
|
18
|
+
- @equinor/fusion-framework-module-service-discovery@9.0.4
|
|
19
|
+
|
|
20
|
+
## 2.0.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [#3652](https://github.com/equinor/fusion-framework/pull/3652) [`8d50adc`](https://github.com/equinor/fusion-framework/commit/8d50adc17e81fc46da81795125832af8add5f678) Thanks [@dependabot](https://github.com/apps/dependabot)! - **Security:** Update Vite to v7.1.12
|
|
25
|
+
|
|
26
|
+
This update addresses a security vulnerability in Vite's development server and includes bug fixes for improved compatibility. The update ensures secure development environments and better plugin ecosystem compatibility.
|
|
27
|
+
|
|
28
|
+
**Changes:**
|
|
29
|
+
|
|
30
|
+
- Updated Vite from v7.1.10 to v7.1.12
|
|
31
|
+
- Includes security fix for development server file system checks
|
|
32
|
+
- Includes compatibility fix for CommonJS plugin
|
|
33
|
+
- No breaking changes or API modifications
|
|
34
|
+
|
|
35
|
+
**Security Fix (v7.1.11):**
|
|
36
|
+
|
|
37
|
+
- **dev**: trim trailing slash before `server.fs.deny` check ([#20968](https://github.com/vitejs/vite/issues/20968))
|
|
38
|
+
- Prevents potential path traversal vulnerability in development server
|
|
39
|
+
- Only affects development environment, not production builds
|
|
40
|
+
|
|
41
|
+
**Bug Fix (v7.1.12):**
|
|
42
|
+
|
|
43
|
+
- **deps**: downgrade commonjs plugin to 28.0.6 to avoid rollup/plugins issues ([#20990](https://github.com/vitejs/vite/issues/20990))
|
|
44
|
+
- Improves compatibility with Rollup plugin ecosystem
|
|
45
|
+
- Prevents potential build issues
|
|
46
|
+
|
|
47
|
+
All packages using Vite as a development dependency are updated to the latest secure version. This is a patch-level security and bug fix update that maintains full compatibility with existing functionality.
|
|
48
|
+
|
|
49
|
+
closes: https://github.com/equinor/fusion/issues/723
|
|
50
|
+
|
|
3
51
|
## 2.0.0
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|
package/dist/esm/version.js
CHANGED
package/dist/html/bootstrap.js
CHANGED
|
@@ -336,6 +336,10 @@ function requireIdentifiers () {
|
|
|
336
336
|
|
|
337
337
|
const numeric = /^[0-9]+$/;
|
|
338
338
|
const compareIdentifiers = (a, b) => {
|
|
339
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
340
|
+
return a === b ? 0 : a < b ? -1 : 1
|
|
341
|
+
}
|
|
342
|
+
|
|
339
343
|
const anum = numeric.test(a);
|
|
340
344
|
const bnum = numeric.test(b);
|
|
341
345
|
|
|
@@ -478,11 +482,25 @@ function requireSemver$1 () {
|
|
|
478
482
|
other = new SemVer(other, this.options);
|
|
479
483
|
}
|
|
480
484
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
485
|
+
if (this.major < other.major) {
|
|
486
|
+
return -1
|
|
487
|
+
}
|
|
488
|
+
if (this.major > other.major) {
|
|
489
|
+
return 1
|
|
490
|
+
}
|
|
491
|
+
if (this.minor < other.minor) {
|
|
492
|
+
return -1
|
|
493
|
+
}
|
|
494
|
+
if (this.minor > other.minor) {
|
|
495
|
+
return 1
|
|
496
|
+
}
|
|
497
|
+
if (this.patch < other.patch) {
|
|
498
|
+
return -1
|
|
499
|
+
}
|
|
500
|
+
if (this.patch > other.patch) {
|
|
501
|
+
return 1
|
|
502
|
+
}
|
|
503
|
+
return 0
|
|
486
504
|
}
|
|
487
505
|
|
|
488
506
|
comparePre (other) {
|
|
@@ -1503,6 +1521,7 @@ function requireRange () {
|
|
|
1503
1521
|
// already replaced the hyphen ranges
|
|
1504
1522
|
// turn into a set of JUST comparators.
|
|
1505
1523
|
const parseComparator = (comp, options) => {
|
|
1524
|
+
comp = comp.replace(re[t.BUILD], '');
|
|
1506
1525
|
debug('comp', comp, options);
|
|
1507
1526
|
comp = replaceCarets(comp, options);
|
|
1508
1527
|
debug('caret', comp);
|
|
@@ -5277,7 +5296,7 @@ class BaseModuleProvider {
|
|
|
5277
5296
|
}
|
|
5278
5297
|
|
|
5279
5298
|
// Generated by genversion.
|
|
5280
|
-
const version$7 = '5.0.
|
|
5299
|
+
const version$7 = '5.0.5';
|
|
5281
5300
|
|
|
5282
5301
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5283
5302
|
/**
|
|
@@ -6920,11 +6939,7 @@ function flattenError(error, mapper = (issue) => issue.message) {
|
|
|
6920
6939
|
}
|
|
6921
6940
|
return { formErrors, fieldErrors };
|
|
6922
6941
|
}
|
|
6923
|
-
function formatError(error,
|
|
6924
|
-
const mapper = _mapper ||
|
|
6925
|
-
function (issue) {
|
|
6926
|
-
return issue.message;
|
|
6927
|
-
};
|
|
6942
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
6928
6943
|
const fieldErrors = { _errors: [] };
|
|
6929
6944
|
const processError = (error) => {
|
|
6930
6945
|
for (const issue of error.issues) {
|
|
@@ -6962,11 +6977,7 @@ function formatError(error, _mapper) {
|
|
|
6962
6977
|
processError(error);
|
|
6963
6978
|
return fieldErrors;
|
|
6964
6979
|
}
|
|
6965
|
-
function treeifyError(error,
|
|
6966
|
-
const mapper = _mapper ||
|
|
6967
|
-
function (issue) {
|
|
6968
|
-
return issue.message;
|
|
6969
|
-
};
|
|
6980
|
+
function treeifyError(error, mapper = (issue) => issue.message) {
|
|
6970
6981
|
const result = { errors: [] };
|
|
6971
6982
|
const processError = (error, path = []) => {
|
|
6972
6983
|
var _a, _b;
|
|
@@ -7961,7 +7972,7 @@ class Doc {
|
|
|
7961
7972
|
const version$6 = {
|
|
7962
7973
|
major: 4,
|
|
7963
7974
|
minor: 1,
|
|
7964
|
-
patch:
|
|
7975
|
+
patch: 12,
|
|
7965
7976
|
};
|
|
7966
7977
|
|
|
7967
7978
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
@@ -9912,7 +9923,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
9912
9923
|
}
|
|
9913
9924
|
}
|
|
9914
9925
|
|
|
9915
|
-
const error$
|
|
9926
|
+
const error$I = () => {
|
|
9916
9927
|
const Sizable = {
|
|
9917
9928
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
9918
9929
|
file: { unit: "بايت", verb: "أن يحوي" },
|
|
@@ -10024,11 +10035,11 @@ const error$H = () => {
|
|
|
10024
10035
|
};
|
|
10025
10036
|
function ar () {
|
|
10026
10037
|
return {
|
|
10027
|
-
localeError: error$
|
|
10038
|
+
localeError: error$I(),
|
|
10028
10039
|
};
|
|
10029
10040
|
}
|
|
10030
10041
|
|
|
10031
|
-
const error$
|
|
10042
|
+
const error$H = () => {
|
|
10032
10043
|
const Sizable = {
|
|
10033
10044
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
10034
10045
|
file: { unit: "bayt", verb: "olmalıdır" },
|
|
@@ -10139,7 +10150,7 @@ const error$G = () => {
|
|
|
10139
10150
|
};
|
|
10140
10151
|
function az () {
|
|
10141
10152
|
return {
|
|
10142
|
-
localeError: error$
|
|
10153
|
+
localeError: error$H(),
|
|
10143
10154
|
};
|
|
10144
10155
|
}
|
|
10145
10156
|
|
|
@@ -10158,7 +10169,7 @@ function getBelarusianPlural(count, one, few, many) {
|
|
|
10158
10169
|
}
|
|
10159
10170
|
return many;
|
|
10160
10171
|
}
|
|
10161
|
-
const error$
|
|
10172
|
+
const error$G = () => {
|
|
10162
10173
|
const Sizable = {
|
|
10163
10174
|
string: {
|
|
10164
10175
|
unit: {
|
|
@@ -10302,6 +10313,134 @@ const error$F = () => {
|
|
|
10302
10313
|
};
|
|
10303
10314
|
};
|
|
10304
10315
|
function be () {
|
|
10316
|
+
return {
|
|
10317
|
+
localeError: error$G(),
|
|
10318
|
+
};
|
|
10319
|
+
}
|
|
10320
|
+
|
|
10321
|
+
const parsedType$6 = (data) => {
|
|
10322
|
+
const t = typeof data;
|
|
10323
|
+
switch (t) {
|
|
10324
|
+
case "number": {
|
|
10325
|
+
return Number.isNaN(data) ? "NaN" : "число";
|
|
10326
|
+
}
|
|
10327
|
+
case "object": {
|
|
10328
|
+
if (Array.isArray(data)) {
|
|
10329
|
+
return "масив";
|
|
10330
|
+
}
|
|
10331
|
+
if (data === null) {
|
|
10332
|
+
return "null";
|
|
10333
|
+
}
|
|
10334
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
10335
|
+
return data.constructor.name;
|
|
10336
|
+
}
|
|
10337
|
+
}
|
|
10338
|
+
}
|
|
10339
|
+
return t;
|
|
10340
|
+
};
|
|
10341
|
+
const error$F = () => {
|
|
10342
|
+
const Sizable = {
|
|
10343
|
+
string: { unit: "символа", verb: "да съдържа" },
|
|
10344
|
+
file: { unit: "байта", verb: "да съдържа" },
|
|
10345
|
+
array: { unit: "елемента", verb: "да съдържа" },
|
|
10346
|
+
set: { unit: "елемента", verb: "да съдържа" },
|
|
10347
|
+
};
|
|
10348
|
+
function getSizing(origin) {
|
|
10349
|
+
return Sizable[origin] ?? null;
|
|
10350
|
+
}
|
|
10351
|
+
const Nouns = {
|
|
10352
|
+
regex: "вход",
|
|
10353
|
+
email: "имейл адрес",
|
|
10354
|
+
url: "URL",
|
|
10355
|
+
emoji: "емоджи",
|
|
10356
|
+
uuid: "UUID",
|
|
10357
|
+
uuidv4: "UUIDv4",
|
|
10358
|
+
uuidv6: "UUIDv6",
|
|
10359
|
+
nanoid: "nanoid",
|
|
10360
|
+
guid: "GUID",
|
|
10361
|
+
cuid: "cuid",
|
|
10362
|
+
cuid2: "cuid2",
|
|
10363
|
+
ulid: "ULID",
|
|
10364
|
+
xid: "XID",
|
|
10365
|
+
ksuid: "KSUID",
|
|
10366
|
+
datetime: "ISO време",
|
|
10367
|
+
date: "ISO дата",
|
|
10368
|
+
time: "ISO време",
|
|
10369
|
+
duration: "ISO продължителност",
|
|
10370
|
+
ipv4: "IPv4 адрес",
|
|
10371
|
+
ipv6: "IPv6 адрес",
|
|
10372
|
+
cidrv4: "IPv4 диапазон",
|
|
10373
|
+
cidrv6: "IPv6 диапазон",
|
|
10374
|
+
base64: "base64-кодиран низ",
|
|
10375
|
+
base64url: "base64url-кодиран низ",
|
|
10376
|
+
json_string: "JSON низ",
|
|
10377
|
+
e164: "E.164 номер",
|
|
10378
|
+
jwt: "JWT",
|
|
10379
|
+
template_literal: "вход",
|
|
10380
|
+
};
|
|
10381
|
+
return (issue) => {
|
|
10382
|
+
switch (issue.code) {
|
|
10383
|
+
case "invalid_type":
|
|
10384
|
+
return `Невалиден вход: очакван ${issue.expected}, получен ${parsedType$6(issue.input)}`;
|
|
10385
|
+
case "invalid_value":
|
|
10386
|
+
if (issue.values.length === 1)
|
|
10387
|
+
return `Невалиден вход: очакван ${stringifyPrimitive(issue.values[0])}`;
|
|
10388
|
+
return `Невалидна опция: очаквано едно от ${joinValues(issue.values, "|")}`;
|
|
10389
|
+
case "too_big": {
|
|
10390
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
10391
|
+
const sizing = getSizing(issue.origin);
|
|
10392
|
+
if (sizing)
|
|
10393
|
+
return `Твърде голямо: очаква се ${issue.origin ?? "стойност"} да съдържа ${adj}${issue.maximum.toString()} ${sizing.unit ?? "елемента"}`;
|
|
10394
|
+
return `Твърде голямо: очаква се ${issue.origin ?? "стойност"} да бъде ${adj}${issue.maximum.toString()}`;
|
|
10395
|
+
}
|
|
10396
|
+
case "too_small": {
|
|
10397
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
10398
|
+
const sizing = getSizing(issue.origin);
|
|
10399
|
+
if (sizing) {
|
|
10400
|
+
return `Твърде малко: очаква се ${issue.origin} да съдържа ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
10401
|
+
}
|
|
10402
|
+
return `Твърде малко: очаква се ${issue.origin} да бъде ${adj}${issue.minimum.toString()}`;
|
|
10403
|
+
}
|
|
10404
|
+
case "invalid_format": {
|
|
10405
|
+
const _issue = issue;
|
|
10406
|
+
if (_issue.format === "starts_with") {
|
|
10407
|
+
return `Невалиден низ: трябва да започва с "${_issue.prefix}"`;
|
|
10408
|
+
}
|
|
10409
|
+
if (_issue.format === "ends_with")
|
|
10410
|
+
return `Невалиден низ: трябва да завършва с "${_issue.suffix}"`;
|
|
10411
|
+
if (_issue.format === "includes")
|
|
10412
|
+
return `Невалиден низ: трябва да включва "${_issue.includes}"`;
|
|
10413
|
+
if (_issue.format === "regex")
|
|
10414
|
+
return `Невалиден низ: трябва да съвпада с ${_issue.pattern}`;
|
|
10415
|
+
let invalid_adj = "Невалиден";
|
|
10416
|
+
if (_issue.format === "emoji")
|
|
10417
|
+
invalid_adj = "Невалидно";
|
|
10418
|
+
if (_issue.format === "datetime")
|
|
10419
|
+
invalid_adj = "Невалидно";
|
|
10420
|
+
if (_issue.format === "date")
|
|
10421
|
+
invalid_adj = "Невалидна";
|
|
10422
|
+
if (_issue.format === "time")
|
|
10423
|
+
invalid_adj = "Невалидно";
|
|
10424
|
+
if (_issue.format === "duration")
|
|
10425
|
+
invalid_adj = "Невалидна";
|
|
10426
|
+
return `${invalid_adj} ${Nouns[_issue.format] ?? issue.format}`;
|
|
10427
|
+
}
|
|
10428
|
+
case "not_multiple_of":
|
|
10429
|
+
return `Невалидно число: трябва да бъде кратно на ${issue.divisor}`;
|
|
10430
|
+
case "unrecognized_keys":
|
|
10431
|
+
return `Неразпознат${issue.keys.length > 1 ? "и" : ""} ключ${issue.keys.length > 1 ? "ове" : ""}: ${joinValues(issue.keys, ", ")}`;
|
|
10432
|
+
case "invalid_key":
|
|
10433
|
+
return `Невалиден ключ в ${issue.origin}`;
|
|
10434
|
+
case "invalid_union":
|
|
10435
|
+
return "Невалиден вход";
|
|
10436
|
+
case "invalid_element":
|
|
10437
|
+
return `Невалидна стойност в ${issue.origin}`;
|
|
10438
|
+
default:
|
|
10439
|
+
return `Невалиден вход`;
|
|
10440
|
+
}
|
|
10441
|
+
};
|
|
10442
|
+
};
|
|
10443
|
+
function bg () {
|
|
10305
10444
|
return {
|
|
10306
10445
|
localeError: error$F(),
|
|
10307
10446
|
};
|
|
@@ -15358,6 +15497,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
15358
15497
|
ar: ar,
|
|
15359
15498
|
az: az,
|
|
15360
15499
|
be: be,
|
|
15500
|
+
bg: bg,
|
|
15361
15501
|
ca: ca,
|
|
15362
15502
|
cs: cs,
|
|
15363
15503
|
da: da,
|
|
@@ -19135,7 +19275,7 @@ class HttpClientConfigurator {
|
|
|
19135
19275
|
}
|
|
19136
19276
|
|
|
19137
19277
|
// Generated by genversion.
|
|
19138
|
-
const version$5 = '7.0.
|
|
19278
|
+
const version$5 = '7.0.4';
|
|
19139
19279
|
|
|
19140
19280
|
/**
|
|
19141
19281
|
* Exception thrown when a client cannot be found.
|
|
@@ -20002,7 +20142,7 @@ const configureHttpClient = (name, args) => ({
|
|
|
20002
20142
|
var MsalModuleVersion;
|
|
20003
20143
|
(function (MsalModuleVersion) {
|
|
20004
20144
|
MsalModuleVersion["V2"] = "v2";
|
|
20005
|
-
MsalModuleVersion["Latest"] = "5.1.
|
|
20145
|
+
MsalModuleVersion["Latest"] = "5.1.2";
|
|
20006
20146
|
})(MsalModuleVersion || (MsalModuleVersion = {}));
|
|
20007
20147
|
|
|
20008
20148
|
const VersionSchema = z.string().transform((x) => String(semver.coerce(x)));
|
|
@@ -38864,21 +39004,29 @@ function isDraftable(value) {
|
|
|
38864
39004
|
return isPlainObject(value) || Array.isArray(value) || !!value[DRAFTABLE] || !!value.constructor?.[DRAFTABLE] || isMap(value) || isSet(value);
|
|
38865
39005
|
}
|
|
38866
39006
|
var objectCtorString = Object.prototype.constructor.toString();
|
|
39007
|
+
var cachedCtorStrings = /* @__PURE__ */ new WeakMap();
|
|
38867
39008
|
function isPlainObject(value) {
|
|
38868
39009
|
if (!value || typeof value !== "object")
|
|
38869
39010
|
return false;
|
|
38870
|
-
const proto = getPrototypeOf(value);
|
|
38871
|
-
if (proto === null)
|
|
39011
|
+
const proto = Object.getPrototypeOf(value);
|
|
39012
|
+
if (proto === null || proto === Object.prototype)
|
|
38872
39013
|
return true;
|
|
38873
|
-
}
|
|
38874
39014
|
const Ctor = Object.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
38875
39015
|
if (Ctor === Object)
|
|
38876
39016
|
return true;
|
|
38877
|
-
|
|
39017
|
+
if (typeof Ctor !== "function")
|
|
39018
|
+
return false;
|
|
39019
|
+
let ctorString = cachedCtorStrings.get(Ctor);
|
|
39020
|
+
if (ctorString === void 0) {
|
|
39021
|
+
ctorString = Function.toString.call(Ctor);
|
|
39022
|
+
cachedCtorStrings.set(Ctor, ctorString);
|
|
39023
|
+
}
|
|
39024
|
+
return ctorString === objectCtorString;
|
|
38878
39025
|
}
|
|
38879
|
-
function each(obj, iter) {
|
|
39026
|
+
function each(obj, iter, strict = true) {
|
|
38880
39027
|
if (getArchtype(obj) === 0 /* Object */) {
|
|
38881
|
-
Reflect.ownKeys(obj).
|
|
39028
|
+
const keys = strict ? Reflect.ownKeys(obj) : Object.keys(obj);
|
|
39029
|
+
keys.forEach((key) => {
|
|
38882
39030
|
iter(key, obj[key], obj);
|
|
38883
39031
|
});
|
|
38884
39032
|
} else {
|
|
@@ -38962,10 +39110,10 @@ function freeze(obj, deep = false) {
|
|
|
38962
39110
|
return obj;
|
|
38963
39111
|
if (getArchtype(obj) > 1) {
|
|
38964
39112
|
Object.defineProperties(obj, {
|
|
38965
|
-
set:
|
|
38966
|
-
add:
|
|
38967
|
-
clear:
|
|
38968
|
-
delete:
|
|
39113
|
+
set: dontMutateMethodOverride,
|
|
39114
|
+
add: dontMutateMethodOverride,
|
|
39115
|
+
clear: dontMutateMethodOverride,
|
|
39116
|
+
delete: dontMutateMethodOverride
|
|
38969
39117
|
});
|
|
38970
39118
|
}
|
|
38971
39119
|
Object.freeze(obj);
|
|
@@ -38976,7 +39124,12 @@ function freeze(obj, deep = false) {
|
|
|
38976
39124
|
function dontMutateFrozenCollections() {
|
|
38977
39125
|
die(2);
|
|
38978
39126
|
}
|
|
39127
|
+
var dontMutateMethodOverride = {
|
|
39128
|
+
value: dontMutateFrozenCollections
|
|
39129
|
+
};
|
|
38979
39130
|
function isFrozen(obj) {
|
|
39131
|
+
if (obj === null || typeof obj !== "object")
|
|
39132
|
+
return true;
|
|
38980
39133
|
return Object.isFrozen(obj);
|
|
38981
39134
|
}
|
|
38982
39135
|
|
|
@@ -39070,11 +39223,13 @@ function processResult(result, scope) {
|
|
|
39070
39223
|
function finalize(rootScope, value, path) {
|
|
39071
39224
|
if (isFrozen(value))
|
|
39072
39225
|
return value;
|
|
39226
|
+
const useStrictIteration = rootScope.immer_.shouldUseStrictIteration();
|
|
39073
39227
|
const state = value[DRAFT_STATE];
|
|
39074
39228
|
if (!state) {
|
|
39075
39229
|
each(
|
|
39076
39230
|
value,
|
|
39077
|
-
(key, childValue) => finalizeProperty(rootScope, state, value, key, childValue, path)
|
|
39231
|
+
(key, childValue) => finalizeProperty(rootScope, state, value, key, childValue, path),
|
|
39232
|
+
useStrictIteration
|
|
39078
39233
|
);
|
|
39079
39234
|
return value;
|
|
39080
39235
|
}
|
|
@@ -39097,7 +39252,16 @@ function finalize(rootScope, value, path) {
|
|
|
39097
39252
|
}
|
|
39098
39253
|
each(
|
|
39099
39254
|
resultEach,
|
|
39100
|
-
(key, childValue) => finalizeProperty(
|
|
39255
|
+
(key, childValue) => finalizeProperty(
|
|
39256
|
+
rootScope,
|
|
39257
|
+
state,
|
|
39258
|
+
result,
|
|
39259
|
+
key,
|
|
39260
|
+
childValue,
|
|
39261
|
+
path,
|
|
39262
|
+
isSet2
|
|
39263
|
+
),
|
|
39264
|
+
useStrictIteration
|
|
39101
39265
|
);
|
|
39102
39266
|
maybeFreeze(rootScope, result, false);
|
|
39103
39267
|
if (path && rootScope.patches_) {
|
|
@@ -39112,6 +39276,16 @@ function finalize(rootScope, value, path) {
|
|
|
39112
39276
|
return state.copy_;
|
|
39113
39277
|
}
|
|
39114
39278
|
function finalizeProperty(rootScope, parentState, targetObject, prop, childValue, rootPath, targetIsSet) {
|
|
39279
|
+
if (childValue == null) {
|
|
39280
|
+
return;
|
|
39281
|
+
}
|
|
39282
|
+
if (typeof childValue !== "object" && !targetIsSet) {
|
|
39283
|
+
return;
|
|
39284
|
+
}
|
|
39285
|
+
const childIsFrozen = isFrozen(childValue);
|
|
39286
|
+
if (childIsFrozen && !targetIsSet) {
|
|
39287
|
+
return;
|
|
39288
|
+
}
|
|
39115
39289
|
if (process.env.NODE_ENV !== "production" && childValue === targetObject)
|
|
39116
39290
|
die(5);
|
|
39117
39291
|
if (isDraft(childValue)) {
|
|
@@ -39126,10 +39300,13 @@ function finalizeProperty(rootScope, parentState, targetObject, prop, childValue
|
|
|
39126
39300
|
} else if (targetIsSet) {
|
|
39127
39301
|
targetObject.add(childValue);
|
|
39128
39302
|
}
|
|
39129
|
-
if (isDraftable(childValue) && !
|
|
39303
|
+
if (isDraftable(childValue) && !childIsFrozen) {
|
|
39130
39304
|
if (!rootScope.immer_.autoFreeze_ && rootScope.unfinalizedDrafts_ < 1) {
|
|
39131
39305
|
return;
|
|
39132
39306
|
}
|
|
39307
|
+
if (parentState && parentState.base_ && parentState.base_[prop] === childValue && childIsFrozen) {
|
|
39308
|
+
return;
|
|
39309
|
+
}
|
|
39133
39310
|
finalize(rootScope, childValue);
|
|
39134
39311
|
if ((!parentState || !parentState.scope_.parent_) && typeof prop !== "symbol" && (isMap(targetObject) ? targetObject.has(prop) : Object.prototype.propertyIsEnumerable.call(targetObject, prop)))
|
|
39135
39312
|
maybeFreeze(rootScope, childValue);
|
|
@@ -39330,6 +39507,7 @@ var Immer2 = class {
|
|
|
39330
39507
|
constructor(config) {
|
|
39331
39508
|
this.autoFreeze_ = true;
|
|
39332
39509
|
this.useStrictShallowCopy_ = false;
|
|
39510
|
+
this.useStrictIteration_ = true;
|
|
39333
39511
|
/**
|
|
39334
39512
|
* The `produce` function takes a value and a "recipe function" (whose
|
|
39335
39513
|
* return value often depends on the base state). The recipe function is
|
|
@@ -39411,6 +39589,8 @@ var Immer2 = class {
|
|
|
39411
39589
|
this.setAutoFreeze(config.autoFreeze);
|
|
39412
39590
|
if (typeof config?.useStrictShallowCopy === "boolean")
|
|
39413
39591
|
this.setUseStrictShallowCopy(config.useStrictShallowCopy);
|
|
39592
|
+
if (typeof config?.useStrictIteration === "boolean")
|
|
39593
|
+
this.setUseStrictIteration(config.useStrictIteration);
|
|
39414
39594
|
}
|
|
39415
39595
|
createDraft(base) {
|
|
39416
39596
|
if (!isDraftable(base))
|
|
@@ -39447,6 +39627,18 @@ var Immer2 = class {
|
|
|
39447
39627
|
setUseStrictShallowCopy(value) {
|
|
39448
39628
|
this.useStrictShallowCopy_ = value;
|
|
39449
39629
|
}
|
|
39630
|
+
/**
|
|
39631
|
+
* Pass false to use faster iteration that skips non-enumerable properties
|
|
39632
|
+
* but still handles symbols for compatibility.
|
|
39633
|
+
*
|
|
39634
|
+
* By default, strict iteration is enabled (includes all own properties).
|
|
39635
|
+
*/
|
|
39636
|
+
setUseStrictIteration(value) {
|
|
39637
|
+
this.useStrictIteration_ = value;
|
|
39638
|
+
}
|
|
39639
|
+
shouldUseStrictIteration() {
|
|
39640
|
+
return this.useStrictIteration_;
|
|
39641
|
+
}
|
|
39450
39642
|
applyPatches(base, patches) {
|
|
39451
39643
|
let i;
|
|
39452
39644
|
for (i = patches.length - 1; i >= 0; i--) {
|
|
@@ -39487,17 +39679,23 @@ function currentImpl(value) {
|
|
|
39487
39679
|
return value;
|
|
39488
39680
|
const state = value[DRAFT_STATE];
|
|
39489
39681
|
let copy;
|
|
39682
|
+
let strict = true;
|
|
39490
39683
|
if (state) {
|
|
39491
39684
|
if (!state.modified_)
|
|
39492
39685
|
return state.base_;
|
|
39493
39686
|
state.finalized_ = true;
|
|
39494
39687
|
copy = shallowCopy(value, state.scope_.immer_.useStrictShallowCopy_);
|
|
39688
|
+
strict = state.scope_.immer_.shouldUseStrictIteration();
|
|
39495
39689
|
} else {
|
|
39496
39690
|
copy = shallowCopy(value, true);
|
|
39497
39691
|
}
|
|
39498
|
-
each(
|
|
39499
|
-
|
|
39500
|
-
|
|
39692
|
+
each(
|
|
39693
|
+
copy,
|
|
39694
|
+
(key, childValue) => {
|
|
39695
|
+
set(copy, key, currentImpl(childValue));
|
|
39696
|
+
},
|
|
39697
|
+
strict
|
|
39698
|
+
);
|
|
39501
39699
|
if (state) {
|
|
39502
39700
|
state.finalized_ = false;
|
|
39503
39701
|
}
|
|
@@ -41883,7 +42081,7 @@ class ServiceDiscoveryConfigurator extends BaseConfigBuilder {
|
|
|
41883
42081
|
}
|
|
41884
42082
|
|
|
41885
42083
|
// Generated by genversion.
|
|
41886
|
-
const version$2 = '9.0.
|
|
42084
|
+
const version$2 = '9.0.4';
|
|
41887
42085
|
|
|
41888
42086
|
class ServiceDiscoveryProvider extends BaseModuleProvider {
|
|
41889
42087
|
config;
|
|
@@ -42207,7 +42405,7 @@ const mergeTelemetryItem = (target, source) => {
|
|
|
42207
42405
|
* Configures telemetry settings for the application.
|
|
42208
42406
|
*
|
|
42209
42407
|
* The `TelemetryConfigurator` class extends `BaseConfigBuilder` to provide a fluent API for
|
|
42210
|
-
* setting up telemetry adapters, metadata, default scopes, parent providers
|
|
42408
|
+
* setting up telemetry adapters, metadata, default scopes, and parent providers.
|
|
42211
42409
|
*
|
|
42212
42410
|
* @example
|
|
42213
42411
|
* ```typescript
|
|
@@ -42215,13 +42413,13 @@ const mergeTelemetryItem = (target, source) => {
|
|
|
42215
42413
|
* .setAdapter(myAdapter)
|
|
42216
42414
|
* .setMetadata({ app: 'my-app' })
|
|
42217
42415
|
* .setDefaultScope(['user', 'session'])
|
|
42218
|
-
* .setParent(parentProvider)
|
|
42219
|
-
* .setFilter(myFilter);
|
|
42416
|
+
* .setParent(parentProvider);
|
|
42220
42417
|
* ```
|
|
42221
42418
|
*
|
|
42222
42419
|
* @remarks
|
|
42223
42420
|
* - Adapters are managed internally and can be set using `setAdapter`.
|
|
42224
|
-
* - Metadata, default scope, parent provider
|
|
42421
|
+
* - Metadata, default scope, and parent provider can be configured via their respective methods.
|
|
42422
|
+
* - Filters should be applied directly to individual adapters when they are created.
|
|
42225
42423
|
* - All setter methods return `this` for method chaining.
|
|
42226
42424
|
*
|
|
42227
42425
|
* @see BaseConfigBuilder
|
|
@@ -42304,7 +42502,7 @@ class TelemetryConfigurator extends BaseConfigBuilder {
|
|
|
42304
42502
|
}
|
|
42305
42503
|
|
|
42306
42504
|
// Generated by genversion.
|
|
42307
|
-
const version$1 = '4.3.
|
|
42505
|
+
const version$1 = '4.3.1';
|
|
42308
42506
|
|
|
42309
42507
|
/**
|
|
42310
42508
|
* Enum representing the severity levels of telemetry items.
|
|
@@ -44819,7 +45017,11 @@ class TelemetryProvider extends BaseModuleProvider {
|
|
|
44819
45017
|
*
|
|
44820
45018
|
* @param data - The exception data (without type)
|
|
44821
45019
|
* @example
|
|
44822
|
-
* provider.trackException({
|
|
45020
|
+
* provider.trackException({
|
|
45021
|
+
* name: 'api_error',
|
|
45022
|
+
* exception: new Error('API failed'),
|
|
45023
|
+
* metadata: { code: 500 }
|
|
45024
|
+
* });
|
|
44823
45025
|
*/
|
|
44824
45026
|
trackException(data) {
|
|
44825
45027
|
this._track(TelemetryExceptionSchema.parse({ ...data, type: TelemetryType.Exception }));
|
|
@@ -45377,7 +45579,7 @@ async function registerServiceWorker(framework) {
|
|
|
45377
45579
|
}
|
|
45378
45580
|
|
|
45379
45581
|
// Generated by genversion.
|
|
45380
|
-
const version = '2.0.
|
|
45582
|
+
const version = '2.0.2';
|
|
45381
45583
|
|
|
45382
45584
|
// Allow dynamic import without vite
|
|
45383
45585
|
const importWithoutVite = (path) => import(/* @vite-ignore */ path);
|