sfdx-jayree 4.3.5 → 4.3.9
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 +29 -0
- package/README.md +21 -21
- package/lib/src/commands/jayree/packagedescription/set.js +1 -1
- package/lib/src/commands/jayree/packagedescription/set.js.map +1 -1
- package/lib/src/hooks/changelog.d.ts +1 -1
- package/lib/src/hooks/changelog.js +65 -30
- package/lib/src/hooks/changelog.js.map +1 -1
- package/lib/src/utils/puppeteer/statetasks.js +3 -3
- package/lib/src/utils/renderer.d.ts +38 -43
- package/lib/src/utils/renderer.js +57 -30
- package/lib/src/utils/renderer.js.map +1 -1
- package/lib/src/utils/xml.js +12 -15
- package/lib/src/utils/xml.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +22 -20
- package/yarn.lock +593 -531
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## [4.3.9](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.8...v4.3.9) (2022-01-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **sourcefix:** fix source:fix xml decl generation ([8fa1c49](https://github.com/jayree/sfdx-jayree-plugin/commit/8fa1c4901cae3f7f6e627f3178aee35bc8b0168c))
|
|
7
|
+
|
|
8
|
+
## [4.3.8](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.7...v4.3.8) (2022-01-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update dependencies ([ec487c2](https://github.com/jayree/sfdx-jayree-plugin/commit/ec487c23e5a68aca67131f1776f1a9c0f6324be6))
|
|
14
|
+
|
|
15
|
+
## [4.3.7](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.6...v4.3.7) (2022-01-08)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **configurestate:** fix org:configure:state error ([a3efaa9](https://github.com/jayree/sfdx-jayree-plugin/commit/a3efaa96e55b832071978dd77b05cbaae85008e2))
|
|
21
|
+
* update dependencies ([91ab401](https://github.com/jayree/sfdx-jayree-plugin/commit/91ab401405a86d6e6c553f1342108d95a7acdad9))
|
|
22
|
+
|
|
23
|
+
## [4.3.6](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.5...v4.3.6) (2022-01-06)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* downgrade cli-ux ([48eaf68](https://github.com/jayree/sfdx-jayree-plugin/commit/48eaf686d9e8ad96552c46c2b65cc01a6383a468))
|
|
29
|
+
|
|
1
30
|
## [4.3.5](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.4...v4.3.5) (2021-12-23)
|
|
2
31
|
|
|
3
32
|
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ $ sfdx plugins:install sfdx-jayree
|
|
|
26
26
|
$ sfdx jayree:COMMAND
|
|
27
27
|
running command...
|
|
28
28
|
$ sfdx plugins
|
|
29
|
-
sfdx-jayree 4.3.
|
|
29
|
+
sfdx-jayree 4.3.9
|
|
30
30
|
$ sfdx help jayree:COMMAND
|
|
31
31
|
USAGE
|
|
32
32
|
$ sfdx jayree:COMMAND
|
|
@@ -108,7 +108,7 @@ EXAMPLES
|
|
|
108
108
|
❯ ChangeSet1
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
_See code: [src/commands/jayree/automation/changeset/deploy.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
111
|
+
_See code: [src/commands/jayree/automation/changeset/deploy.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/automation/changeset/deploy.ts)_
|
|
112
112
|
|
|
113
113
|
### `sfdx jayree:automation:changeset:list`
|
|
114
114
|
|
|
@@ -132,7 +132,7 @@ OPTIONS
|
|
|
132
132
|
this command invocation
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
_See code: [src/commands/jayree/automation/changeset/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
135
|
+
_See code: [src/commands/jayree/automation/changeset/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/automation/changeset/list.ts)_
|
|
136
136
|
|
|
137
137
|
### `sfdx jayree:automation:ltngsync:status`
|
|
138
138
|
|
|
@@ -173,7 +173,7 @@ EXAMPLE
|
|
|
173
173
|
userContacts/userEvents: Exchange to Salesforce sync status... Initial sync completed/Initial sync completed
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
_See code: [src/commands/jayree/automation/ltngsync/status.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
176
|
+
_See code: [src/commands/jayree/automation/ltngsync/status.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/automation/ltngsync/status.ts)_
|
|
177
177
|
|
|
178
178
|
### `sfdx jayree:flowtestcoverage`
|
|
179
179
|
|
|
@@ -203,7 +203,7 @@ EXAMPLE
|
|
|
203
203
|
...
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
_See code: [src/commands/jayree/flowtestcoverage.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
206
|
+
_See code: [src/commands/jayree/flowtestcoverage.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/flowtestcoverage.ts)_
|
|
207
207
|
|
|
208
208
|
### `sfdx jayree:manifest:cleanup`
|
|
209
209
|
|
|
@@ -233,7 +233,7 @@ EXAMPLE
|
|
|
233
233
|
$ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.
|
|
236
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.9/commands/jayree/manifest/cleanup.ts)_
|
|
237
237
|
|
|
238
238
|
### `sfdx jayree:manifest:generate`
|
|
239
239
|
|
|
@@ -284,7 +284,7 @@ EXAMPLES
|
|
|
284
284
|
<Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
|
|
285
285
|
```
|
|
286
286
|
|
|
287
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.
|
|
287
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.9/commands/jayree/manifest/generate.ts)_
|
|
288
288
|
|
|
289
289
|
### `sfdx jayree:manifest:git:diff`
|
|
290
290
|
|
|
@@ -334,7 +334,7 @@ EXAMPLES
|
|
|
334
334
|
uses the diff of what is unique in branchB (REF2)
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.
|
|
337
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.1.9/commands/jayree/manifest/git/diff.ts)_
|
|
338
338
|
|
|
339
339
|
### `sfdx jayree:org:configure`
|
|
340
340
|
|
|
@@ -373,7 +373,7 @@ EXAMPLE
|
|
|
373
373
|
$ sfdx jayree:org:configure --concurrent --tasks="Asset Settings","Activity Settings"
|
|
374
374
|
```
|
|
375
375
|
|
|
376
|
-
_See code: [src/commands/jayree/org/configure/index.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
376
|
+
_See code: [src/commands/jayree/org/configure/index.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/org/configure/index.ts)_
|
|
377
377
|
|
|
378
378
|
### `sfdx jayree:org:configure:country`
|
|
379
379
|
|
|
@@ -400,7 +400,7 @@ ALIASES
|
|
|
400
400
|
$ sfdx jayree:automation:country:update
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
-
_See code: [src/commands/jayree/org/configure/country.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
403
|
+
_See code: [src/commands/jayree/org/configure/country.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/org/configure/country.ts)_
|
|
404
404
|
|
|
405
405
|
### `sfdx jayree:org:configure:state`
|
|
406
406
|
|
|
@@ -439,7 +439,7 @@ ALIASES
|
|
|
439
439
|
$ sfdx jayree:automation:state:import
|
|
440
440
|
```
|
|
441
441
|
|
|
442
|
-
_See code: [src/commands/jayree/org/configure/state.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
442
|
+
_See code: [src/commands/jayree/org/configure/state.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/org/configure/state.ts)_
|
|
443
443
|
|
|
444
444
|
### `sfdx jayree:org:settings`
|
|
445
445
|
|
|
@@ -477,7 +477,7 @@ EXAMPLE
|
|
|
477
477
|
$ sfdx jayree:org:settings -u MyTestOrg1 -w
|
|
478
478
|
```
|
|
479
479
|
|
|
480
|
-
_See code: [src/commands/jayree/org/settings.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
480
|
+
_See code: [src/commands/jayree/org/settings.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/org/settings.ts)_
|
|
481
481
|
|
|
482
482
|
### `sfdx jayree:org:streaming`
|
|
483
483
|
|
|
@@ -507,7 +507,7 @@ EXAMPLE
|
|
|
507
507
|
...
|
|
508
508
|
```
|
|
509
509
|
|
|
510
|
-
_See code: [src/commands/jayree/org/streaming.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
510
|
+
_See code: [src/commands/jayree/org/streaming.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/org/streaming.ts)_
|
|
511
511
|
|
|
512
512
|
### `sfdx jayree:packagedescription:create`
|
|
513
513
|
|
|
@@ -530,7 +530,7 @@ EXAMPLE
|
|
|
530
530
|
$ sfdx jayree:packagedescription:create --file FILENAME --description 'DESCRIPTION'
|
|
531
531
|
```
|
|
532
532
|
|
|
533
|
-
_See code: [src/commands/jayree/packagedescription/create.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
533
|
+
_See code: [src/commands/jayree/packagedescription/create.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/packagedescription/create.ts)_
|
|
534
534
|
|
|
535
535
|
### `sfdx jayree:packagedescription:get`
|
|
536
536
|
|
|
@@ -553,7 +553,7 @@ EXAMPLE
|
|
|
553
553
|
Description of Package FILENAME
|
|
554
554
|
```
|
|
555
555
|
|
|
556
|
-
_See code: [src/commands/jayree/packagedescription/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
556
|
+
_See code: [src/commands/jayree/packagedescription/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/packagedescription/get.ts)_
|
|
557
557
|
|
|
558
558
|
### `sfdx jayree:packagedescription:remove`
|
|
559
559
|
|
|
@@ -575,7 +575,7 @@ EXAMPLE
|
|
|
575
575
|
$ sfdx jayree:packagedescription:remove --file FILENAME
|
|
576
576
|
```
|
|
577
577
|
|
|
578
|
-
_See code: [src/commands/jayree/packagedescription/remove.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
578
|
+
_See code: [src/commands/jayree/packagedescription/remove.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/packagedescription/remove.ts)_
|
|
579
579
|
|
|
580
580
|
### `sfdx jayree:packagedescription:set`
|
|
581
581
|
|
|
@@ -598,7 +598,7 @@ EXAMPLE
|
|
|
598
598
|
$ sfdx jayree:packagedescription:set --file FILENAME --description 'NEW DESCRIPTION'
|
|
599
599
|
```
|
|
600
600
|
|
|
601
|
-
_See code: [src/commands/jayree/packagedescription/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
601
|
+
_See code: [src/commands/jayree/packagedescription/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/packagedescription/set.ts)_
|
|
602
602
|
|
|
603
603
|
### `sfdx jayree:source:fix`
|
|
604
604
|
|
|
@@ -630,7 +630,7 @@ DESCRIPTION
|
|
|
630
630
|
(examples will follow)
|
|
631
631
|
```
|
|
632
632
|
|
|
633
|
-
_See code: [src/commands/jayree/source/fix.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
633
|
+
_See code: [src/commands/jayree/source/fix.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/source/fix.ts)_
|
|
634
634
|
|
|
635
635
|
### `sfdx jayree:source:tracking:list`
|
|
636
636
|
|
|
@@ -662,7 +662,7 @@ EXAMPLE
|
|
|
662
662
|
$ sfdx jayree:source:tracking:list -u me@my.org -r 101
|
|
663
663
|
```
|
|
664
664
|
|
|
665
|
-
_See code: [src/commands/jayree/source/tracking/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
665
|
+
_See code: [src/commands/jayree/source/tracking/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/source/tracking/list.ts)_
|
|
666
666
|
|
|
667
667
|
### `sfdx jayree:source:tracking:store:get`
|
|
668
668
|
|
|
@@ -690,7 +690,7 @@ EXAMPLE
|
|
|
690
690
|
$ sfdx jayree:source:tracking:store:get -u me@my.org
|
|
691
691
|
```
|
|
692
692
|
|
|
693
|
-
_See code: [src/commands/jayree/source/tracking/store/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
693
|
+
_See code: [src/commands/jayree/source/tracking/store/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/source/tracking/store/get.ts)_
|
|
694
694
|
|
|
695
695
|
### `sfdx jayree:source:tracking:store:set`
|
|
696
696
|
|
|
@@ -722,7 +722,7 @@ EXAMPLE
|
|
|
722
722
|
$ sfdx jayree:source:tracking:store:set -u MyTestOrg1 -r 101
|
|
723
723
|
```
|
|
724
724
|
|
|
725
|
-
_See code: [src/commands/jayree/source/tracking/store/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.
|
|
725
|
+
_See code: [src/commands/jayree/source/tracking/store/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.3.9/src/commands/jayree/source/tracking/store/set.ts)_
|
|
726
726
|
<!-- commandsstop -->
|
|
727
727
|
|
|
728
728
|
## Hooks
|
|
@@ -36,7 +36,7 @@ class SetPackageDescription extends command_1.SfdxCommand {
|
|
|
36
36
|
}
|
|
37
37
|
xml.Package['description'] = text;
|
|
38
38
|
this.ux.log(action + ' description: ' + text);
|
|
39
|
-
newZip.addFile(fileName, Buffer.from((0, xml_1.js2Manifest)(xml)), '', 0o644);
|
|
39
|
+
newZip.addFile(fileName, Buffer.from((0, xml_1.js2Manifest)({ Package: xml.Package })), '', 0o644);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
newZip.addFile(fileName, fileContent, '', 0o644);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/packagedescription/set.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,iDAAyD;AACzD,2CAA4C;AAE5C,mEAA6B;AAC7B,4CAAgE;AAEhE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,uBAAuB,CAAC,CAAC;AAE/E,MAAqB,qBAAsB,SAAQ,qBAAW;IA+B5D,4DAA4D;IACrD,KAAK,CAAC,GAAG;QACd,MAAM,SAAS,GAAG,IAAI,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B,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;AAEe,sCAAgB,GAAG,KAAK,CAAC;AACzB,4CAAsB,GAAG,KAAK,CAAC;AAC/B,qCAAe,GAAG,KAAK,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Hook } from '@oclif/config';
|
|
2
|
-
export declare const changelog: Hook<
|
|
2
|
+
export declare const changelog: Hook<'changelog'>;
|
|
@@ -8,46 +8,81 @@ const tslib_1 = require("tslib");
|
|
|
8
8
|
* Licensed under the BSD 3-Clause license.
|
|
9
9
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
10
10
|
*/
|
|
11
|
+
/* istanbul ignore file */
|
|
11
12
|
const path_1 = require("path");
|
|
12
13
|
const fs = (0, tslib_1.__importStar)(require("fs-extra"));
|
|
14
|
+
const debug_1 = require("debug");
|
|
15
|
+
const TerminalRenderer = require("marked-terminal");
|
|
13
16
|
const marked_1 = require("marked");
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const debug =
|
|
17
|
-
//
|
|
18
|
-
const
|
|
17
|
+
const semver = (0, tslib_1.__importStar)(require("semver"));
|
|
18
|
+
const cli_ux_1 = require("cli-ux");
|
|
19
|
+
const debug = (0, debug_1.debug)('jayree:hooks');
|
|
20
|
+
// original from https://github.com/salesforcecli/plugin-info/blob/main/src/shared/parseReleaseNotes.ts
|
|
21
|
+
const parseReleaseNotes = (notes, version) => {
|
|
22
|
+
let found = false;
|
|
23
|
+
let closestVersion;
|
|
24
|
+
let versions;
|
|
25
|
+
const parsed = marked_1.marked.lexer(notes);
|
|
26
|
+
let tokens;
|
|
27
|
+
const findVersion = (desiredVersion) => {
|
|
28
|
+
versions = [];
|
|
29
|
+
tokens = parsed.filter((token) => {
|
|
30
|
+
// TODO: Could make header depth (2) a setting in oclif.info.releasenotes
|
|
31
|
+
if (token.type === 'heading' && token.depth <= 2) {
|
|
32
|
+
const coercedVersion = semver.coerce(token.text).version;
|
|
33
|
+
// We will use this to find the closest patch if passed version is not found
|
|
34
|
+
versions.push(coercedVersion);
|
|
35
|
+
if (coercedVersion === desiredVersion) {
|
|
36
|
+
found = true;
|
|
37
|
+
return token;
|
|
38
|
+
}
|
|
39
|
+
found = false;
|
|
40
|
+
}
|
|
41
|
+
else if (found === true) {
|
|
42
|
+
return token;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
findVersion(version);
|
|
47
|
+
if (!tokens.length) {
|
|
48
|
+
// If version was not found, try again with the closest patch version
|
|
49
|
+
const semverRange = `${semver.major(version)}.${semver.minor(version)}.x`;
|
|
50
|
+
closestVersion = semver.maxSatisfying(versions, semverRange);
|
|
51
|
+
findVersion(closestVersion);
|
|
52
|
+
}
|
|
53
|
+
if (closestVersion !== undefined) {
|
|
54
|
+
const warning = marked_1.marked.lexer(`# ATTENTION: Version ${version} was not found. Showing notes for closest patch version ${closestVersion}.`)[0];
|
|
55
|
+
tokens.unshift(warning);
|
|
56
|
+
}
|
|
57
|
+
return tokens;
|
|
58
|
+
};
|
|
59
|
+
const changelog = function () {
|
|
19
60
|
process.once('exit', () => {
|
|
20
|
-
marked_1.marked.setOptions({ renderer: new marked_terminal_1.default() });
|
|
21
61
|
try {
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const cacheDir = (0, path_1.join)(this.config.cacheDir,
|
|
62
|
+
const pluginRootPath = (0, path_1.join)(__dirname, '..', '..', '..');
|
|
63
|
+
const { name, version } = fs.readJsonSync((0, path_1.join)(pluginRootPath, 'package.json'));
|
|
64
|
+
const changelogFile = fs.readFileSync((0, path_1.join)(pluginRootPath, 'CHANGELOG.md'), 'utf8');
|
|
65
|
+
const cacheDir = (0, path_1.join)(this.config.cacheDir, name);
|
|
26
66
|
fs.ensureDirSync(cacheDir);
|
|
27
67
|
const versionFile = (0, path_1.join)(cacheDir, 'version');
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
changelogText = changelogFile.substring(0, changelogFile.indexOf('# [', 2));
|
|
38
|
-
}
|
|
39
|
-
finally {
|
|
40
|
-
changelogText = changelogText.substring(0, changelogText.lastIndexOf('\n'));
|
|
41
|
-
if (changelogText.length > 0) {
|
|
42
|
-
// eslint-disable-next-line no-console
|
|
43
|
-
console.log((0, marked_1.marked)(`# CHANGELOG (${packageJson.name})`));
|
|
44
|
-
// eslint-disable-next-line no-console
|
|
45
|
-
console.log((0, marked_1.marked)(changelogText));
|
|
68
|
+
const latestVersion = fs.readJSONSync(versionFile);
|
|
69
|
+
debug({ latestVersion: latestVersion.version, version });
|
|
70
|
+
if (latestVersion.version !== version) {
|
|
71
|
+
const tokens = parseReleaseNotes(changelogFile, version);
|
|
72
|
+
if (!tokens.length) {
|
|
73
|
+
debug(`${name} - didn't find version '${version}'.`);
|
|
46
74
|
}
|
|
47
75
|
else {
|
|
48
|
-
|
|
76
|
+
marked_1.marked.setOptions({
|
|
77
|
+
renderer: new TerminalRenderer({ emoji: false }),
|
|
78
|
+
});
|
|
79
|
+
tokens.unshift(marked_1.marked.lexer(`# Changelog for '${name}':`)[0]);
|
|
80
|
+
cli_ux_1.cli.log(marked_1.marked.parser(tokens));
|
|
81
|
+
fs.writeJsonSync(versionFile, { version });
|
|
49
82
|
}
|
|
50
|
-
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
debug(`${name} - no update`);
|
|
51
86
|
}
|
|
52
87
|
}
|
|
53
88
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../../src/hooks/changelog.ts"],"names":[],"mappings":";;;;AAAA;;;;;GAKG;AACH,+BAA4B;AAC5B,0DAA+B;AAE/B,mCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"changelog.js","sourceRoot":"","s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C,EAAE,aAAa,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;YACzD,IAAI,aAAa,CAAC,OAAO,KAAK,OAAO,EAAE;gBACrC,MAAM,MAAM,GAAG,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;gBACzD,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;oBAClB,KAAK,CAAC,GAAG,IAAI,2BAA2B,OAAO,IAAI,CAAC,CAAC;iBACtD;qBAAM;oBACL,eAAM,CAAC,UAAU,CAAC;wBAChB,QAAQ,EAAE,IAAI,gBAAgB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;qBACjD,CAAC,CAAC;oBACH,MAAM,CAAC,OAAO,CAAC,eAAM,CAAC,KAAK,CAAC,oBAAoB,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBAC9D,YAAG,CAAC,GAAG,CAAC,eAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;oBAC/B,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;iBAC5C;aACF;iBAAM;gBACL,KAAK,CAAC,GAAG,IAAI,cAAc,CAAC,CAAC;aAC9B;SACF;QAAC,OAAO,KAAK,EAAE;YACd,KAAK,CAAC,KAAK,CAAC,CAAC;SACd;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAjCW,QAAA,SAAS,aAiCpB"}
|
|
@@ -89,9 +89,9 @@ class PuppeteerStateTasks {
|
|
|
89
89
|
await page.goto('https://www.iso.org/obp/ui/#search', {
|
|
90
90
|
waitUntil: 'networkidle0',
|
|
91
91
|
});
|
|
92
|
-
await page.waitForSelector('#gwt-uid-
|
|
93
|
-
await page.click('#gwt-uid-
|
|
94
|
-
await page.evaluate(() => document.querySelector('#gwt-uid-
|
|
92
|
+
await page.waitForSelector('#gwt-uid-23');
|
|
93
|
+
await page.click('#gwt-uid-23');
|
|
94
|
+
await page.evaluate(() => document.querySelector('#gwt-uid-23')['checked']);
|
|
95
95
|
await page.click('.go');
|
|
96
96
|
await page.waitForSelector('.v-grid-tablewrapper');
|
|
97
97
|
await page.select('.v-select-select', '8');
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ListrRenderer } from 'listr2';
|
|
2
|
-
import { Task } from 'listr2/dist/lib/task';
|
|
1
|
+
import { ListrRenderer, ListrTaskObject } from 'listr2';
|
|
3
2
|
/** Default updating renderer for Listr2 */
|
|
4
3
|
export declare class MyDefaultRenderer implements ListrRenderer {
|
|
5
|
-
tasks: Array<
|
|
4
|
+
tasks: Array<ListrTaskObject<any, typeof MyDefaultRenderer>>;
|
|
6
5
|
options: typeof MyDefaultRenderer['rendererOptions'];
|
|
7
|
-
renderHook$?:
|
|
6
|
+
renderHook$?: ListrTaskObject<any, any>['renderHook$'];
|
|
8
7
|
/** designates whether this renderer can output to a non-tty console */
|
|
9
8
|
static nonTTY: boolean;
|
|
10
9
|
/** renderer options for the defauult renderer */
|
|
@@ -16,40 +15,39 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
16
15
|
*/
|
|
17
16
|
indentation?: number;
|
|
18
17
|
/**
|
|
19
|
-
* clear output when task finishes
|
|
18
|
+
* clear all the output generated by the renderer when the task finishes its execution
|
|
20
19
|
*
|
|
21
20
|
* @default false
|
|
22
|
-
* @global global option that can not be temperated with
|
|
21
|
+
* @global global option that can not be temperated with subtasks
|
|
23
22
|
*/
|
|
24
23
|
clearOutput?: boolean;
|
|
25
24
|
/**
|
|
26
|
-
* show the subtasks of the current task
|
|
25
|
+
* show the subtasks of the current task
|
|
27
26
|
*
|
|
28
27
|
* @default true
|
|
29
|
-
* @global global option that can not be temperated with from subtasks
|
|
30
28
|
*/
|
|
31
29
|
showSubtasks?: boolean;
|
|
32
30
|
/**
|
|
33
|
-
* collapse subtasks after
|
|
31
|
+
* collapse subtasks after current task completes its execution
|
|
34
32
|
*
|
|
35
33
|
* @default true
|
|
36
34
|
*/
|
|
37
35
|
collapse?: boolean;
|
|
38
36
|
/**
|
|
39
|
-
*
|
|
37
|
+
* show skip messages or show the original title of the task, this will also disable collapseSkips mode
|
|
38
|
+
*
|
|
39
|
+
* You can disable showing the skip messages, even though you passed in a message by settings this option,
|
|
40
|
+
* if you want to keep the original task title intact.
|
|
40
41
|
*
|
|
41
42
|
* @default true
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
showSkipMessage?: boolean;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* You can disable showing the skip messages, eventhough you passed in a message by settings this option,
|
|
48
|
-
* if you want to keep the original task title intacted.
|
|
46
|
+
* collapse skip messages into a single message and overwrite the task title
|
|
49
47
|
*
|
|
50
48
|
* @default true
|
|
51
49
|
*/
|
|
52
|
-
|
|
50
|
+
collapseSkips?: boolean;
|
|
53
51
|
/**
|
|
54
52
|
* suffix skip messages with [SKIPPED] when in collapseSkips mode
|
|
55
53
|
*
|
|
@@ -57,19 +55,19 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
57
55
|
*/
|
|
58
56
|
suffixSkips?: boolean;
|
|
59
57
|
/**
|
|
60
|
-
*
|
|
58
|
+
* shows the thrown error message or show the original title of the task, this will also disable collapseErrors mode
|
|
59
|
+
* You can disable showing the error messages, even though you passed in a message by settings this option,
|
|
60
|
+
* if you want to keep the original task title intact.
|
|
61
61
|
*
|
|
62
62
|
* @default true
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
showErrorMessage?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* You can disable showing the error messages, eventhough you passed in a message by settings this option,
|
|
68
|
-
* if you want to keep the original task title intacted.
|
|
66
|
+
* collapse error messages into a single message and overwrite the task title
|
|
69
67
|
*
|
|
70
68
|
* @default true
|
|
71
69
|
*/
|
|
72
|
-
|
|
70
|
+
collapseErrors?: boolean;
|
|
73
71
|
/**
|
|
74
72
|
* suffix retry messages with [RETRY-${COUNT}] when retry is enabled for a task
|
|
75
73
|
*
|
|
@@ -77,22 +75,20 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
77
75
|
*/
|
|
78
76
|
suffixRetries?: boolean;
|
|
79
77
|
/**
|
|
80
|
-
* only update
|
|
78
|
+
* only update through triggers from renderhook
|
|
81
79
|
*
|
|
82
|
-
* useful for tests and stuff. this will disable showing spinner and only update the screen if
|
|
80
|
+
* useful for tests and stuff. this will disable showing spinner and only update the screen if something else has
|
|
83
81
|
* happened in the task worthy to show
|
|
84
82
|
*
|
|
85
83
|
* @default false
|
|
86
|
-
* @global global option that can not be temperated with
|
|
84
|
+
* @global global option that can not be temperated with subtasks
|
|
87
85
|
*/
|
|
88
86
|
lazy?: boolean;
|
|
89
87
|
/**
|
|
90
88
|
* show duration for all tasks
|
|
91
89
|
*
|
|
92
|
-
* overwrites per task renderer options
|
|
93
|
-
*
|
|
94
90
|
* @default false
|
|
95
|
-
* @global global option that can not be temperated with
|
|
91
|
+
* @global global option that can not be temperated with subtasks
|
|
96
92
|
*/
|
|
97
93
|
showTimer?: boolean;
|
|
98
94
|
/**
|
|
@@ -103,10 +99,9 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
103
99
|
removeEmptyLines?: boolean;
|
|
104
100
|
/**
|
|
105
101
|
* formats data output depending on your requirements.
|
|
106
|
-
* log-update mostly breaks if there is no wrap, so there is many options to choose your preference
|
|
107
102
|
*
|
|
108
103
|
* @default 'truncate'
|
|
109
|
-
* @global global option that can not be temperated with
|
|
104
|
+
* @global global option that can not be temperated with subtasks
|
|
110
105
|
*/
|
|
111
106
|
formatOutput?: 'truncate' | 'wrap';
|
|
112
107
|
/**
|
|
@@ -125,14 +120,14 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
125
120
|
/** per task options for the default renderer */
|
|
126
121
|
static rendererTaskOptions: {
|
|
127
122
|
/**
|
|
128
|
-
* write task output to bottom bar instead of the gap under the task title itself.
|
|
129
|
-
* useful for stream of data.
|
|
123
|
+
* write task output to the bottom bar instead of the gap under the task title itself.
|
|
124
|
+
* useful for a stream of data.
|
|
130
125
|
*
|
|
131
126
|
* @default false
|
|
132
127
|
*
|
|
133
|
-
* `true` only keep 1 line of latest data outputted by the task.
|
|
134
|
-
* `false` only keep 1 line of latest data outputted by the task.
|
|
135
|
-
* `number` will keep designated data of latest data outputted by the task.
|
|
128
|
+
* `true` only keep 1 line of the latest data outputted by the task.
|
|
129
|
+
* `false` only keep 1 line of the latest data outputted by the task.
|
|
130
|
+
* `number` will keep designated data of the latest data outputted by the task.
|
|
136
131
|
*/
|
|
137
132
|
bottomBar?: boolean | number;
|
|
138
133
|
/**
|
|
@@ -140,7 +135,7 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
140
135
|
*
|
|
141
136
|
* @default false
|
|
142
137
|
*
|
|
143
|
-
* works both for bottom bar and the default behavior
|
|
138
|
+
* works both for the bottom bar and the default behavior
|
|
144
139
|
*/
|
|
145
140
|
persistentOutput?: boolean;
|
|
146
141
|
/**
|
|
@@ -156,13 +151,13 @@ export declare class MyDefaultRenderer implements ListrRenderer {
|
|
|
156
151
|
private taskTime;
|
|
157
152
|
private currentTasks;
|
|
158
153
|
private hiddenTasks;
|
|
159
|
-
constructor(tasks: Array<
|
|
160
|
-
getTaskOptions(task:
|
|
161
|
-
isBottomBar(task:
|
|
162
|
-
hasPersistentOutput(task:
|
|
163
|
-
hasTimer(task:
|
|
164
|
-
getSelfOrParentOption<T extends keyof typeof MyDefaultRenderer['rendererOptions']>(task:
|
|
165
|
-
getTaskTime(task:
|
|
154
|
+
constructor(tasks: Array<ListrTaskObject<any, typeof MyDefaultRenderer>>, options: typeof MyDefaultRenderer['rendererOptions'], renderHook$?: ListrTaskObject<any, any>['renderHook$']);
|
|
155
|
+
getTaskOptions(task: ListrTaskObject<any, typeof MyDefaultRenderer>): typeof MyDefaultRenderer['rendererTaskOptions'];
|
|
156
|
+
isBottomBar(task: ListrTaskObject<any, typeof MyDefaultRenderer>): boolean;
|
|
157
|
+
hasPersistentOutput(task: ListrTaskObject<any, typeof MyDefaultRenderer>): boolean;
|
|
158
|
+
hasTimer(task: ListrTaskObject<any, typeof MyDefaultRenderer>): boolean;
|
|
159
|
+
getSelfOrParentOption<T extends keyof typeof MyDefaultRenderer['rendererOptions']>(task: ListrTaskObject<any, typeof MyDefaultRenderer>, key: T): typeof MyDefaultRenderer['rendererOptions'][T];
|
|
160
|
+
getTaskTime(task: ListrTaskObject<any, typeof MyDefaultRenderer>): string;
|
|
166
161
|
createRender(options?: {
|
|
167
162
|
tasks?: boolean;
|
|
168
163
|
bottomBar?: boolean;
|