@oclif/plugin-command-snapshot 3.2.18 → 3.3.1

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.
@@ -7,7 +7,7 @@ export type SchemaComparison = Array<{
7
7
  }>;
8
8
  export default class SchemaCompare extends SnapshotCommand {
9
9
  static flags: {
10
- filepath: import("@oclif/core/lib/interfaces").OptionFlag<string>;
10
+ filepath: import("@oclif/core/lib/interfaces").OptionFlag<string, Record<string, unknown>>;
11
11
  };
12
12
  run(): Promise<SchemaComparison>;
13
13
  private readExistingSchema;
@@ -37,7 +37,7 @@ export declare class SchemaGenerator {
37
37
  }
38
38
  export default class SchemaGenerate extends SnapshotCommand {
39
39
  static flags: {
40
- filepath: import("@oclif/core/lib/interfaces").OptionFlag<string>;
40
+ filepath: import("@oclif/core/lib/interfaces").OptionFlag<string, Record<string, unknown>>;
41
41
  singlefile: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
42
42
  ignorevoid: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
43
43
  };
@@ -17,7 +17,7 @@ export type CompareResponse = {
17
17
  };
18
18
  export default class Compare extends SnapshotCommand {
19
19
  static flags: {
20
- filepath: import("@oclif/core/lib/interfaces").OptionFlag<string>;
20
+ filepath: import("@oclif/core/lib/interfaces").OptionFlag<string, Record<string, unknown>>;
21
21
  };
22
22
  /**
23
23
  * Compare a snapshot with the current commands
@@ -2,7 +2,7 @@ import { SnapshotCommand, SnapshotEntry } from '../../snapshot-command';
2
2
  export type Snapshots = SnapshotEntry[];
3
3
  export default class Generate extends SnapshotCommand {
4
4
  static flags: {
5
- filepath: import("@oclif/core/lib/interfaces").OptionFlag<string>;
5
+ filepath: import("@oclif/core/lib/interfaces").OptionFlag<string, Record<string, unknown>>;
6
6
  };
7
7
  run(): Promise<Snapshots>;
8
8
  }
@@ -1,4 +1,4 @@
1
- import { Command, Interfaces } from '@oclif/core';
1
+ import { Command } from '@oclif/core';
2
2
  export type SnapshotEntry = {
3
3
  command: string;
4
4
  plugin: string;
@@ -6,6 +6,6 @@ export type SnapshotEntry = {
6
6
  alias: string[];
7
7
  };
8
8
  export declare abstract class SnapshotCommand extends Command {
9
- get commands(): Interfaces.Command.Loadable[];
9
+ get commands(): Command.Loadable[];
10
10
  get entries(): SnapshotEntry[];
11
11
  }
@@ -1 +1,89 @@
1
- {"version":"3.2.18","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
+ {
2
+ "version": "3.3.1",
3
+ "commands": {
4
+ "schema:compare": {
5
+ "id": "schema:compare",
6
+ "strict": true,
7
+ "pluginName": "@oclif/plugin-command-snapshot",
8
+ "pluginAlias": "@oclif/plugin-command-snapshot",
9
+ "pluginType": "core",
10
+ "aliases": [],
11
+ "flags": {
12
+ "filepath": {
13
+ "name": "filepath",
14
+ "type": "option",
15
+ "description": "path of the generated snapshot file",
16
+ "multiple": false,
17
+ "default": "./schemas"
18
+ }
19
+ },
20
+ "args": {}
21
+ },
22
+ "schema:generate": {
23
+ "id": "schema:generate",
24
+ "strict": true,
25
+ "pluginName": "@oclif/plugin-command-snapshot",
26
+ "pluginAlias": "@oclif/plugin-command-snapshot",
27
+ "pluginType": "core",
28
+ "aliases": [],
29
+ "flags": {
30
+ "filepath": {
31
+ "name": "filepath",
32
+ "type": "option",
33
+ "description": "directory to save the generated schema files; can use \"{version}\" to insert the current CLI/plugin version",
34
+ "multiple": false,
35
+ "default": "./schemas"
36
+ },
37
+ "singlefile": {
38
+ "name": "singlefile",
39
+ "type": "boolean",
40
+ "description": "put generated schema into a single file",
41
+ "allowNo": false
42
+ },
43
+ "ignorevoid": {
44
+ "name": "ignorevoid",
45
+ "type": "boolean",
46
+ "description": "ignore commands that return void",
47
+ "allowNo": false
48
+ }
49
+ },
50
+ "args": {}
51
+ },
52
+ "snapshot:compare": {
53
+ "id": "snapshot:compare",
54
+ "strict": true,
55
+ "pluginName": "@oclif/plugin-command-snapshot",
56
+ "pluginAlias": "@oclif/plugin-command-snapshot",
57
+ "pluginType": "core",
58
+ "aliases": [],
59
+ "flags": {
60
+ "filepath": {
61
+ "name": "filepath",
62
+ "type": "option",
63
+ "description": "path of the generated snapshot file",
64
+ "multiple": false,
65
+ "default": "./command-snapshot.json"
66
+ }
67
+ },
68
+ "args": {}
69
+ },
70
+ "snapshot:generate": {
71
+ "id": "snapshot:generate",
72
+ "strict": true,
73
+ "pluginName": "@oclif/plugin-command-snapshot",
74
+ "pluginAlias": "@oclif/plugin-command-snapshot",
75
+ "pluginType": "core",
76
+ "aliases": [],
77
+ "flags": {
78
+ "filepath": {
79
+ "name": "filepath",
80
+ "type": "option",
81
+ "description": "path to save the generated snapshot file; can use \"{version}\" to replace the current CLI/plugin version",
82
+ "multiple": false,
83
+ "default": "./command-snapshot.json"
84
+ }
85
+ },
86
+ "args": {}
87
+ }
88
+ }
89
+ }
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.18",
4
+ "version": "3.3.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-command-snapshot/issues",
7
7
  "dependencies": {
8
- "@oclif/core": "^1.24.0",
8
+ "@oclif/core": "^2.0.3",
9
9
  "chalk": "^4.1.2",
10
10
  "just-diff": "^5.2.0",
11
11
  "lodash": "^4.17.21",
@@ -16,7 +16,7 @@
16
16
  "devDependencies": {
17
17
  "@commitlint/config-conventional": "^12.1.4",
18
18
  "@oclif/plugin-help": "^5.1.22",
19
- "@oclif/test": "^2.2.20",
19
+ "@oclif/test": "^2.3.0",
20
20
  "@types/chai": "^4.3.4",
21
21
  "@types/mocha": "^8",
22
22
  "@types/node": "^15",
@@ -29,7 +29,7 @@
29
29
  "husky": "6",
30
30
  "mocha": "^8",
31
31
  "nyc": "^15",
32
- "oclif": "^2.6.3",
32
+ "oclif": "^3.6.0",
33
33
  "sinon": "^11.1.2",
34
34
  "ts-node": "^10",
35
35
  "typescript": "^4.9.4"