@oclif/plugin-command-snapshot 3.0.0 → 3.1.3
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 +34 -0
- package/README.md +1 -1
- package/lib/commands/schema/compare.js +21 -10
- package/lib/commands/schema/generate.d.ts +22 -2
- package/lib/commands/schema/generate.js +119 -32
- package/lib/commands/snapshot/compare.d.ts +19 -6
- package/lib/commands/snapshot/compare.js +63 -39
- package/lib/commands/snapshot/generate.d.ts +2 -6
- package/lib/snapshot-command.d.ts +1 -0
- package/lib/snapshot-command.js +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +12 -12
- package/schemas/snapshot-compare.json +22 -0
- package/schemas/snapshot-generate.json +29 -19
- package/yarn.lock +1632 -2227
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-command-snapshot",
|
|
3
3
|
"description": "generates and compares OCLIF plugins snapshot files",
|
|
4
|
-
"version": "3.
|
|
5
|
-
"author": "
|
|
4
|
+
"version": "3.1.3",
|
|
5
|
+
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-command-snapshot/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^
|
|
9
|
-
"chalk": "^4.1.
|
|
8
|
+
"@oclif/core": "^1.3.4",
|
|
9
|
+
"chalk": "^4.1.2",
|
|
10
10
|
"just-diff": "^3.1.1",
|
|
11
11
|
"semver": "^7.3.5",
|
|
12
|
-
"sinon": "^11.1.
|
|
13
|
-
"ts-json-schema-generator": "^0.
|
|
12
|
+
"sinon": "^11.1.2",
|
|
13
|
+
"ts-json-schema-generator": "^0.97.0",
|
|
14
14
|
"tslib": "^2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@commitlint/config-conventional": "^12.1.4",
|
|
18
|
-
"@oclif/plugin-help": "^5.1.
|
|
19
|
-
"@oclif/test": "^1.
|
|
18
|
+
"@oclif/plugin-help": "^5.1.11",
|
|
19
|
+
"@oclif/test": "^2.1.0",
|
|
20
20
|
"@types/chai": "^4",
|
|
21
21
|
"@types/mocha": "^8",
|
|
22
22
|
"@types/node": "^15",
|
|
23
|
-
"@types/semver": "^7.3.
|
|
23
|
+
"@types/semver": "^7.3.9",
|
|
24
24
|
"chai": "^4",
|
|
25
25
|
"commitlint": "^12.1.4",
|
|
26
26
|
"eslint": "^7",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"husky": "6",
|
|
31
31
|
"mocha": "^8",
|
|
32
32
|
"nyc": "^15",
|
|
33
|
-
"oclif": "^2.
|
|
33
|
+
"oclif": "^2.4.4",
|
|
34
34
|
"ts-node": "^9",
|
|
35
|
-
"typescript": "^4.
|
|
35
|
+
"typescript": "^4.5.5"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=12.0.0"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"postpack": "rm -f oclif.manifest.json",
|
|
72
72
|
"posttest": "eslint . --ext .ts --config .eslintrc",
|
|
73
73
|
"prepack": "rm -rf lib && tsc -b && oclif manifest . && oclif readme",
|
|
74
|
-
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\" --timeout
|
|
74
|
+
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\" --timeout 20000",
|
|
75
75
|
"version": "oclif readme && git add README.md"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -61,9 +61,31 @@
|
|
|
61
61
|
],
|
|
62
62
|
"additionalProperties": false
|
|
63
63
|
}
|
|
64
|
+
},
|
|
65
|
+
"alias": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"name": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"removed": {
|
|
74
|
+
"type": "boolean"
|
|
75
|
+
},
|
|
76
|
+
"added": {
|
|
77
|
+
"type": "boolean"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"name"
|
|
82
|
+
],
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
}
|
|
64
85
|
}
|
|
65
86
|
},
|
|
66
87
|
"required": [
|
|
88
|
+
"alias",
|
|
67
89
|
"flags",
|
|
68
90
|
"name",
|
|
69
91
|
"plugin"
|
|
@@ -5,28 +5,38 @@
|
|
|
5
5
|
"Snapshots": {
|
|
6
6
|
"type": "array",
|
|
7
7
|
"items": {
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
"$ref": "#/definitions/SnapshotEntry"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"SnapshotEntry": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"command": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"plugin": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"flags": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
14
23
|
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
"flags": {
|
|
17
|
-
"type": "array",
|
|
18
|
-
"items": {
|
|
19
|
-
"type": "string"
|
|
20
|
-
}
|
|
21
24
|
}
|
|
22
25
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
26
|
+
"alias": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"command",
|
|
35
|
+
"plugin",
|
|
36
|
+
"flags",
|
|
37
|
+
"alias"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": false
|
|
30
40
|
}
|
|
31
41
|
}
|
|
32
42
|
}
|