@oclif/plugin-command-snapshot 3.2.10 → 3.2.11
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/lib/commands/schema/compare.d.ts +1 -1
- package/lib/commands/schema/generate.d.ts +3 -3
- package/lib/commands/snapshot/compare.d.ts +2 -2
- package/lib/commands/snapshot/generate.d.ts +1 -1
- package/lib/snapshot-command.d.ts +1 -1
- package/lib/snapshot-command.js +3 -1
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
- package/yarn.lock +34 -34
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Schema } from 'ts-json-schema-generator';
|
|
2
2
|
import { SnapshotCommand } from '../../snapshot-command';
|
|
3
|
-
export
|
|
3
|
+
export type SchemasMap = {
|
|
4
4
|
[key: string]: Schema;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type Schemas = {
|
|
7
7
|
commands: SchemasMap;
|
|
8
8
|
hooks: SchemasMap;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type GenerateResponse = string[];
|
|
11
11
|
export declare function getAllFiles(dirPath: string, ext: string, allFiles?: string[]): string[];
|
|
12
12
|
export declare class SchemaGenerator {
|
|
13
13
|
private base;
|
|
@@ -4,12 +4,12 @@ interface Change {
|
|
|
4
4
|
removed?: boolean;
|
|
5
5
|
added?: boolean;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
type CommandChange = {
|
|
8
8
|
plugin: string;
|
|
9
9
|
flags: Change[];
|
|
10
10
|
alias: Change[];
|
|
11
11
|
} & Change;
|
|
12
|
-
export
|
|
12
|
+
export type CompareResponse = {
|
|
13
13
|
addedCommands?: string[];
|
|
14
14
|
removedCommands?: string[];
|
|
15
15
|
removedFlags?: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SnapshotCommand, SnapshotEntry } from '../../snapshot-command';
|
|
2
|
-
export
|
|
2
|
+
export type Snapshots = SnapshotEntry[];
|
|
3
3
|
export default class Generate extends SnapshotCommand {
|
|
4
4
|
static flags: {
|
|
5
5
|
filepath: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
package/lib/snapshot-command.js
CHANGED
|
@@ -9,7 +9,9 @@ class SnapshotCommand extends core_1.Command {
|
|
|
9
9
|
const devPlugins = (_a = this.config.pjson.oclif.devPlugins) !== null && _a !== void 0 ? _a : [];
|
|
10
10
|
const commands = this.config.commands
|
|
11
11
|
// Ignore dev plugins
|
|
12
|
-
.filter(command => { var _a; return !devPlugins.includes((_a = command.pluginName) !== null && _a !== void 0 ? _a : ''); })
|
|
12
|
+
.filter(command => { var _a; return !devPlugins.includes((_a = command.pluginName) !== null && _a !== void 0 ? _a : ''); })
|
|
13
|
+
// remove aliases that reference themselves
|
|
14
|
+
.filter(command => !command.aliases.includes(command.id));
|
|
13
15
|
return _.sortBy(commands, 'id');
|
|
14
16
|
}
|
|
15
17
|
get entries() {
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"3.2.
|
|
1
|
+
{"version":"3.2.11","commands":{"schema:compare":{"id":"schema:compare","strict":true,"pluginName":"@oclif/plugin-command-snapshot","pluginAlias":"@oclif/plugin-command-snapshot","pluginType":"core","aliases":[],"flags":{"filepath":{"name":"filepath","type":"option","description":"path of the generated snapshot file","multiple":false,"default":"./schemas"}},"args":[]},"schema:generate":{"id":"schema:generate","strict":true,"pluginName":"@oclif/plugin-command-snapshot","pluginAlias":"@oclif/plugin-command-snapshot","pluginType":"core","aliases":[],"flags":{"filepath":{"name":"filepath","type":"option","description":"directory to save the generated schema files; can use \"{version}\" to insert the current CLI/plugin version","multiple":false,"default":"./schemas"},"singlefile":{"name":"singlefile","type":"boolean","description":"put generated schema into a single file","allowNo":false},"ignorevoid":{"name":"ignorevoid","type":"boolean","description":"ignore commands that return void","allowNo":false}},"args":[]},"snapshot:compare":{"id":"snapshot:compare","strict":true,"pluginName":"@oclif/plugin-command-snapshot","pluginAlias":"@oclif/plugin-command-snapshot","pluginType":"core","aliases":[],"flags":{"filepath":{"name":"filepath","type":"option","description":"path of the generated snapshot file","multiple":false,"default":"./command-snapshot.json"}},"args":[]},"snapshot:generate":{"id":"snapshot:generate","strict":true,"pluginName":"@oclif/plugin-command-snapshot","pluginAlias":"@oclif/plugin-command-snapshot","pluginType":"core","aliases":[],"flags":{"filepath":{"name":"filepath","type":"option","description":"path to save the generated snapshot file; can use \"{version}\" to replace the current CLI/plugin version","multiple":false,"default":"./command-snapshot.json"}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-command-snapshot",
|
|
3
3
|
"description": "generates and compares OCLIF plugins snapshot files",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.11",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-command-snapshot/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@commitlint/config-conventional": "^12.1.4",
|
|
18
|
-
"@oclif/plugin-help": "^5.1.
|
|
19
|
-
"@oclif/test": "^2.2.
|
|
20
|
-
"@types/chai": "^4.3.
|
|
18
|
+
"@oclif/plugin-help": "^5.1.19",
|
|
19
|
+
"@oclif/test": "^2.2.10",
|
|
20
|
+
"@types/chai": "^4.3.4",
|
|
21
21
|
"@types/mocha": "^8",
|
|
22
22
|
"@types/node": "^15",
|
|
23
23
|
"@types/semver": "^7.3.13",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"oclif": "^2.6.3",
|
|
33
33
|
"sinon": "^11.1.2",
|
|
34
34
|
"ts-node": "^10",
|
|
35
|
-
"typescript": "^4.
|
|
35
|
+
"typescript": "^4.9.3"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=12.0.0"
|
package/yarn.lock
CHANGED
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
supports-color "^8.1.1"
|
|
813
813
|
tslib "^2"
|
|
814
814
|
|
|
815
|
-
"@oclif/core@^1.0.8", "@oclif/core@^1.2.1", "@oclif/core@^1.20.
|
|
815
|
+
"@oclif/core@^1.0.8", "@oclif/core@^1.2.1", "@oclif/core@^1.20.3", "@oclif/core@^1.20.4", "@oclif/core@^1.6.4":
|
|
816
816
|
version "1.20.4"
|
|
817
817
|
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.20.4.tgz#7378b52e1f1b502e383ffb07f95dffc9fd8588ff"
|
|
818
818
|
integrity sha512-giug32M4YhSYNYKQwE1L57/+k5gp1+Bq3/0vKNQmzAY1tizFGhvBJc6GIRZasHjU+xtZLutQvrVrJo7chX3hxg==
|
|
@@ -851,12 +851,12 @@
|
|
|
851
851
|
resolved "https://registry.npmjs.org/@oclif/linewrap/-/linewrap-1.0.0.tgz#aedcb64b479d4db7be24196384897b5000901d91"
|
|
852
852
|
integrity sha512-Ups2dShK52xXa8w6iBWLgcjPJWjais6KPJQq3gQ/88AY6BXoTX+MIGFPrWQO1KLMiQfoTpcLnUwloN4brrVUHw==
|
|
853
853
|
|
|
854
|
-
"@oclif/plugin-help@^5.1.11", "@oclif/plugin-help@^5.1.
|
|
855
|
-
version "5.1.
|
|
856
|
-
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-5.1.
|
|
857
|
-
integrity sha512-
|
|
854
|
+
"@oclif/plugin-help@^5.1.11", "@oclif/plugin-help@^5.1.19":
|
|
855
|
+
version "5.1.19"
|
|
856
|
+
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-5.1.19.tgz#43051772fefafe9bfe8823e2298103feb351b9c7"
|
|
857
|
+
integrity sha512-eQVRCFJOwRj8Tbqz8Lzd9GN38egwLCg+ohJ0xfg12CoXml03WqkfcFiAWkVwSWmLVrZUlUVrxfXKKkmpUaXZHg==
|
|
858
858
|
dependencies:
|
|
859
|
-
"@oclif/core" "^1.20.
|
|
859
|
+
"@oclif/core" "^1.20.4"
|
|
860
860
|
|
|
861
861
|
"@oclif/plugin-not-found@^2.3.1":
|
|
862
862
|
version "2.3.1"
|
|
@@ -886,13 +886,13 @@
|
|
|
886
886
|
resolved "https://registry.yarnpkg.com/@oclif/screen/-/screen-3.0.3.tgz#e679ad10535e31d333f809f7a71335cc9aef1e55"
|
|
887
887
|
integrity sha512-KX8gMYA9ujBPOd1HFsV9e0iEx7Uoj8AG/3YsW4TtWQTg4lJvr82qNm7o/cFQfYRIt+jw7Ew/4oL4A22zOT+IRA==
|
|
888
888
|
|
|
889
|
-
"@oclif/test@^2.2.
|
|
890
|
-
version "2.2.
|
|
891
|
-
resolved "https://registry.yarnpkg.com/@oclif/test/-/test-2.2.
|
|
892
|
-
integrity sha512-
|
|
889
|
+
"@oclif/test@^2.2.10":
|
|
890
|
+
version "2.2.10"
|
|
891
|
+
resolved "https://registry.yarnpkg.com/@oclif/test/-/test-2.2.10.tgz#51b873df300bb7a4d2f24a30e3395cea7db95507"
|
|
892
|
+
integrity sha512-tz6tH79F0Kw1kWv/8BgTov+WtIeFDdq1PNUkW43U0Rh4HOA1SafPbXCpzhM9A6O7YXS+tq8ayuZdkyOXXJY6Ww==
|
|
893
893
|
dependencies:
|
|
894
|
-
"@oclif/core" "^1.20.
|
|
895
|
-
fancy-test "^2.0.
|
|
894
|
+
"@oclif/core" "^1.20.3"
|
|
895
|
+
fancy-test "^2.0.6"
|
|
896
896
|
|
|
897
897
|
"@octokit/auth-token@^2.4.4":
|
|
898
898
|
version "2.5.0"
|
|
@@ -1053,15 +1053,10 @@
|
|
|
1053
1053
|
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.3.tgz#472eaab5f15c1ffdd7f8628bd4c4f753995ec79e"
|
|
1054
1054
|
integrity sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==
|
|
1055
1055
|
|
|
1056
|
-
"@types/chai@*":
|
|
1057
|
-
version "4.3.
|
|
1058
|
-
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.
|
|
1059
|
-
integrity sha512
|
|
1060
|
-
|
|
1061
|
-
"@types/chai@^4.3.3":
|
|
1062
|
-
version "4.3.3"
|
|
1063
|
-
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.3.tgz#3c90752792660c4b562ad73b3fbd68bf3bc7ae07"
|
|
1064
|
-
integrity sha512-hC7OMnszpxhZPduX+m+nrx+uFoLkWOMiR4oa/AZF3MuSETYTZmFfJAHqZEM8MVlvfG7BEUcgvtwoCTxBp6hm3g==
|
|
1056
|
+
"@types/chai@*", "@types/chai@^4.3.4":
|
|
1057
|
+
version "4.3.4"
|
|
1058
|
+
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.4.tgz#e913e8175db8307d78b4e8fa690408ba6b65dee4"
|
|
1059
|
+
integrity sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw==
|
|
1065
1060
|
|
|
1066
1061
|
"@types/expect@^1.20.4":
|
|
1067
1062
|
version "1.20.4"
|
|
@@ -1665,13 +1660,13 @@ cardinal@^2.1.1:
|
|
|
1665
1660
|
redeyed "~2.1.0"
|
|
1666
1661
|
|
|
1667
1662
|
chai@^4:
|
|
1668
|
-
version "4.3.
|
|
1669
|
-
resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.
|
|
1670
|
-
integrity sha512-
|
|
1663
|
+
version "4.3.7"
|
|
1664
|
+
resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.7.tgz#ec63f6df01829088e8bf55fca839bcd464a8ec51"
|
|
1665
|
+
integrity sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==
|
|
1671
1666
|
dependencies:
|
|
1672
1667
|
assertion-error "^1.1.0"
|
|
1673
1668
|
check-error "^1.0.2"
|
|
1674
|
-
deep-eql "^
|
|
1669
|
+
deep-eql "^4.1.2"
|
|
1675
1670
|
get-func-name "^2.0.0"
|
|
1676
1671
|
loupe "^2.3.1"
|
|
1677
1672
|
pathval "^1.1.1"
|
|
@@ -2098,10 +2093,10 @@ decamelize@^4.0.0:
|
|
|
2098
2093
|
resolved "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837"
|
|
2099
2094
|
integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==
|
|
2100
2095
|
|
|
2101
|
-
deep-eql@^
|
|
2102
|
-
version "
|
|
2103
|
-
resolved "https://registry.
|
|
2104
|
-
integrity sha512
|
|
2096
|
+
deep-eql@^4.1.2:
|
|
2097
|
+
version "4.1.2"
|
|
2098
|
+
resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.2.tgz#270ceb902f87724077e6f6449aed81463f42fc1c"
|
|
2099
|
+
integrity sha512-gT18+YW4CcW/DBNTwAmqTtkJh7f9qqScu2qFVlx7kCoeY9tlBu9cUcr7+I+Z/noG8INehS3xQgLpTtd/QUTn4w==
|
|
2105
2100
|
dependencies:
|
|
2106
2101
|
type-detect "^4.0.0"
|
|
2107
2102
|
|
|
@@ -2562,10 +2557,10 @@ external-editor@^3.0.3:
|
|
|
2562
2557
|
iconv-lite "^0.4.24"
|
|
2563
2558
|
tmp "^0.0.33"
|
|
2564
2559
|
|
|
2565
|
-
fancy-test@^2.0.
|
|
2566
|
-
version "2.0.
|
|
2567
|
-
resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-2.0.
|
|
2568
|
-
integrity sha512-
|
|
2560
|
+
fancy-test@^2.0.6:
|
|
2561
|
+
version "2.0.7"
|
|
2562
|
+
resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-2.0.7.tgz#a5e8e23113384c5550914da4f429d10822622521"
|
|
2563
|
+
integrity sha512-E9qiHMi/Wf3y0PLwoRbgr8SRTcvQY+6gx9d/qaVNT6N5AQ79iZr08ftY2Ki5KRC5LS02GoVD/CYT4t/KwwC/Pw==
|
|
2569
2564
|
dependencies:
|
|
2570
2565
|
"@types/chai" "*"
|
|
2571
2566
|
"@types/lodash" "*"
|
|
@@ -5630,7 +5625,12 @@ typedarray-to-buffer@^3.1.5:
|
|
|
5630
5625
|
dependencies:
|
|
5631
5626
|
is-typedarray "^1.0.0"
|
|
5632
5627
|
|
|
5633
|
-
typescript@^4.
|
|
5628
|
+
typescript@^4.9.3:
|
|
5629
|
+
version "4.9.3"
|
|
5630
|
+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db"
|
|
5631
|
+
integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==
|
|
5632
|
+
|
|
5633
|
+
typescript@~4.8.3:
|
|
5634
5634
|
version "4.8.4"
|
|
5635
5635
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
|
|
5636
5636
|
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
|