@oclif/plugin-command-snapshot 3.2.3 → 3.2.5
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.js +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
- package/yarn.lock +14 -14
|
@@ -31,10 +31,6 @@ class SchemaCompare extends snapshot_command_1.SnapshotCommand {
|
|
|
31
31
|
this.debug('existingSchema', existingSchema);
|
|
32
32
|
this.debug('latestSchema', latestSchema);
|
|
33
33
|
const changes = (0, just_diff_1.diff)(latestSchema, existingSchema);
|
|
34
|
-
if (changes.length === 0) {
|
|
35
|
-
this.log('No changes have been detected.');
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
34
|
const humanReadableChanges = {};
|
|
39
35
|
for (const change of changes) {
|
|
40
36
|
const lastPathElement = change.path[change.path.length - 1];
|
|
@@ -68,6 +64,10 @@ class SchemaCompare extends snapshot_command_1.SnapshotCommand {
|
|
|
68
64
|
break;
|
|
69
65
|
}
|
|
70
66
|
}
|
|
67
|
+
if (Object.keys(humanReadableChanges).length === 0) {
|
|
68
|
+
this.log('No changes have been detected.');
|
|
69
|
+
return [];
|
|
70
|
+
}
|
|
71
71
|
this.log();
|
|
72
72
|
this.log((0, chalk_1.bold)((0, chalk_1.red)('Found the following schema changes:')));
|
|
73
73
|
for (const [commandId, changes] of Object.entries(humanReadableChanges)) {
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"3.2.
|
|
1
|
+
{"version":"3.2.5","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,11 +1,11 @@
|
|
|
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.5",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-command-snapshot/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^1.
|
|
8
|
+
"@oclif/core": "^1.18.0",
|
|
9
9
|
"chalk": "^4.1.2",
|
|
10
10
|
"just-diff": "^5.1.1",
|
|
11
11
|
"lodash": "^4.17.21",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@commitlint/config-conventional": "^12.1.4",
|
|
18
|
-
"@oclif/plugin-help": "^5.1.
|
|
19
|
-
"@oclif/test": "^2.2.
|
|
18
|
+
"@oclif/plugin-help": "^5.1.15",
|
|
19
|
+
"@oclif/test": "^2.2.3",
|
|
20
20
|
"@types/chai": "^4.3.3",
|
|
21
21
|
"@types/mocha": "^8",
|
|
22
22
|
"@types/node": "^15",
|
package/yarn.lock
CHANGED
|
@@ -812,10 +812,10 @@
|
|
|
812
812
|
supports-color "^8.1.1"
|
|
813
813
|
tslib "^2"
|
|
814
814
|
|
|
815
|
-
"@oclif/core@^1.0.8", "@oclif/core@^1.16.
|
|
816
|
-
version "1.
|
|
817
|
-
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.
|
|
818
|
-
integrity sha512-
|
|
815
|
+
"@oclif/core@^1.0.8", "@oclif/core@^1.16.5", "@oclif/core@^1.18.0", "@oclif/core@^1.2.1", "@oclif/core@^1.6.4":
|
|
816
|
+
version "1.18.0"
|
|
817
|
+
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.18.0.tgz#93c790c663c6b24a609d1ea44362f5438cb19d73"
|
|
818
|
+
integrity sha512-12SWbbDbMrhBmEuN9cOQkbN+sFUKlSTw+NlCPVVIg3uEhnmkXgx2wZJtCN4c+IBMJjC27L9lDneeoe70yQuiVg==
|
|
819
819
|
dependencies:
|
|
820
820
|
"@oclif/linewrap" "^1.0.0"
|
|
821
821
|
"@oclif/screen" "^3.0.2"
|
|
@@ -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.15":
|
|
855
|
+
version "5.1.15"
|
|
856
|
+
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-5.1.15.tgz#c9466d3efc694cfd0e83eaca565b8799b477549c"
|
|
857
|
+
integrity sha512-RfLo7vOTga/02w7jTAHFOi3m4X34Xbfyl20spg4Jq7NM6WduDaIj2auXrHW3w8OkEi4Zl/g0AvB4PIyLr+NYYw==
|
|
858
858
|
dependencies:
|
|
859
|
-
"@oclif/core" "^1.16.
|
|
859
|
+
"@oclif/core" "^1.16.5"
|
|
860
860
|
|
|
861
861
|
"@oclif/plugin-not-found@^2.3.1":
|
|
862
862
|
version "2.3.1"
|
|
@@ -886,12 +886,12 @@
|
|
|
886
886
|
resolved "https://registry.yarnpkg.com/@oclif/screen/-/screen-3.0.2.tgz#969054308fe98d130c02844a45cc792199b75670"
|
|
887
887
|
integrity sha512-S/SF/XYJeevwIgHFmVDAFRUvM3m+OjhvCAYMk78ZJQCYCQ5wS7j+LTt1ZEv2jpEEGg2tx/F6TYYWxddNAYHrFQ==
|
|
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.3":
|
|
890
|
+
version "2.2.3"
|
|
891
|
+
resolved "https://registry.yarnpkg.com/@oclif/test/-/test-2.2.3.tgz#9b5b3915639452826f9bc6326bf668c8748052c4"
|
|
892
|
+
integrity sha512-a46bZ72YYWSwEvfEnjSAZplBpwJi6v7pQfKAJbDNFTgrnD0cdDrTwH6P/y9FPGbC3SdcULOZYt/qIvFMpjYBLA==
|
|
893
893
|
dependencies:
|
|
894
|
-
"@oclif/core" "^1.16.
|
|
894
|
+
"@oclif/core" "^1.16.5"
|
|
895
895
|
fancy-test "^2.0.4"
|
|
896
896
|
|
|
897
897
|
"@octokit/auth-token@^2.4.4":
|