@itwin/core-i18n 4.8.0-dev.9 → 4.9.0-dev.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 +36 -1
- package/ThirdPartyNotices.md +1 -1
- package/lib/cjs/ITwinLocalization.js.map +1 -1
- package/lib/cjs/core-i18n.js.map +1 -1
- package/lib/cjs/test/ITwinLocalization.test.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js +350 -282
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.js +347 -279
- package/lib/cjs/test/webpack/bundled-tests.js.map +1 -1
- package/lib/esm/ITwinLocalization.js.map +1 -1
- package/lib/esm/core-i18n.js.map +1 -1
- package/lib/esm/test/ITwinLocalization.test.js.map +1 -1
- package/package.json +6 -6
|
@@ -15907,12 +15907,8 @@ class BeEventList {
|
|
|
15907
15907
|
"use strict";
|
|
15908
15908
|
__webpack_require__.r(__webpack_exports__);
|
|
15909
15909
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15910
|
-
/* harmony export */ "DbChangeStage": () => (/* binding */ DbChangeStage),
|
|
15911
|
-
/* harmony export */ "DbConflictCause": () => (/* binding */ DbConflictCause),
|
|
15912
|
-
/* harmony export */ "DbConflictResolution": () => (/* binding */ DbConflictResolution),
|
|
15913
15910
|
/* harmony export */ "DbOpcode": () => (/* binding */ DbOpcode),
|
|
15914
15911
|
/* harmony export */ "DbResult": () => (/* binding */ DbResult),
|
|
15915
|
-
/* harmony export */ "DbValueType": () => (/* binding */ DbValueType),
|
|
15916
15912
|
/* harmony export */ "OpenMode": () => (/* binding */ OpenMode)
|
|
15917
15913
|
/* harmony export */ });
|
|
15918
15914
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -15942,48 +15938,6 @@ var DbOpcode;
|
|
|
15942
15938
|
/** Some columns of an existing row were updated. */
|
|
15943
15939
|
DbOpcode[DbOpcode["Update"] = 23] = "Update";
|
|
15944
15940
|
})(DbOpcode || (DbOpcode = {}));
|
|
15945
|
-
/** Change value stage.
|
|
15946
|
-
* @internal
|
|
15947
|
-
*/
|
|
15948
|
-
var DbChangeStage;
|
|
15949
|
-
(function (DbChangeStage) {
|
|
15950
|
-
DbChangeStage[DbChangeStage["Old"] = 0] = "Old";
|
|
15951
|
-
DbChangeStage[DbChangeStage["New"] = 1] = "New";
|
|
15952
|
-
})(DbChangeStage || (DbChangeStage = {}));
|
|
15953
|
-
/** Change value type.
|
|
15954
|
-
* @internal
|
|
15955
|
-
*/
|
|
15956
|
-
var DbValueType;
|
|
15957
|
-
(function (DbValueType) {
|
|
15958
|
-
DbValueType[DbValueType["IntegerVal"] = 1] = "IntegerVal";
|
|
15959
|
-
DbValueType[DbValueType["FloatVal"] = 2] = "FloatVal";
|
|
15960
|
-
DbValueType[DbValueType["TextVal"] = 3] = "TextVal";
|
|
15961
|
-
DbValueType[DbValueType["BlobVal"] = 4] = "BlobVal";
|
|
15962
|
-
DbValueType[DbValueType["NullVal"] = 5] = "NullVal";
|
|
15963
|
-
})(DbValueType || (DbValueType = {}));
|
|
15964
|
-
/** Cause of conflict when applying a changeset
|
|
15965
|
-
* @internal
|
|
15966
|
-
*/
|
|
15967
|
-
var DbConflictCause;
|
|
15968
|
-
(function (DbConflictCause) {
|
|
15969
|
-
DbConflictCause[DbConflictCause["Data"] = 1] = "Data";
|
|
15970
|
-
DbConflictCause[DbConflictCause["NotFound"] = 2] = "NotFound";
|
|
15971
|
-
DbConflictCause[DbConflictCause["Conflict"] = 3] = "Conflict";
|
|
15972
|
-
DbConflictCause[DbConflictCause["Constraint"] = 4] = "Constraint";
|
|
15973
|
-
DbConflictCause[DbConflictCause["ForeignKey"] = 5] = "ForeignKey";
|
|
15974
|
-
})(DbConflictCause || (DbConflictCause = {}));
|
|
15975
|
-
/** Conflict resolution strategy
|
|
15976
|
-
* @internal
|
|
15977
|
-
*/
|
|
15978
|
-
var DbConflictResolution;
|
|
15979
|
-
(function (DbConflictResolution) {
|
|
15980
|
-
/** Skip incoming change */
|
|
15981
|
-
DbConflictResolution[DbConflictResolution["Skip"] = 0] = "Skip";
|
|
15982
|
-
/** Replace local row with incoming changed row */
|
|
15983
|
-
DbConflictResolution[DbConflictResolution["Replace"] = 1] = "Replace";
|
|
15984
|
-
/** Abort apply changeset */
|
|
15985
|
-
DbConflictResolution[DbConflictResolution["Abort"] = 2] = "Abort";
|
|
15986
|
-
})(DbConflictResolution || (DbConflictResolution = {}));
|
|
15987
15941
|
/** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.
|
|
15988
15942
|
* @public
|
|
15989
15943
|
*/
|
|
@@ -16161,10 +16115,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16161
16115
|
/* harmony export */ "IModelHubStatus": () => (/* binding */ IModelHubStatus),
|
|
16162
16116
|
/* harmony export */ "IModelStatus": () => (/* binding */ IModelStatus),
|
|
16163
16117
|
/* harmony export */ "RealityDataStatus": () => (/* binding */ RealityDataStatus),
|
|
16164
|
-
/* harmony export */ "RepositoryStatus": () => (/* binding */ RepositoryStatus),
|
|
16165
16118
|
/* harmony export */ "RpcInterfaceStatus": () => (/* binding */ RpcInterfaceStatus)
|
|
16166
16119
|
/* harmony export */ });
|
|
16167
16120
|
/* harmony import */ var _BeSQLite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BeSQLite */ "../bentley/lib/esm/BeSQLite.js");
|
|
16121
|
+
/* harmony import */ var _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal/RepositoryStatus */ "../bentley/lib/esm/internal/RepositoryStatus.js");
|
|
16168
16122
|
/*---------------------------------------------------------------------------------------------
|
|
16169
16123
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
16170
16124
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -16173,6 +16127,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16173
16127
|
* @module Errors
|
|
16174
16128
|
*/
|
|
16175
16129
|
|
|
16130
|
+
|
|
16176
16131
|
/** Standard status code.
|
|
16177
16132
|
* This status code should be rarely used.
|
|
16178
16133
|
* Prefer to throw an exception to indicate an error, rather than returning a special status code.
|
|
@@ -16350,43 +16305,6 @@ var ChangeSetStatus;
|
|
|
16350
16305
|
/** ChangeSet(s) download was cancelled. */
|
|
16351
16306
|
ChangeSetStatus[ChangeSetStatus["DownloadCancelled"] = 90138] = "DownloadCancelled";
|
|
16352
16307
|
})(ChangeSetStatus || (ChangeSetStatus = {}));
|
|
16353
|
-
/** Return codes for methods which perform repository management operations
|
|
16354
|
-
* @internal
|
|
16355
|
-
*/
|
|
16356
|
-
var RepositoryStatus;
|
|
16357
|
-
(function (RepositoryStatus) {
|
|
16358
|
-
RepositoryStatus[RepositoryStatus["Success"] = 0] = "Success";
|
|
16359
|
-
/** The repository server did not respond to a request */
|
|
16360
|
-
RepositoryStatus[RepositoryStatus["ServerUnavailable"] = 86017] = "ServerUnavailable";
|
|
16361
|
-
/** A requested lock was already held by another briefcase */
|
|
16362
|
-
RepositoryStatus[RepositoryStatus["LockAlreadyHeld"] = 86018] = "LockAlreadyHeld";
|
|
16363
|
-
/** Failed to sync briefcase manager with server */
|
|
16364
|
-
RepositoryStatus[RepositoryStatus["SyncError"] = 86019] = "SyncError";
|
|
16365
|
-
/** Response from server not understood */
|
|
16366
|
-
RepositoryStatus[RepositoryStatus["InvalidResponse"] = 86020] = "InvalidResponse";
|
|
16367
|
-
/** An operation requires local changes to be committed or abandoned */
|
|
16368
|
-
RepositoryStatus[RepositoryStatus["PendingTransactions"] = 86021] = "PendingTransactions";
|
|
16369
|
-
/** A lock cannot be relinquished because the associated object has been modified */
|
|
16370
|
-
RepositoryStatus[RepositoryStatus["LockUsed"] = 86022] = "LockUsed";
|
|
16371
|
-
/** An operation required creation of a ChangeSet, which failed */
|
|
16372
|
-
RepositoryStatus[RepositoryStatus["CannotCreateChangeSet"] = 86023] = "CannotCreateChangeSet";
|
|
16373
|
-
/** Request to server not understood */
|
|
16374
|
-
RepositoryStatus[RepositoryStatus["InvalidRequest"] = 86024] = "InvalidRequest";
|
|
16375
|
-
/** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
|
|
16376
|
-
RepositoryStatus[RepositoryStatus["ChangeSetRequired"] = 86025] = "ChangeSetRequired";
|
|
16377
|
-
/** A requested DgnCode is reserved by another briefcase or in use */
|
|
16378
|
-
RepositoryStatus[RepositoryStatus["CodeUnavailable"] = 86026] = "CodeUnavailable";
|
|
16379
|
-
/** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
|
|
16380
|
-
RepositoryStatus[RepositoryStatus["CodeNotReserved"] = 86027] = "CodeNotReserved";
|
|
16381
|
-
/** A DgnCode cannot be relinquished because it has been used locally */
|
|
16382
|
-
RepositoryStatus[RepositoryStatus["CodeUsed"] = 86028] = "CodeUsed";
|
|
16383
|
-
/** A required lock is not held by this briefcase */
|
|
16384
|
-
RepositoryStatus[RepositoryStatus["LockNotHeld"] = 86029] = "LockNotHeld";
|
|
16385
|
-
/** Repository is currently locked, no changes allowed */
|
|
16386
|
-
RepositoryStatus[RepositoryStatus["RepositoryIsLocked"] = 86030] = "RepositoryIsLocked";
|
|
16387
|
-
/** Channel write constraint violation, such as an attempt to write outside the designated channel. */
|
|
16388
|
-
RepositoryStatus[RepositoryStatus["ChannelConstraintViolation"] = 86031] = "ChannelConstraintViolation";
|
|
16389
|
-
})(RepositoryStatus || (RepositoryStatus = {}));
|
|
16390
16308
|
/** Status from returned HTTP status code
|
|
16391
16309
|
* @beta
|
|
16392
16310
|
*/
|
|
@@ -16716,21 +16634,21 @@ class BentleyError extends Error {
|
|
|
16716
16634
|
case ChangeSetStatus.CannotMergeIntoMaster: return "Cannot merge changes into a Master DgnDb";
|
|
16717
16635
|
case ChangeSetStatus.CannotMergeIntoReversed: return "Cannot merge changes into a DgnDb that has reversed change sets";
|
|
16718
16636
|
case ChangeSetStatus.DownloadCancelled: return "ChangeSet(s) download was cancelled.";
|
|
16719
|
-
case RepositoryStatus.ServerUnavailable: return "ServerUnavailable";
|
|
16720
|
-
case RepositoryStatus.LockAlreadyHeld: return "LockAlreadyHeld";
|
|
16721
|
-
case RepositoryStatus.SyncError: return "SyncError";
|
|
16722
|
-
case RepositoryStatus.InvalidResponse: return "InvalidResponse";
|
|
16723
|
-
case RepositoryStatus.PendingTransactions: return "PendingTransactions";
|
|
16724
|
-
case RepositoryStatus.LockUsed: return "LockUsed";
|
|
16725
|
-
case RepositoryStatus.CannotCreateChangeSet: return "CannotCreateChangeSet";
|
|
16726
|
-
case RepositoryStatus.InvalidRequest: return "InvalidRequest";
|
|
16727
|
-
case RepositoryStatus.ChangeSetRequired: return "ChangeSetRequired";
|
|
16728
|
-
case RepositoryStatus.CodeUnavailable: return "CodeUnavailable";
|
|
16729
|
-
case RepositoryStatus.CodeNotReserved: return "CodeNotReserved";
|
|
16730
|
-
case RepositoryStatus.CodeUsed: return "CodeUsed";
|
|
16731
|
-
case RepositoryStatus.LockNotHeld: return "LockNotHeld";
|
|
16732
|
-
case RepositoryStatus.RepositoryIsLocked: return "RepositoryIsLocked";
|
|
16733
|
-
case RepositoryStatus.ChannelConstraintViolation: return "ChannelConstraintViolation";
|
|
16637
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ServerUnavailable: return "ServerUnavailable";
|
|
16638
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockAlreadyHeld: return "LockAlreadyHeld";
|
|
16639
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.SyncError: return "SyncError";
|
|
16640
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidResponse: return "InvalidResponse";
|
|
16641
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.PendingTransactions: return "PendingTransactions";
|
|
16642
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockUsed: return "LockUsed";
|
|
16643
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CannotCreateChangeSet: return "CannotCreateChangeSet";
|
|
16644
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidRequest: return "InvalidRequest";
|
|
16645
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChangeSetRequired: return "ChangeSetRequired";
|
|
16646
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUnavailable: return "CodeUnavailable";
|
|
16647
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeNotReserved: return "CodeNotReserved";
|
|
16648
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUsed: return "CodeUsed";
|
|
16649
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockNotHeld: return "LockNotHeld";
|
|
16650
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.RepositoryIsLocked: return "RepositoryIsLocked";
|
|
16651
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChannelConstraintViolation: return "ChannelConstraintViolation";
|
|
16734
16652
|
case HttpStatus.Info: return "HTTP Info";
|
|
16735
16653
|
case HttpStatus.Redirection: return "HTTP Redirection";
|
|
16736
16654
|
case HttpStatus.ClientError: return "HTTP Client error";
|
|
@@ -17267,7 +17185,7 @@ var CompressedId64Set;
|
|
|
17267
17185
|
}
|
|
17268
17186
|
CompressedId64Set.compressSet = compressSet;
|
|
17269
17187
|
/** Create a sorted array from `ids`, then return a compact string representation of those Ids.
|
|
17270
|
-
* @see [[compressIds]] if `ids` is known to already be sorted.
|
|
17188
|
+
* @see [[CompressedId64Set.compressIds]] if `ids` is known to already be sorted.
|
|
17271
17189
|
*/
|
|
17272
17190
|
function sortAndCompress(ids) {
|
|
17273
17191
|
// `string` is an Iterable<string>. In that case assume caller passed a single Id64String.
|
|
@@ -18558,6 +18476,11 @@ var Id64;
|
|
|
18558
18476
|
}
|
|
18559
18477
|
Id64.Uint32Map = Uint32Map;
|
|
18560
18478
|
})(Id64 || (Id64 = {}));
|
|
18479
|
+
function validateLocalId(num) {
|
|
18480
|
+
if (num < 0 || Math.round(num) !== num) {
|
|
18481
|
+
throw new Error("Local Id must be a non-negative integer");
|
|
18482
|
+
}
|
|
18483
|
+
}
|
|
18561
18484
|
/**
|
|
18562
18485
|
* Generates unique [[Id64String]] values in sequence, which are guaranteed not to conflict with Ids associated with persistent elements or models.
|
|
18563
18486
|
* This is useful for associating stable, non-persistent identifiers with things like [Decorator]($frontend)s.
|
|
@@ -18565,8 +18488,20 @@ var Id64;
|
|
|
18565
18488
|
* @public
|
|
18566
18489
|
*/
|
|
18567
18490
|
class TransientIdSequence {
|
|
18568
|
-
|
|
18569
|
-
|
|
18491
|
+
/** Constructor.
|
|
18492
|
+
* @param initialLocalId The starting local Id. The local Id of the first [[Id64String]] generated by [[getNext]] will be `initialLocalId + 1`.
|
|
18493
|
+
*/
|
|
18494
|
+
constructor(initialLocalId = 0) {
|
|
18495
|
+
validateLocalId(initialLocalId);
|
|
18496
|
+
this.initialLocalId = initialLocalId;
|
|
18497
|
+
this._localId = initialLocalId;
|
|
18498
|
+
}
|
|
18499
|
+
/** The maximum local Id generated by the sequence thus far. It is never less than [[initialLocalId]]. If it is equal to [[initialLocalId]], then the sequence has
|
|
18500
|
+
* not yet generated any Ids.
|
|
18501
|
+
* Each call to [[getNext]] increments this by 1 and uses it as the local Id of the generated [[Id64String]].
|
|
18502
|
+
*/
|
|
18503
|
+
get currentLocalId() {
|
|
18504
|
+
return this._localId;
|
|
18570
18505
|
}
|
|
18571
18506
|
/** Generate and return the next transient Id64String in the sequence.
|
|
18572
18507
|
* @deprecated in 3.x. Use [[getNext]].
|
|
@@ -18584,6 +18519,55 @@ class TransientIdSequence {
|
|
|
18584
18519
|
peekNext() {
|
|
18585
18520
|
return Id64.fromLocalAndBriefcaseIds(this._localId + 1, 0xffffff);
|
|
18586
18521
|
}
|
|
18522
|
+
/** Convert this sequence to its JSON representation. */
|
|
18523
|
+
toJSON() {
|
|
18524
|
+
return {
|
|
18525
|
+
initialLocalId: this.initialLocalId,
|
|
18526
|
+
currentLocalId: this.currentLocalId,
|
|
18527
|
+
};
|
|
18528
|
+
}
|
|
18529
|
+
/** Create a sequence from its JSON representation. */
|
|
18530
|
+
static fromJSON(props) {
|
|
18531
|
+
validateLocalId(props.currentLocalId);
|
|
18532
|
+
const sequence = new TransientIdSequence(props.initialLocalId);
|
|
18533
|
+
sequence._localId = props.currentLocalId;
|
|
18534
|
+
return sequence;
|
|
18535
|
+
}
|
|
18536
|
+
/** Obtain the JSON representation of a new sequence that diverges from this sequence, with its [[initialLocalId]] set to this sequence's [[currentLocalId]].
|
|
18537
|
+
* The two sequences can generate Ids independently. Later, you can [[merge]] the sequences, resolving conflicts where the two sequences generated identical Ids.
|
|
18538
|
+
* This is chiefly useful when generating transient Ids on a [Worker](https://developer.mozilla.org/en-US/docs/Web/API/Worker).
|
|
18539
|
+
*/
|
|
18540
|
+
fork() {
|
|
18541
|
+
return {
|
|
18542
|
+
initialLocalId: this.currentLocalId,
|
|
18543
|
+
currentLocalId: this.currentLocalId,
|
|
18544
|
+
};
|
|
18545
|
+
}
|
|
18546
|
+
/** Integrate the Ids generated by a [[fork]] of this sequence. All of the Ids generated by `source` will be remapped to Ids at the end of this sequence.
|
|
18547
|
+
* This is chiefly useful when generating transient Ids on a [Worker](https://developer.mozilla.org/en-US/docs/Web/API/Worker).
|
|
18548
|
+
* @param source The JSON representation of the [[fork]]ed sequence to be merged with this one.
|
|
18549
|
+
* @returns a function that permits you to remap the local Ids generated by `source` into the corresponding local Ids assigned by this sequence.
|
|
18550
|
+
* @throws Error if `source` is not a fork of this sequence or is malformed (e.g., contains negative and/or non-integer local Ids).
|
|
18551
|
+
*/
|
|
18552
|
+
merge(source) {
|
|
18553
|
+
const { initialLocalId, currentLocalId } = source;
|
|
18554
|
+
validateLocalId(initialLocalId);
|
|
18555
|
+
validateLocalId(currentLocalId);
|
|
18556
|
+
if (initialLocalId > this.currentLocalId) {
|
|
18557
|
+
throw new Error("Transient Id sequences do not intersect");
|
|
18558
|
+
}
|
|
18559
|
+
if (initialLocalId > currentLocalId) {
|
|
18560
|
+
throw new Error("Current local Id cannot be less than initial local Id");
|
|
18561
|
+
}
|
|
18562
|
+
const delta = this.currentLocalId - initialLocalId;
|
|
18563
|
+
this._localId += currentLocalId - initialLocalId;
|
|
18564
|
+
return (sourceLocalId) => {
|
|
18565
|
+
if (sourceLocalId > initialLocalId && sourceLocalId <= currentLocalId) {
|
|
18566
|
+
return sourceLocalId + delta;
|
|
18567
|
+
}
|
|
18568
|
+
return sourceLocalId;
|
|
18569
|
+
};
|
|
18570
|
+
}
|
|
18587
18571
|
}
|
|
18588
18572
|
/**
|
|
18589
18573
|
* The Guid namespace provides facilities for working with GUID strings using the "8-4-4-4-12" pattern.
|
|
@@ -19291,8 +19275,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19291
19275
|
/* harmony export */ "Logger": () => (/* binding */ Logger),
|
|
19292
19276
|
/* harmony export */ "PerfLogger": () => (/* binding */ PerfLogger)
|
|
19293
19277
|
/* harmony export */ });
|
|
19294
|
-
/* harmony import */ var
|
|
19295
|
-
/* harmony import */ var
|
|
19278
|
+
/* harmony import */ var _BeEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BeEvent */ "../bentley/lib/esm/BeEvent.js");
|
|
19279
|
+
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BentleyError */ "../bentley/lib/esm/BentleyError.js");
|
|
19280
|
+
/* harmony import */ var _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BentleyLoggerCategory */ "../bentley/lib/esm/BentleyLoggerCategory.js");
|
|
19281
|
+
/* harmony import */ var _internal_staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./internal/staticLoggerMetadata */ "../bentley/lib/esm/internal/staticLoggerMetadata.js");
|
|
19296
19282
|
/*---------------------------------------------------------------------------------------------
|
|
19297
19283
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
19298
19284
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -19302,6 +19288,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19302
19288
|
*/
|
|
19303
19289
|
|
|
19304
19290
|
|
|
19291
|
+
|
|
19292
|
+
|
|
19305
19293
|
/** Use to categorize logging messages by severity.
|
|
19306
19294
|
* @public
|
|
19307
19295
|
*/
|
|
@@ -19323,13 +19311,29 @@ var LogLevel;
|
|
|
19323
19311
|
* @public
|
|
19324
19312
|
*/
|
|
19325
19313
|
class Logger {
|
|
19326
|
-
/**
|
|
19314
|
+
/** An event raised whenever [[setLevel]] or [[setLevelDefault]] is called. */
|
|
19315
|
+
static get onLogLevelChanged() {
|
|
19316
|
+
// We have to lazily initialize because it's static and BeEvent imports UnexpectedErrors which imports Logger which wants to instantiate BeEvent.
|
|
19317
|
+
if (undefined === Logger._onLogLevelChanged) {
|
|
19318
|
+
Logger._onLogLevelChanged = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
19319
|
+
}
|
|
19320
|
+
return Logger._onLogLevelChanged;
|
|
19321
|
+
}
|
|
19322
|
+
/** Maps category names to the least severe level at which messages in that category should be displayed,
|
|
19323
|
+
* or `undefined` if a minimum has not been defined.
|
|
19324
|
+
* @see [[setLevel]] to change the minimum logging level for a category.
|
|
19325
|
+
*/
|
|
19327
19326
|
static get categoryFilter() {
|
|
19328
|
-
|
|
19327
|
+
// NOTE: this property is accessed by native code.
|
|
19328
|
+
return this._categoryFilter;
|
|
19329
19329
|
}
|
|
19330
|
-
/**
|
|
19330
|
+
/** The least severe level at which messages should be displayed by default.
|
|
19331
|
+
* @see [[setLevelDefault]] to change this default.
|
|
19332
|
+
* @see [[setLevel]] to override this default for specific categories.
|
|
19333
|
+
*/
|
|
19331
19334
|
static get minLevel() {
|
|
19332
|
-
|
|
19335
|
+
// NOTE: this property is accessed by native code. */
|
|
19336
|
+
return this._minLevel;
|
|
19333
19337
|
}
|
|
19334
19338
|
/** Initialize the logger streams. Should be called at application initialization time. */
|
|
19335
19339
|
static initialize(logError, logWarning, logInfo, logTrace) {
|
|
@@ -19348,12 +19352,12 @@ class Logger {
|
|
|
19348
19352
|
/** merge the supplied metadata with all static metadata into one object */
|
|
19349
19353
|
static getMetaData(metaData) {
|
|
19350
19354
|
const metaObj = {};
|
|
19351
|
-
for (const meta of
|
|
19352
|
-
const val =
|
|
19355
|
+
for (const meta of _internal_staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_3__.staticLoggerMetadata) {
|
|
19356
|
+
const val = _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(meta[1]);
|
|
19353
19357
|
if (val)
|
|
19354
19358
|
Object.assign(metaObj, val);
|
|
19355
19359
|
}
|
|
19356
|
-
Object.assign(metaObj,
|
|
19360
|
+
Object.assign(metaObj, _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence
|
|
19357
19361
|
return metaObj;
|
|
19358
19362
|
}
|
|
19359
19363
|
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */
|
|
@@ -19364,14 +19368,14 @@ class Logger {
|
|
|
19364
19368
|
/** Set the least severe level at which messages should be displayed by default. Call setLevel to override this default setting for specific categories. */
|
|
19365
19369
|
static setLevelDefault(minLevel) {
|
|
19366
19370
|
this._minLevel = minLevel;
|
|
19367
|
-
this.
|
|
19371
|
+
this.onLogLevelChanged.raiseEvent();
|
|
19368
19372
|
}
|
|
19369
19373
|
/** Set the minimum logging level for the specified category. The minimum level is least severe level at which messages in the
|
|
19370
19374
|
* specified category should be displayed.
|
|
19371
19375
|
*/
|
|
19372
19376
|
static setLevel(category, minLevel) {
|
|
19373
19377
|
Logger._categoryFilter[category] = minLevel;
|
|
19374
|
-
this.
|
|
19378
|
+
this.onLogLevelChanged.raiseEvent();
|
|
19375
19379
|
}
|
|
19376
19380
|
/** Interpret a string as the name of a LogLevel */
|
|
19377
19381
|
static parseLogLevel(str) {
|
|
@@ -19406,20 +19410,20 @@ class Logger {
|
|
|
19406
19410
|
const validProps = ["defaultLevel", "categoryLevels"];
|
|
19407
19411
|
for (const prop of Object.keys(config)) {
|
|
19408
19412
|
if (!validProps.includes(prop))
|
|
19409
|
-
throw new
|
|
19413
|
+
throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig - unrecognized property: ${prop}`);
|
|
19410
19414
|
if (prop === "defaultLevel") {
|
|
19411
19415
|
if (!Logger.isLogLevel(config.defaultLevel))
|
|
19412
|
-
throw new
|
|
19416
|
+
throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig.defaultLevel must be a LogLevel. Invalid value: ${JSON.stringify(config.defaultLevel)}`);
|
|
19413
19417
|
}
|
|
19414
19418
|
else if (prop === "categoryLevels") {
|
|
19415
19419
|
const value = config[prop];
|
|
19416
19420
|
if (!Array.isArray(value))
|
|
19417
|
-
throw new
|
|
19421
|
+
throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels must be an array. Invalid value: ${JSON.stringify(value)}`);
|
|
19418
19422
|
for (const item of config[prop]) {
|
|
19419
19423
|
if (!item.hasOwnProperty("category") || !item.hasOwnProperty("logLevel"))
|
|
19420
|
-
throw new
|
|
19424
|
+
throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item must be a LoggerCategoryAndLevel {category: logLevel:}. Invalid value: ${JSON.stringify(item)}`);
|
|
19421
19425
|
if (!Logger.isLogLevel(item.logLevel))
|
|
19422
|
-
throw new
|
|
19426
|
+
throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig.categoryLevels - each item's logLevel property must be a LogLevel. Invalid value: ${JSON.stringify(item.logLevel)}`);
|
|
19423
19427
|
}
|
|
19424
19428
|
}
|
|
19425
19429
|
}
|
|
@@ -19427,7 +19431,7 @@ class Logger {
|
|
|
19427
19431
|
/** Get the minimum logging level for the specified category. */
|
|
19428
19432
|
static getLevel(category) {
|
|
19429
19433
|
// Prefer the level set for this category specifically
|
|
19430
|
-
const minLevelForThisCategory = Logger.
|
|
19434
|
+
const minLevelForThisCategory = Logger.categoryFilter[category];
|
|
19431
19435
|
if (minLevelForThisCategory !== undefined)
|
|
19432
19436
|
return minLevelForThisCategory;
|
|
19433
19437
|
// Fall back on the level set for the parent of this category.
|
|
@@ -19435,7 +19439,7 @@ class Logger {
|
|
|
19435
19439
|
if (parent !== -1)
|
|
19436
19440
|
return Logger.getLevel(category.slice(0, parent));
|
|
19437
19441
|
// Fall back on the default level.
|
|
19438
|
-
return Logger.
|
|
19442
|
+
return Logger.minLevel;
|
|
19439
19443
|
}
|
|
19440
19444
|
/** Turns off the least severe level at which messages should be displayed by default.
|
|
19441
19445
|
* This turns off logging for all messages for which no category minimum level is defined.
|
|
@@ -19463,8 +19467,8 @@ class Logger {
|
|
|
19463
19467
|
Logger._logError(category, message, metaData);
|
|
19464
19468
|
}
|
|
19465
19469
|
static getExceptionMessage(err) {
|
|
19466
|
-
const stack = Logger.logExceptionCallstacks ? `\n${
|
|
19467
|
-
return
|
|
19470
|
+
const stack = Logger.logExceptionCallstacks ? `\n${_BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorStack(err)}` : "";
|
|
19471
|
+
return _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorMessage(err) + stack;
|
|
19468
19472
|
}
|
|
19469
19473
|
/** Log the specified exception. The special "ExceptionType" property will be added as metadata.
|
|
19470
19474
|
* @param category The category of the message.
|
|
@@ -19473,7 +19477,7 @@ class Logger {
|
|
|
19473
19477
|
*/
|
|
19474
19478
|
static logException(category, err, log = (_category, message, metaData) => Logger.logError(_category, message, metaData)) {
|
|
19475
19479
|
log(category, Logger.getExceptionMessage(err), () => {
|
|
19476
|
-
return { ...
|
|
19480
|
+
return { ..._BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
|
|
19477
19481
|
});
|
|
19478
19482
|
}
|
|
19479
19483
|
/** Log the specified message to the **warning** stream.
|
|
@@ -19507,11 +19511,6 @@ class Logger {
|
|
|
19507
19511
|
Logger._categoryFilter = {};
|
|
19508
19512
|
/** Should the call stack be included when an exception is logged? */
|
|
19509
19513
|
Logger.logExceptionCallstacks = false;
|
|
19510
|
-
/** All static metadata is combined with per-call metadata and stringified in every log message.
|
|
19511
|
-
* Static metadata can either be an object or a function that returns an object.
|
|
19512
|
-
* Use a key to identify entries in the map so the can be removed individually.
|
|
19513
|
-
* @internal */
|
|
19514
|
-
Logger.staticMetaData = new Map();
|
|
19515
19514
|
/** Simple performance diagnostics utility.
|
|
19516
19515
|
* It measures the time from construction to disposal. On disposal it logs the routine name along with
|
|
19517
19516
|
* the duration in milliseconds.
|
|
@@ -19525,19 +19524,19 @@ class PerfLogger {
|
|
|
19525
19524
|
constructor(operation, metaData) {
|
|
19526
19525
|
this._operation = operation;
|
|
19527
19526
|
this._metaData = metaData;
|
|
19528
|
-
if (!Logger.isEnabled(
|
|
19527
|
+
if (!Logger.isEnabled(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, PerfLogger._severity)) {
|
|
19529
19528
|
this._startTimeStamp = 0;
|
|
19530
19529
|
return;
|
|
19531
19530
|
}
|
|
19532
|
-
Logger.logInfo(
|
|
19531
|
+
Logger.logInfo(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, `${this._operation},START`, this._metaData);
|
|
19533
19532
|
this._startTimeStamp = new Date().getTime(); // take timestamp
|
|
19534
19533
|
}
|
|
19535
19534
|
logMessage() {
|
|
19536
19535
|
const endTimeStamp = new Date().getTime();
|
|
19537
|
-
if (!Logger.isEnabled(
|
|
19536
|
+
if (!Logger.isEnabled(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, PerfLogger._severity))
|
|
19538
19537
|
return;
|
|
19539
|
-
Logger.logInfo(
|
|
19540
|
-
const mdata = this._metaData ?
|
|
19538
|
+
Logger.logInfo(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, `${this._operation},END`, () => {
|
|
19539
|
+
const mdata = this._metaData ? _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(this._metaData) : {};
|
|
19541
19540
|
return {
|
|
19542
19541
|
...mdata, TimeElapsed: endTimeStamp - this._startTimeStamp, // eslint-disable-line @typescript-eslint/naming-convention
|
|
19543
19542
|
};
|
|
@@ -19596,14 +19595,18 @@ class ObservableSet extends Set {
|
|
|
19596
19595
|
return ret;
|
|
19597
19596
|
};
|
|
19598
19597
|
}
|
|
19599
|
-
/**
|
|
19598
|
+
/** Invokes [Set.delete](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete), raising
|
|
19599
|
+
* the [[onDeleted]] event if the item was removed from the set.
|
|
19600
|
+
*/
|
|
19600
19601
|
delete(item) {
|
|
19601
19602
|
const ret = super.delete(item);
|
|
19602
19603
|
if (ret)
|
|
19603
19604
|
this.onDeleted.raiseEvent(item);
|
|
19604
19605
|
return ret;
|
|
19605
19606
|
}
|
|
19606
|
-
/**
|
|
19607
|
+
/** If this set is not already empty, invokes [Set.clear](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/clear)
|
|
19608
|
+
* and raises the [[onCleared]] event.
|
|
19609
|
+
*/
|
|
19607
19610
|
clear() {
|
|
19608
19611
|
if (0 !== this.size) {
|
|
19609
19612
|
super.clear();
|
|
@@ -20620,6 +20623,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20620
20623
|
/* harmony export */ "SuccessCategory": () => (/* binding */ SuccessCategory)
|
|
20621
20624
|
/* harmony export */ });
|
|
20622
20625
|
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BentleyError */ "../bentley/lib/esm/BentleyError.js");
|
|
20626
|
+
/* harmony import */ var _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal/RepositoryStatus */ "../bentley/lib/esm/internal/RepositoryStatus.js");
|
|
20623
20627
|
/*---------------------------------------------------------------------------------------------
|
|
20624
20628
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
20625
20629
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -20628,6 +20632,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20628
20632
|
* @module Errors
|
|
20629
20633
|
*/
|
|
20630
20634
|
|
|
20635
|
+
|
|
20631
20636
|
/** A group of related statuses for aggregate reporting purposes.
|
|
20632
20637
|
* @alpha
|
|
20633
20638
|
*/
|
|
@@ -20992,22 +20997,22 @@ function lookupHttpStatusCategory(statusCode) {
|
|
|
20992
20997
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus.CannotMergeIntoReadonly: return new ValidationError();
|
|
20993
20998
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus.CannotMergeIntoMaster: return new ValidationError();
|
|
20994
20999
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus.CannotMergeIntoReversed: return new ValidationError();
|
|
20995
|
-
case
|
|
20996
|
-
case
|
|
20997
|
-
case
|
|
20998
|
-
case
|
|
20999
|
-
case
|
|
21000
|
-
case
|
|
21001
|
-
case
|
|
21002
|
-
case
|
|
21003
|
-
case
|
|
21004
|
-
case
|
|
21005
|
-
case
|
|
21006
|
-
case
|
|
21007
|
-
case
|
|
21008
|
-
case
|
|
21009
|
-
case
|
|
21010
|
-
case
|
|
21000
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.Success: return new Success();
|
|
21001
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ServerUnavailable: return new NetworkError();
|
|
21002
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockAlreadyHeld: return new Conflict();
|
|
21003
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.SyncError: return new NetworkError();
|
|
21004
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidResponse: return new NetworkError();
|
|
21005
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.PendingTransactions: return new StateViolation();
|
|
21006
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockUsed: return new StateViolation();
|
|
21007
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CannotCreateChangeSet: return new InternalError();
|
|
21008
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidRequest: return new NetworkError();
|
|
21009
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChangeSetRequired: return new StateViolation();
|
|
21010
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUnavailable: return new Conflict();
|
|
21011
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeNotReserved: return new StateViolation();
|
|
21012
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUsed: return new StateViolation();
|
|
21013
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockNotHeld: return new Forbidden();
|
|
21014
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.RepositoryIsLocked: return new Locked();
|
|
21015
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChannelConstraintViolation: return new ConstraintViolation();
|
|
21011
21016
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.HttpStatus.Success: return new Success();
|
|
21012
21017
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelHubStatus.Success: return new Success();
|
|
21013
21018
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelHubStatus.Unknown: return new UnknownError();
|
|
@@ -21094,8 +21099,7 @@ function lookupHttpStatusCategory(statusCode) {
|
|
|
21094
21099
|
__webpack_require__.r(__webpack_exports__);
|
|
21095
21100
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21096
21101
|
/* harmony export */ "base64StringToUint8Array": () => (/* binding */ base64StringToUint8Array),
|
|
21097
|
-
/* harmony export */ "utf8ToString": () => (/* binding */ utf8ToString)
|
|
21098
|
-
/* harmony export */ "utf8ToStringPolyfill": () => (/* binding */ utf8ToStringPolyfill)
|
|
21102
|
+
/* harmony export */ "utf8ToString": () => (/* binding */ utf8ToString)
|
|
21099
21103
|
/* harmony export */ });
|
|
21100
21104
|
/*---------------------------------------------------------------------------------------------
|
|
21101
21105
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -21104,110 +21108,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21104
21108
|
/** @packageDocumentation
|
|
21105
21109
|
* @module Utils
|
|
21106
21110
|
*/
|
|
21107
|
-
// TextDecoder is not supported on all platforms - this is an alternative for utf-8.
|
|
21108
|
-
// From https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/getStringFromTypedArray.js
|
|
21109
|
-
// which is itself inspired by https://github.com/inexorabletash/text-encoding
|
|
21110
|
-
/** @internal */
|
|
21111
|
-
var Utf8ToString;
|
|
21112
|
-
(function (Utf8ToString) {
|
|
21113
|
-
function inRange(a, min, max) {
|
|
21114
|
-
return min <= a && a <= max;
|
|
21115
|
-
}
|
|
21116
|
-
function utf8Handler(bytes) {
|
|
21117
|
-
let codePoint = 0;
|
|
21118
|
-
let bytesSeen = 0;
|
|
21119
|
-
let bytesNeeded = 0;
|
|
21120
|
-
let lowerBoundary = 0x80;
|
|
21121
|
-
let upperBoundary = 0xbf;
|
|
21122
|
-
const codePoints = [];
|
|
21123
|
-
const length = bytes.length;
|
|
21124
|
-
for (let i = 0; i < length; i++) {
|
|
21125
|
-
const currentByte = bytes[i];
|
|
21126
|
-
// If bytesNeeded = 0, then we are starting a new character
|
|
21127
|
-
if (0 === bytesNeeded) {
|
|
21128
|
-
// 1 byte ascii character
|
|
21129
|
-
if (inRange(currentByte, 0x00, 0x7f)) {
|
|
21130
|
-
// return a code point whose value is byte.
|
|
21131
|
-
codePoints.push(currentByte);
|
|
21132
|
-
continue;
|
|
21133
|
-
}
|
|
21134
|
-
// 2 byte character
|
|
21135
|
-
if (inRange(currentByte, 0xc2, 0xdf)) {
|
|
21136
|
-
bytesNeeded = 1;
|
|
21137
|
-
codePoint = currentByte & 0x1f;
|
|
21138
|
-
continue;
|
|
21139
|
-
}
|
|
21140
|
-
// 3 byte character
|
|
21141
|
-
if (inRange(currentByte, 0xe0, 0xef)) {
|
|
21142
|
-
if (0xe0 === currentByte)
|
|
21143
|
-
lowerBoundary = 0xa0;
|
|
21144
|
-
else if (0xed === currentByte)
|
|
21145
|
-
upperBoundary = 0x9f;
|
|
21146
|
-
bytesNeeded = 2;
|
|
21147
|
-
codePoint = currentByte & 0xf;
|
|
21148
|
-
continue;
|
|
21149
|
-
}
|
|
21150
|
-
// 4 byte character
|
|
21151
|
-
if (inRange(currentByte, 0xf0, 0xf4)) {
|
|
21152
|
-
if (0xf0 === currentByte)
|
|
21153
|
-
lowerBoundary = 0x90;
|
|
21154
|
-
else if (0xf4 === currentByte)
|
|
21155
|
-
upperBoundary = 0x8f;
|
|
21156
|
-
bytesNeeded = 3;
|
|
21157
|
-
codePoint = currentByte & 0x7;
|
|
21158
|
-
continue;
|
|
21159
|
-
}
|
|
21160
|
-
// invalid utf-8
|
|
21161
|
-
return undefined;
|
|
21162
|
-
}
|
|
21163
|
-
// out of range so ignore the first part(s) of the character and continue with this byte on its own
|
|
21164
|
-
if (!inRange(currentByte, lowerBoundary, upperBoundary)) {
|
|
21165
|
-
codePoint = bytesNeeded = bytesSeen = 0;
|
|
21166
|
-
lowerBoundary = 0x80;
|
|
21167
|
-
upperBoundary = 0xbf;
|
|
21168
|
-
--i;
|
|
21169
|
-
continue;
|
|
21170
|
-
}
|
|
21171
|
-
// set appropriate boundaries since we've now checked byte 2 of a potential longer character
|
|
21172
|
-
lowerBoundary = 0x80;
|
|
21173
|
-
upperBoundary = 0xbf;
|
|
21174
|
-
// add byte to code point
|
|
21175
|
-
codePoint = (codePoint << 6) | (currentByte & 0x3f);
|
|
21176
|
-
// We have the correct number of bytes, so push and reset for next character
|
|
21177
|
-
++bytesSeen;
|
|
21178
|
-
if (bytesSeen === bytesNeeded) {
|
|
21179
|
-
codePoints.push(codePoint);
|
|
21180
|
-
codePoint = bytesNeeded = bytesSeen = 0;
|
|
21181
|
-
}
|
|
21182
|
-
}
|
|
21183
|
-
return codePoints;
|
|
21184
|
-
}
|
|
21185
|
-
function decodeWithFromCharCode(view) {
|
|
21186
|
-
let result = "";
|
|
21187
|
-
const codePoints = utf8Handler(view);
|
|
21188
|
-
if (undefined === codePoints)
|
|
21189
|
-
return undefined;
|
|
21190
|
-
for (let cp of codePoints) {
|
|
21191
|
-
if (cp <= 0xffff) {
|
|
21192
|
-
result += String.fromCharCode(cp);
|
|
21193
|
-
}
|
|
21194
|
-
else {
|
|
21195
|
-
cp -= 0x10000;
|
|
21196
|
-
result += String.fromCharCode((cp >> 10) + 0xd800, (cp & 0x3ff) + 0xdc00);
|
|
21197
|
-
}
|
|
21198
|
-
}
|
|
21199
|
-
return result;
|
|
21200
|
-
}
|
|
21201
|
-
Utf8ToString.decodeWithFromCharCode = decodeWithFromCharCode;
|
|
21202
|
-
})(Utf8ToString || (Utf8ToString = {}));
|
|
21203
|
-
/** Exposed only for testing the fall-back used when TextDecoder is unsupported.
|
|
21204
|
-
* @internal
|
|
21205
|
-
*/
|
|
21206
|
-
function utf8ToStringPolyfill(utf8) {
|
|
21207
|
-
return Utf8ToString.decodeWithFromCharCode(utf8);
|
|
21208
|
-
}
|
|
21209
|
-
// TextDecoder unsupported in Edge at time of writing.
|
|
21210
|
-
let textDecoderSupported = true;
|
|
21211
21111
|
/** Given an array of bytes containing a utf-8 string, convert to a string.
|
|
21212
21112
|
* @param utf8: An array of utf-8 characters as a byte array
|
|
21213
21113
|
* @returns An equivalent string, or undefined if the array does not contain a valid utf-8 string.
|
|
@@ -21216,19 +21116,8 @@ let textDecoderSupported = true;
|
|
|
21216
21116
|
* @public
|
|
21217
21117
|
*/
|
|
21218
21118
|
function utf8ToString(utf8) {
|
|
21219
|
-
|
|
21220
|
-
|
|
21221
|
-
try {
|
|
21222
|
-
decoder = new TextDecoder("utf-8");
|
|
21223
|
-
}
|
|
21224
|
-
catch (_ex) {
|
|
21225
|
-
textDecoderSupported = false;
|
|
21226
|
-
}
|
|
21227
|
-
}
|
|
21228
|
-
if (undefined !== decoder)
|
|
21229
|
-
return decoder.decode(utf8);
|
|
21230
|
-
else
|
|
21231
|
-
return utf8ToStringPolyfill(utf8);
|
|
21119
|
+
const decoder = new TextDecoder("utf-8");
|
|
21120
|
+
return decoder.decode(utf8);
|
|
21232
21121
|
}
|
|
21233
21122
|
/** Given a base-64-encoded string, decode it into an array of bytes.
|
|
21234
21123
|
* @param base64 The base-64-encoded string.
|
|
@@ -21526,7 +21415,6 @@ class Tracing {
|
|
|
21526
21415
|
/**
|
|
21527
21416
|
* Adds a span event describing a runtime exception, as advised in OpenTelemetry documentation
|
|
21528
21417
|
* @param e error (exception) object
|
|
21529
|
-
* @internal
|
|
21530
21418
|
*/
|
|
21531
21419
|
static recordException(e) {
|
|
21532
21420
|
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.recordException(e);
|
|
@@ -22091,7 +21979,6 @@ class YieldManager {
|
|
|
22091
21979
|
await this.actualYield();
|
|
22092
21980
|
}
|
|
22093
21981
|
}
|
|
22094
|
-
/** @internal */
|
|
22095
21982
|
async actualYield() {
|
|
22096
21983
|
await new Promise((r) => setTimeout(r, 0));
|
|
22097
21984
|
}
|
|
@@ -22122,12 +22009,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22122
22009
|
/* harmony export */ "ByteStream": () => (/* reexport safe */ _ByteStream__WEBPACK_IMPORTED_MODULE_7__.ByteStream),
|
|
22123
22010
|
/* harmony export */ "ChangeSetStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.ChangeSetStatus),
|
|
22124
22011
|
/* harmony export */ "CompressedId64Set": () => (/* reexport safe */ _CompressedId64Set__WEBPACK_IMPORTED_MODULE_10__.CompressedId64Set),
|
|
22125
|
-
/* harmony export */ "DbChangeStage": () => (/* reexport safe */
|
|
22126
|
-
/* harmony export */ "DbConflictCause": () => (/* reexport safe */
|
|
22127
|
-
/* harmony export */ "DbConflictResolution": () => (/* reexport safe */
|
|
22012
|
+
/* harmony export */ "DbChangeStage": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbChangeStage),
|
|
22013
|
+
/* harmony export */ "DbConflictCause": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbConflictCause),
|
|
22014
|
+
/* harmony export */ "DbConflictResolution": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbConflictResolution),
|
|
22128
22015
|
/* harmony export */ "DbOpcode": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbOpcode),
|
|
22129
22016
|
/* harmony export */ "DbResult": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbResult),
|
|
22130
|
-
/* harmony export */ "DbValueType": () => (/* reexport safe */
|
|
22017
|
+
/* harmony export */ "DbValueType": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbValueType),
|
|
22131
22018
|
/* harmony export */ "Dictionary": () => (/* reexport safe */ _Dictionary__WEBPACK_IMPORTED_MODULE_11__.Dictionary),
|
|
22132
22019
|
/* harmony export */ "DisposableList": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.DisposableList),
|
|
22133
22020
|
/* harmony export */ "DuplicatePolicy": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.DuplicatePolicy),
|
|
@@ -22160,7 +22047,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22160
22047
|
/* harmony export */ "ReadonlyOrderedSet": () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.ReadonlyOrderedSet),
|
|
22161
22048
|
/* harmony export */ "ReadonlySortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.ReadonlySortedArray),
|
|
22162
22049
|
/* harmony export */ "RealityDataStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RealityDataStatus),
|
|
22163
|
-
/* harmony export */ "RepositoryStatus": () => (/* reexport safe */
|
|
22050
|
+
/* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.RepositoryStatus),
|
|
22164
22051
|
/* harmony export */ "RpcInterfaceStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RpcInterfaceStatus),
|
|
22165
22052
|
/* harmony export */ "SortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.SortedArray),
|
|
22166
22053
|
/* harmony export */ "SpanKind": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.SpanKind),
|
|
@@ -22199,9 +22086,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22199
22086
|
/* harmony export */ "omit": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.omit),
|
|
22200
22087
|
/* harmony export */ "partitionArray": () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_23__.partitionArray),
|
|
22201
22088
|
/* harmony export */ "shallowClone": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.shallowClone),
|
|
22089
|
+
/* harmony export */ "staticLoggerMetadata": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.staticLoggerMetadata),
|
|
22202
22090
|
/* harmony export */ "using": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.using),
|
|
22203
|
-
/* harmony export */ "utf8ToString": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToString)
|
|
22204
|
-
/* harmony export */ "utf8ToStringPolyfill": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToStringPolyfill)
|
|
22091
|
+
/* harmony export */ "utf8ToString": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToString)
|
|
22205
22092
|
/* harmony export */ });
|
|
22206
22093
|
/* harmony import */ var _AccessToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AccessToken */ "../bentley/lib/esm/AccessToken.js");
|
|
22207
22094
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
|
|
@@ -22238,6 +22125,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22238
22125
|
/* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
|
|
22239
22126
|
/* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UtilityTypes */ "../bentley/lib/esm/UtilityTypes.js");
|
|
22240
22127
|
/* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./YieldManager */ "../bentley/lib/esm/YieldManager.js");
|
|
22128
|
+
/* harmony import */ var _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./internal/cross-package */ "../bentley/lib/esm/internal/cross-package.js");
|
|
22241
22129
|
/*---------------------------------------------------------------------------------------------
|
|
22242
22130
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22243
22131
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -22276,6 +22164,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22276
22164
|
|
|
22277
22165
|
|
|
22278
22166
|
|
|
22167
|
+
|
|
22168
|
+
// Temporarily (until 5.0) export top-level internal APIs to avoid breaking callers.
|
|
22279
22169
|
|
|
22280
22170
|
/** @docs-package-description
|
|
22281
22171
|
* The core-bentley package contains classes to solve problems that are common for both client and server use cases.
|
|
@@ -22318,6 +22208,184 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22318
22208
|
*/
|
|
22319
22209
|
|
|
22320
22210
|
|
|
22211
|
+
/***/ }),
|
|
22212
|
+
|
|
22213
|
+
/***/ "../bentley/lib/esm/internal/BeSQLiteInternal.js":
|
|
22214
|
+
/*!*******************************************************!*\
|
|
22215
|
+
!*** ../bentley/lib/esm/internal/BeSQLiteInternal.js ***!
|
|
22216
|
+
\*******************************************************/
|
|
22217
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22218
|
+
|
|
22219
|
+
"use strict";
|
|
22220
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22221
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22222
|
+
/* harmony export */ "DbChangeStage": () => (/* binding */ DbChangeStage),
|
|
22223
|
+
/* harmony export */ "DbConflictCause": () => (/* binding */ DbConflictCause),
|
|
22224
|
+
/* harmony export */ "DbConflictResolution": () => (/* binding */ DbConflictResolution),
|
|
22225
|
+
/* harmony export */ "DbValueType": () => (/* binding */ DbValueType)
|
|
22226
|
+
/* harmony export */ });
|
|
22227
|
+
/*---------------------------------------------------------------------------------------------
|
|
22228
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22229
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
22230
|
+
*--------------------------------------------------------------------------------------------*/
|
|
22231
|
+
/** @packageDocumentation
|
|
22232
|
+
* @module BeSQLite
|
|
22233
|
+
*/
|
|
22234
|
+
/** @internal */
|
|
22235
|
+
var DbChangeStage;
|
|
22236
|
+
(function (DbChangeStage) {
|
|
22237
|
+
DbChangeStage[DbChangeStage["Old"] = 0] = "Old";
|
|
22238
|
+
DbChangeStage[DbChangeStage["New"] = 1] = "New";
|
|
22239
|
+
})(DbChangeStage || (DbChangeStage = {}));
|
|
22240
|
+
/** @internal */
|
|
22241
|
+
var DbValueType;
|
|
22242
|
+
(function (DbValueType) {
|
|
22243
|
+
DbValueType[DbValueType["IntegerVal"] = 1] = "IntegerVal";
|
|
22244
|
+
DbValueType[DbValueType["FloatVal"] = 2] = "FloatVal";
|
|
22245
|
+
DbValueType[DbValueType["TextVal"] = 3] = "TextVal";
|
|
22246
|
+
DbValueType[DbValueType["BlobVal"] = 4] = "BlobVal";
|
|
22247
|
+
DbValueType[DbValueType["NullVal"] = 5] = "NullVal";
|
|
22248
|
+
})(DbValueType || (DbValueType = {}));
|
|
22249
|
+
/** Cause of conflict when applying a changeset.
|
|
22250
|
+
* @internal
|
|
22251
|
+
*/
|
|
22252
|
+
var DbConflictCause;
|
|
22253
|
+
(function (DbConflictCause) {
|
|
22254
|
+
DbConflictCause[DbConflictCause["Data"] = 1] = "Data";
|
|
22255
|
+
DbConflictCause[DbConflictCause["NotFound"] = 2] = "NotFound";
|
|
22256
|
+
DbConflictCause[DbConflictCause["Conflict"] = 3] = "Conflict";
|
|
22257
|
+
DbConflictCause[DbConflictCause["Constraint"] = 4] = "Constraint";
|
|
22258
|
+
DbConflictCause[DbConflictCause["ForeignKey"] = 5] = "ForeignKey";
|
|
22259
|
+
})(DbConflictCause || (DbConflictCause = {}));
|
|
22260
|
+
/** @internal */
|
|
22261
|
+
var DbConflictResolution;
|
|
22262
|
+
(function (DbConflictResolution) {
|
|
22263
|
+
/** Skip incoming change */
|
|
22264
|
+
DbConflictResolution[DbConflictResolution["Skip"] = 0] = "Skip";
|
|
22265
|
+
/** Replace local row with incoming changed row */
|
|
22266
|
+
DbConflictResolution[DbConflictResolution["Replace"] = 1] = "Replace";
|
|
22267
|
+
/** Abort apply changeset */
|
|
22268
|
+
DbConflictResolution[DbConflictResolution["Abort"] = 2] = "Abort";
|
|
22269
|
+
})(DbConflictResolution || (DbConflictResolution = {}));
|
|
22270
|
+
|
|
22271
|
+
|
|
22272
|
+
/***/ }),
|
|
22273
|
+
|
|
22274
|
+
/***/ "../bentley/lib/esm/internal/RepositoryStatus.js":
|
|
22275
|
+
/*!*******************************************************!*\
|
|
22276
|
+
!*** ../bentley/lib/esm/internal/RepositoryStatus.js ***!
|
|
22277
|
+
\*******************************************************/
|
|
22278
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22279
|
+
|
|
22280
|
+
"use strict";
|
|
22281
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22282
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22283
|
+
/* harmony export */ "RepositoryStatus": () => (/* binding */ RepositoryStatus)
|
|
22284
|
+
/* harmony export */ });
|
|
22285
|
+
/*---------------------------------------------------------------------------------------------
|
|
22286
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22287
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
22288
|
+
*--------------------------------------------------------------------------------------------*/
|
|
22289
|
+
/** @packageDocumentation
|
|
22290
|
+
* @module Errors
|
|
22291
|
+
*/
|
|
22292
|
+
/** Return codes for methods which perform repository management operations.
|
|
22293
|
+
* @internal
|
|
22294
|
+
*/
|
|
22295
|
+
var RepositoryStatus;
|
|
22296
|
+
(function (RepositoryStatus) {
|
|
22297
|
+
RepositoryStatus[RepositoryStatus["Success"] = 0] = "Success";
|
|
22298
|
+
/** The repository server did not respond to a request */
|
|
22299
|
+
RepositoryStatus[RepositoryStatus["ServerUnavailable"] = 86017] = "ServerUnavailable";
|
|
22300
|
+
/** A requested lock was already held by another briefcase */
|
|
22301
|
+
RepositoryStatus[RepositoryStatus["LockAlreadyHeld"] = 86018] = "LockAlreadyHeld";
|
|
22302
|
+
/** Failed to sync briefcase manager with server */
|
|
22303
|
+
RepositoryStatus[RepositoryStatus["SyncError"] = 86019] = "SyncError";
|
|
22304
|
+
/** Response from server not understood */
|
|
22305
|
+
RepositoryStatus[RepositoryStatus["InvalidResponse"] = 86020] = "InvalidResponse";
|
|
22306
|
+
/** An operation requires local changes to be committed or abandoned */
|
|
22307
|
+
RepositoryStatus[RepositoryStatus["PendingTransactions"] = 86021] = "PendingTransactions";
|
|
22308
|
+
/** A lock cannot be relinquished because the associated object has been modified */
|
|
22309
|
+
RepositoryStatus[RepositoryStatus["LockUsed"] = 86022] = "LockUsed";
|
|
22310
|
+
/** An operation required creation of a ChangeSet, which failed */
|
|
22311
|
+
RepositoryStatus[RepositoryStatus["CannotCreateChangeSet"] = 86023] = "CannotCreateChangeSet";
|
|
22312
|
+
/** Request to server not understood */
|
|
22313
|
+
RepositoryStatus[RepositoryStatus["InvalidRequest"] = 86024] = "InvalidRequest";
|
|
22314
|
+
/** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
|
|
22315
|
+
RepositoryStatus[RepositoryStatus["ChangeSetRequired"] = 86025] = "ChangeSetRequired";
|
|
22316
|
+
/** A requested DgnCode is reserved by another briefcase or in use */
|
|
22317
|
+
RepositoryStatus[RepositoryStatus["CodeUnavailable"] = 86026] = "CodeUnavailable";
|
|
22318
|
+
/** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
|
|
22319
|
+
RepositoryStatus[RepositoryStatus["CodeNotReserved"] = 86027] = "CodeNotReserved";
|
|
22320
|
+
/** A DgnCode cannot be relinquished because it has been used locally */
|
|
22321
|
+
RepositoryStatus[RepositoryStatus["CodeUsed"] = 86028] = "CodeUsed";
|
|
22322
|
+
/** A required lock is not held by this briefcase */
|
|
22323
|
+
RepositoryStatus[RepositoryStatus["LockNotHeld"] = 86029] = "LockNotHeld";
|
|
22324
|
+
/** Repository is currently locked, no changes allowed */
|
|
22325
|
+
RepositoryStatus[RepositoryStatus["RepositoryIsLocked"] = 86030] = "RepositoryIsLocked";
|
|
22326
|
+
/** Channel write constraint violation, such as an attempt to write outside the designated channel. */
|
|
22327
|
+
RepositoryStatus[RepositoryStatus["ChannelConstraintViolation"] = 86031] = "ChannelConstraintViolation";
|
|
22328
|
+
})(RepositoryStatus || (RepositoryStatus = {}));
|
|
22329
|
+
|
|
22330
|
+
|
|
22331
|
+
/***/ }),
|
|
22332
|
+
|
|
22333
|
+
/***/ "../bentley/lib/esm/internal/cross-package.js":
|
|
22334
|
+
/*!****************************************************!*\
|
|
22335
|
+
!*** ../bentley/lib/esm/internal/cross-package.js ***!
|
|
22336
|
+
\****************************************************/
|
|
22337
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22338
|
+
|
|
22339
|
+
"use strict";
|
|
22340
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22341
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22342
|
+
/* harmony export */ "DbChangeStage": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbChangeStage),
|
|
22343
|
+
/* harmony export */ "DbConflictCause": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbConflictCause),
|
|
22344
|
+
/* harmony export */ "DbConflictResolution": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbConflictResolution),
|
|
22345
|
+
/* harmony export */ "DbValueType": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbValueType),
|
|
22346
|
+
/* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus),
|
|
22347
|
+
/* harmony export */ "staticLoggerMetadata": () => (/* reexport safe */ _staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_0__.staticLoggerMetadata)
|
|
22348
|
+
/* harmony export */ });
|
|
22349
|
+
/* harmony import */ var _staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./staticLoggerMetadata */ "../bentley/lib/esm/internal/staticLoggerMetadata.js");
|
|
22350
|
+
/* harmony import */ var _RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RepositoryStatus */ "../bentley/lib/esm/internal/RepositoryStatus.js");
|
|
22351
|
+
/* harmony import */ var _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BeSQLiteInternal */ "../bentley/lib/esm/internal/BeSQLiteInternal.js");
|
|
22352
|
+
/*---------------------------------------------------------------------------------------------
|
|
22353
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22354
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
22355
|
+
*--------------------------------------------------------------------------------------------*/
|
|
22356
|
+
|
|
22357
|
+
|
|
22358
|
+
|
|
22359
|
+
|
|
22360
|
+
|
|
22361
|
+
/***/ }),
|
|
22362
|
+
|
|
22363
|
+
/***/ "../bentley/lib/esm/internal/staticLoggerMetadata.js":
|
|
22364
|
+
/*!***********************************************************!*\
|
|
22365
|
+
!*** ../bentley/lib/esm/internal/staticLoggerMetadata.js ***!
|
|
22366
|
+
\***********************************************************/
|
|
22367
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22368
|
+
|
|
22369
|
+
"use strict";
|
|
22370
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22371
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22372
|
+
/* harmony export */ "staticLoggerMetadata": () => (/* binding */ staticLoggerMetadata)
|
|
22373
|
+
/* harmony export */ });
|
|
22374
|
+
/*---------------------------------------------------------------------------------------------
|
|
22375
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22376
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
22377
|
+
*--------------------------------------------------------------------------------------------*/
|
|
22378
|
+
/** @packageDocumentation
|
|
22379
|
+
* @module Logging
|
|
22380
|
+
*/
|
|
22381
|
+
/** All static metadata is combined with per-call metadata and stringified in every log message.
|
|
22382
|
+
* Static metadata can either be an object or a function that returns an object.
|
|
22383
|
+
* Use a key to identify entries in the map so the can be removed individually.
|
|
22384
|
+
* @internal
|
|
22385
|
+
*/
|
|
22386
|
+
const staticLoggerMetadata = new Map();
|
|
22387
|
+
|
|
22388
|
+
|
|
22321
22389
|
/***/ }),
|
|
22322
22390
|
|
|
22323
22391
|
/***/ "../bentley/lib/esm/partitionArray.js":
|