@oclif/plugin-command-snapshot 3.2.10 → 3.2.12

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.
@@ -1,6 +1,6 @@
1
1
  import { Operation } from 'just-diff';
2
2
  import { SnapshotCommand } from '../../snapshot-command';
3
- export declare type SchemaComparison = Array<{
3
+ export type SchemaComparison = Array<{
4
4
  op: Operation;
5
5
  path: (string | number)[];
6
6
  value: any;
@@ -1,13 +1,13 @@
1
1
  import { Schema } from 'ts-json-schema-generator';
2
2
  import { SnapshotCommand } from '../../snapshot-command';
3
- export declare type SchemasMap = {
3
+ export type SchemasMap = {
4
4
  [key: string]: Schema;
5
5
  };
6
- export declare type Schemas = {
6
+ export type Schemas = {
7
7
  commands: SchemasMap;
8
8
  hooks: SchemasMap;
9
9
  };
10
- export declare type GenerateResponse = string[];
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
- declare type CommandChange = {
7
+ type CommandChange = {
8
8
  plugin: string;
9
9
  flags: Change[];
10
10
  alias: Change[];
11
11
  } & Change;
12
- export declare type CompareResponse = {
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 declare type Snapshots = SnapshotEntry[];
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>;
@@ -1,5 +1,5 @@
1
1
  import { Command, Interfaces } from '@oclif/core';
2
- export declare type SnapshotEntry = {
2
+ export type SnapshotEntry = {
3
3
  command: string;
4
4
  plugin: string;
5
5
  flags: string[];
@@ -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() {
@@ -1 +1 @@
1
- {"version":"3.2.10","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":[]}}}
1
+ {"version":"3.2.12","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.10",
4
+ "version": "3.2.12",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-command-snapshot/issues",
7
7
  "dependencies": {
8
- "@oclif/core": "^1.20.4",
8
+ "@oclif/core": "^1.21.0",
9
9
  "chalk": "^4.1.2",
10
10
  "just-diff": "^5.1.1",
11
11
  "lodash": "^4.17.21",
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@commitlint/config-conventional": "^12.1.4",
18
- "@oclif/plugin-help": "^5.1.17",
19
- "@oclif/test": "^2.2.8",
20
- "@types/chai": "^4.3.3",
18
+ "@oclif/plugin-help": "^5.1.19",
19
+ "@oclif/test": "^2.2.12",
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.8.4"
35
+ "typescript": "^4.9.3"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=12.0.0"
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.2.1", "@oclif/core@^1.20.0", "@oclif/core@^1.20.4", "@oclif/core@^1.6.4":
816
- version "1.20.4"
817
- resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.20.4.tgz#7378b52e1f1b502e383ffb07f95dffc9fd8588ff"
818
- integrity sha512-giug32M4YhSYNYKQwE1L57/+k5gp1+Bq3/0vKNQmzAY1tizFGhvBJc6GIRZasHjU+xtZLutQvrVrJo7chX3hxg==
815
+ "@oclif/core@^1.0.8", "@oclif/core@^1.2.1", "@oclif/core@^1.20.4", "@oclif/core@^1.21.0", "@oclif/core@^1.6.4":
816
+ version "1.21.0"
817
+ resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.21.0.tgz#d91b2f40a4f446279ab6335c619fc1716fc23ab6"
818
+ integrity sha512-B/AKYfHcNRAbb6Xz2kj0FlH9gWEi8aFS4iEr7EzguP3E2DpDk4wcf7eOMOfJYEmhuVd9sOpVWSnI2yP+FL/3Sg==
819
819
  dependencies:
820
820
  "@oclif/linewrap" "^1.0.0"
821
821
  "@oclif/screen" "^3.0.3"
@@ -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.17":
855
- version "5.1.17"
856
- resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-5.1.17.tgz#7ecef29b947efe57aefc5a044ec79d8dbe9e024a"
857
- integrity sha512-yc35xn4lSkHTnS6ajolYAi9dVMWXsRRPPPNEfYF0Nq1bkKNnh3DEC1MS/iTWNEYC5JCVd4YAQ2/Ky2wqA2Ujiw==
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.0"
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.8":
890
- version "2.2.8"
891
- resolved "https://registry.yarnpkg.com/@oclif/test/-/test-2.2.8.tgz#c4114922428f90f94e3775b596876a88830a91c2"
892
- integrity sha512-VPVR1XLiTYqKToXlU7TPRnp5WMZvzfjyyPDH2sqKVCuEj9ZdEsK8m4woTK1n9aX1HI1Yv0tyyvg2a8HbUJOwhw==
889
+ "@oclif/test@^2.2.12":
890
+ version "2.2.12"
891
+ resolved "https://registry.yarnpkg.com/@oclif/test/-/test-2.2.12.tgz#bb97a8c678b349e0e323013be67d68f619e6aaf2"
892
+ integrity sha512-6s1XwvBTXHdVjVZY/qDgMl74NVvoy8MQoknqT/YfR9K3P/6fPW4xeZqemtvrvU4heM5kzSShta5sk0I28MXHMg==
893
893
  dependencies:
894
- "@oclif/core" "^1.20.0"
895
- fancy-test "^2.0.5"
894
+ "@oclif/core" "^1.20.4"
895
+ fancy-test "^2.0.7"
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.0"
1058
- resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.0.tgz#23509ebc1fa32f1b4d50d6a66c4032d5b8eaabdc"
1059
- integrity sha512-/ceqdqeRraGolFTcfoXNiqjyQhZzbINDngeoAq9GoHa8PPK1yNzTaxWjA6BFWp5Ua9JpXEMSS4s5i9tS0hOJtw==
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.6"
1669
- resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.6.tgz#ffe4ba2d9fa9d6680cc0b370adae709ec9011e9c"
1670
- integrity sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==
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 "^3.0.1"
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@^3.0.1:
2102
- version "3.0.1"
2103
- resolved "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz#dfc9404400ad1c8fe023e7da1df1c147c4b444df"
2104
- integrity sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==
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.5:
2566
- version "2.0.6"
2567
- resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-2.0.6.tgz#e8ac4e652214dd0424a44e8e8a684d70897cdef4"
2568
- integrity sha512-vzH5MOYK+vAQW/jnRnBiyASemIOAmSYuh2j12w4Ktzh+u2d69OENvI9GLDvNLMxOIqCtwz8ndLMH+5cJHfBmSQ==
2560
+ fancy-test@^2.0.7:
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.8.4, typescript@~4.8.3:
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==