@itwin/core-bentley 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.
Files changed (171) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/ThirdPartyNotices.md +18 -4
  3. package/lib/cjs/AccessToken.js.map +1 -1
  4. package/lib/cjs/Assert.js.map +1 -1
  5. package/lib/cjs/BeEvent.d.ts +17 -0
  6. package/lib/cjs/BeEvent.d.ts.map +1 -1
  7. package/lib/cjs/BeEvent.js.map +1 -1
  8. package/lib/cjs/BeSQLite.d.ts +0 -38
  9. package/lib/cjs/BeSQLite.d.ts.map +1 -1
  10. package/lib/cjs/BeSQLite.js +1 -43
  11. package/lib/cjs/BeSQLite.js.map +1 -1
  12. package/lib/cjs/BentleyError.d.ts +0 -43
  13. package/lib/cjs/BentleyError.d.ts.map +1 -1
  14. package/lib/cjs/BentleyError.js +17 -53
  15. package/lib/cjs/BentleyError.js.map +1 -1
  16. package/lib/cjs/BentleyLoggerCategory.js.map +1 -1
  17. package/lib/cjs/ByteStream.js.map +1 -1
  18. package/lib/cjs/ClassUtils.js.map +1 -1
  19. package/lib/cjs/Compare.js.map +1 -1
  20. package/lib/cjs/CompressedId64Set.d.ts +1 -1
  21. package/lib/cjs/CompressedId64Set.js +1 -1
  22. package/lib/cjs/CompressedId64Set.js.map +1 -1
  23. package/lib/cjs/Dictionary.js.map +1 -1
  24. package/lib/cjs/Disposable.js.map +1 -1
  25. package/lib/cjs/Id.d.ts +46 -0
  26. package/lib/cjs/Id.d.ts.map +1 -1
  27. package/lib/cjs/Id.js +68 -2
  28. package/lib/cjs/Id.js.map +1 -1
  29. package/lib/cjs/IndexMap.js.map +1 -1
  30. package/lib/cjs/JsonSchema.js.map +1 -1
  31. package/lib/cjs/JsonUtils.js.map +1 -1
  32. package/lib/cjs/LRUMap.js.map +1 -1
  33. package/lib/cjs/Logger.d.ts +15 -12
  34. package/lib/cjs/Logger.d.ts.map +1 -1
  35. package/lib/cjs/Logger.js +27 -14
  36. package/lib/cjs/Logger.js.map +1 -1
  37. package/lib/cjs/ObservableSet.d.ts +6 -2
  38. package/lib/cjs/ObservableSet.d.ts.map +1 -1
  39. package/lib/cjs/ObservableSet.js +6 -2
  40. package/lib/cjs/ObservableSet.js.map +1 -1
  41. package/lib/cjs/OneAtATimeAction.js.map +1 -1
  42. package/lib/cjs/OrderedId64Iterable.js.map +1 -1
  43. package/lib/cjs/OrderedSet.js.map +1 -1
  44. package/lib/cjs/PriorityQueue.js.map +1 -1
  45. package/lib/cjs/ProcessDetector.js.map +1 -1
  46. package/lib/cjs/SortedArray.js.map +1 -1
  47. package/lib/cjs/StatusCategory.js +17 -16
  48. package/lib/cjs/StatusCategory.js.map +1 -1
  49. package/lib/cjs/StringUtils.d.ts +0 -4
  50. package/lib/cjs/StringUtils.d.ts.map +1 -1
  51. package/lib/cjs/StringUtils.js +3 -119
  52. package/lib/cjs/StringUtils.js.map +1 -1
  53. package/lib/cjs/Time.js.map +1 -1
  54. package/lib/cjs/Tracing.d.ts +0 -1
  55. package/lib/cjs/Tracing.d.ts.map +1 -1
  56. package/lib/cjs/Tracing.js +0 -1
  57. package/lib/cjs/Tracing.js.map +1 -1
  58. package/lib/cjs/TupleKeyedMap.js.map +1 -1
  59. package/lib/cjs/TypedArrayBuilder.js.map +1 -1
  60. package/lib/cjs/UnexpectedErrors.js.map +1 -1
  61. package/lib/cjs/UtilityTypes.js.map +1 -1
  62. package/lib/cjs/YieldManager.d.ts +1 -2
  63. package/lib/cjs/YieldManager.d.ts.map +1 -1
  64. package/lib/cjs/YieldManager.js +0 -1
  65. package/lib/cjs/YieldManager.js.map +1 -1
  66. package/lib/cjs/core-bentley.d.ts +1 -0
  67. package/lib/cjs/core-bentley.d.ts.map +1 -1
  68. package/lib/cjs/core-bentley.js +2 -0
  69. package/lib/cjs/core-bentley.js.map +1 -1
  70. package/lib/cjs/internal/BeSQLiteInternal.d.ts +36 -0
  71. package/lib/cjs/internal/BeSQLiteInternal.d.ts.map +1 -0
  72. package/lib/cjs/internal/BeSQLiteInternal.js +47 -0
  73. package/lib/cjs/internal/BeSQLiteInternal.js.map +1 -0
  74. package/lib/cjs/internal/RepositoryStatus.d.ts +40 -0
  75. package/lib/cjs/internal/RepositoryStatus.d.ts.map +1 -0
  76. package/lib/cjs/internal/RepositoryStatus.js +48 -0
  77. package/lib/cjs/internal/RepositoryStatus.js.map +1 -0
  78. package/lib/cjs/internal/cross-package.d.ts +4 -0
  79. package/lib/cjs/internal/cross-package.d.ts.map +1 -0
  80. package/lib/cjs/internal/cross-package.js +17 -0
  81. package/lib/cjs/internal/cross-package.js.map +1 -0
  82. package/lib/cjs/internal/staticLoggerMetadata.d.ts +11 -0
  83. package/lib/cjs/internal/staticLoggerMetadata.d.ts.map +1 -0
  84. package/lib/cjs/internal/staticLoggerMetadata.js +17 -0
  85. package/lib/cjs/internal/staticLoggerMetadata.js.map +1 -0
  86. package/lib/cjs/partitionArray.js.map +1 -1
  87. package/lib/esm/AccessToken.js.map +1 -1
  88. package/lib/esm/Assert.js.map +1 -1
  89. package/lib/esm/BeEvent.d.ts +17 -0
  90. package/lib/esm/BeEvent.d.ts.map +1 -1
  91. package/lib/esm/BeEvent.js.map +1 -1
  92. package/lib/esm/BeSQLite.d.ts +0 -38
  93. package/lib/esm/BeSQLite.d.ts.map +1 -1
  94. package/lib/esm/BeSQLite.js +0 -42
  95. package/lib/esm/BeSQLite.js.map +1 -1
  96. package/lib/esm/BentleyError.d.ts +0 -43
  97. package/lib/esm/BentleyError.d.ts.map +1 -1
  98. package/lib/esm/BentleyError.js +1 -37
  99. package/lib/esm/BentleyError.js.map +1 -1
  100. package/lib/esm/BentleyLoggerCategory.js.map +1 -1
  101. package/lib/esm/ByteStream.js.map +1 -1
  102. package/lib/esm/ClassUtils.js.map +1 -1
  103. package/lib/esm/Compare.js.map +1 -1
  104. package/lib/esm/CompressedId64Set.d.ts +1 -1
  105. package/lib/esm/CompressedId64Set.js +1 -1
  106. package/lib/esm/CompressedId64Set.js.map +1 -1
  107. package/lib/esm/Dictionary.js.map +1 -1
  108. package/lib/esm/Disposable.js.map +1 -1
  109. package/lib/esm/Id.d.ts +46 -0
  110. package/lib/esm/Id.d.ts.map +1 -1
  111. package/lib/esm/Id.js +68 -2
  112. package/lib/esm/Id.js.map +1 -1
  113. package/lib/esm/IndexMap.js.map +1 -1
  114. package/lib/esm/JsonSchema.js.map +1 -1
  115. package/lib/esm/JsonUtils.js.map +1 -1
  116. package/lib/esm/LRUMap.js.map +1 -1
  117. package/lib/esm/Logger.d.ts +15 -12
  118. package/lib/esm/Logger.d.ts.map +1 -1
  119. package/lib/esm/Logger.js +27 -14
  120. package/lib/esm/Logger.js.map +1 -1
  121. package/lib/esm/ObservableSet.d.ts +6 -2
  122. package/lib/esm/ObservableSet.d.ts.map +1 -1
  123. package/lib/esm/ObservableSet.js +6 -2
  124. package/lib/esm/ObservableSet.js.map +1 -1
  125. package/lib/esm/OneAtATimeAction.js.map +1 -1
  126. package/lib/esm/OrderedId64Iterable.js.map +1 -1
  127. package/lib/esm/OrderedSet.js.map +1 -1
  128. package/lib/esm/PriorityQueue.js.map +1 -1
  129. package/lib/esm/ProcessDetector.js.map +1 -1
  130. package/lib/esm/SortedArray.js.map +1 -1
  131. package/lib/esm/StatusCategory.js +2 -1
  132. package/lib/esm/StatusCategory.js.map +1 -1
  133. package/lib/esm/StringUtils.d.ts +0 -4
  134. package/lib/esm/StringUtils.d.ts.map +1 -1
  135. package/lib/esm/StringUtils.js +2 -117
  136. package/lib/esm/StringUtils.js.map +1 -1
  137. package/lib/esm/Time.js.map +1 -1
  138. package/lib/esm/Tracing.d.ts +0 -1
  139. package/lib/esm/Tracing.d.ts.map +1 -1
  140. package/lib/esm/Tracing.js +0 -1
  141. package/lib/esm/Tracing.js.map +1 -1
  142. package/lib/esm/TupleKeyedMap.js.map +1 -1
  143. package/lib/esm/TypedArrayBuilder.js.map +1 -1
  144. package/lib/esm/UnexpectedErrors.js.map +1 -1
  145. package/lib/esm/UtilityTypes.js.map +1 -1
  146. package/lib/esm/YieldManager.d.ts +1 -2
  147. package/lib/esm/YieldManager.d.ts.map +1 -1
  148. package/lib/esm/YieldManager.js +0 -1
  149. package/lib/esm/YieldManager.js.map +1 -1
  150. package/lib/esm/core-bentley.d.ts +1 -0
  151. package/lib/esm/core-bentley.d.ts.map +1 -1
  152. package/lib/esm/core-bentley.js +2 -0
  153. package/lib/esm/core-bentley.js.map +1 -1
  154. package/lib/esm/internal/BeSQLiteInternal.d.ts +36 -0
  155. package/lib/esm/internal/BeSQLiteInternal.d.ts.map +1 -0
  156. package/lib/esm/internal/BeSQLiteInternal.js +44 -0
  157. package/lib/esm/internal/BeSQLiteInternal.js.map +1 -0
  158. package/lib/esm/internal/RepositoryStatus.d.ts +40 -0
  159. package/lib/esm/internal/RepositoryStatus.d.ts.map +1 -0
  160. package/lib/esm/internal/RepositoryStatus.js +45 -0
  161. package/lib/esm/internal/RepositoryStatus.js.map +1 -0
  162. package/lib/esm/internal/cross-package.d.ts +4 -0
  163. package/lib/esm/internal/cross-package.d.ts.map +1 -0
  164. package/lib/esm/internal/cross-package.js +8 -0
  165. package/lib/esm/internal/cross-package.js.map +1 -0
  166. package/lib/esm/internal/staticLoggerMetadata.d.ts +11 -0
  167. package/lib/esm/internal/staticLoggerMetadata.d.ts.map +1 -0
  168. package/lib/esm/internal/staticLoggerMetadata.js +14 -0
  169. package/lib/esm/internal/staticLoggerMetadata.js.map +1 -0
  170. package/lib/esm/partitionArray.js.map +1 -1
  171. package/package.json +4 -3
