@itwin/core-bentley 3.0.0-extension.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +122 -12
- package/LICENSE.md +1 -1
- package/ThirdPartyNotices.md +24 -0
- package/lib/cjs/Assert.d.ts +20 -10
- package/lib/cjs/Assert.d.ts.map +1 -1
- package/lib/cjs/Assert.js +31 -12
- package/lib/cjs/Assert.js.map +1 -1
- package/lib/cjs/BentleyError.d.ts +1 -2
- package/lib/cjs/BentleyError.d.ts.map +1 -1
- package/lib/cjs/BentleyError.js +1 -3
- package/lib/cjs/BentleyError.js.map +1 -1
- package/lib/cjs/ByteStream.d.ts +31 -1
- package/lib/cjs/ByteStream.d.ts.map +1 -1
- package/lib/cjs/ByteStream.js +33 -1
- package/lib/cjs/ByteStream.js.map +1 -1
- package/lib/cjs/Compare.d.ts +1 -1
- package/lib/cjs/Compare.js.map +1 -1
- package/lib/cjs/Disposable.d.ts +1 -1
- package/lib/cjs/Disposable.js.map +1 -1
- package/lib/cjs/JsonSchema.d.ts +78 -0
- package/lib/cjs/JsonSchema.d.ts.map +1 -0
- package/lib/cjs/JsonSchema.js +10 -0
- package/lib/cjs/JsonSchema.js.map +1 -0
- package/lib/cjs/JsonUtils.d.ts +1 -1
- package/lib/cjs/JsonUtils.js +1 -1
- package/lib/cjs/JsonUtils.js.map +1 -1
- package/lib/cjs/SortedArray.d.ts +1 -1
- package/lib/cjs/SortedArray.js.map +1 -1
- package/lib/cjs/UtilityTypes.d.ts +8 -0
- package/lib/cjs/UtilityTypes.d.ts.map +1 -1
- package/lib/cjs/UtilityTypes.js.map +1 -1
- package/lib/cjs/core-bentley.d.ts +5 -7
- package/lib/cjs/core-bentley.d.ts.map +1 -1
- package/lib/cjs/core-bentley.js +5 -7
- package/lib/cjs/core-bentley.js.map +1 -1
- package/lib/esm/Assert.d.ts +20 -10
- package/lib/esm/Assert.d.ts.map +1 -1
- package/lib/esm/Assert.js +31 -12
- package/lib/esm/Assert.js.map +1 -1
- package/lib/esm/BentleyError.d.ts +1 -2
- package/lib/esm/BentleyError.d.ts.map +1 -1
- package/lib/esm/BentleyError.js +1 -3
- package/lib/esm/BentleyError.js.map +1 -1
- package/lib/esm/ByteStream.d.ts +31 -1
- package/lib/esm/ByteStream.d.ts.map +1 -1
- package/lib/esm/ByteStream.js +33 -1
- package/lib/esm/ByteStream.js.map +1 -1
- package/lib/esm/Compare.d.ts +1 -1
- package/lib/esm/Compare.js.map +1 -1
- package/lib/esm/Disposable.d.ts +1 -1
- package/lib/esm/Disposable.js.map +1 -1
- package/lib/esm/JsonSchema.d.ts +78 -0
- package/lib/esm/JsonSchema.d.ts.map +1 -0
- package/lib/esm/JsonSchema.js +9 -0
- package/lib/esm/JsonSchema.js.map +1 -0
- package/lib/esm/JsonUtils.d.ts +1 -1
- package/lib/esm/JsonUtils.js +1 -1
- package/lib/esm/JsonUtils.js.map +1 -1
- package/lib/esm/SortedArray.d.ts +1 -1
- package/lib/esm/SortedArray.js.map +1 -1
- package/lib/esm/UtilityTypes.d.ts +8 -0
- package/lib/esm/UtilityTypes.d.ts.map +1 -1
- package/lib/esm/UtilityTypes.js.map +1 -1
- package/lib/esm/core-bentley.d.ts +5 -7
- package/lib/esm/core-bentley.d.ts.map +1 -1
- package/lib/esm/core-bentley.js +5 -7
- package/lib/esm/core-bentley.js.map +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,116 @@
|
|
|
1
1
|
# Change Log - @itwin/core-bentley
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 10 Mar 2022 21:18:13 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 3.0.2
|
|
6
|
+
Thu, 10 Mar 2022 21:18:13 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 3.0.1
|
|
11
|
+
Thu, 24 Feb 2022 15:26:55 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 3.0.0
|
|
16
|
+
Mon, 24 Jan 2022 14:00:52 GMT
|
|
17
|
+
|
|
18
|
+
### Updates
|
|
19
|
+
|
|
20
|
+
- Drop deprecated ElectronUtils and Id methods.
|
|
21
|
+
- make ChangeSetApplyOption @internal - to be removed in future
|
|
22
|
+
- add MarkRequired utility type
|
|
23
|
+
- assert accepts a function for condition and/or message, and does nothing unless NODE_ENV-development or explicitly enabled.
|
|
24
|
+
- Upgrade target to ES2019 and deliver both a CommonJs and ESModule version of package
|
|
25
|
+
- Add ByteStream.nextUint24.
|
|
26
|
+
- added UnexpectedErrors class
|
|
27
|
+
- allow intercept log and filter it
|
|
28
|
+
- Add various utility types.
|
|
29
|
+
- rename to @itwin/core-bentley
|
|
30
|
+
- Support for Node 16
|
|
31
|
+
- Deprecate ByteStream constructor in favor of less error-prone initialization methods.
|
|
32
|
+
- remove ClientRequestContext and its subclasses
|
|
33
|
+
- Deprecated Config and removed config.app usage
|
|
34
|
+
- remove ChangeSetApplyOption
|
|
35
|
+
- remove ClientRequestContext.current
|
|
36
|
+
- Switching to consume new Projects-Client
|
|
37
|
+
- Renamed an iModel's parent container to iTwin
|
|
38
|
+
- added JSONSchema
|
|
39
|
+
|
|
40
|
+
## 2.19.28
|
|
41
|
+
Wed, 12 Jan 2022 14:52:38 GMT
|
|
42
|
+
|
|
43
|
+
_Version update only_
|
|
44
|
+
|
|
45
|
+
## 2.19.27
|
|
46
|
+
Wed, 05 Jan 2022 20:07:20 GMT
|
|
47
|
+
|
|
48
|
+
_Version update only_
|
|
49
|
+
|
|
50
|
+
## 2.19.26
|
|
51
|
+
Wed, 08 Dec 2021 20:54:52 GMT
|
|
52
|
+
|
|
53
|
+
_Version update only_
|
|
54
|
+
|
|
55
|
+
## 2.19.25
|
|
56
|
+
Fri, 03 Dec 2021 20:05:49 GMT
|
|
57
|
+
|
|
58
|
+
_Version update only_
|
|
59
|
+
|
|
60
|
+
## 2.19.24
|
|
61
|
+
Mon, 29 Nov 2021 18:44:31 GMT
|
|
62
|
+
|
|
63
|
+
_Version update only_
|
|
64
|
+
|
|
65
|
+
## 2.19.23
|
|
66
|
+
Mon, 22 Nov 2021 20:41:39 GMT
|
|
67
|
+
|
|
68
|
+
_Version update only_
|
|
69
|
+
|
|
70
|
+
## 2.19.22
|
|
71
|
+
Wed, 17 Nov 2021 01:23:26 GMT
|
|
72
|
+
|
|
73
|
+
_Version update only_
|
|
74
|
+
|
|
75
|
+
## 2.19.21
|
|
76
|
+
Wed, 10 Nov 2021 10:58:24 GMT
|
|
77
|
+
|
|
78
|
+
_Version update only_
|
|
79
|
+
|
|
80
|
+
## 2.19.20
|
|
81
|
+
Fri, 29 Oct 2021 16:14:22 GMT
|
|
82
|
+
|
|
83
|
+
_Version update only_
|
|
84
|
+
|
|
85
|
+
## 2.19.19
|
|
86
|
+
Mon, 25 Oct 2021 16:16:25 GMT
|
|
87
|
+
|
|
88
|
+
_Version update only_
|
|
89
|
+
|
|
90
|
+
## 2.19.18
|
|
91
|
+
Thu, 21 Oct 2021 20:59:44 GMT
|
|
92
|
+
|
|
93
|
+
_Version update only_
|
|
94
|
+
|
|
95
|
+
## 2.19.17
|
|
96
|
+
Thu, 14 Oct 2021 21:19:43 GMT
|
|
97
|
+
|
|
98
|
+
_Version update only_
|
|
99
|
+
|
|
100
|
+
## 2.19.16
|
|
101
|
+
Mon, 11 Oct 2021 17:37:46 GMT
|
|
102
|
+
|
|
103
|
+
_Version update only_
|
|
104
|
+
|
|
105
|
+
## 2.19.15
|
|
106
|
+
Fri, 08 Oct 2021 16:44:23 GMT
|
|
107
|
+
|
|
108
|
+
_Version update only_
|
|
109
|
+
|
|
110
|
+
## 2.19.14
|
|
111
|
+
Fri, 01 Oct 2021 13:07:03 GMT
|
|
112
|
+
|
|
113
|
+
_Version update only_
|
|
4
114
|
|
|
5
115
|
## 2.19.13
|
|
6
116
|
Tue, 21 Sep 2021 21:06:40 GMT
|
|
@@ -555,7 +665,7 @@ Thu, 28 May 2020 22:48:59 GMT
|
|
|
555
665
|
### Updates
|
|
556
666
|
|
|
557
667
|
- Added FailedToGetProductSettings error
|
|
558
|
-
- Setup Guid.normalize() for internal use.
|
|
668
|
+
- Setup Guid.normalize() for internal use.
|
|
559
669
|
- channel rules
|
|
560
670
|
|
|
561
671
|
## 2.0.0
|
|
@@ -563,12 +673,12 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
563
673
|
|
|
564
674
|
### Updates
|
|
565
675
|
|
|
566
|
-
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
676
|
+
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
567
677
|
- Update Config.App documentation to reflect the removal of the config.json file
|
|
568
678
|
- Added ContextDoesNotExist error
|
|
569
679
|
- BUG273249
|
|
570
|
-
- Updated docs.
|
|
571
|
-
- Updated error text.
|
|
680
|
+
- Updated docs.
|
|
681
|
+
- Updated error text.
|
|
572
682
|
- added raw log method that bypass catogory check
|
|
573
683
|
- order imports.
|
|
574
684
|
- Add a type guard for `IDisposable`
|
|
@@ -602,7 +712,7 @@ Wed, 22 Jan 2020 19:24:11 GMT
|
|
|
602
712
|
|
|
603
713
|
### Updates
|
|
604
714
|
|
|
605
|
-
- VSS$257397: Temporary fix for checking electron renderer.
|
|
715
|
+
- VSS$257397: Temporary fix for checking electron renderer.
|
|
606
716
|
- Upgrade to TypeScript 3.7.2.
|
|
607
717
|
|
|
608
718
|
## 1.10.0
|
|
@@ -617,7 +727,7 @@ Tue, 10 Dec 2019 18:08:56 GMT
|
|
|
617
727
|
|
|
618
728
|
### Updates
|
|
619
729
|
|
|
620
|
-
- Setup OidcDesktopClient for Electron use cases.
|
|
730
|
+
- Setup OidcDesktopClient for Electron use cases.
|
|
621
731
|
- Added non-static wait and executeAfter to BeDuration
|
|
622
732
|
- Fix warnings from static analysis
|
|
623
733
|
- Added `BeDuration.race` for common timeout operations.
|
|
@@ -670,7 +780,7 @@ Mon, 01 Jul 2019 19:04:29 GMT
|
|
|
670
780
|
### Updates
|
|
671
781
|
|
|
672
782
|
- Added OneAtATimeActivity class
|
|
673
|
-
- Introduced AsyncMutex - a utility to run async blocks of code in sequence.
|
|
783
|
+
- Introduced AsyncMutex - a utility to run async blocks of code in sequence.
|
|
674
784
|
- Update to TypeScript 3.5
|
|
675
785
|
|
|
676
786
|
## 1.0.0
|
|
@@ -697,10 +807,10 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
697
807
|
- Logged the fields in ClientRequestContext
|
|
698
808
|
- Logging fixes.
|
|
699
809
|
- Put sourcemap in npm package.
|
|
700
|
-
- Fixed logger to not mutate incoming objects.
|
|
810
|
+
- Fixed logger to not mutate incoming objects.
|
|
701
811
|
- Improved performance logging
|
|
702
812
|
- Added functions for iterating and obtaining the number of elements of a collection of Id64s represented as an Id64Arg.
|
|
703
|
-
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
813
|
+
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
704
814
|
- Use TextDecoder to decode binary utf-8 strings if supported.
|
|
705
815
|
- Upgrade TypeDoc dependency to 0.14.2
|
|
706
816
|
|
|
@@ -736,7 +846,7 @@ Mon, 14 Jan 2019 23:09:10 GMT
|
|
|
736
846
|
|
|
737
847
|
### Updates
|
|
738
848
|
|
|
739
|
-
- Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
|
|
849
|
+
- Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
|
|
740
850
|
|
|
741
851
|
## 0.185.0
|
|
742
852
|
Fri, 11 Jan 2019 18:29:00 GMT
|
|
@@ -843,7 +953,7 @@ Fri, 16 Nov 2018 21:45:44 GMT
|
|
|
843
953
|
|
|
844
954
|
### Updates
|
|
845
955
|
|
|
846
|
-
- Changes to debug utilities.
|
|
956
|
+
- Changes to debug utilities.
|
|
847
957
|
- Fluentd Bunnyan Logger added
|
|
848
958
|
|
|
849
959
|
## 0.166.0
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MIT License
|
|
2
2
|
|
|
3
|
-
Copyright © 2017-
|
|
3
|
+
Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/ThirdPartyNotices.md
CHANGED
|
@@ -35,3 +35,27 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
35
35
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
36
36
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
37
37
|
SOFTWARE.
|
|
38
|
+
|
|
39
|
+
## [VSCode](https://github.com/microsoft/vscode)
|
|
40
|
+
|
|
41
|
+
MIT License
|
|
42
|
+
|
|
43
|
+
Copyright (c) 2015 - present Microsoft Corporation
|
|
44
|
+
|
|
45
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
46
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
47
|
+
in the Software without restriction, including without limitation the rights
|
|
48
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
50
|
+
furnished to do so, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
The above copyright notice and this permission notice shall be included in all
|
|
53
|
+
copies or substantial portions of the Software.
|
|
54
|
+
|
|
55
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
56
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
57
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
58
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
59
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
60
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
61
|
+
SOFTWARE.
|
package/lib/cjs/Assert.d.ts
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Utils
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
4
|
+
/** Asserts that a condition is `true` and - when enabled - throws an error if it is not.
|
|
5
|
+
* Assertions are enabled only if the build configuration defines `process.env.NODE_ENV` as `development` at build time.
|
|
6
|
+
*
|
|
7
|
+
* Assertions exist solely to assist programmers during development, in the following ways:
|
|
8
|
+
* 1 They allow the programmer to declare conditions that they believe cannot possibly occur. If such conditions occur, they indicate
|
|
9
|
+
* a serious flaw in the programmer's logic.
|
|
10
|
+
* 2 They allow the programmer to assure the TypeScript compiler of the truth of some condition that the compiler cannot itself infer.
|
|
11
|
+
* 3 They allow the author of an API to indicate to consumers of the API a serious misuse that should be corrected during development.
|
|
12
|
+
*
|
|
13
|
+
* Assertions should **never** be used to test for conditions - however unlikely - that could be expected to occur at run-time,
|
|
14
|
+
* such as failing to write to a file or load a resource over the network. If the condition asserted ever fails in a production environment,
|
|
15
|
+
* the programmer has made a serious mistake.
|
|
16
|
+
*
|
|
17
|
+
* Note that even when assertions are disabled, calls to `assert` remain in the code and their arguments will be evaluated at run-time.
|
|
18
|
+
* Therefore, if your condition or message requires computation, prefer to pass it as a function to prevent it from being evaluated when assertions are disabled.
|
|
19
|
+
*
|
|
20
|
+
* @param condition The condition that is asserted to be `true`. If the condition is more complex than a simple `boolean` variable, pass it as a function to prevent it from being evaluated when assertions are disabled.
|
|
21
|
+
* @param message An optional description of the condition being asserted, to be included in the exception if `condition` is `false`. If the message must be computed, pass it as a function to prevent it from being evaluated when assertions are disabled. Defaults to "Programmer Error".
|
|
22
|
+
* @throws Error containing the specified `message` if `condition` is `false`.
|
|
13
23
|
* @public
|
|
14
24
|
*/
|
|
15
|
-
export declare function assert(condition: boolean,
|
|
25
|
+
export declare function assert(condition: boolean | (() => boolean), message?: string | (() => string)): asserts condition;
|
|
16
26
|
//# sourceMappingURL=Assert.d.ts.map
|
package/lib/cjs/Assert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Assert.d.ts","sourceRoot":"","sources":["../../src/Assert.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"Assert.d.ts","sourceRoot":"","sources":["../../src/Assert.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,SAAS,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,CAejH"}
|
package/lib/cjs/Assert.js
CHANGED
|
@@ -8,20 +8,39 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.assert = void 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
11
|
+
const assertionsEnabled = process.env.NODE_ENV === "development";
|
|
12
|
+
/** Asserts that a condition is `true` and - when enabled - throws an error if it is not.
|
|
13
|
+
* Assertions are enabled only if the build configuration defines `process.env.NODE_ENV` as `development` at build time.
|
|
14
|
+
*
|
|
15
|
+
* Assertions exist solely to assist programmers during development, in the following ways:
|
|
16
|
+
* 1 They allow the programmer to declare conditions that they believe cannot possibly occur. If such conditions occur, they indicate
|
|
17
|
+
* a serious flaw in the programmer's logic.
|
|
18
|
+
* 2 They allow the programmer to assure the TypeScript compiler of the truth of some condition that the compiler cannot itself infer.
|
|
19
|
+
* 3 They allow the author of an API to indicate to consumers of the API a serious misuse that should be corrected during development.
|
|
20
|
+
*
|
|
21
|
+
* Assertions should **never** be used to test for conditions - however unlikely - that could be expected to occur at run-time,
|
|
22
|
+
* such as failing to write to a file or load a resource over the network. If the condition asserted ever fails in a production environment,
|
|
23
|
+
* the programmer has made a serious mistake.
|
|
24
|
+
*
|
|
25
|
+
* Note that even when assertions are disabled, calls to `assert` remain in the code and their arguments will be evaluated at run-time.
|
|
26
|
+
* Therefore, if your condition or message requires computation, prefer to pass it as a function to prevent it from being evaluated when assertions are disabled.
|
|
27
|
+
*
|
|
28
|
+
* @param condition The condition that is asserted to be `true`. If the condition is more complex than a simple `boolean` variable, pass it as a function to prevent it from being evaluated when assertions are disabled.
|
|
29
|
+
* @param message An optional description of the condition being asserted, to be included in the exception if `condition` is `false`. If the message must be computed, pass it as a function to prevent it from being evaluated when assertions are disabled. Defaults to "Programmer Error".
|
|
30
|
+
* @throws Error containing the specified `message` if `condition` is `false`.
|
|
20
31
|
* @public
|
|
21
32
|
*/
|
|
22
|
-
function assert(condition,
|
|
23
|
-
if (!
|
|
24
|
-
|
|
33
|
+
function assert(condition, message) {
|
|
34
|
+
if (!assertionsEnabled)
|
|
35
|
+
return;
|
|
36
|
+
if ("boolean" !== typeof condition)
|
|
37
|
+
condition = condition();
|
|
38
|
+
if (condition)
|
|
39
|
+
return;
|
|
40
|
+
message = message !== null && message !== void 0 ? message : "Programmer Error";
|
|
41
|
+
if ("string" !== typeof message)
|
|
42
|
+
message = message();
|
|
43
|
+
throw new Error(`Assert: ${message}`);
|
|
25
44
|
}
|
|
26
45
|
exports.assert = assert;
|
|
27
46
|
//# sourceMappingURL=Assert.js.map
|
package/lib/cjs/Assert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Assert.js","sourceRoot":"","sources":["../../src/Assert.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH
|
|
1
|
+
{"version":3,"file":"Assert.js","sourceRoot":"","sources":["../../src/Assert.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,MAAM,CAAC,SAAoC,EAAE,OAAiC;IAC5F,IAAI,CAAC,iBAAiB;QACpB,OAAO;IAET,IAAI,SAAS,KAAK,OAAO,SAAS;QAChC,SAAS,GAAG,SAAS,EAAE,CAAC;IAE1B,IAAI,SAAS;QACX,OAAO;IAET,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,kBAAkB,CAAC;IACxC,IAAI,QAAQ,KAAK,OAAO,OAAO;QAC7B,OAAO,GAAG,OAAO,EAAE,CAAC;IAEtB,MAAM,IAAI,KAAK,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC;AACxC,CAAC;AAfD,wBAeC","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 Utils\r\n */\r\n\r\nconst assertionsEnabled = process.env.NODE_ENV === \"development\";\r\n\r\n/** Asserts that a condition is `true` and - when enabled - throws an error if it is not.\r\n * Assertions are enabled only if the build configuration defines `process.env.NODE_ENV` as `development` at build time.\r\n *\r\n * Assertions exist solely to assist programmers during development, in the following ways:\r\n * 1 They allow the programmer to declare conditions that they believe cannot possibly occur. If such conditions occur, they indicate\r\n * a serious flaw in the programmer's logic.\r\n * 2 They allow the programmer to assure the TypeScript compiler of the truth of some condition that the compiler cannot itself infer.\r\n * 3 They allow the author of an API to indicate to consumers of the API a serious misuse that should be corrected during development.\r\n *\r\n * Assertions should **never** be used to test for conditions - however unlikely - that could be expected to occur at run-time,\r\n * such as failing to write to a file or load a resource over the network. If the condition asserted ever fails in a production environment,\r\n * the programmer has made a serious mistake.\r\n *\r\n * Note that even when assertions are disabled, calls to `assert` remain in the code and their arguments will be evaluated at run-time.\r\n * Therefore, if your condition or message requires computation, prefer to pass it as a function to prevent it from being evaluated when assertions are disabled.\r\n *\r\n * @param condition The condition that is asserted to be `true`. If the condition is more complex than a simple `boolean` variable, pass it as a function to prevent it from being evaluated when assertions are disabled.\r\n * @param message An optional description of the condition being asserted, to be included in the exception if `condition` is `false`. If the message must be computed, pass it as a function to prevent it from being evaluated when assertions are disabled. Defaults to \"Programmer Error\".\r\n * @throws Error containing the specified `message` if `condition` is `false`.\r\n * @public\r\n */\r\nexport function assert(condition: boolean | (() => boolean), message?: string | (() => string)): asserts condition {\r\n if (!assertionsEnabled)\r\n return;\r\n\r\n if (\"boolean\" !== typeof condition)\r\n condition = condition();\r\n\r\n if (condition)\r\n return;\r\n\r\n message = message ?? \"Programmer Error\";\r\n if (\"string\" !== typeof message)\r\n message = message();\r\n\r\n throw new Error(`Assert: ${message}`);\r\n}\r\n"]}
|
|
@@ -113,7 +113,7 @@ export declare enum RpcInterfaceStatus {
|
|
|
113
113
|
/** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */
|
|
114
114
|
IncompatibleVersion = 135168
|
|
115
115
|
}
|
|
116
|
-
/** Error status from various
|
|
116
|
+
/** Error status from various Changeset operations
|
|
117
117
|
* @beta Should these be internal?
|
|
118
118
|
*/
|
|
119
119
|
export declare enum ChangeSetStatus {
|
|
@@ -275,7 +275,6 @@ export declare enum IModelHubStatus {
|
|
|
275
275
|
FailedToGetAssetPermissions = 102445,
|
|
276
276
|
FailedToGetAssetMembers = 102446,
|
|
277
277
|
ITwinDoesNotExist = 102447,
|
|
278
|
-
FailedToGetProductSettings = 102448,
|
|
279
278
|
LockChunkDoesNotExist = 102449,
|
|
280
279
|
CheckpointAlreadyExists = 102450,
|
|
281
280
|
CheckpointDoesNotExist = 102451,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BentleyError.d.ts","sourceRoot":"","sources":["../../src/BentleyError.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;;;GAKG;AACH,oBAAY,aAAa;IACvB,OAAO,IAAS;IAChB,KAAK,QAAS;CACf;AAED;;;GAGG;AACH,oBAAY,YAAY;IACtB,iBAAiB,QAAU;IAC3B,OAAO,IAAI;IACX,aAAa,QAAwB;IACrC,WAAW,QAAwB;IACnC,MAAM,QAAwB;IAC9B,UAAU,QAAwB;IAClC,QAAQ,QAAwB;IAChC,UAAU,QAAwB;IAClC,SAAS,QAAwB;IACjC,UAAU,QAAwB;IAClC,eAAe,QAAwB;IACvC,kBAAkB,QAAyB;IAC3C,aAAa,QAAyB;IACtC,aAAa,QAAyB;IACtC,oBAAoB,QAAyB;IAC7C,iBAAiB,QAAyB;IAC1C,YAAY,QAAyB;IACrC,aAAa,QAAyB;IACtC,oBAAoB,QAAyB;IAC7C,QAAQ,QAAyB;IACjC,oBAAoB,QAAyB;IAC7C,eAAe,QAAyB;IACxC,WAAW,QAAyB;IACpC,eAAe,QAAyB;IACxC,SAAS,QAAyB;IAClC,WAAW,QAAyB;IACpC,aAAa,QAAyB;IACtC,qBAAqB,QAAyB;IAC9C,mBAAmB,QAAyB;IAC5C,WAAW,QAAyB;IACpC,YAAY,QAAyB;IACrC,WAAW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K;IAQX,WAAW,EAAE,MAAM;IAP7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB;IAE5C;;;;OAIG;gBACuB,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe;IAO3F,sEAAsE;IACtE,IAAW,WAAW,IAAI,OAAO,CAAyC;IAE1E,mEAAmE;IAC5D,WAAW,IAAI,MAAM,GAAG,SAAS;IAIxC,4EAA4E;WAC9D,WAAW,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS;IAIxE,mHAAmH;IACnH,SAAS,CAAC,SAAS,IAAI,MAAM;IAwR7B;;;OAGG;WACW,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;IAqBrD;;;OAGG;WACW,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS;IAO/D;;;;OAIG;WACW,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS;IAUlE;;;;OAIG;WACW,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;CAexD"}
|
package/lib/cjs/BentleyError.js
CHANGED
|
@@ -125,7 +125,7 @@ var RpcInterfaceStatus;
|
|
|
125
125
|
/** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */
|
|
126
126
|
RpcInterfaceStatus[RpcInterfaceStatus["IncompatibleVersion"] = 135168] = "IncompatibleVersion";
|
|
127
127
|
})(RpcInterfaceStatus = exports.RpcInterfaceStatus || (exports.RpcInterfaceStatus = {}));
|
|
128
|
-
/** Error status from various
|
|
128
|
+
/** Error status from various Changeset operations
|
|
129
129
|
* @beta Should these be internal?
|
|
130
130
|
*/
|
|
131
131
|
var ChangeSetStatus;
|
|
@@ -291,7 +291,6 @@ var IModelHubStatus;
|
|
|
291
291
|
IModelHubStatus[IModelHubStatus["FailedToGetAssetPermissions"] = 102445] = "FailedToGetAssetPermissions";
|
|
292
292
|
IModelHubStatus[IModelHubStatus["FailedToGetAssetMembers"] = 102446] = "FailedToGetAssetMembers";
|
|
293
293
|
IModelHubStatus[IModelHubStatus["ITwinDoesNotExist"] = 102447] = "ITwinDoesNotExist";
|
|
294
|
-
IModelHubStatus[IModelHubStatus["FailedToGetProductSettings"] = 102448] = "FailedToGetProductSettings";
|
|
295
294
|
IModelHubStatus[IModelHubStatus["LockChunkDoesNotExist"] = 102449] = "LockChunkDoesNotExist";
|
|
296
295
|
IModelHubStatus[IModelHubStatus["CheckpointAlreadyExists"] = 102450] = "CheckpointAlreadyExists";
|
|
297
296
|
IModelHubStatus[IModelHubStatus["CheckpointDoesNotExist"] = 102451] = "CheckpointDoesNotExist";
|
|
@@ -612,7 +611,6 @@ class BentleyError extends Error {
|
|
|
612
611
|
case IModelHubStatus.JobSchedulingFailed: return "Failed to schedule a background job";
|
|
613
612
|
case IModelHubStatus.ConflictsAggregate: return "Codes or locks are owned by another briefcase";
|
|
614
613
|
case IModelHubStatus.FailedToGetITwinById: return "Failed to query iTwin by its id";
|
|
615
|
-
case IModelHubStatus.FailedToGetProductSettings: return "Failed to get product settings";
|
|
616
614
|
case IModelHubStatus.DatabaseOperationFailed: return "Database operation has failed";
|
|
617
615
|
case IModelHubStatus.ITwinDoesNotExist: return "ITwin does not exist";
|
|
618
616
|
case IModelHubStatus.UndefinedArgumentError: return "Undefined argument";
|