@itwin/core-i18n 4.8.0-dev.2 → 4.8.0-dev.21
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 +21 -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 +421 -419
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.js +279 -277
- 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.
|
|
@@ -19291,8 +19209,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19291
19209
|
/* harmony export */ "Logger": () => (/* binding */ Logger),
|
|
19292
19210
|
/* harmony export */ "PerfLogger": () => (/* binding */ PerfLogger)
|
|
19293
19211
|
/* harmony export */ });
|
|
19294
|
-
/* harmony import */ var
|
|
19295
|
-
/* harmony import */ var
|
|
19212
|
+
/* harmony import */ var _BeEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BeEvent */ "../bentley/lib/esm/BeEvent.js");
|
|
19213
|
+
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BentleyError */ "../bentley/lib/esm/BentleyError.js");
|
|
19214
|
+
/* harmony import */ var _BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BentleyLoggerCategory */ "../bentley/lib/esm/BentleyLoggerCategory.js");
|
|
19215
|
+
/* harmony import */ var _internal_staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./internal/staticLoggerMetadata */ "../bentley/lib/esm/internal/staticLoggerMetadata.js");
|
|
19296
19216
|
/*---------------------------------------------------------------------------------------------
|
|
19297
19217
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
19298
19218
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -19302,6 +19222,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19302
19222
|
*/
|
|
19303
19223
|
|
|
19304
19224
|
|
|
19225
|
+
|
|
19226
|
+
|
|
19305
19227
|
/** Use to categorize logging messages by severity.
|
|
19306
19228
|
* @public
|
|
19307
19229
|
*/
|
|
@@ -19323,13 +19245,29 @@ var LogLevel;
|
|
|
19323
19245
|
* @public
|
|
19324
19246
|
*/
|
|
19325
19247
|
class Logger {
|
|
19326
|
-
/**
|
|
19248
|
+
/** An event raised whenever [[setLevel]] or [[setLevelDefault]] is called. */
|
|
19249
|
+
static get onLogLevelChanged() {
|
|
19250
|
+
// We have to lazily initialize because it's static and BeEvent imports UnexpectedErrors which imports Logger which wants to instantiate BeEvent.
|
|
19251
|
+
if (undefined === Logger._onLogLevelChanged) {
|
|
19252
|
+
Logger._onLogLevelChanged = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
19253
|
+
}
|
|
19254
|
+
return Logger._onLogLevelChanged;
|
|
19255
|
+
}
|
|
19256
|
+
/** Maps category names to the least severe level at which messages in that category should be displayed,
|
|
19257
|
+
* or `undefined` if a minimum has not been defined.
|
|
19258
|
+
* @see [[setLevel]] to change the minimum logging level for a category.
|
|
19259
|
+
*/
|
|
19327
19260
|
static get categoryFilter() {
|
|
19328
|
-
|
|
19261
|
+
// NOTE: this property is accessed by native code.
|
|
19262
|
+
return this._categoryFilter;
|
|
19329
19263
|
}
|
|
19330
|
-
/**
|
|
19264
|
+
/** The least severe level at which messages should be displayed by default.
|
|
19265
|
+
* @see [[setLevelDefault]] to change this default.
|
|
19266
|
+
* @see [[setLevel]] to override this default for specific categories.
|
|
19267
|
+
*/
|
|
19331
19268
|
static get minLevel() {
|
|
19332
|
-
|
|
19269
|
+
// NOTE: this property is accessed by native code. */
|
|
19270
|
+
return this._minLevel;
|
|
19333
19271
|
}
|
|
19334
19272
|
/** Initialize the logger streams. Should be called at application initialization time. */
|
|
19335
19273
|
static initialize(logError, logWarning, logInfo, logTrace) {
|
|
@@ -19348,12 +19286,12 @@ class Logger {
|
|
|
19348
19286
|
/** merge the supplied metadata with all static metadata into one object */
|
|
19349
19287
|
static getMetaData(metaData) {
|
|
19350
19288
|
const metaObj = {};
|
|
19351
|
-
for (const meta of
|
|
19352
|
-
const val =
|
|
19289
|
+
for (const meta of _internal_staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_3__.staticLoggerMetadata) {
|
|
19290
|
+
const val = _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(meta[1]);
|
|
19353
19291
|
if (val)
|
|
19354
19292
|
Object.assign(metaObj, val);
|
|
19355
19293
|
}
|
|
19356
|
-
Object.assign(metaObj,
|
|
19294
|
+
Object.assign(metaObj, _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence
|
|
19357
19295
|
return metaObj;
|
|
19358
19296
|
}
|
|
19359
19297
|
/** 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 +19302,14 @@ class Logger {
|
|
|
19364
19302
|
/** Set the least severe level at which messages should be displayed by default. Call setLevel to override this default setting for specific categories. */
|
|
19365
19303
|
static setLevelDefault(minLevel) {
|
|
19366
19304
|
this._minLevel = minLevel;
|
|
19367
|
-
this.
|
|
19305
|
+
this.onLogLevelChanged.raiseEvent();
|
|
19368
19306
|
}
|
|
19369
19307
|
/** Set the minimum logging level for the specified category. The minimum level is least severe level at which messages in the
|
|
19370
19308
|
* specified category should be displayed.
|
|
19371
19309
|
*/
|
|
19372
19310
|
static setLevel(category, minLevel) {
|
|
19373
19311
|
Logger._categoryFilter[category] = minLevel;
|
|
19374
|
-
this.
|
|
19312
|
+
this.onLogLevelChanged.raiseEvent();
|
|
19375
19313
|
}
|
|
19376
19314
|
/** Interpret a string as the name of a LogLevel */
|
|
19377
19315
|
static parseLogLevel(str) {
|
|
@@ -19406,20 +19344,20 @@ class Logger {
|
|
|
19406
19344
|
const validProps = ["defaultLevel", "categoryLevels"];
|
|
19407
19345
|
for (const prop of Object.keys(config)) {
|
|
19408
19346
|
if (!validProps.includes(prop))
|
|
19409
|
-
throw new
|
|
19347
|
+
throw new _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError(_BentleyError__WEBPACK_IMPORTED_MODULE_1__.IModelStatus.BadArg, `LoggerLevelsConfig - unrecognized property: ${prop}`);
|
|
19410
19348
|
if (prop === "defaultLevel") {
|
|
19411
19349
|
if (!Logger.isLogLevel(config.defaultLevel))
|
|
19412
|
-
throw new
|
|
19350
|
+
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
19351
|
}
|
|
19414
19352
|
else if (prop === "categoryLevels") {
|
|
19415
19353
|
const value = config[prop];
|
|
19416
19354
|
if (!Array.isArray(value))
|
|
19417
|
-
throw new
|
|
19355
|
+
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
19356
|
for (const item of config[prop]) {
|
|
19419
19357
|
if (!item.hasOwnProperty("category") || !item.hasOwnProperty("logLevel"))
|
|
19420
|
-
throw new
|
|
19358
|
+
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
19359
|
if (!Logger.isLogLevel(item.logLevel))
|
|
19422
|
-
throw new
|
|
19360
|
+
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
19361
|
}
|
|
19424
19362
|
}
|
|
19425
19363
|
}
|
|
@@ -19427,7 +19365,7 @@ class Logger {
|
|
|
19427
19365
|
/** Get the minimum logging level for the specified category. */
|
|
19428
19366
|
static getLevel(category) {
|
|
19429
19367
|
// Prefer the level set for this category specifically
|
|
19430
|
-
const minLevelForThisCategory = Logger.
|
|
19368
|
+
const minLevelForThisCategory = Logger.categoryFilter[category];
|
|
19431
19369
|
if (minLevelForThisCategory !== undefined)
|
|
19432
19370
|
return minLevelForThisCategory;
|
|
19433
19371
|
// Fall back on the level set for the parent of this category.
|
|
@@ -19435,7 +19373,7 @@ class Logger {
|
|
|
19435
19373
|
if (parent !== -1)
|
|
19436
19374
|
return Logger.getLevel(category.slice(0, parent));
|
|
19437
19375
|
// Fall back on the default level.
|
|
19438
|
-
return Logger.
|
|
19376
|
+
return Logger.minLevel;
|
|
19439
19377
|
}
|
|
19440
19378
|
/** Turns off the least severe level at which messages should be displayed by default.
|
|
19441
19379
|
* This turns off logging for all messages for which no category minimum level is defined.
|
|
@@ -19463,8 +19401,8 @@ class Logger {
|
|
|
19463
19401
|
Logger._logError(category, message, metaData);
|
|
19464
19402
|
}
|
|
19465
19403
|
static getExceptionMessage(err) {
|
|
19466
|
-
const stack = Logger.logExceptionCallstacks ? `\n${
|
|
19467
|
-
return
|
|
19404
|
+
const stack = Logger.logExceptionCallstacks ? `\n${_BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorStack(err)}` : "";
|
|
19405
|
+
return _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorMessage(err) + stack;
|
|
19468
19406
|
}
|
|
19469
19407
|
/** Log the specified exception. The special "ExceptionType" property will be added as metadata.
|
|
19470
19408
|
* @param category The category of the message.
|
|
@@ -19473,7 +19411,7 @@ class Logger {
|
|
|
19473
19411
|
*/
|
|
19474
19412
|
static logException(category, err, log = (_category, message, metaData) => Logger.logError(_category, message, metaData)) {
|
|
19475
19413
|
log(category, Logger.getExceptionMessage(err), () => {
|
|
19476
|
-
return { ...
|
|
19414
|
+
return { ..._BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
|
|
19477
19415
|
});
|
|
19478
19416
|
}
|
|
19479
19417
|
/** Log the specified message to the **warning** stream.
|
|
@@ -19507,11 +19445,6 @@ class Logger {
|
|
|
19507
19445
|
Logger._categoryFilter = {};
|
|
19508
19446
|
/** Should the call stack be included when an exception is logged? */
|
|
19509
19447
|
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
19448
|
/** Simple performance diagnostics utility.
|
|
19516
19449
|
* It measures the time from construction to disposal. On disposal it logs the routine name along with
|
|
19517
19450
|
* the duration in milliseconds.
|
|
@@ -19525,19 +19458,19 @@ class PerfLogger {
|
|
|
19525
19458
|
constructor(operation, metaData) {
|
|
19526
19459
|
this._operation = operation;
|
|
19527
19460
|
this._metaData = metaData;
|
|
19528
|
-
if (!Logger.isEnabled(
|
|
19461
|
+
if (!Logger.isEnabled(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, PerfLogger._severity)) {
|
|
19529
19462
|
this._startTimeStamp = 0;
|
|
19530
19463
|
return;
|
|
19531
19464
|
}
|
|
19532
|
-
Logger.logInfo(
|
|
19465
|
+
Logger.logInfo(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, `${this._operation},START`, this._metaData);
|
|
19533
19466
|
this._startTimeStamp = new Date().getTime(); // take timestamp
|
|
19534
19467
|
}
|
|
19535
19468
|
logMessage() {
|
|
19536
19469
|
const endTimeStamp = new Date().getTime();
|
|
19537
|
-
if (!Logger.isEnabled(
|
|
19470
|
+
if (!Logger.isEnabled(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, PerfLogger._severity))
|
|
19538
19471
|
return;
|
|
19539
|
-
Logger.logInfo(
|
|
19540
|
-
const mdata = this._metaData ?
|
|
19472
|
+
Logger.logInfo(_BentleyLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.BentleyLoggerCategory.Performance, `${this._operation},END`, () => {
|
|
19473
|
+
const mdata = this._metaData ? _BentleyError__WEBPACK_IMPORTED_MODULE_1__.BentleyError.getMetaData(this._metaData) : {};
|
|
19541
19474
|
return {
|
|
19542
19475
|
...mdata, TimeElapsed: endTimeStamp - this._startTimeStamp, // eslint-disable-line @typescript-eslint/naming-convention
|
|
19543
19476
|
};
|
|
@@ -19596,14 +19529,18 @@ class ObservableSet extends Set {
|
|
|
19596
19529
|
return ret;
|
|
19597
19530
|
};
|
|
19598
19531
|
}
|
|
19599
|
-
/**
|
|
19532
|
+
/** Invokes [Set.delete](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete), raising
|
|
19533
|
+
* the [[onDeleted]] event if the item was removed from the set.
|
|
19534
|
+
*/
|
|
19600
19535
|
delete(item) {
|
|
19601
19536
|
const ret = super.delete(item);
|
|
19602
19537
|
if (ret)
|
|
19603
19538
|
this.onDeleted.raiseEvent(item);
|
|
19604
19539
|
return ret;
|
|
19605
19540
|
}
|
|
19606
|
-
/**
|
|
19541
|
+
/** If this set is not already empty, invokes [Set.clear](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/clear)
|
|
19542
|
+
* and raises the [[onCleared]] event.
|
|
19543
|
+
*/
|
|
19607
19544
|
clear() {
|
|
19608
19545
|
if (0 !== this.size) {
|
|
19609
19546
|
super.clear();
|
|
@@ -20620,6 +20557,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20620
20557
|
/* harmony export */ "SuccessCategory": () => (/* binding */ SuccessCategory)
|
|
20621
20558
|
/* harmony export */ });
|
|
20622
20559
|
/* harmony import */ var _BentleyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BentleyError */ "../bentley/lib/esm/BentleyError.js");
|
|
20560
|
+
/* harmony import */ var _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal/RepositoryStatus */ "../bentley/lib/esm/internal/RepositoryStatus.js");
|
|
20623
20561
|
/*---------------------------------------------------------------------------------------------
|
|
20624
20562
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
20625
20563
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -20628,6 +20566,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20628
20566
|
* @module Errors
|
|
20629
20567
|
*/
|
|
20630
20568
|
|
|
20569
|
+
|
|
20631
20570
|
/** A group of related statuses for aggregate reporting purposes.
|
|
20632
20571
|
* @alpha
|
|
20633
20572
|
*/
|
|
@@ -20992,22 +20931,22 @@ function lookupHttpStatusCategory(statusCode) {
|
|
|
20992
20931
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus.CannotMergeIntoReadonly: return new ValidationError();
|
|
20993
20932
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.ChangeSetStatus.CannotMergeIntoMaster: return new ValidationError();
|
|
20994
20933
|
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
|
|
20934
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.Success: return new Success();
|
|
20935
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ServerUnavailable: return new NetworkError();
|
|
20936
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockAlreadyHeld: return new Conflict();
|
|
20937
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.SyncError: return new NetworkError();
|
|
20938
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidResponse: return new NetworkError();
|
|
20939
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.PendingTransactions: return new StateViolation();
|
|
20940
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockUsed: return new StateViolation();
|
|
20941
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CannotCreateChangeSet: return new InternalError();
|
|
20942
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.InvalidRequest: return new NetworkError();
|
|
20943
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChangeSetRequired: return new StateViolation();
|
|
20944
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUnavailable: return new Conflict();
|
|
20945
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeNotReserved: return new StateViolation();
|
|
20946
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.CodeUsed: return new StateViolation();
|
|
20947
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.LockNotHeld: return new Forbidden();
|
|
20948
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.RepositoryIsLocked: return new Locked();
|
|
20949
|
+
case _internal_RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus.ChannelConstraintViolation: return new ConstraintViolation();
|
|
21011
20950
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.HttpStatus.Success: return new Success();
|
|
21012
20951
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelHubStatus.Success: return new Success();
|
|
21013
20952
|
case _BentleyError__WEBPACK_IMPORTED_MODULE_0__.IModelHubStatus.Unknown: return new UnknownError();
|
|
@@ -21094,8 +21033,7 @@ function lookupHttpStatusCategory(statusCode) {
|
|
|
21094
21033
|
__webpack_require__.r(__webpack_exports__);
|
|
21095
21034
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21096
21035
|
/* harmony export */ "base64StringToUint8Array": () => (/* binding */ base64StringToUint8Array),
|
|
21097
|
-
/* harmony export */ "utf8ToString": () => (/* binding */ utf8ToString)
|
|
21098
|
-
/* harmony export */ "utf8ToStringPolyfill": () => (/* binding */ utf8ToStringPolyfill)
|
|
21036
|
+
/* harmony export */ "utf8ToString": () => (/* binding */ utf8ToString)
|
|
21099
21037
|
/* harmony export */ });
|
|
21100
21038
|
/*---------------------------------------------------------------------------------------------
|
|
21101
21039
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -21104,110 +21042,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21104
21042
|
/** @packageDocumentation
|
|
21105
21043
|
* @module Utils
|
|
21106
21044
|
*/
|
|
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
21045
|
/** Given an array of bytes containing a utf-8 string, convert to a string.
|
|
21212
21046
|
* @param utf8: An array of utf-8 characters as a byte array
|
|
21213
21047
|
* @returns An equivalent string, or undefined if the array does not contain a valid utf-8 string.
|
|
@@ -21216,19 +21050,8 @@ let textDecoderSupported = true;
|
|
|
21216
21050
|
* @public
|
|
21217
21051
|
*/
|
|
21218
21052
|
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);
|
|
21053
|
+
const decoder = new TextDecoder("utf-8");
|
|
21054
|
+
return decoder.decode(utf8);
|
|
21232
21055
|
}
|
|
21233
21056
|
/** Given a base-64-encoded string, decode it into an array of bytes.
|
|
21234
21057
|
* @param base64 The base-64-encoded string.
|
|
@@ -21526,7 +21349,6 @@ class Tracing {
|
|
|
21526
21349
|
/**
|
|
21527
21350
|
* Adds a span event describing a runtime exception, as advised in OpenTelemetry documentation
|
|
21528
21351
|
* @param e error (exception) object
|
|
21529
|
-
* @internal
|
|
21530
21352
|
*/
|
|
21531
21353
|
static recordException(e) {
|
|
21532
21354
|
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.recordException(e);
|
|
@@ -22091,7 +21913,6 @@ class YieldManager {
|
|
|
22091
21913
|
await this.actualYield();
|
|
22092
21914
|
}
|
|
22093
21915
|
}
|
|
22094
|
-
/** @internal */
|
|
22095
21916
|
async actualYield() {
|
|
22096
21917
|
await new Promise((r) => setTimeout(r, 0));
|
|
22097
21918
|
}
|
|
@@ -22122,12 +21943,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22122
21943
|
/* harmony export */ "ByteStream": () => (/* reexport safe */ _ByteStream__WEBPACK_IMPORTED_MODULE_7__.ByteStream),
|
|
22123
21944
|
/* harmony export */ "ChangeSetStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.ChangeSetStatus),
|
|
22124
21945
|
/* 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 */
|
|
21946
|
+
/* harmony export */ "DbChangeStage": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbChangeStage),
|
|
21947
|
+
/* harmony export */ "DbConflictCause": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbConflictCause),
|
|
21948
|
+
/* harmony export */ "DbConflictResolution": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbConflictResolution),
|
|
22128
21949
|
/* harmony export */ "DbOpcode": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbOpcode),
|
|
22129
21950
|
/* harmony export */ "DbResult": () => (/* reexport safe */ _BeSQLite__WEBPACK_IMPORTED_MODULE_6__.DbResult),
|
|
22130
|
-
/* harmony export */ "DbValueType": () => (/* reexport safe */
|
|
21951
|
+
/* harmony export */ "DbValueType": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.DbValueType),
|
|
22131
21952
|
/* harmony export */ "Dictionary": () => (/* reexport safe */ _Dictionary__WEBPACK_IMPORTED_MODULE_11__.Dictionary),
|
|
22132
21953
|
/* harmony export */ "DisposableList": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_12__.DisposableList),
|
|
22133
21954
|
/* harmony export */ "DuplicatePolicy": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.DuplicatePolicy),
|
|
@@ -22160,7 +21981,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22160
21981
|
/* harmony export */ "ReadonlyOrderedSet": () => (/* reexport safe */ _OrderedSet__WEBPACK_IMPORTED_MODULE_22__.ReadonlyOrderedSet),
|
|
22161
21982
|
/* harmony export */ "ReadonlySortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.ReadonlySortedArray),
|
|
22162
21983
|
/* harmony export */ "RealityDataStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RealityDataStatus),
|
|
22163
|
-
/* harmony export */ "RepositoryStatus": () => (/* reexport safe */
|
|
21984
|
+
/* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.RepositoryStatus),
|
|
22164
21985
|
/* harmony export */ "RpcInterfaceStatus": () => (/* reexport safe */ _BentleyError__WEBPACK_IMPORTED_MODULE_3__.RpcInterfaceStatus),
|
|
22165
21986
|
/* harmony export */ "SortedArray": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.SortedArray),
|
|
22166
21987
|
/* harmony export */ "SpanKind": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_29__.SpanKind),
|
|
@@ -22199,9 +22020,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22199
22020
|
/* harmony export */ "omit": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.omit),
|
|
22200
22021
|
/* harmony export */ "partitionArray": () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_23__.partitionArray),
|
|
22201
22022
|
/* harmony export */ "shallowClone": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_26__.shallowClone),
|
|
22023
|
+
/* harmony export */ "staticLoggerMetadata": () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__.staticLoggerMetadata),
|
|
22202
22024
|
/* 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)
|
|
22025
|
+
/* harmony export */ "utf8ToString": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_27__.utf8ToString)
|
|
22205
22026
|
/* harmony export */ });
|
|
22206
22027
|
/* harmony import */ var _AccessToken__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AccessToken */ "../bentley/lib/esm/AccessToken.js");
|
|
22207
22028
|
/* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
|
|
@@ -22238,6 +22059,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22238
22059
|
/* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
|
|
22239
22060
|
/* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UtilityTypes */ "../bentley/lib/esm/UtilityTypes.js");
|
|
22240
22061
|
/* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./YieldManager */ "../bentley/lib/esm/YieldManager.js");
|
|
22062
|
+
/* harmony import */ var _internal_cross_package__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./internal/cross-package */ "../bentley/lib/esm/internal/cross-package.js");
|
|
22241
22063
|
/*---------------------------------------------------------------------------------------------
|
|
22242
22064
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22243
22065
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -22276,6 +22098,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22276
22098
|
|
|
22277
22099
|
|
|
22278
22100
|
|
|
22101
|
+
|
|
22102
|
+
// Temporarily (until 5.0) export top-level internal APIs to avoid breaking callers.
|
|
22279
22103
|
|
|
22280
22104
|
/** @docs-package-description
|
|
22281
22105
|
* The core-bentley package contains classes to solve problems that are common for both client and server use cases.
|
|
@@ -22318,6 +22142,184 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22318
22142
|
*/
|
|
22319
22143
|
|
|
22320
22144
|
|
|
22145
|
+
/***/ }),
|
|
22146
|
+
|
|
22147
|
+
/***/ "../bentley/lib/esm/internal/BeSQLiteInternal.js":
|
|
22148
|
+
/*!*******************************************************!*\
|
|
22149
|
+
!*** ../bentley/lib/esm/internal/BeSQLiteInternal.js ***!
|
|
22150
|
+
\*******************************************************/
|
|
22151
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22152
|
+
|
|
22153
|
+
"use strict";
|
|
22154
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22155
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22156
|
+
/* harmony export */ "DbChangeStage": () => (/* binding */ DbChangeStage),
|
|
22157
|
+
/* harmony export */ "DbConflictCause": () => (/* binding */ DbConflictCause),
|
|
22158
|
+
/* harmony export */ "DbConflictResolution": () => (/* binding */ DbConflictResolution),
|
|
22159
|
+
/* harmony export */ "DbValueType": () => (/* binding */ DbValueType)
|
|
22160
|
+
/* harmony export */ });
|
|
22161
|
+
/*---------------------------------------------------------------------------------------------
|
|
22162
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22163
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
22164
|
+
*--------------------------------------------------------------------------------------------*/
|
|
22165
|
+
/** @packageDocumentation
|
|
22166
|
+
* @module BeSQLite
|
|
22167
|
+
*/
|
|
22168
|
+
/** @internal */
|
|
22169
|
+
var DbChangeStage;
|
|
22170
|
+
(function (DbChangeStage) {
|
|
22171
|
+
DbChangeStage[DbChangeStage["Old"] = 0] = "Old";
|
|
22172
|
+
DbChangeStage[DbChangeStage["New"] = 1] = "New";
|
|
22173
|
+
})(DbChangeStage || (DbChangeStage = {}));
|
|
22174
|
+
/** @internal */
|
|
22175
|
+
var DbValueType;
|
|
22176
|
+
(function (DbValueType) {
|
|
22177
|
+
DbValueType[DbValueType["IntegerVal"] = 1] = "IntegerVal";
|
|
22178
|
+
DbValueType[DbValueType["FloatVal"] = 2] = "FloatVal";
|
|
22179
|
+
DbValueType[DbValueType["TextVal"] = 3] = "TextVal";
|
|
22180
|
+
DbValueType[DbValueType["BlobVal"] = 4] = "BlobVal";
|
|
22181
|
+
DbValueType[DbValueType["NullVal"] = 5] = "NullVal";
|
|
22182
|
+
})(DbValueType || (DbValueType = {}));
|
|
22183
|
+
/** Cause of conflict when applying a changeset.
|
|
22184
|
+
* @internal
|
|
22185
|
+
*/
|
|
22186
|
+
var DbConflictCause;
|
|
22187
|
+
(function (DbConflictCause) {
|
|
22188
|
+
DbConflictCause[DbConflictCause["Data"] = 1] = "Data";
|
|
22189
|
+
DbConflictCause[DbConflictCause["NotFound"] = 2] = "NotFound";
|
|
22190
|
+
DbConflictCause[DbConflictCause["Conflict"] = 3] = "Conflict";
|
|
22191
|
+
DbConflictCause[DbConflictCause["Constraint"] = 4] = "Constraint";
|
|
22192
|
+
DbConflictCause[DbConflictCause["ForeignKey"] = 5] = "ForeignKey";
|
|
22193
|
+
})(DbConflictCause || (DbConflictCause = {}));
|
|
22194
|
+
/** @internal */
|
|
22195
|
+
var DbConflictResolution;
|
|
22196
|
+
(function (DbConflictResolution) {
|
|
22197
|
+
/** Skip incoming change */
|
|
22198
|
+
DbConflictResolution[DbConflictResolution["Skip"] = 0] = "Skip";
|
|
22199
|
+
/** Replace local row with incoming changed row */
|
|
22200
|
+
DbConflictResolution[DbConflictResolution["Replace"] = 1] = "Replace";
|
|
22201
|
+
/** Abort apply changeset */
|
|
22202
|
+
DbConflictResolution[DbConflictResolution["Abort"] = 2] = "Abort";
|
|
22203
|
+
})(DbConflictResolution || (DbConflictResolution = {}));
|
|
22204
|
+
|
|
22205
|
+
|
|
22206
|
+
/***/ }),
|
|
22207
|
+
|
|
22208
|
+
/***/ "../bentley/lib/esm/internal/RepositoryStatus.js":
|
|
22209
|
+
/*!*******************************************************!*\
|
|
22210
|
+
!*** ../bentley/lib/esm/internal/RepositoryStatus.js ***!
|
|
22211
|
+
\*******************************************************/
|
|
22212
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22213
|
+
|
|
22214
|
+
"use strict";
|
|
22215
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22216
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22217
|
+
/* harmony export */ "RepositoryStatus": () => (/* binding */ RepositoryStatus)
|
|
22218
|
+
/* harmony export */ });
|
|
22219
|
+
/*---------------------------------------------------------------------------------------------
|
|
22220
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22221
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
22222
|
+
*--------------------------------------------------------------------------------------------*/
|
|
22223
|
+
/** @packageDocumentation
|
|
22224
|
+
* @module Errors
|
|
22225
|
+
*/
|
|
22226
|
+
/** Return codes for methods which perform repository management operations.
|
|
22227
|
+
* @internal
|
|
22228
|
+
*/
|
|
22229
|
+
var RepositoryStatus;
|
|
22230
|
+
(function (RepositoryStatus) {
|
|
22231
|
+
RepositoryStatus[RepositoryStatus["Success"] = 0] = "Success";
|
|
22232
|
+
/** The repository server did not respond to a request */
|
|
22233
|
+
RepositoryStatus[RepositoryStatus["ServerUnavailable"] = 86017] = "ServerUnavailable";
|
|
22234
|
+
/** A requested lock was already held by another briefcase */
|
|
22235
|
+
RepositoryStatus[RepositoryStatus["LockAlreadyHeld"] = 86018] = "LockAlreadyHeld";
|
|
22236
|
+
/** Failed to sync briefcase manager with server */
|
|
22237
|
+
RepositoryStatus[RepositoryStatus["SyncError"] = 86019] = "SyncError";
|
|
22238
|
+
/** Response from server not understood */
|
|
22239
|
+
RepositoryStatus[RepositoryStatus["InvalidResponse"] = 86020] = "InvalidResponse";
|
|
22240
|
+
/** An operation requires local changes to be committed or abandoned */
|
|
22241
|
+
RepositoryStatus[RepositoryStatus["PendingTransactions"] = 86021] = "PendingTransactions";
|
|
22242
|
+
/** A lock cannot be relinquished because the associated object has been modified */
|
|
22243
|
+
RepositoryStatus[RepositoryStatus["LockUsed"] = 86022] = "LockUsed";
|
|
22244
|
+
/** An operation required creation of a ChangeSet, which failed */
|
|
22245
|
+
RepositoryStatus[RepositoryStatus["CannotCreateChangeSet"] = 86023] = "CannotCreateChangeSet";
|
|
22246
|
+
/** Request to server not understood */
|
|
22247
|
+
RepositoryStatus[RepositoryStatus["InvalidRequest"] = 86024] = "InvalidRequest";
|
|
22248
|
+
/** A change set committed to the server must be integrated into the briefcase before the operation can be completed */
|
|
22249
|
+
RepositoryStatus[RepositoryStatus["ChangeSetRequired"] = 86025] = "ChangeSetRequired";
|
|
22250
|
+
/** A requested DgnCode is reserved by another briefcase or in use */
|
|
22251
|
+
RepositoryStatus[RepositoryStatus["CodeUnavailable"] = 86026] = "CodeUnavailable";
|
|
22252
|
+
/** A DgnCode cannot be released because it has not been reserved by the requesting briefcase */
|
|
22253
|
+
RepositoryStatus[RepositoryStatus["CodeNotReserved"] = 86027] = "CodeNotReserved";
|
|
22254
|
+
/** A DgnCode cannot be relinquished because it has been used locally */
|
|
22255
|
+
RepositoryStatus[RepositoryStatus["CodeUsed"] = 86028] = "CodeUsed";
|
|
22256
|
+
/** A required lock is not held by this briefcase */
|
|
22257
|
+
RepositoryStatus[RepositoryStatus["LockNotHeld"] = 86029] = "LockNotHeld";
|
|
22258
|
+
/** Repository is currently locked, no changes allowed */
|
|
22259
|
+
RepositoryStatus[RepositoryStatus["RepositoryIsLocked"] = 86030] = "RepositoryIsLocked";
|
|
22260
|
+
/** Channel write constraint violation, such as an attempt to write outside the designated channel. */
|
|
22261
|
+
RepositoryStatus[RepositoryStatus["ChannelConstraintViolation"] = 86031] = "ChannelConstraintViolation";
|
|
22262
|
+
})(RepositoryStatus || (RepositoryStatus = {}));
|
|
22263
|
+
|
|
22264
|
+
|
|
22265
|
+
/***/ }),
|
|
22266
|
+
|
|
22267
|
+
/***/ "../bentley/lib/esm/internal/cross-package.js":
|
|
22268
|
+
/*!****************************************************!*\
|
|
22269
|
+
!*** ../bentley/lib/esm/internal/cross-package.js ***!
|
|
22270
|
+
\****************************************************/
|
|
22271
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22272
|
+
|
|
22273
|
+
"use strict";
|
|
22274
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22275
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22276
|
+
/* harmony export */ "DbChangeStage": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbChangeStage),
|
|
22277
|
+
/* harmony export */ "DbConflictCause": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbConflictCause),
|
|
22278
|
+
/* harmony export */ "DbConflictResolution": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbConflictResolution),
|
|
22279
|
+
/* harmony export */ "DbValueType": () => (/* reexport safe */ _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__.DbValueType),
|
|
22280
|
+
/* harmony export */ "RepositoryStatus": () => (/* reexport safe */ _RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__.RepositoryStatus),
|
|
22281
|
+
/* harmony export */ "staticLoggerMetadata": () => (/* reexport safe */ _staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_0__.staticLoggerMetadata)
|
|
22282
|
+
/* harmony export */ });
|
|
22283
|
+
/* harmony import */ var _staticLoggerMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./staticLoggerMetadata */ "../bentley/lib/esm/internal/staticLoggerMetadata.js");
|
|
22284
|
+
/* harmony import */ var _RepositoryStatus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RepositoryStatus */ "../bentley/lib/esm/internal/RepositoryStatus.js");
|
|
22285
|
+
/* harmony import */ var _BeSQLiteInternal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BeSQLiteInternal */ "../bentley/lib/esm/internal/BeSQLiteInternal.js");
|
|
22286
|
+
/*---------------------------------------------------------------------------------------------
|
|
22287
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22288
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
22289
|
+
*--------------------------------------------------------------------------------------------*/
|
|
22290
|
+
|
|
22291
|
+
|
|
22292
|
+
|
|
22293
|
+
|
|
22294
|
+
|
|
22295
|
+
/***/ }),
|
|
22296
|
+
|
|
22297
|
+
/***/ "../bentley/lib/esm/internal/staticLoggerMetadata.js":
|
|
22298
|
+
/*!***********************************************************!*\
|
|
22299
|
+
!*** ../bentley/lib/esm/internal/staticLoggerMetadata.js ***!
|
|
22300
|
+
\***********************************************************/
|
|
22301
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22302
|
+
|
|
22303
|
+
"use strict";
|
|
22304
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22305
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22306
|
+
/* harmony export */ "staticLoggerMetadata": () => (/* binding */ staticLoggerMetadata)
|
|
22307
|
+
/* harmony export */ });
|
|
22308
|
+
/*---------------------------------------------------------------------------------------------
|
|
22309
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
22310
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
22311
|
+
*--------------------------------------------------------------------------------------------*/
|
|
22312
|
+
/** @packageDocumentation
|
|
22313
|
+
* @module Logging
|
|
22314
|
+
*/
|
|
22315
|
+
/** All static metadata is combined with per-call metadata and stringified in every log message.
|
|
22316
|
+
* Static metadata can either be an object or a function that returns an object.
|
|
22317
|
+
* Use a key to identify entries in the map so the can be removed individually.
|
|
22318
|
+
* @internal
|
|
22319
|
+
*/
|
|
22320
|
+
const staticLoggerMetadata = new Map();
|
|
22321
|
+
|
|
22322
|
+
|
|
22321
22323
|
/***/ }),
|
|
22322
22324
|
|
|
22323
22325
|
/***/ "../bentley/lib/esm/partitionArray.js":
|