@@ -0,0 +1,14 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module Logging
7
+ */
8
+ /** All static metadata is combined with per-call metadata and stringified in every log message.
9
+ * Static metadata can either be an object or a function that returns an object.
10
+ * Use a key to identify entries in the map so the can be removed individually.
11
+ * @internal
12
+ */
13
+ export const staticLoggerMetadata = new Map();
14
+ //# sourceMappingURL=staticLoggerMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staticLoggerMetadata.js","sourceRoot":"","sources":["../../../src/internal/staticLoggerMetadata.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAA2B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Logging\r\n */\r\n\r\nimport { LoggingMetaData } from \"../BentleyError\";\r\n\r\n/** All static metadata is combined with per-call metadata and stringified in every log message.\r\n * Static metadata can either be an object or a function that returns an object.\r\n * Use a key to identify entries in the map so the can be removed individually.\r\n * @internal\r\n */\r\nexport const staticLoggerMetadata = new Map<String, LoggingMetaData>();\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"partitionArray.js","sourceRoot":"","sources":["../../src/partitionArray.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,cAAc,CAAI,KAAU,EAAE,SAAkC;IAC9E,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC;IAC7B,OAAO,KAAK,GAAG,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YACpB,EAAE,KAAK,CAAC;QACV,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;YAClC,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Collections\n */\n\n/** Partitions an array in-place according to some criterion, such that elements that fulfill the criterion are grouped in the lower\n * portion of the array, and those that fail to fulfill the criterion are grouped in the upper portion of the array.\n * @param array The array to be partitioned.\n * @param criterion A function invoked for each element of the array, returning whether the element fulfills the criterion.\n * @returns The index of the upper partition, i.e., of the first element that fails the criterion. If all elements fulfill the criterion, this is the length of the array.\n * @note The relative ordering of elements within each partition is unspecified.\n * Example:\n * ```ts\n * function isEven(n: number) { return 0 === n % 2; }\n * const list = [ 1, 2, 3, 4, 5 ];\n * const firstOddIndex = partitionArray(list, isEven); // firstOddIndex = 2\n * // 2 and 4 now appear before 1, 3, and 5 in the list; their ordering is otherwise unspecified.\n * for (let i = 0; i < list.length; i++)\n * assert(isEven(list[i]) === i < firstOddIndex);\n * ```\n * @public\n */\nexport function partitionArray<T>(array: T[], criterion: (element: T) => boolean): number {\n let index = 0;\n let partition = array.length;\n while (index < partition) {\n const elem = array[index];\n if (criterion(elem)) {\n ++index;\n } else {\n array[index] = array[--partition];\n array[partition] = elem;\n }\n }\n\n return partition;\n}\n"]}
1
+ {"version":3,"file":"partitionArray.js","sourceRoot":"","sources":["../../src/partitionArray.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,cAAc,CAAI,KAAU,EAAE,SAAkC;IAC9E,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC;IAC7B,OAAO,KAAK,GAAG,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YACpB,EAAE,KAAK,CAAC;QACV,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;YAClC,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Collections\r\n */\r\n\r\n/** Partitions an array in-place according to some criterion, such that elements that fulfill the criterion are grouped in the lower\r\n * portion of the array, and those that fail to fulfill the criterion are grouped in the upper portion of the array.\r\n * @param array The array to be partitioned.\r\n * @param criterion A function invoked for each element of the array, returning whether the element fulfills the criterion.\r\n * @returns The index of the upper partition, i.e., of the first element that fails the criterion. If all elements fulfill the criterion, this is the length of the array.\r\n * @note The relative ordering of elements within each partition is unspecified.\r\n * Example:\r\n * ```ts\r\n * function isEven(n: number) { return 0 === n % 2; }\r\n * const list = [ 1, 2, 3, 4, 5 ];\r\n * const firstOddIndex = partitionArray(list, isEven); // firstOddIndex = 2\r\n * // 2 and 4 now appear before 1, 3, and 5 in the list; their ordering is otherwise unspecified.\r\n * for (let i = 0; i < list.length; i++)\r\n * assert(isEven(list[i]) === i < firstOddIndex);\r\n * ```\r\n * @public\r\n */\r\nexport function partitionArray<T>(array: T[], criterion: (element: T) => boolean): number {\r\n let index = 0;\r\n let partition = array.length;\r\n while (index < partition) {\r\n const elem = array[index];\r\n if (criterion(elem)) {\r\n ++index;\r\n } else {\r\n array[index] = array[--partition];\r\n array[partition] = elem;\r\n }\r\n }\r\n\r\n return partition;\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-bentley",
3
- "version": "4.8.0-dev.9",
3
+ "version": "4.9.0-dev.2",
4
4
  "description": "Bentley JavaScript core components",
5
5
  "main": "lib/cjs/core-bentley.js",
6
6
  "module": "lib/esm/core-bentley.js",
@@ -35,7 +35,7 @@
35
35
  "nyc": "^15.1.0",
36
36
  "rimraf": "^3.0.2",
37
37
  "typescript": "~5.3.3",
38
- "@itwin/build-tools": "4.8.0-dev.9"
38
+ "@itwin/build-tools": "4.9.0-dev.2"
39
39
  },
40
40
  "nyc": {
41
41
  "extends": "./node_modules/@itwin/build-tools/.nycrc"
@@ -49,6 +49,7 @@
49
49
  "test": "mocha",
50
50
  "docs": "betools docs --json=../../generated-docs/core/core-bentley/file.json --tsIndexFile=core-bentley.ts --onlyJson",
51
51
  "cover": "nyc npm -s test",
52
- "lint": "eslint -f visualstudio \"./src/**/*.ts\" 1>&2"
52
+ "lint": "eslint -f visualstudio \"./src/**/*.ts\" 1>&2",
53
+ "lint-fix": "eslint --fix -f visualstudio \"./src/**/*.ts\" 1>&2"
53
54
  }
54
55
  }