@salesforce/core 3.7.3 → 3.7.6
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 +223 -0
- package/LICENSE.txt +1 -1
- package/lib/config/config.js +15 -15
- package/lib/config/configAggregator.js +4 -4
- package/lib/config/configFile.js +9 -9
- package/lib/config/configStore.js +14 -13
- package/lib/config/envVars.d.ts +20 -5
- package/lib/config/envVars.js +75 -10
- package/lib/config/keychainConfig.js +1 -1
- package/lib/crypto/crypto.js +6 -6
- package/lib/crypto/keyChainImpl.js +6 -6
- package/lib/crypto/secureBuffer.js +1 -1
- package/lib/deviceOauthService.js +5 -4
- package/lib/exported.d.ts +4 -2
- package/lib/exported.js +5 -1
- package/lib/globalInfo/globalInfoConfig.js +1 -1
- package/lib/globalInfo/sfdxDataHandler.js +11 -11
- package/lib/lifecycleEvents.js +2 -2
- package/lib/logger.js +12 -13
- package/lib/messages.js +10 -9
- package/lib/org/authInfo.js +45 -43
- package/lib/org/connection.d.ts +6 -1
- package/lib/org/connection.js +22 -8
- package/lib/org/org.d.ts +12 -2
- package/lib/org/org.js +62 -56
- package/lib/org/orgConfigProperties.js +1 -1
- package/lib/org/permissionSetAssignment.js +3 -3
- package/lib/org/scratchOrgCreate.d.ts +43 -0
- package/lib/org/scratchOrgCreate.js +142 -0
- package/lib/org/scratchOrgErrorCodes.d.ts +4 -0
- package/lib/org/scratchOrgErrorCodes.js +62 -0
- package/lib/org/scratchOrgFeatureDeprecation.d.ts +26 -0
- package/lib/org/scratchOrgFeatureDeprecation.js +110 -0
- package/lib/org/scratchOrgInfoApi.d.ts +94 -0
- package/lib/org/scratchOrgInfoApi.js +350 -0
- package/lib/org/scratchOrgInfoGenerator.d.ts +63 -0
- package/lib/org/scratchOrgInfoGenerator.js +223 -0
- package/lib/org/scratchOrgSettingsGenerator.d.ts +56 -0
- package/lib/org/scratchOrgSettingsGenerator.js +210 -0
- package/lib/org/user.js +24 -23
- package/lib/schema/printer.js +18 -18
- package/lib/schema/validator.js +8 -8
- package/lib/sfdxError.js +2 -2
- package/lib/sfdxProject.js +15 -13
- package/lib/status/myDomainResolver.js +3 -3
- package/lib/status/pollingClient.d.ts +2 -2
- package/lib/status/pollingClient.js +10 -4
- package/lib/status/streamingClient.d.ts +1 -1
- package/lib/status/streamingClient.js +6 -6
- package/lib/testSetup.js +21 -21
- package/lib/util/cache.js +3 -3
- package/lib/util/fs.js +12 -12
- package/lib/util/jsonXmlTools.d.ts +14 -0
- package/lib/util/jsonXmlTools.js +41 -0
- package/lib/util/mapKeys.d.ts +14 -0
- package/lib/util/mapKeys.js +48 -0
- package/lib/util/sfdc.js +3 -3
- package/lib/util/sfdcUrl.js +3 -3
- package/lib/util/zipWriter.d.ts +14 -0
- package/lib/util/zipWriter.js +68 -0
- package/lib/webOAuthServer.js +8 -8
- package/messages/envVars.md +53 -13
- package/messages/org.md +4 -0
- package/messages/scratchOrgCreate.md +27 -0
- package/messages/scratchOrgErrorCodes.md +99 -0
- package/messages/scratchOrgFeatureDeprecation.md +11 -0
- package/messages/scratchOrgInfoApi.md +11 -0
- package/messages/scratchOrgInfoGenerator.md +19 -0
- package/messages/user.md +4 -0
- package/package.json +33 -30
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,229 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.7.6](https://github.com/forcedotcom/sfdx-core/compare/v4.0.0...v3.7.6) (2022-02-28)
|
|
6
|
+
|
|
7
|
+
## [4.0.0](https://github.com/forcedotcom/sfdx-core/compare/v2.35.2...v4.0.0) (2022-02-28)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- work through conflicts, UTs, pushing for comparison ([476c6fe](https://github.com/forcedotcom/sfdx-core/commit/476c6fe13514903ac97f7def2aba39b070ee2c33))
|
|
12
|
+
|
|
13
|
+
### [3.7.5](https://github.com/forcedotcom/sfdx-core/compare/v2.35.1...v3.7.5) (2022-02-14)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- add env vars from sfdx-cli init to envvars ([#520](https://github.com/forcedotcom/sfdx-core/issues/520)) ([8ef2785](https://github.com/forcedotcom/sfdx-core/commit/8ef27859d95bfffc5999b14f4792874d04f0504c))
|
|
18
|
+
|
|
19
|
+
### [3.7.4](https://github.com/forcedotcom/sfdx-core/compare/v2.35.0...v3.7.4) (2022-02-07)
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- pin ts to 4.4.4 and bump other deps ([#509](https://github.com/forcedotcom/sfdx-core/issues/509)) ([1c0e15c](https://github.com/forcedotcom/sfdx-core/commit/1c0e15cd9a96f03e24476c13d73b62577a535fa3))
|
|
24
|
+
|
|
25
|
+
### [3.7.3](https://github.com/forcedotcom/sfdx-core/compare/v2.33.1...v3.7.3) (2021-12-16)
|
|
26
|
+
|
|
27
|
+
### [3.7.2](https://github.com/forcedotcom/sfdx-core/compare/v3.7.1...v3.7.2) (2021-10-28)
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
- make @types/sfdx-faye a dependendcy ([683680b](https://github.com/forcedotcom/sfdx-core/commit/683680b8133048f71d25ef4df7aa24d9700dc5e8))
|
|
32
|
+
|
|
33
|
+
### [3.7.1](https://github.com/forcedotcom/sfdx-core/compare/v2.28.2...v3.7.1) (2021-10-28)
|
|
34
|
+
|
|
35
|
+
## [3.7.0](https://github.com/forcedotcom/sfdx-core/compare/v3.6.6...v3.7.0) (2021-10-12)
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
- use jsforce v2 ([#457](https://github.com/forcedotcom/sfdx-core/issues/457)) ([4a9094e](https://github.com/forcedotcom/sfdx-core/commit/4a9094e958288cdcc6c69f5d87b10a70a437d8e9))
|
|
40
|
+
|
|
41
|
+
### [3.6.6](https://github.com/forcedotcom/sfdx-core/compare/v2.28.1...v3.6.6) (2021-10-08)
|
|
42
|
+
|
|
43
|
+
### [3.6.5](https://github.com/forcedotcom/sfdx-core/compare/v3.6.4...v3.6.5) (2021-09-29)
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
- add getValue to AliasAccessor ([c4b69f5](https://github.com/forcedotcom/sfdx-core/commit/c4b69f5ff38547fad640c64833291fe0c6e06a79))
|
|
48
|
+
|
|
49
|
+
### [3.6.4](https://github.com/forcedotcom/sfdx-core/compare/v3.6.3...v3.6.4) (2021-09-23)
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
- edit the env var blurbs ([#482](https://github.com/forcedotcom/sfdx-core/issues/482)) ([bbbdb6d](https://github.com/forcedotcom/sfdx-core/commit/bbbdb6d0800015e94ce0f0c551eec8ed73dd87c6))
|
|
54
|
+
|
|
55
|
+
### [3.6.3](https://github.com/forcedotcom/sfdx-core/compare/v3.6.2...v3.6.3) (2021-09-23)
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
- edit the config var blurbs ([#480](https://github.com/forcedotcom/sfdx-core/issues/480)) ([f845512](https://github.com/forcedotcom/sfdx-core/commit/f8455121bfd96f27495bc124dc06570632dfce70))
|
|
60
|
+
|
|
61
|
+
### [3.6.2](https://github.com/forcedotcom/sfdx-core/compare/v2.28.0...v3.6.2) (2021-09-17)
|
|
62
|
+
|
|
63
|
+
### Bug Fixes
|
|
64
|
+
|
|
65
|
+
- improve time to build auths for many orgs @W-9914839@ ([#478](https://github.com/forcedotcom/sfdx-core/issues/478)) ([c788541](https://github.com/forcedotcom/sfdx-core/commit/c7885415d59994b28552227f0b84dcee5d3ec7cf))
|
|
66
|
+
|
|
67
|
+
### [3.6.1](https://github.com/forcedotcom/sfdx-core/compare/v3.6.0...v3.6.1) (2021-09-13)
|
|
68
|
+
|
|
69
|
+
### Bug Fixes
|
|
70
|
+
|
|
71
|
+
- remove tokens associated with org ([#477](https://github.com/forcedotcom/sfdx-core/issues/477)) ([5034fa2](https://github.com/forcedotcom/sfdx-core/commit/5034fa2d4c52d347c00499e137a71366e4feba7f))
|
|
72
|
+
|
|
73
|
+
## [3.6.0](https://github.com/forcedotcom/sfdx-core/compare/v3.5.0...v3.6.0) (2021-09-10)
|
|
74
|
+
|
|
75
|
+
### Features
|
|
76
|
+
|
|
77
|
+
- add help section helper ([#474](https://github.com/forcedotcom/sfdx-core/issues/474)) ([b34c2d7](https://github.com/forcedotcom/sfdx-core/commit/b34c2d7a442aed2cf091fd394a7c3656287d1dbf))
|
|
78
|
+
|
|
79
|
+
## [3.5.0](https://github.com/forcedotcom/sfdx-core/compare/v3.4.5...v3.5.0) (2021-09-09)
|
|
80
|
+
|
|
81
|
+
### Features
|
|
82
|
+
|
|
83
|
+
- expose well known env vars as part of core ([#473](https://github.com/forcedotcom/sfdx-core/issues/473)) ([11c3f53](https://github.com/forcedotcom/sfdx-core/commit/11c3f53f964459072826274e6ebb33d4a9ecb990))
|
|
84
|
+
|
|
85
|
+
### [3.4.5](https://github.com/forcedotcom/sfdx-core/compare/v3.4.4...v3.4.5) (2021-09-03)
|
|
86
|
+
|
|
87
|
+
### Bug Fixes
|
|
88
|
+
|
|
89
|
+
- provide the correct options to SfdxConfig ([fa2117e](https://github.com/forcedotcom/sfdx-core/commit/fa2117e12d7a903f26067bdcf35d7ec9c142101e))
|
|
90
|
+
|
|
91
|
+
### [3.4.4](https://github.com/forcedotcom/sfdx-core/compare/v3.4.3...v3.4.4) (2021-09-03)
|
|
92
|
+
|
|
93
|
+
### [3.4.3](https://github.com/forcedotcom/sfdx-core/compare/v3.4.2...v3.4.3) (2021-08-26)
|
|
94
|
+
|
|
95
|
+
### [3.4.2](https://github.com/forcedotcom/sfdx-core/compare/v3.4.1...v3.4.2) (2021-08-17)
|
|
96
|
+
|
|
97
|
+
### Bug Fixes
|
|
98
|
+
|
|
99
|
+
- improve interoperability when unsetting ([#467](https://github.com/forcedotcom/sfdx-core/issues/467)) ([ad781d5](https://github.com/forcedotcom/sfdx-core/commit/ad781d5378652dfd64ccb476c11f418e940b8669))
|
|
100
|
+
|
|
101
|
+
### [3.4.1](https://github.com/forcedotcom/sfdx-core/compare/v3.4.0...v3.4.1) (2021-08-11)
|
|
102
|
+
|
|
103
|
+
### Bug Fixes
|
|
104
|
+
|
|
105
|
+
- optionally throw error when reading deprecated config key ([#466](https://github.com/forcedotcom/sfdx-core/issues/466)) ([3118ad8](https://github.com/forcedotcom/sfdx-core/commit/3118ad836db384ac27c2b1db88c4753e6121e4db))
|
|
106
|
+
|
|
107
|
+
## [3.4.0](https://github.com/forcedotcom/sfdx-core/compare/v3.3.12...v3.4.0) (2021-08-11)
|
|
108
|
+
|
|
109
|
+
### Features
|
|
110
|
+
|
|
111
|
+
- config interoperability ([#461](https://github.com/forcedotcom/sfdx-core/issues/461)) ([11b60ad](https://github.com/forcedotcom/sfdx-core/commit/11b60adbe54acc8e16a90327c77abbe2613fbaab))
|
|
112
|
+
|
|
113
|
+
### [3.3.12](https://github.com/forcedotcom/sfdx-core/compare/v2.27.2...v3.3.12) (2021-08-10)
|
|
114
|
+
|
|
115
|
+
### Bug Fixes
|
|
116
|
+
|
|
117
|
+
- add predicate function to list all auths ([ccdb02c](https://github.com/forcedotcom/sfdx-core/commit/ccdb02c268fae7532b23e0c791bcdd831f77cf98))
|
|
118
|
+
|
|
119
|
+
### [3.3.11](https://github.com/forcedotcom/sfdx-core/compare/v3.3.10...v3.3.11) (2021-08-04)
|
|
120
|
+
|
|
121
|
+
### Bug Fixes
|
|
122
|
+
|
|
123
|
+
- allows for message keys of error and errors ([#455](https://github.com/forcedotcom/sfdx-core/issues/455)) ([3bfac58](https://github.com/forcedotcom/sfdx-core/commit/3bfac587c6cf1734af6f2b517439d278591ddd50))
|
|
124
|
+
|
|
125
|
+
### [3.3.10](https://github.com/forcedotcom/sfdx-core/compare/v3.3.9...v3.3.10) (2021-08-04)
|
|
126
|
+
|
|
127
|
+
### [3.3.9](https://github.com/forcedotcom/sfdx-core/compare/v3.3.8...v3.3.9) (2021-08-04)
|
|
128
|
+
|
|
129
|
+
### Bug Fixes
|
|
130
|
+
|
|
131
|
+
- merge main(v2) into v3 ([#452](https://github.com/forcedotcom/sfdx-core/issues/452)) ([3a003b9](https://github.com/forcedotcom/sfdx-core/commit/3a003b9c17962f77344e4a23314bb608e1ae50db))
|
|
132
|
+
|
|
133
|
+
### [3.3.8](https://github.com/forcedotcom/sfdx-core/compare/v3.3.7...v3.3.8) (2021-08-02)
|
|
134
|
+
|
|
135
|
+
### Bug Fixes
|
|
136
|
+
|
|
137
|
+
- return all info from AuthInfo.listAllAuthorizations ([#449](https://github.com/forcedotcom/sfdx-core/issues/449)) ([17e60ea](https://github.com/forcedotcom/sfdx-core/commit/17e60eabe87c73a83c26344967076f365ddea81c))
|
|
138
|
+
|
|
139
|
+
### [3.3.7](https://github.com/forcedotcom/sfdx-core/compare/v2.27.0...v3.3.7) (2021-07-30)
|
|
140
|
+
|
|
141
|
+
### [3.3.6](https://github.com/forcedotcom/sfdx-core/compare/v3.3.5...v3.3.6) (2021-07-28)
|
|
142
|
+
|
|
143
|
+
### Bug Fixes
|
|
144
|
+
|
|
145
|
+
- use correct method to get username ([#446](https://github.com/forcedotcom/sfdx-core/issues/446)) ([79a6b2f](https://github.com/forcedotcom/sfdx-core/commit/79a6b2f069f95b0c50a6c03ecbac07cf0d1832b1))
|
|
146
|
+
|
|
147
|
+
### [3.3.5](https://github.com/forcedotcom/sfdx-core/compare/v3.3.4...v3.3.5) (2021-07-28)
|
|
148
|
+
|
|
149
|
+
### [3.3.4](https://github.com/forcedotcom/sfdx-core/compare/v3.3.3...v3.3.4) (2021-07-26)
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
- remove bad validator function ([1b97dc6](https://github.com/forcedotcom/sfdx-core/commit/1b97dc6f4d657a5b86489d33c4843ebfd54b3715))
|
|
154
|
+
|
|
155
|
+
### [3.3.3](https://github.com/forcedotcom/sfdx-core/compare/v3.3.2...v3.3.3) (2021-07-22)
|
|
156
|
+
|
|
157
|
+
### Bug Fixes
|
|
158
|
+
|
|
159
|
+
- write sf.json contents on init ([c47f649](https://github.com/forcedotcom/sfdx-core/commit/c47f64954118d0d2f7f4a8e992d3450516239084))
|
|
160
|
+
|
|
161
|
+
### [3.3.2](https://github.com/forcedotcom/sfdx-core/compare/v2.26.1...v3.3.2) (2021-07-21)
|
|
162
|
+
|
|
163
|
+
### Bug Fixes
|
|
164
|
+
|
|
165
|
+
- correct jsdoc ([a362e94](https://github.com/forcedotcom/sfdx-core/commit/a362e94c4ae7538cbbcd7dae8fcd3244629d845c))
|
|
166
|
+
|
|
167
|
+
### [3.3.1](https://github.com/forcedotcom/sfdx-core/compare/v3.3.0...v3.3.1) (2021-07-15)
|
|
168
|
+
|
|
169
|
+
### Bug Fixes
|
|
170
|
+
|
|
171
|
+
- temporarily point Alias back to .sfdx ([#438](https://github.com/forcedotcom/sfdx-core/issues/438)) ([4bffcd8](https://github.com/forcedotcom/sfdx-core/commit/4bffcd84362d5b3049ef428e90dc1b538a435f81))
|
|
172
|
+
|
|
173
|
+
## [3.3.0](https://github.com/forcedotcom/sfdx-core/compare/v3.2.0-v3.0...v3.3.0) (2021-07-14)
|
|
174
|
+
|
|
175
|
+
### Features
|
|
176
|
+
|
|
177
|
+
- V3 merge ([#436](https://github.com/forcedotcom/sfdx-core/issues/436)) ([1193449](https://github.com/forcedotcom/sfdx-core/commit/119344969147679088e30bae4c4fc5e941661078)), closes [#413](https://github.com/forcedotcom/sfdx-core/issues/413) [#415](https://github.com/forcedotcom/sfdx-core/issues/415) [#428](https://github.com/forcedotcom/sfdx-core/issues/428) [#429](https://github.com/forcedotcom/sfdx-core/issues/429) [#427](https://github.com/forcedotcom/sfdx-core/issues/427) [#432](https://github.com/forcedotcom/sfdx-core/issues/432)
|
|
178
|
+
|
|
179
|
+
## [3.2.0-v3.0](https://github.com/forcedotcom/sfdx-core/compare/v2.26.0...v3.2.0-v3.0) (2021-07-14)
|
|
180
|
+
|
|
181
|
+
### Features
|
|
182
|
+
|
|
183
|
+
- use .sf/config.json @W-9546117@ ([#433](https://github.com/forcedotcom/sfdx-core/issues/433)) ([6c41653](https://github.com/forcedotcom/sfdx-core/commit/6c416531a9bae10e855ded3efc289a99196bc26b))
|
|
184
|
+
|
|
185
|
+
### [3.1.1-v3.2](https://github.com/forcedotcom/sfdx-core/compare/v2.24.2...v3.1.1-v3.2) (2021-06-29)
|
|
186
|
+
|
|
187
|
+
### Bug Fixes
|
|
188
|
+
|
|
189
|
+
- do not use function prop ([#426](https://github.com/forcedotcom/sfdx-core/issues/426)) ([39efe0c](https://github.com/forcedotcom/sfdx-core/commit/39efe0ccc84b05bc891e54b24bfcddc62790ae0e))
|
|
190
|
+
|
|
191
|
+
### [3.1.1-v3.1](https://github.com/forcedotcom/sfdx-core/compare/v2.24.0...v3.1.1-v3.1) (2021-06-14)
|
|
192
|
+
|
|
193
|
+
### Bug Fixes
|
|
194
|
+
|
|
195
|
+
- keep track of auth changes ([210be6c](https://github.com/forcedotcom/sfdx-core/commit/210be6cb408bd9ecc861989570df0e14f6a3a566))
|
|
196
|
+
|
|
197
|
+
### [3.1.1-v3.0](https://github.com/forcedotcom/sfdx-core/compare/v2.23.3...v3.1.1-v3.0) (2021-06-03)
|
|
198
|
+
|
|
199
|
+
### ⚠ BREAKING CHANGES
|
|
200
|
+
|
|
201
|
+
- default to reading files from cache
|
|
202
|
+
|
|
203
|
+
### Features
|
|
204
|
+
|
|
205
|
+
- add GlobalInfo config file ([#397](https://github.com/forcedotcom/sfdx-core/issues/397)) ([889425c](https://github.com/forcedotcom/sfdx-core/commit/889425c06e8ed6a364d9a2bc3dd5ef0a38a66046))
|
|
206
|
+
- add message support for markdown files ([0f235a2](https://github.com/forcedotcom/sfdx-core/commit/0f235a23d5dddbd7b3f07544d8c7e380875c6c55))
|
|
207
|
+
- default to reading files from cache ([558319d](https://github.com/forcedotcom/sfdx-core/commit/558319dfdc81e2bae549d58be75a701162801994))
|
|
208
|
+
- move crypto to config file @W-9225317@ ([#406](https://github.com/forcedotcom/sfdx-core/issues/406)) ([bac83c3](https://github.com/forcedotcom/sfdx-core/commit/bac83c3a52b15c9b462dfb68be9d080e710493cd))
|
|
209
|
+
|
|
210
|
+
### Bug Fixes
|
|
211
|
+
|
|
212
|
+
- compilation errors ([33a9876](https://github.com/forcedotcom/sfdx-core/commit/33a9876575eff7944bb287d428f52413831725d9))
|
|
213
|
+
- unit test failures ([4507575](https://github.com/forcedotcom/sfdx-core/commit/45075754175d411b6cb71eb809096e6eb3e23d95))
|
|
214
|
+
- unsetAuthorization ([#399](https://github.com/forcedotcom/sfdx-core/issues/399)) ([dd57438](https://github.com/forcedotcom/sfdx-core/commit/dd57438a95b49515f560d3b915cdf916a4b8643b))
|
|
215
|
+
|
|
216
|
+
### [3.7.5](https://github.com/forcedotcom/sfdx-core/compare/v3.7.4...v3.7.5) (2022-02-14)
|
|
217
|
+
|
|
218
|
+
### Bug Fixes
|
|
219
|
+
|
|
220
|
+
- add env vars from sfdx-cli init to envvars ([#520](https://github.com/forcedotcom/sfdx-core/issues/520)) ([8ef2785](https://github.com/forcedotcom/sfdx-core/commit/8ef27859d95bfffc5999b14f4792874d04f0504c))
|
|
221
|
+
|
|
222
|
+
### [3.7.4](https://github.com/forcedotcom/sfdx-core/compare/v3.7.3...v3.7.4) (2022-02-07)
|
|
223
|
+
|
|
224
|
+
### Bug Fixes
|
|
225
|
+
|
|
226
|
+
- pin ts to 4.4.4 and bump other deps ([#509](https://github.com/forcedotcom/sfdx-core/issues/509)) ([1c0e15c](https://github.com/forcedotcom/sfdx-core/commit/1c0e15cd9a96f03e24476c13d73b62577a535fa3))
|
|
227
|
+
|
|
5
228
|
### [3.7.3](https://github.com/forcedotcom/sfdx-core/compare/v3.7.2...v3.7.3) (2021-12-16)
|
|
6
229
|
|
|
7
230
|
### [3.7.2](https://github.com/forcedotcom/sfdx-core/compare/v3.7.1...v3.7.2) (2021-10-28)
|
package/LICENSE.txt
CHANGED
package/lib/config/config.js
CHANGED
|
@@ -97,7 +97,7 @@ exports.SFDX_ALLOWED_PROPERTIES = [
|
|
|
97
97
|
return true;
|
|
98
98
|
// validate if the value is a string and is a valid url and is either a salesforce domain
|
|
99
99
|
// or an internal url.
|
|
100
|
-
return (ts_types_1.isString(value) &&
|
|
100
|
+
return ((0, ts_types_1.isString)(value) &&
|
|
101
101
|
sfdcUrl_1.SfdcUrl.isValidUrl(value) &&
|
|
102
102
|
(new sfdcUrl_1.SfdcUrl(value).isSalesforceDomain() || new sfdcUrl_1.SfdcUrl(value).isInternalUrl()));
|
|
103
103
|
},
|
|
@@ -110,7 +110,7 @@ exports.SFDX_ALLOWED_PROPERTIES = [
|
|
|
110
110
|
hidden: true,
|
|
111
111
|
input: {
|
|
112
112
|
// If a value is provided validate it otherwise no value is unset.
|
|
113
|
-
validator: (value) => value == null || (ts_types_1.isString(value) && sfdc_1.sfdc.validateApiVersion(value)),
|
|
113
|
+
validator: (value) => value == null || ((0, ts_types_1.isString)(value) && sfdc_1.sfdc.validateApiVersion(value)),
|
|
114
114
|
failedMessage: messages.getMessage('invalidApiVersion'),
|
|
115
115
|
},
|
|
116
116
|
},
|
|
@@ -132,7 +132,7 @@ exports.SFDX_ALLOWED_PROPERTIES = [
|
|
|
132
132
|
encrypted: true,
|
|
133
133
|
input: {
|
|
134
134
|
// If a value is provided validate it otherwise no value is unset.
|
|
135
|
-
validator: (value) => value == null || ts_types_1.isString(value),
|
|
135
|
+
validator: (value) => value == null || (0, ts_types_1.isString)(value),
|
|
136
136
|
failedMessage: messages.getMessage('invalidIsvDebuggerSid'),
|
|
137
137
|
},
|
|
138
138
|
},
|
|
@@ -141,7 +141,7 @@ exports.SFDX_ALLOWED_PROPERTIES = [
|
|
|
141
141
|
description: messages.getMessage(SfdxPropertyKeys.ISV_DEBUGGER_URL),
|
|
142
142
|
input: {
|
|
143
143
|
// If a value is provided validate it otherwise no value is unset.
|
|
144
|
-
validator: (value) => value == null || ts_types_1.isString(value),
|
|
144
|
+
validator: (value) => value == null || (0, ts_types_1.isString)(value),
|
|
145
145
|
failedMessage: messages.getMessage('invalidIsvDebuggerUrl'),
|
|
146
146
|
},
|
|
147
147
|
},
|
|
@@ -247,7 +247,7 @@ class Config extends configFile_1.ConfigFile {
|
|
|
247
247
|
delete content[propertyName];
|
|
248
248
|
}
|
|
249
249
|
else {
|
|
250
|
-
kit_1.set(content, propertyName, value);
|
|
250
|
+
(0, kit_1.set)(content, propertyName, value);
|
|
251
251
|
}
|
|
252
252
|
return config.write(content);
|
|
253
253
|
}
|
|
@@ -263,7 +263,7 @@ class Config extends configFile_1.ConfigFile {
|
|
|
263
263
|
await localConfig.write();
|
|
264
264
|
}
|
|
265
265
|
static propertyConfigMap() {
|
|
266
|
-
return kit_1.keyBy(Config.allowedProperties, 'key');
|
|
266
|
+
return (0, kit_1.keyBy)(Config.allowedProperties, 'key');
|
|
267
267
|
}
|
|
268
268
|
/**
|
|
269
269
|
* Read, assign, and return the config contents.
|
|
@@ -340,7 +340,7 @@ class Config extends configFile_1.ConfigFile {
|
|
|
340
340
|
else {
|
|
341
341
|
let valueError = (value === null || value === void 0 ? void 0 : value.toString()) || '';
|
|
342
342
|
if (property.input.failedMessage) {
|
|
343
|
-
valueError = ts_types_1.isString(property.input.failedMessage)
|
|
343
|
+
valueError = (0, ts_types_1.isString)(property.input.failedMessage)
|
|
344
344
|
? property.input.failedMessage
|
|
345
345
|
: property.input.failedMessage(value);
|
|
346
346
|
}
|
|
@@ -403,10 +403,10 @@ class Config extends configFile_1.ConfigFile {
|
|
|
403
403
|
});
|
|
404
404
|
if (hasEncryptedProperties) {
|
|
405
405
|
await this.initCrypto();
|
|
406
|
-
const crypto = ts_types_1.ensure(this.crypto);
|
|
406
|
+
const crypto = (0, ts_types_1.ensure)(this.crypto);
|
|
407
407
|
this.forEach((key, value) => {
|
|
408
|
-
if (this.getPropertyConfig(key).encrypted && ts_types_1.isString(value)) {
|
|
409
|
-
this.set(key, ts_types_1.ensure(encrypt ? crypto.encrypt(value) : crypto.decrypt(value)));
|
|
408
|
+
if (this.getPropertyConfig(key).encrypted && (0, ts_types_1.isString)(value)) {
|
|
409
|
+
this.set(key, (0, ts_types_1.ensure)(encrypt ? crypto.encrypt(value) : crypto.decrypt(value)));
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
}
|
|
@@ -457,7 +457,7 @@ class SfdxConfig {
|
|
|
457
457
|
async writeSync(config = this.config.toObject()) {
|
|
458
458
|
try {
|
|
459
459
|
const sfdxPath = this.getSfdxPath();
|
|
460
|
-
await fs_1.fs.mkdirp(path_1.dirname(sfdxPath));
|
|
460
|
+
await fs_1.fs.mkdirp((0, path_1.dirname)(sfdxPath));
|
|
461
461
|
const mapped = this.normalize(config, 'toOld');
|
|
462
462
|
await fs_1.fs.writeJson(sfdxPath, mapped);
|
|
463
463
|
}
|
|
@@ -469,16 +469,16 @@ class SfdxConfig {
|
|
|
469
469
|
if (!this.sfdxPath) {
|
|
470
470
|
const stateFolder = global_1.Global.SFDX_STATE_FOLDER;
|
|
471
471
|
const fileName = SFDX_CONFIG_FILE_NAME;
|
|
472
|
-
const _isGlobal = ts_types_1.isBoolean(this.options.isGlobal) && this.options.isGlobal;
|
|
473
|
-
const _isState = ts_types_1.isBoolean(this.options.isState) && this.options.isState;
|
|
472
|
+
const _isGlobal = (0, ts_types_1.isBoolean)(this.options.isGlobal) && this.options.isGlobal;
|
|
473
|
+
const _isState = (0, ts_types_1.isBoolean)(this.options.isState) && this.options.isState;
|
|
474
474
|
// Don't let users store config files in homedir without being in the state folder.
|
|
475
475
|
let configRootFolder = this.options.rootFolder
|
|
476
476
|
? this.options.rootFolder
|
|
477
477
|
: configFile_1.ConfigFile.resolveRootFolderSync(!!this.options.isGlobal);
|
|
478
478
|
if (_isGlobal || _isState) {
|
|
479
|
-
configRootFolder = path_1.join(configRootFolder, stateFolder);
|
|
479
|
+
configRootFolder = (0, path_1.join)(configRootFolder, stateFolder);
|
|
480
480
|
}
|
|
481
|
-
this.sfdxPath = path_1.join(configRootFolder, fileName);
|
|
481
|
+
this.sfdxPath = (0, path_1.join)(configRootFolder, fileName);
|
|
482
482
|
}
|
|
483
483
|
return this.sfdxPath;
|
|
484
484
|
}
|
|
@@ -15,7 +15,7 @@ const envVars_1 = require("./envVars");
|
|
|
15
15
|
const config_1 = require("./config");
|
|
16
16
|
messages_1.Messages.importMessagesDirectory(__dirname);
|
|
17
17
|
const messages = messages_1.Messages.load('@salesforce/core', 'config', ['unknownConfigKey', 'deprecatedConfigKey']);
|
|
18
|
-
const propertyToEnvName = (property, prefix = 'SFDX_') => `${prefix || ''}${change_case_1.snakeCase(property).toUpperCase()}`;
|
|
18
|
+
const propertyToEnvName = (property, prefix = 'SFDX_') => `${prefix || ''}${(0, change_case_1.snakeCase)(property).toUpperCase()}`;
|
|
19
19
|
/**
|
|
20
20
|
* Aggregate global and local project config files, as well as environment variables for
|
|
21
21
|
* `sfdx-config.json`. The resolution happens in the following bottom-up order:
|
|
@@ -214,7 +214,7 @@ class ConfigAggregator extends kit_1.AsyncOptionalCreatable {
|
|
|
214
214
|
.filter((key) => this.getAllowedProperties().some((element) => key === element.key))
|
|
215
215
|
.map((key) => this.getInfo(key))
|
|
216
216
|
.filter((info) => !!info);
|
|
217
|
-
return kit_1.sortBy(infos, 'key');
|
|
217
|
+
return (0, kit_1.sortBy)(infos, 'key');
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
220
|
* Get the local project config instance.
|
|
@@ -251,7 +251,7 @@ class ConfigAggregator extends kit_1.AsyncOptionalCreatable {
|
|
|
251
251
|
* Add an allowed config property.
|
|
252
252
|
*/
|
|
253
253
|
addAllowedProperties(configMetas) {
|
|
254
|
-
if (ts_types_1.isArray(configMetas)) {
|
|
254
|
+
if ((0, ts_types_1.isArray)(configMetas)) {
|
|
255
255
|
this.allowedProperties.push(...configMetas);
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
@@ -285,7 +285,7 @@ class ConfigAggregator extends kit_1.AsyncOptionalCreatable {
|
|
|
285
285
|
}
|
|
286
286
|
configs.push(this.envVars.asDictionary());
|
|
287
287
|
const json = {};
|
|
288
|
-
const reduced = configs.filter(ts_types_1.isJsonMap).reduce((acc, el) => kit_1.merge(acc, el), json);
|
|
288
|
+
const reduced = configs.filter(ts_types_1.isJsonMap).reduce((acc, el) => (0, kit_1.merge)(acc, el), json);
|
|
289
289
|
return reduced;
|
|
290
290
|
}
|
|
291
291
|
/**
|
package/lib/config/configFile.js
CHANGED
|
@@ -87,7 +87,7 @@ class ConfigFile extends configStore_1.BaseConfigStore {
|
|
|
87
87
|
* @param isGlobal True if the config should be global. False for local.
|
|
88
88
|
*/
|
|
89
89
|
static async resolveRootFolder(isGlobal) {
|
|
90
|
-
return isGlobal ? os_1.homedir() : await internal_1.resolveProjectPath();
|
|
90
|
+
return isGlobal ? (0, os_1.homedir)() : await (0, internal_1.resolveProjectPath)();
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* Helper used to determine what the local and global folder point to. Returns the file path of the root folder.
|
|
@@ -95,7 +95,7 @@ class ConfigFile extends configStore_1.BaseConfigStore {
|
|
|
95
95
|
* @param isGlobal True if the config should be global. False for local.
|
|
96
96
|
*/
|
|
97
97
|
static resolveRootFolderSync(isGlobal) {
|
|
98
|
-
return isGlobal ? os_1.homedir() : internal_1.resolveProjectPathSync();
|
|
98
|
+
return isGlobal ? (0, os_1.homedir)() : (0, internal_1.resolveProjectPathSync)();
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* Determines if the config file is read/write accessible. Returns `true` if the user has capabilities specified
|
|
@@ -211,7 +211,7 @@ class ConfigFile extends configStore_1.BaseConfigStore {
|
|
|
211
211
|
if (newContents) {
|
|
212
212
|
this.setContents(newContents);
|
|
213
213
|
}
|
|
214
|
-
await fs_2.fs.mkdirp(path_1.dirname(this.getPath()));
|
|
214
|
+
await fs_2.fs.mkdirp((0, path_1.dirname)(this.getPath()));
|
|
215
215
|
this.logger.info(`Writing to config file: ${this.getPath()}`);
|
|
216
216
|
await fs_2.fs.writeJson(this.getPath(), this.toObject());
|
|
217
217
|
return this.getContents();
|
|
@@ -223,10 +223,10 @@ class ConfigFile extends configStore_1.BaseConfigStore {
|
|
|
223
223
|
* @param newContents The new contents of the file.
|
|
224
224
|
*/
|
|
225
225
|
writeSync(newContents) {
|
|
226
|
-
if (ts_types_1.isPlainObject(newContents)) {
|
|
226
|
+
if ((0, ts_types_1.isPlainObject)(newContents)) {
|
|
227
227
|
this.setContents(newContents);
|
|
228
228
|
}
|
|
229
|
-
fs_2.fs.mkdirpSync(path_1.dirname(this.getPath()));
|
|
229
|
+
fs_2.fs.mkdirpSync((0, path_1.dirname)(this.getPath()));
|
|
230
230
|
this.logger.info(`Writing to config file: ${this.getPath()}`);
|
|
231
231
|
fs_2.fs.writeJsonSync(this.getPath(), this.toObject());
|
|
232
232
|
return this.getContents();
|
|
@@ -297,16 +297,16 @@ class ConfigFile extends configStore_1.BaseConfigStore {
|
|
|
297
297
|
if (!this.options.filename) {
|
|
298
298
|
throw new sfdxError_1.SfdxError('The ConfigOptions filename parameter is invalid.', 'InvalidParameter');
|
|
299
299
|
}
|
|
300
|
-
const _isGlobal = ts_types_1.isBoolean(this.options.isGlobal) && this.options.isGlobal;
|
|
301
|
-
const _isState = ts_types_1.isBoolean(this.options.isState) && this.options.isState;
|
|
300
|
+
const _isGlobal = (0, ts_types_1.isBoolean)(this.options.isGlobal) && this.options.isGlobal;
|
|
301
|
+
const _isState = (0, ts_types_1.isBoolean)(this.options.isState) && this.options.isState;
|
|
302
302
|
// Don't let users store config files in homedir without being in the state folder.
|
|
303
303
|
let configRootFolder = this.options.rootFolder
|
|
304
304
|
? this.options.rootFolder
|
|
305
305
|
: ConfigFile.resolveRootFolderSync(!!this.options.isGlobal);
|
|
306
306
|
if (_isGlobal || _isState) {
|
|
307
|
-
configRootFolder = path_1.join(configRootFolder, this.options.stateFolder || global_1.Global.SFDX_STATE_FOLDER);
|
|
307
|
+
configRootFolder = (0, path_1.join)(configRootFolder, this.options.stateFolder || global_1.Global.SFDX_STATE_FOLDER);
|
|
308
308
|
}
|
|
309
|
-
this.path = path_1.join(configRootFolder, this.options.filePath ? this.options.filePath : '', this.options.filename);
|
|
309
|
+
this.path = (0, path_1.join)(configRootFolder, this.options.filePath ? this.options.filePath : '', this.options.filename);
|
|
310
310
|
}
|
|
311
311
|
return this.path;
|
|
312
312
|
}
|
|
@@ -35,14 +35,14 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
35
35
|
* Returns an array of {@link ConfigEntry} for each element in the config.
|
|
36
36
|
*/
|
|
37
37
|
entries() {
|
|
38
|
-
return ts_types_2.definiteEntriesOf(this.contents);
|
|
38
|
+
return (0, ts_types_2.definiteEntriesOf)(this.contents);
|
|
39
39
|
}
|
|
40
40
|
get(key, decrypt = false) {
|
|
41
41
|
const k = key;
|
|
42
42
|
let value = this.getMethod(this.contents, k);
|
|
43
43
|
if (this.hasEncryption() && decrypt) {
|
|
44
|
-
if (ts_types_2.isJsonMap(value)) {
|
|
45
|
-
value = this.recursiveDecrypt(kit_1.cloneJson(value), k);
|
|
44
|
+
if ((0, ts_types_2.isJsonMap)(value)) {
|
|
45
|
+
value = this.recursiveDecrypt((0, kit_1.cloneJson)(value), k);
|
|
46
46
|
}
|
|
47
47
|
else if (this.isCryptoKey(k)) {
|
|
48
48
|
value = this.decrypt(value);
|
|
@@ -76,7 +76,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
76
76
|
}
|
|
77
77
|
set(key, value) {
|
|
78
78
|
if (this.hasEncryption()) {
|
|
79
|
-
if (ts_types_2.isJsonMap(value)) {
|
|
79
|
+
if ((0, ts_types_2.isJsonMap)(value)) {
|
|
80
80
|
value = this.recursiveEncrypt(value, key);
|
|
81
81
|
}
|
|
82
82
|
else if (this.isCryptoKey(key)) {
|
|
@@ -87,7 +87,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
87
87
|
}
|
|
88
88
|
update(key, value) {
|
|
89
89
|
const existingValue = this.get(key, true);
|
|
90
|
-
if (ts_types_1.isPlainObject(existingValue) && ts_types_1.isPlainObject(value)) {
|
|
90
|
+
if ((0, ts_types_1.isPlainObject)(existingValue) && (0, ts_types_1.isPlainObject)(value)) {
|
|
91
91
|
value = Object.assign({}, existingValue, value);
|
|
92
92
|
}
|
|
93
93
|
this.set(key, value);
|
|
@@ -130,7 +130,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
130
130
|
* Returns an array that contains the values for each element in the config object.
|
|
131
131
|
*/
|
|
132
132
|
values() {
|
|
133
|
-
return ts_types_2.definiteValuesOf(this.contents);
|
|
133
|
+
return (0, ts_types_2.definiteValuesOf)(this.contents);
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
136
|
* Returns the entire config contents.
|
|
@@ -147,7 +147,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
147
147
|
this.setContents();
|
|
148
148
|
}
|
|
149
149
|
if (this.hasEncryption() && decrypt) {
|
|
150
|
-
return this.recursiveDecrypt(kit_1.cloneJson(this.contents));
|
|
150
|
+
return this.recursiveDecrypt((0, kit_1.cloneJson)(this.contents));
|
|
151
151
|
}
|
|
152
152
|
return this.contents;
|
|
153
153
|
}
|
|
@@ -206,7 +206,8 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
getEncryptedKeys() {
|
|
209
|
-
|
|
209
|
+
var _a, _b;
|
|
210
|
+
return [...(((_a = this.options) === null || _a === void 0 ? void 0 : _a.encryptedKeys) || []), ...(((_b = this.statics) === null || _b === void 0 ? void 0 : _b.encryptedKeys) || [])];
|
|
210
211
|
}
|
|
211
212
|
/**
|
|
212
213
|
* This config file has encrypted keys and it should attempt to encrypt them.
|
|
@@ -219,13 +220,13 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
219
220
|
// Allows extended classes the ability to override the set method. i.e. maybe they want
|
|
220
221
|
// nested object set from kit.
|
|
221
222
|
setMethod(contents, key, value) {
|
|
222
|
-
kit_1.set(contents, key, value);
|
|
223
|
+
(0, kit_1.set)(contents, key, value);
|
|
223
224
|
}
|
|
224
225
|
// Allows extended classes the ability to override the get method. i.e. maybe they want
|
|
225
226
|
// nested object get from ts-types.
|
|
226
227
|
// NOTE: Key must stay string to be reliably overwritten.
|
|
227
228
|
getMethod(contents, key) {
|
|
228
|
-
return ts_types_2.get(contents, key);
|
|
229
|
+
return (0, ts_types_2.get)(contents, key);
|
|
229
230
|
}
|
|
230
231
|
initialContents() {
|
|
231
232
|
return {};
|
|
@@ -287,7 +288,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
287
288
|
return;
|
|
288
289
|
if (!this.crypto)
|
|
289
290
|
throw new sfdxError_1.SfdxError('crypto is not initialized', 'CryptoNotInitializedError');
|
|
290
|
-
if (!ts_types_2.isString(value))
|
|
291
|
+
if (!(0, ts_types_2.isString)(value))
|
|
291
292
|
throw new sfdxError_1.SfdxError(`can only encrypt strings but found: ${typeof value} : ${value}`, 'InvalidCryptoValueError');
|
|
292
293
|
return this.crypto.isEncrypted(value) ? value : this.crypto.encrypt(value);
|
|
293
294
|
}
|
|
@@ -296,7 +297,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
296
297
|
return;
|
|
297
298
|
if (!this.crypto)
|
|
298
299
|
throw new sfdxError_1.SfdxError('crypto is not initialized', 'CryptoNotInitializedError');
|
|
299
|
-
if (!ts_types_2.isString(value))
|
|
300
|
+
if (!(0, ts_types_2.isString)(value))
|
|
300
301
|
throw new sfdxError_1.SfdxError(`can only encrypt strings but found: ${typeof value} : ${value}`, 'InvalidCryptoValueError');
|
|
301
302
|
return this.crypto.isEncrypted(value) ? this.crypto.decrypt(value) : value;
|
|
302
303
|
}
|
|
@@ -333,7 +334,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
|
|
|
333
334
|
recursiveCrypto(method, keyPaths, data) {
|
|
334
335
|
const key = keyPaths.pop();
|
|
335
336
|
const value = data[key];
|
|
336
|
-
if (ts_types_2.isJsonMap(value)) {
|
|
337
|
+
if ((0, ts_types_2.isJsonMap)(value)) {
|
|
337
338
|
for (const newKey of Object.keys(value)) {
|
|
338
339
|
this.recursiveCrypto(method, [...keyPaths, key, newKey], value);
|
|
339
340
|
}
|
package/lib/config/envVars.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { Dictionary, Nullable } from '@salesforce/ts-types';
|
|
2
3
|
import { Env } from '@salesforce/kit';
|
|
3
4
|
export declare enum EnvironmentVariable {
|
|
@@ -35,6 +36,11 @@ export declare enum EnvironmentVariable {
|
|
|
35
36
|
'SFDX_SOURCE_MEMBER_POLLING_TIMEOUT' = "SFDX_SOURCE_MEMBER_POLLING_TIMEOUT",
|
|
36
37
|
'SFDX_USE_GENERIC_UNIX_KEYCHAIN' = "SFDX_USE_GENERIC_UNIX_KEYCHAIN",
|
|
37
38
|
'SFDX_USE_PROGRESS_BAR' = "SFDX_USE_PROGRESS_BAR",
|
|
39
|
+
'SFDX_LAZY_LOAD_MODULES' = "SFDX_LAZY_LOAD_MODULES",
|
|
40
|
+
'SFDX_S3_HOST' = "SFDX_S3_HOST",
|
|
41
|
+
'SFDX_UPDATE_INSTRUCTIONS' = "SFDX_UPDATE_INSTRUCTIONS",
|
|
42
|
+
'SFDX_INSTALLER' = "SFDX_INSTALLER",
|
|
43
|
+
'SFDX_ENV' = "SFDX_ENV",
|
|
38
44
|
'SF_TARGET_ORG' = "SF_TARGET_ORG",
|
|
39
45
|
'SF_TARGET_DEV_HUB' = "SF_TARGET_DEV_HUB",
|
|
40
46
|
'SF_ACCESS_TOKEN' = "SF_ACCESS_TOKEN",
|
|
@@ -60,7 +66,12 @@ export declare enum EnvironmentVariable {
|
|
|
60
66
|
'SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE' = "SF_PROJECT_AUTOUPDATE_DISABLE_FOR_PACKAGE_VERSION_CREATE",
|
|
61
67
|
'SF_SOURCE_MEMBER_POLLING_TIMEOUT' = "SF_SOURCE_MEMBER_POLLING_TIMEOUT",
|
|
62
68
|
'SF_USE_GENERIC_UNIX_KEYCHAIN' = "SF_USE_GENERIC_UNIX_KEYCHAIN",
|
|
63
|
-
'SF_USE_PROGRESS_BAR' = "SF_USE_PROGRESS_BAR"
|
|
69
|
+
'SF_USE_PROGRESS_BAR' = "SF_USE_PROGRESS_BAR",
|
|
70
|
+
'SF_LAZY_LOAD_MODULES' = "SF_LAZY_LOAD_MODULES",
|
|
71
|
+
'SF_S3_HOST' = "SF_S3_HOST",
|
|
72
|
+
'SF_UPDATE_INSTRUCTIONS' = "SF_UPDATE_INSTRUCTIONS",
|
|
73
|
+
'SF_INSTALLER' = "SF_INSTALLER",
|
|
74
|
+
'SF_ENV' = "SF_ENV"
|
|
64
75
|
}
|
|
65
76
|
declare type EnvMetaData = {
|
|
66
77
|
description: string;
|
|
@@ -71,11 +82,15 @@ declare type EnvType = {
|
|
|
71
82
|
};
|
|
72
83
|
export declare const SUPPORTED_ENV_VARS: EnvType;
|
|
73
84
|
export declare class EnvVars extends Env {
|
|
74
|
-
constructor();
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
85
|
+
constructor(env?: NodeJS.ProcessEnv);
|
|
86
|
+
private static defaultPrefix;
|
|
87
|
+
propertyToEnvName(property: string, prefix?: string | undefined): string;
|
|
88
|
+
setPropertyFromEnv(property: string, prefix?: string | undefined): void;
|
|
89
|
+
getPropertyFromEnv<T>(property: string, prefix?: string | undefined): T | undefined;
|
|
90
|
+
asDictionary(): Dictionary<unknown>;
|
|
78
91
|
asMap(): Map<string, string>;
|
|
79
92
|
private resolve;
|
|
93
|
+
private get;
|
|
80
94
|
}
|
|
95
|
+
export declare const envVars: EnvVars;
|
|
81
96
|
export {};
|