@salesforce/plugin-release-management 2.2.5 → 2.3.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 +24 -0
- package/README.md +117 -16
- package/lib/circleCiEnvvars.d.ts +23 -0
- package/lib/circleCiEnvvars.js +132 -0
- package/lib/circleCiEnvvars.js.map +1 -0
- package/lib/codeSigning/SimplifiedSigning.js +8 -8
- package/lib/codeSigning/SimplifiedSigning.js.map +1 -1
- package/lib/codeSigning/packAndSign.js +12 -11
- package/lib/codeSigning/packAndSign.js.map +1 -1
- package/lib/commands/circleci/envvar/create.d.ts +14 -0
- package/lib/commands/circleci/envvar/create.js +100 -0
- package/lib/commands/circleci/envvar/create.js.map +1 -0
- package/lib/commands/circleci/envvar/update.d.ts +6 -16
- package/lib/commands/circleci/envvar/update.js +27 -132
- package/lib/commands/circleci/envvar/update.js.map +1 -1
- package/lib/commands/circleci/index.js +1 -1
- package/lib/commands/circleci/index.js.map +1 -1
- package/lib/commands/cli/install/test.d.ts +4 -1
- package/lib/commands/cli/install/test.js +71 -56
- package/lib/commands/cli/install/test.js.map +1 -1
- package/lib/commands/cli/latestrc/build.d.ts +7 -0
- package/lib/commands/cli/latestrc/build.js +74 -0
- package/lib/commands/cli/latestrc/build.js.map +1 -0
- package/lib/commands/cli/tarballs/prepare.js +2 -2
- package/lib/commands/cli/tarballs/prepare.js.map +1 -1
- package/lib/commands/cli/tarballs/verify.js +6 -6
- package/lib/commands/cli/tarballs/verify.js.map +1 -1
- package/lib/commands/cli/versions/inspect.js +13 -13
- package/lib/commands/cli/versions/inspect.js.map +1 -1
- package/lib/commands/dependabot/automerge.js +3 -3
- package/lib/commands/dependabot/automerge.js.map +1 -1
- package/lib/commands/dependabot/consolidate.js +12 -12
- package/lib/commands/dependabot/consolidate.js.map +1 -1
- package/lib/commands/npm/lerna/release.js +3 -3
- package/lib/commands/npm/lerna/release.js.map +1 -1
- package/lib/commands/npm/package/promote.js +7 -7
- package/lib/commands/npm/package/promote.js.map +1 -1
- package/lib/commands/npm/package/release.js +3 -3
- package/lib/commands/npm/package/release.js.map +1 -1
- package/lib/commands/npm/release/validate.js +2 -2
- package/lib/commands/npm/release/validate.js.map +1 -1
- package/lib/commands/repositories/index.js +1 -1
- package/lib/commands/repositories/index.js.map +1 -1
- package/lib/commands/typescript/update.js +4 -4
- package/lib/commands/typescript/update.js.map +1 -1
- package/lib/dependabot.js +4 -4
- package/lib/dependabot.js.map +1 -1
- package/lib/inspectCommits.js +2 -2
- package/lib/inspectCommits.js.map +1 -1
- package/lib/package.d.ts +3 -0
- package/lib/package.js +26 -6
- package/lib/package.js.map +1 -1
- package/lib/registry.js +2 -2
- package/lib/registry.js.map +1 -1
- package/lib/repository.js +12 -12
- package/lib/repository.js.map +1 -1
- package/messages/circleci.json +14 -6
- package/messages/cli.latestrc.build.json +6 -0
- package/oclif.manifest.json +1 -1
- package/package.json +22 -19
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
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
|
+
### [2.3.2](https://github.com/salesforcecli/plugin-release-management/compare/v2.3.1...v2.3.2) (2021-10-21)
|
|
6
|
+
|
|
7
|
+
### [2.3.1](https://github.com/salesforcecli/plugin-release-management/compare/v2.3.0...v2.3.1) (2021-10-18)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* automates latest-rc build of sfdx-cli ([6260314](https://github.com/salesforcecli/plugin-release-management/commit/626031490dcab9232f172856a5384d323b39358f))
|
|
13
|
+
* automates latest-rc build of sfdx-cli ([9f78931](https://github.com/salesforcecli/plugin-release-management/commit/9f78931a92cd3bf6155c2df8042dd094eef7628d))
|
|
14
|
+
|
|
15
|
+
## [2.3.0](https://github.com/salesforcecli/plugin-release-management/compare/v2.2.6...v2.3.0) (2021-10-13)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add circleci envvar create command ([0d35493](https://github.com/salesforcecli/plugin-release-management/commit/0d354934d00cd08e270c205bbb29a3d49be85bbc))
|
|
21
|
+
|
|
22
|
+
### [2.2.6](https://github.com/salesforcecli/plugin-release-management/compare/v2.2.5...v2.2.6) (2021-10-12)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* update dependencies ([b4b954d](https://github.com/salesforcecli/plugin-release-management/commit/b4b954d7a0533983295ba700575d2fa80a84c1d2))
|
|
28
|
+
|
|
5
29
|
### [2.2.5](https://github.com/salesforcecli/plugin-release-management/compare/v2.2.4...v2.2.5) (2021-10-12)
|
|
6
30
|
|
|
7
31
|
### [2.2.4](https://github.com/salesforcecli/plugin-release-management/compare/v2.2.2...v2.2.4) (2021-10-08)
|
package/README.md
CHANGED
|
@@ -100,8 +100,10 @@ sfdx plugins
|
|
|
100
100
|
|
|
101
101
|
<!-- commands -->
|
|
102
102
|
* [`sfdx circleci [-t plugin|library|orb] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-circleci--t-pluginlibraryorb---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
103
|
+
* [`sfdx circleci:envvar:create -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-circlecienvvarcreate--e-string--s-string---dryrun---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
103
104
|
* [`sfdx circleci:envvar:update -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-circlecienvvarupdate--e-string--s-string---dryrun---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
104
105
|
* [`sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-cliinstalltest--c-string--m-string---channel-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
106
|
+
* [`sfdx cli:latestrc:build [--rctag <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clilatestrcbuild---rctag-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
105
107
|
* [`sfdx cli:tarballs:prepare [-d] [-t] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clitarballsprepare--d--t---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
106
108
|
* [`sfdx cli:tarballs:verify [-c sf|sfdx] [-w <number>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clitarballsverify--c-sfsfdx--w-number---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
107
109
|
* [`sfdx cli:versions:inspect -c <string> -l <string> --cli sf|sfdx [-d <string>] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-cliversionsinspect--c-string--l-string---cli-sfsfdx--d-string--s---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
@@ -121,6 +123,8 @@ sfdx plugins
|
|
|
121
123
|
list known Circle CI slugs from 'sfdx repositories'
|
|
122
124
|
|
|
123
125
|
```
|
|
126
|
+
list known Circle CI slugs from '<%= config.bin %> repositories'
|
|
127
|
+
|
|
124
128
|
USAGE
|
|
125
129
|
$ sfdx circleci [-t plugin|library|orb] [--json] [--loglevel
|
|
126
130
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -136,13 +140,56 @@ EXAMPLE
|
|
|
136
140
|
sfdx circleci -t plugin
|
|
137
141
|
```
|
|
138
142
|
|
|
139
|
-
_See code: [src/commands/circleci/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
143
|
+
_See code: [src/commands/circleci/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/circleci/index.ts)_
|
|
144
|
+
|
|
145
|
+
## `sfdx circleci:envvar:create -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
146
|
+
|
|
147
|
+
update environment variable(s) on Circle CI slug(s)
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
update environment variable(s) on Circle CI slug(s)
|
|
151
|
+
Updates one or more environment variables on one or more CIrcle CI slugs. The environment variables must already exist on the slug. You will be prompted for the environment variable values unless they already exist on the process. The slugs can be piped in. If so, the environment variables must be on the process (prompting is disabled).
|
|
152
|
+
|
|
153
|
+
USAGE
|
|
154
|
+
$ sfdx circleci:envvar:create -e <string> [-s <string>] [--dryrun] [--json] [--loglevel
|
|
155
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
156
|
+
|
|
157
|
+
OPTIONS
|
|
158
|
+
-e, --envvar=envvar (required) a environment variables
|
|
159
|
+
to set on the given circle slug(s)
|
|
160
|
+
|
|
161
|
+
-s, --slug=slug a circle ci slugs in the format
|
|
162
|
+
<vcs>/<org name>/<repo name>
|
|
163
|
+
|
|
164
|
+
--dryrun do validation but do not update the
|
|
165
|
+
environment variable values
|
|
166
|
+
|
|
167
|
+
--json format output as json
|
|
168
|
+
|
|
169
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
170
|
+
this command invocation
|
|
171
|
+
|
|
172
|
+
DESCRIPTION
|
|
173
|
+
Updates one or more environment variables on one or more CIrcle CI slugs. The environment variables must already exist
|
|
174
|
+
on the slug. You will be prompted for the environment variable values unless they already exist on the process. The
|
|
175
|
+
slugs can be piped in. If so, the environment variables must be on the process (prompting is disabled).
|
|
176
|
+
|
|
177
|
+
EXAMPLES
|
|
178
|
+
sfdx circleci:envvar:create -e 'MY_ENV_VAR' -s 'gh/<org>/<repository>'
|
|
179
|
+
echo "gh/<org>/<repository>" | sfdx circleci:envvar:create -e 'MY_ENV_VAR'
|
|
180
|
+
sfdx circleci -t plugin | sfdx circleci:envvar:create -e 'MY_ENV_VAR' -e 'MY_OTHER_ENV_VAR'
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
_See code: [src/commands/circleci/envvar/create.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/circleci/envvar/create.ts)_
|
|
140
184
|
|
|
141
185
|
## `sfdx circleci:envvar:update -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
142
186
|
|
|
143
187
|
update environment variable(s) on Circle CI slug(s)
|
|
144
188
|
|
|
145
189
|
```
|
|
190
|
+
update environment variable(s) on Circle CI slug(s)
|
|
191
|
+
Updates one or more environment variables on one or more CIrcle CI slugs. The environment variables must already exist on the slug. You will be prompted for the environment variable values unless they already exist on the process. The slugs can be piped in. If so, the environment variables must be on the process (prompting is disabled).
|
|
192
|
+
|
|
146
193
|
USAGE
|
|
147
194
|
$ sfdx circleci:envvar:update -e <string> [-s <string>] [--dryrun] [--json] [--loglevel
|
|
148
195
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -173,13 +220,15 @@ EXAMPLES
|
|
|
173
220
|
sfdx circleci -t plugin | sfdx circleci:envvar:update -e 'MY_ENV_VAR' -e 'MY_OTHER_ENV_VAR'
|
|
174
221
|
```
|
|
175
222
|
|
|
176
|
-
_See code: [src/commands/circleci/envvar/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
223
|
+
_See code: [src/commands/circleci/envvar/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/circleci/envvar/update.ts)_
|
|
177
224
|
|
|
178
225
|
## `sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
179
226
|
|
|
180
227
|
install sf or sfdx
|
|
181
228
|
|
|
182
229
|
```
|
|
230
|
+
install sf or sfdx
|
|
231
|
+
|
|
183
232
|
USAGE
|
|
184
233
|
$ sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel
|
|
185
234
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -206,13 +255,40 @@ EXAMPLES
|
|
|
206
255
|
sfdx cli:install:test --cli sf --method tarball --channel stable-rc
|
|
207
256
|
```
|
|
208
257
|
|
|
209
|
-
_See code: [src/commands/cli/install/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
258
|
+
_See code: [src/commands/cli/install/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/cli/install/test.ts)_
|
|
259
|
+
|
|
260
|
+
## `sfdx cli:latestrc:build [--rctag <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
261
|
+
|
|
262
|
+
creates a PR to the repository property defined in the package.json to release a latest-rc build
|
|
263
|
+
|
|
264
|
+
```
|
|
265
|
+
creates a PR to the repository property defined in the package.json to release a latest-rc build
|
|
266
|
+
|
|
267
|
+
USAGE
|
|
268
|
+
$ sfdx cli:latestrc:build [--rctag <string>] [--json] [--loglevel
|
|
269
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
270
|
+
|
|
271
|
+
OPTIONS
|
|
272
|
+
--json format output as json
|
|
273
|
+
|
|
274
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
275
|
+
this command invocation
|
|
276
|
+
|
|
277
|
+
--rctag=rctag [default: latest-rc] the tag name
|
|
278
|
+
that corresponds to the npm RC
|
|
279
|
+
build, usually latest-rc or
|
|
280
|
+
stable-rc
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
_See code: [src/commands/cli/latestrc/build.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/cli/latestrc/build.ts)_
|
|
210
284
|
|
|
211
285
|
## `sfdx cli:tarballs:prepare [-d] [-t] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
212
286
|
|
|
213
287
|
remove unnecessary files from node_modules
|
|
214
288
|
|
|
215
289
|
```
|
|
290
|
+
remove unnecessary files from node_modules
|
|
291
|
+
|
|
216
292
|
USAGE
|
|
217
293
|
$ sfdx cli:tarballs:prepare [-d] [-t] [--verbose] [--json] [--loglevel
|
|
218
294
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -235,13 +311,15 @@ EXAMPLE
|
|
|
235
311
|
sfdx cli:tarballs:prepare
|
|
236
312
|
```
|
|
237
313
|
|
|
238
|
-
_See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
314
|
+
_See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/cli/tarballs/prepare.ts)_
|
|
239
315
|
|
|
240
316
|
## `sfdx cli:tarballs:verify [-c sf|sfdx] [-w <number>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
241
317
|
|
|
242
318
|
verify that tarballs are ready to be uploaded
|
|
243
319
|
|
|
244
320
|
```
|
|
321
|
+
verify that tarballs are ready to be uploaded
|
|
322
|
+
|
|
245
323
|
USAGE
|
|
246
324
|
$ sfdx cli:tarballs:verify [-c sf|sfdx] [-w <number>] [--json] [--loglevel
|
|
247
325
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -264,13 +342,15 @@ EXAMPLES
|
|
|
264
342
|
sfdx cli:tarballs:verify --cli sf
|
|
265
343
|
```
|
|
266
344
|
|
|
267
|
-
_See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
345
|
+
_See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/cli/tarballs/verify.ts)_
|
|
268
346
|
|
|
269
347
|
## `sfdx cli:versions:inspect -c <string> -l <string> --cli sf|sfdx [-d <string>] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
270
348
|
|
|
271
349
|
inspect the CLI version across all install paths
|
|
272
350
|
|
|
273
351
|
```
|
|
352
|
+
inspect the CLI version across all install paths
|
|
353
|
+
|
|
274
354
|
USAGE
|
|
275
355
|
$ sfdx cli:versions:inspect -c <string> -l <string> --cli sf|sfdx [-d <string>] [-s] [--json] [--loglevel
|
|
276
356
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -312,13 +392,15 @@ EXAMPLES
|
|
|
312
392
|
sfdx cli:versions:inspect -l npm -c latest -d chalk -s
|
|
313
393
|
```
|
|
314
394
|
|
|
315
|
-
_See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
395
|
+
_See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/cli/versions/inspect.ts)_
|
|
316
396
|
|
|
317
397
|
## `sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
318
398
|
|
|
319
399
|
automatically merge one green, mergeable PR up to the specified maximum bump type
|
|
320
400
|
|
|
321
401
|
```
|
|
402
|
+
automatically merge one green, mergeable PR up to the specified maximum bump type
|
|
403
|
+
|
|
322
404
|
USAGE
|
|
323
405
|
$ sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [-s] [--json] [--loglevel
|
|
324
406
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -354,13 +436,15 @@ EXAMPLES
|
|
|
354
436
|
sfdx dependabot:automerge --max-version-bump major
|
|
355
437
|
```
|
|
356
438
|
|
|
357
|
-
_See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
439
|
+
_See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/dependabot/automerge.ts)_
|
|
358
440
|
|
|
359
441
|
## `sfdx dependabot:consolidate -m major|minor|patch -b <string> -t <string> [--ignore <array>] [-d] [--no-pr] [-r <string> -o <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
360
442
|
|
|
361
443
|
consolidate dependabot PRs into a single PR
|
|
362
444
|
|
|
363
445
|
```
|
|
446
|
+
consolidate dependabot PRs into a single PR
|
|
447
|
+
|
|
364
448
|
USAGE
|
|
365
449
|
$ sfdx dependabot:consolidate -m major|minor|patch -b <string> -t <string> [--ignore <array>] [-d] [--no-pr] [-r
|
|
366
450
|
<string> -o <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -405,13 +489,15 @@ EXAMPLES
|
|
|
405
489
|
sfdx dependabot:consolidate --max-version-bump major
|
|
406
490
|
```
|
|
407
491
|
|
|
408
|
-
_See code: [src/commands/dependabot/consolidate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
492
|
+
_See code: [src/commands/dependabot/consolidate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/dependabot/consolidate.ts)_
|
|
409
493
|
|
|
410
494
|
## `sfdx npm:dependencies:pin [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
411
495
|
|
|
412
496
|
lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry in the package.json
|
|
413
497
|
|
|
414
498
|
```
|
|
499
|
+
lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry in the package.json
|
|
500
|
+
|
|
415
501
|
USAGE
|
|
416
502
|
$ sfdx npm:dependencies:pin [-d] [-t <string>] [--json] [--loglevel
|
|
417
503
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -430,13 +516,15 @@ OPTIONS
|
|
|
430
516
|
this command invocation
|
|
431
517
|
```
|
|
432
518
|
|
|
433
|
-
_See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
519
|
+
_See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/npm/dependencies/pin.ts)_
|
|
434
520
|
|
|
435
521
|
## `sfdx npm:lerna:release [-d] [-s <array>] [-t <string>] [-a <string>] [--install] [--githubrelease] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
436
522
|
|
|
437
523
|
publish npm packages from a lerna repository
|
|
438
524
|
|
|
439
525
|
```
|
|
526
|
+
publish npm packages from a lerna repository
|
|
527
|
+
|
|
440
528
|
USAGE
|
|
441
529
|
$ sfdx npm:lerna:release [-d] [-s <array>] [-t <string>] [-a <string>] [--install] [--githubrelease] [--verify]
|
|
442
530
|
[--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -470,13 +558,15 @@ OPTIONS
|
|
|
470
558
|
after publish and digital signature
|
|
471
559
|
```
|
|
472
560
|
|
|
473
|
-
_See code: [src/commands/npm/lerna/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
561
|
+
_See code: [src/commands/npm/lerna/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/npm/lerna/release.ts)_
|
|
474
562
|
|
|
475
563
|
## `sfdx npm:package:promote -c <string> [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
476
564
|
|
|
477
565
|
promote an npm package
|
|
478
566
|
|
|
479
567
|
```
|
|
568
|
+
promote an npm package
|
|
569
|
+
|
|
480
570
|
USAGE
|
|
481
571
|
$ sfdx npm:package:promote -c <string> [-d] [-t <string>] [--json] [--loglevel
|
|
482
572
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -499,13 +589,15 @@ EXAMPLE
|
|
|
499
589
|
sfdx npm:package:promote --candidate latest-rc --target latest
|
|
500
590
|
```
|
|
501
591
|
|
|
502
|
-
_See code: [src/commands/npm/package/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
592
|
+
_See code: [src/commands/npm/package/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/npm/package/promote.ts)_
|
|
503
593
|
|
|
504
594
|
## `sfdx npm:package:release [-d] [-s] [-t <string>] [-a <string>] [--install] [--prerelease <string>] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
505
595
|
|
|
506
596
|
publish npm package
|
|
507
597
|
|
|
508
598
|
```
|
|
599
|
+
publish npm package
|
|
600
|
+
|
|
509
601
|
USAGE
|
|
510
602
|
$ sfdx npm:package:release [-d] [-s] [-t <string>] [-a <string>] [--install] [--prerelease <string>] [--verify]
|
|
511
603
|
[--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -540,13 +632,15 @@ OPTIONS
|
|
|
540
632
|
after publish and digital signature
|
|
541
633
|
```
|
|
542
634
|
|
|
543
|
-
_See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
635
|
+
_See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/npm/package/release.ts)_
|
|
544
636
|
|
|
545
637
|
## `sfdx npm:release:validate [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
546
638
|
|
|
547
639
|
inspects the git commits to see if there are any commits that will warrant a new release
|
|
548
640
|
|
|
549
641
|
```
|
|
642
|
+
inspects the git commits to see if there are any commits that will warrant a new release
|
|
643
|
+
|
|
550
644
|
USAGE
|
|
551
645
|
$ sfdx npm:release:validate [--verbose] [--json] [--loglevel
|
|
552
646
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -561,13 +655,15 @@ OPTIONS
|
|
|
561
655
|
(only works with --json flag)
|
|
562
656
|
```
|
|
563
657
|
|
|
564
|
-
_See code: [src/commands/npm/release/validate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
658
|
+
_See code: [src/commands/npm/release/validate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/npm/release/validate.ts)_
|
|
565
659
|
|
|
566
660
|
## `sfdx plugins:trust:verify -n <string> [-r <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
567
661
|
|
|
568
662
|
validate a digital signature for a npm package
|
|
569
663
|
|
|
570
664
|
```
|
|
665
|
+
validate a digital signature for a npm package
|
|
666
|
+
|
|
571
667
|
USAGE
|
|
572
668
|
$ sfdx plugins:trust:verify -n <string> [-r <string>] [--json] [--loglevel
|
|
573
669
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -589,13 +685,16 @@ EXAMPLES
|
|
|
589
685
|
sfdx plugins:trust:verify --npm @scope/npmName
|
|
590
686
|
```
|
|
591
687
|
|
|
592
|
-
_See code: [@salesforce/plugin-trust](https://github.com/salesforcecli/plugin-trust/blob/v1.0.
|
|
688
|
+
_See code: [@salesforce/plugin-trust](https://github.com/salesforcecli/plugin-trust/blob/v1.0.9/src/commands/plugins/trust/verify.ts)_
|
|
593
689
|
|
|
594
690
|
## `sfdx `
|
|
595
691
|
|
|
596
692
|
list repositories owned and supported by Salesforce CLI
|
|
597
693
|
|
|
598
694
|
```
|
|
695
|
+
list repositories owned and supported by Salesforce CLI
|
|
696
|
+
For more information on the list of repositories, visit https://github.com/salesforcecli/status.
|
|
697
|
+
|
|
599
698
|
USAGE
|
|
600
699
|
$ sfdx repositories
|
|
601
700
|
|
|
@@ -634,13 +733,15 @@ EXAMPLES
|
|
|
634
733
|
sfdx repositories --json | jq -r '.result[] | select(.name=="sfdx-core") | .packages[] | .url
|
|
635
734
|
```
|
|
636
735
|
|
|
637
|
-
_See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
736
|
+
_See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/repositories/index.ts)_
|
|
638
737
|
|
|
639
738
|
## `sfdx typescript:update [-v <string>] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
640
739
|
|
|
641
740
|
Runs tests with updated typescript version and ES target
|
|
642
741
|
|
|
643
742
|
```
|
|
743
|
+
Runs tests with updated typescript version and ES target
|
|
744
|
+
|
|
644
745
|
USAGE
|
|
645
746
|
$ sfdx typescript:update [-v <string>] [-t <string>] [--json] [--loglevel
|
|
646
747
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
@@ -661,5 +762,5 @@ OPTIONS
|
|
|
661
762
|
this command invocation
|
|
662
763
|
```
|
|
663
764
|
|
|
664
|
-
_See code: [src/commands/typescript/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.2
|
|
765
|
+
_See code: [src/commands/typescript/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.3.2/src/commands/typescript/update.ts)_
|
|
665
766
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SfdxCommand } from '@salesforce/command';
|
|
2
|
+
export declare type EnvvarModificationStatus = {
|
|
3
|
+
name: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
success: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare abstract class CircleCiEnvvars extends SfdxCommand {
|
|
8
|
+
protected envvarValues: {
|
|
9
|
+
[index: string]: string;
|
|
10
|
+
};
|
|
11
|
+
protected get headers(): {
|
|
12
|
+
[index: string]: string;
|
|
13
|
+
};
|
|
14
|
+
protected resolveEnvvarValues(): Promise<void>;
|
|
15
|
+
protected resolveSlugs(): Promise<string[]>;
|
|
16
|
+
protected getCircleCiEnvvars(slug: string): Promise<[{
|
|
17
|
+
name: string;
|
|
18
|
+
}]>;
|
|
19
|
+
protected isPipedIn(): Promise<boolean>;
|
|
20
|
+
protected readPipedInput(): Promise<string>;
|
|
21
|
+
protected getFlagAsArray(name: string): string[];
|
|
22
|
+
protected printStatus(slug: string, status: string | EnvvarModificationStatus[]): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CircleCiEnvvars = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
|
+
* All rights reserved.
|
|
7
|
+
* Licensed under the BSD 3-Clause license.
|
|
8
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
const fs_1 = require("fs");
|
|
11
|
+
const os_1 = require("os");
|
|
12
|
+
const command_1 = require("@salesforce/command");
|
|
13
|
+
const kit_1 = require("@salesforce/kit");
|
|
14
|
+
const core_1 = require("@salesforce/core");
|
|
15
|
+
const ts_types_1 = require("@salesforce/ts-types");
|
|
16
|
+
const got_1 = require("got");
|
|
17
|
+
const chalk_1 = require("chalk");
|
|
18
|
+
const URL_BASE = 'https://circleci.com/api/v2/project';
|
|
19
|
+
class CircleCiEnvvars extends command_1.SfdxCommand {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.envvarValues = {};
|
|
23
|
+
}
|
|
24
|
+
get headers() {
|
|
25
|
+
const token = kit_1.env.getString('CIRCLE_CI_TOKEN');
|
|
26
|
+
if (!token) {
|
|
27
|
+
throw new core_1.SfdxError('The environment variable "CIRCLE_CI_TOKEN" is required.');
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'Circle-Token': token,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
async resolveEnvvarValues() {
|
|
34
|
+
for (const envvarName of this.getFlagAsArray('envvar')) {
|
|
35
|
+
const envvarValue = kit_1.env.getString(envvarName);
|
|
36
|
+
if (envvarValue) {
|
|
37
|
+
this.envvarValues[envvarName] = envvarValue;
|
|
38
|
+
}
|
|
39
|
+
else if (!(await this.isPipedIn())) {
|
|
40
|
+
this.envvarValues[envvarName] = await this.ux.prompt(envvarName, { type: 'mask' });
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
throw new core_1.SfdxError(`missing envvar value for ${envvarName}`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
async resolveSlugs() {
|
|
48
|
+
let slugs = [];
|
|
49
|
+
if (await this.isPipedIn()) {
|
|
50
|
+
const input = await this.readPipedInput();
|
|
51
|
+
try {
|
|
52
|
+
const json = JSON.parse(input);
|
|
53
|
+
if ((0, ts_types_1.isArray)(json)) {
|
|
54
|
+
slugs = json;
|
|
55
|
+
}
|
|
56
|
+
else if ((0, ts_types_1.isArray)((0, ts_types_1.getArray)(json, 'result', null))) {
|
|
57
|
+
slugs = (0, ts_types_1.getArray)(json, 'result', []);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
slugs = input.split('\n');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
slugs = [...slugs, ...this.getFlagAsArray('slug')];
|
|
65
|
+
if (!slugs) {
|
|
66
|
+
throw new core_1.SfdxError('missing input slugs');
|
|
67
|
+
}
|
|
68
|
+
return slugs.filter((slug) => !!slug);
|
|
69
|
+
}
|
|
70
|
+
async getCircleCiEnvvars(slug) {
|
|
71
|
+
const response = await got_1.default.get(`${URL_BASE}/${slug}/envvar`, { headers: this.headers });
|
|
72
|
+
const body = JSON.parse(response.body);
|
|
73
|
+
return body.items;
|
|
74
|
+
}
|
|
75
|
+
// These methods are to support piping. When OCLIF supports piping, this can be removed.
|
|
76
|
+
async isPipedIn() {
|
|
77
|
+
return new Promise((resolve) => {
|
|
78
|
+
(0, fs_1.fstat)(0, (err, stats) => {
|
|
79
|
+
if (err)
|
|
80
|
+
resolve(false);
|
|
81
|
+
else
|
|
82
|
+
resolve(stats.isFIFO());
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
async readPipedInput() {
|
|
87
|
+
const isPiped = await this.isPipedIn();
|
|
88
|
+
return new Promise((resolve, reject) => {
|
|
89
|
+
if (!isPiped)
|
|
90
|
+
reject();
|
|
91
|
+
else {
|
|
92
|
+
const stdin = process.stdin;
|
|
93
|
+
stdin.setEncoding('utf-8');
|
|
94
|
+
let data = '';
|
|
95
|
+
stdin.on('data', (chunk) => {
|
|
96
|
+
data += chunk;
|
|
97
|
+
});
|
|
98
|
+
stdin.on('end', () => {
|
|
99
|
+
resolve(data);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
getFlagAsArray(name) {
|
|
105
|
+
const value = this.flags[name];
|
|
106
|
+
if ((0, ts_types_1.isArray)(value)) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
else if (value) {
|
|
110
|
+
return [value];
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
return [];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
printStatus(slug, status) {
|
|
117
|
+
let message = (0, chalk_1.bold)((0, chalk_1.cyan)(slug));
|
|
118
|
+
if ((0, ts_types_1.isString)(status)) {
|
|
119
|
+
message += `: ${(0, chalk_1.red)(status)}`;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
message +=
|
|
123
|
+
os_1.EOL +
|
|
124
|
+
status
|
|
125
|
+
.map((s) => s.success ? ` ${(0, chalk_1.green)('✔')} ${(0, chalk_1.bold)(s.name)}` : ` ${(0, chalk_1.red)('✘')} ${(0, chalk_1.bold)(s.name)}: ${(0, chalk_1.red)(s.message)}`)
|
|
126
|
+
.join(os_1.EOL);
|
|
127
|
+
}
|
|
128
|
+
this.ux.log(message);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.CircleCiEnvvars = CircleCiEnvvars;
|
|
132
|
+
//# sourceMappingURL=circleCiEnvvars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle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IAAA,YAAI,EAAC,IAAI,CAAC,CAAC,CAAC;QAE/B,IAAI,IAAA,mBAAQ,EAAC,MAAM,CAAC,EAAE;YACpB,OAAO,IAAI,KAAK,IAAA,WAAG,EAAC,MAAM,CAAC,EAAE,CAAC;SAC/B;aAAM;YACL,OAAO;gBACL,QAAG;oBACH,MAAM;yBACH,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,IAAA,aAAK,EAAC,GAAG,CAAC,IAAI,IAAA,YAAI,EAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,IAAA,WAAG,EAAC,GAAG,CAAC,IAAI,IAAA,YAAI,EAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAA,WAAG,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CACvG;yBACA,IAAI,CAAC,QAAG,CAAC,CAAC;SAChB;QACD,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;CACF;AAjHD,0CAiHC"}
|
|
@@ -47,7 +47,7 @@ const signVerifyUpload = async (signingRequest) => {
|
|
|
47
47
|
const output = {
|
|
48
48
|
publicKeyContents: publicKey,
|
|
49
49
|
signatureContents,
|
|
50
|
-
packageJsonSfdxProperty: exports.getSfdxProperty(packageName, packageVersion),
|
|
50
|
+
packageJsonSfdxProperty: (0, exports.getSfdxProperty)(packageName, packageVersion),
|
|
51
51
|
fileTarPath: signingRequest.targetFileToSign,
|
|
52
52
|
packageName,
|
|
53
53
|
packageVersion,
|
|
@@ -64,14 +64,14 @@ exports.signVerifyUpload = signVerifyUpload;
|
|
|
64
64
|
const upload = async (input) => {
|
|
65
65
|
return Promise.all([
|
|
66
66
|
// signature file
|
|
67
|
-
upload_1.putObject(BUCKET, input.packageJsonSfdxProperty.signatureUrl.replace(`${exports.BASE_URL}/`, ''), input.signatureContents),
|
|
67
|
+
(0, upload_1.putObject)(BUCKET, input.packageJsonSfdxProperty.signatureUrl.replace(`${exports.BASE_URL}/`, ''), input.signatureContents),
|
|
68
68
|
// publicKey
|
|
69
|
-
upload_1.putObject(BUCKET, input.packageJsonSfdxProperty.publicKeyUrl.replace(`${exports.BASE_URL}/`, ''), input.publicKeyContents),
|
|
69
|
+
(0, upload_1.putObject)(BUCKET, input.packageJsonSfdxProperty.publicKeyUrl.replace(`${exports.BASE_URL}/`, ''), input.publicKeyContents),
|
|
70
70
|
]);
|
|
71
71
|
};
|
|
72
72
|
const getOneTimeUseKeys = () => {
|
|
73
73
|
return new Promise((resolve, reject) => {
|
|
74
|
-
crypto_1.generateKeyPair('rsa', {
|
|
74
|
+
(0, crypto_1.generateKeyPair)('rsa', {
|
|
75
75
|
modulusLength: 4096,
|
|
76
76
|
publicKeyEncoding: {
|
|
77
77
|
type: 'spki',
|
|
@@ -92,9 +92,9 @@ const getOneTimeUseKeys = () => {
|
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
const getSignature = async (privateKey, dataToSignFilePath) => {
|
|
95
|
-
const signApi = crypto_1.createSign(CRYPTO_LEVEL);
|
|
95
|
+
const signApi = (0, crypto_1.createSign)(CRYPTO_LEVEL);
|
|
96
96
|
return new Promise((resolve, reject) => {
|
|
97
|
-
const dataToSignStream = fs_1.createReadStream(dataToSignFilePath, { encoding: 'binary' });
|
|
97
|
+
const dataToSignStream = (0, fs_1.createReadStream)(dataToSignFilePath, { encoding: 'binary' });
|
|
98
98
|
dataToSignStream.pipe(signApi);
|
|
99
99
|
dataToSignStream.on('end', () => {
|
|
100
100
|
return resolve(signApi.sign(privateKey, 'base64'));
|
|
@@ -106,8 +106,8 @@ const getSignature = async (privateKey, dataToSignFilePath) => {
|
|
|
106
106
|
};
|
|
107
107
|
const verify = async (dataToSignFilePath, publicKey, signature) => {
|
|
108
108
|
return new Promise((resolve, reject) => {
|
|
109
|
-
const verifier = crypto_1.createVerify(CRYPTO_LEVEL);
|
|
110
|
-
const dataToVerifyStream = fs_1.createReadStream(dataToSignFilePath, { encoding: 'binary' });
|
|
109
|
+
const verifier = (0, crypto_1.createVerify)(CRYPTO_LEVEL);
|
|
110
|
+
const dataToVerifyStream = (0, fs_1.createReadStream)(dataToSignFilePath, { encoding: 'binary' });
|
|
111
111
|
dataToVerifyStream.pipe(verifier);
|
|
112
112
|
dataToVerifyStream.on('end', () => {
|
|
113
113
|
if (verifier.verify(publicKey, signature, 'base64')) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimplifiedSigning.js","sourceRoot":"","sources":["../../src/codeSigning/SimplifiedSigning.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH;;;;;;;;;;;;;;;GAeG;AACH,mCAAmE;AACnE,2BAAsC;AAEtC,kDAAkD;AAElD,MAAM,YAAY,GAAG,YAAY,CAAC;AAClC,MAAM,MAAM,GAAG,qBAAqB,CAAC;AACxB,QAAA,QAAQ,GAAG,kCAAkC,CAAC;AAC9C,QAAA,aAAa,GAAG,+BAA+B,CAAC;AAoCtD,MAAM,eAAe,GAAG,CAAC,WAAmB,EAAE,cAAsB,EAA2B,EAAE;IACtG,MAAM,mBAAmB,GAAG,GAAG,gBAAQ,IAAI,qBAAa,IAAI,WAAW,IAAI,cAAc,EAAE,CAAC;IAC5F,OAAO;QACL,YAAY,EAAE,GAAG,mBAAmB,MAAM;QAC1C,YAAY,EAAE,GAAG,mBAAmB,MAAM;KAC3C,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,eAAe,mBAM1B;AAEK,MAAM,gBAAgB,GAAG,KAAK,EAAE,cAA8B,EAA4B,EAAE;IACjG,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,MAAM,iBAAiB,EAAE,CAAC;IAC5D,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,cAAc,CAAC;IACvD,MAAM,iBAAiB,GAAG,MAAM,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAE1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