@itwin/core-i18n 4.10.0-dev.9 → 5.0.0-dev.0

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.
@@ -15697,7 +15697,6 @@ var DbOpcode;
15697
15697
  /** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.
15698
15698
  * @public
15699
15699
  */
15700
- /* eslint-disable @typescript-eslint/naming-convention */
15701
15700
  // Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it
15702
15701
  var DbResult;
15703
15702
  (function (DbResult) {
@@ -15848,7 +15847,6 @@ var DbResult;
15848
15847
  DbResult[DbResult["BE_SQLITE_CONSTRAINT_UNIQUE"] = 2067] = "BE_SQLITE_CONSTRAINT_UNIQUE";
15849
15848
  DbResult[DbResult["BE_SQLITE_CONSTRAINT_VTAB"] = 2323] = "BE_SQLITE_CONSTRAINT_VTAB";
15850
15849
  })(DbResult || (DbResult = {}));
15851
- /* eslint-enable @typescript-eslint/naming-convention */
15852
15850
 
15853
15851
 
15854
15852
  /***/ }),
@@ -16634,14 +16632,14 @@ class ByteStream {
16634
16632
  */
16635
16633
  static fromUint8Array(bytes) {
16636
16634
  const { byteOffset, byteLength } = bytes;
16637
- return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line deprecation/deprecation
16635
+ return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line @typescript-eslint/no-deprecated
16638
16636
  }
16639
16637
  /** Construct a new ByteStream with the read position set to the beginning.
16640
16638
  * @param buffer The underlying buffer from which data is to be extracted.
16641
16639
  * @param subView If defined, specifies the subset of the underlying buffer's data to use.
16642
16640
  */
16643
16641
  static fromArrayBuffer(buffer, subView) {
16644
- return new ByteStream(buffer, subView); // eslint-disable-line deprecation/deprecation
16642
+ return new ByteStream(buffer, subView); // eslint-disable-line @typescript-eslint/no-deprecated
16645
16643
  }
16646
16644
  /** The number of bytes in this stream */
16647
16645
  get length() {
@@ -17561,7 +17559,6 @@ __webpack_require__.r(__webpack_exports__);
17561
17559
  * @public
17562
17560
  */
17563
17561
  function isIDisposable(obj) {
17564
- // eslint-disable-next-line @typescript-eslint/unbound-method
17565
17562
  return !!obj && (obj instanceof Object) && !!obj.dispose && (typeof obj.dispose === "function");
17566
17563
  }
17567
17564
  /** Convenience function for disposing of a disposable object that may be undefined.
@@ -17985,7 +17982,7 @@ var Id64;
17985
17982
  Id64.iterable = iterable;
17986
17983
  /** Return the first [[Id64String]] of an [[Id64Arg]]. */
17987
17984
  function getFirst(arg) {
17988
- return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value);
17985
+ return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value) ?? Id64.invalid;
17989
17986
  }
17990
17987
  Id64.getFirst = getFirst;
17991
17988
  /** Return the number of [[Id64String]]s represented by an [[Id64Arg]]. */
@@ -20021,7 +20018,7 @@ class ProcessDetector {
20021
20018
  * @note This method will return `true` for any frontend running on an iPad, whether it is a user-launched web browser (e.g. Safari) or the frontend of a mobile app.
20022
20019
  */
20023
20020
  static get isIPadBrowser() {
20024
- return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line deprecation/deprecation */
20021
+ return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line @typescript-eslint/no-deprecated */
20025
20022
  }
20026
20023
  /** Is this process running in a browser on an iPhone?
20027
20024
  * @note This method will return `true` for any frontend running on an iPhone, whether it is a user-launched web browser (e.g. Safari) or the frontend of a mobile app.
@@ -20909,7 +20906,7 @@ function utf8ToString(utf8) {
20909
20906
  * @public
20910
20907
  */
20911
20908
  function base64StringToUint8Array(base64) {
20912
- return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0))); // eslint-disable-line deprecation/deprecation
20909
+ return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0)));
20913
20910
  }
20914
20911
 
20915
20912
 
@@ -21159,7 +21156,7 @@ function* getFlatEntries(obj, path = "") {
21159
21156
  function flattenObject(obj) {
21160
21157
  return Object.fromEntries(getFlatEntries(obj));
21161
21158
  }
21162
- /* eslint-disable deprecation/deprecation -- lots of self-references here... */
21159
+ /* eslint-disable @typescript-eslint/no-deprecated -- lots of self-references here... */
21163
21160
  /**
21164
21161
  * Enables OpenTelemetry tracing in addition to traditional logging.
21165
21162
  * @public
@@ -21231,7 +21228,7 @@ class Tracing {
21231
21228
  loggerCategory: category,
21232
21229
  });
21233
21230
  }
21234
- catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
21231
+ catch { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
21235
21232
  const spanContext = Tracing._openTelemetry.trace.getSpan(oTelContext)?.spanContext();
21236
21233
  base(category, message, {
21237
21234
  ...serializedMetadata,
@@ -21251,7 +21248,7 @@ class Tracing {
21251
21248
  Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
21252
21249
  }
21253
21250
  }
21254
- /* eslint-enable deprecation/deprecation */
21251
+ /* eslint-enable @typescript-eslint/no-deprecated */
21255
21252
 
21256
21253
 
21257
21254
  /***/ }),
@@ -21635,7 +21632,7 @@ class UnexpectedErrors {
21635
21632
  try {
21636
21633
  telemetry(error);
21637
21634
  }
21638
- catch (_) {
21635
+ catch {
21639
21636
  // ignore errors from telemetry trackers
21640
21637
  }
21641
21638
  });
@@ -22429,7 +22426,7 @@ class ITwinLocalization {
22429
22426
  locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));
22430
22427
  }
22431
22428
  }
22432
- catch (e) {
22429
+ catch {
22433
22430
  locales = [];
22434
22431
  }
22435
22432
  // if we removed every locale from the array, it wasn't loaded.