@salesforce/plugin-apex 2.3.20 → 3.0.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.
- package/README.md +55 -55
- package/bin/dev.cmd +1 -1
- package/bin/dev.js +8 -0
- package/bin/run.js +9 -0
- package/lib/commands/apex/get/log.d.ts +6 -6
- package/lib/commands/apex/get/log.js +45 -46
- package/lib/commands/apex/get/log.js.map +1 -1
- package/lib/commands/apex/get/test.d.ts +8 -8
- package/lib/commands/apex/get/test.js +51 -52
- package/lib/commands/apex/get/test.js.map +1 -1
- package/lib/commands/apex/list/log.d.ts +3 -3
- package/lib/commands/apex/list/log.js +19 -20
- package/lib/commands/apex/list/log.js.map +1 -1
- package/lib/commands/apex/run/test.d.ts +14 -14
- package/lib/commands/apex/run/test.js +99 -102
- package/lib/commands/apex/run/test.js.map +1 -1
- package/lib/commands/apex/run.d.ts +4 -4
- package/lib/commands/apex/run.js +30 -31
- package/lib/commands/apex/run.js.map +1 -1
- package/lib/commands/apex/tail/log.d.ts +6 -6
- package/lib/commands/apex/tail/log.js +39 -39
- package/lib/commands/apex/tail/log.js.map +1 -1
- package/lib/index.js +1 -3
- package/lib/index.js.map +1 -1
- package/lib/legacyColorization.js +9 -11
- package/lib/legacyColorization.js.map +1 -1
- package/lib/reporters/index.d.ts +2 -2
- package/lib/reporters/index.js +2 -7
- package/lib/reporters/index.js.map +1 -1
- package/lib/reporters/jsonReporter.d.ts +1 -1
- package/lib/reporters/jsonReporter.js +1 -5
- package/lib/reporters/jsonReporter.js.map +1 -1
- package/lib/reporters/runReporter.d.ts +1 -1
- package/lib/reporters/runReporter.js +11 -12
- package/lib/reporters/runReporter.js.map +1 -1
- package/lib/reporters/testReporter.d.ts +1 -1
- package/lib/reporters/testReporter.js +28 -27
- package/lib/reporters/testReporter.js.map +1 -1
- package/lib/utils.d.ts +2 -3
- package/lib/utils.js +6 -10
- package/lib/utils.js.map +1 -1
- package/oclif.lock +7667 -0
- package/oclif.manifest.json +594 -325
- package/package.json +38 -57
- package/bin/dev +0 -21
- package/bin/run +0 -5
package/package.json
CHANGED
|
@@ -1,55 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-apex",
|
|
3
3
|
"description": "Apex commands",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
|
-
"main": "lib/index.js",
|
|
8
7
|
"dependencies": {
|
|
9
|
-
"@oclif/core": "^
|
|
10
|
-
"@salesforce/apex-node": "^2.1.
|
|
11
|
-
"@salesforce/core": "^5.3.
|
|
12
|
-
"@salesforce/sf-plugins-core": "^
|
|
13
|
-
"chalk": "^
|
|
14
|
-
"
|
|
8
|
+
"@oclif/core": "^3.10.8",
|
|
9
|
+
"@salesforce/apex-node": "^2.1.1",
|
|
10
|
+
"@salesforce/core": "^5.3.19",
|
|
11
|
+
"@salesforce/sf-plugins-core": "^4.1.0",
|
|
12
|
+
"chalk": "^5.3.0",
|
|
13
|
+
"color-convert": "^2.0.1",
|
|
14
|
+
"color-name": "^2.0.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@oclif/plugin-command-snapshot": "^
|
|
18
|
-
"@salesforce/cli-plugins-testkit": "^
|
|
19
|
-
"@salesforce/dev-
|
|
20
|
-
"@salesforce/
|
|
21
|
-
"@
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"@salesforce/ts-sinon": "^1.4.17",
|
|
25
|
-
"@salesforce/ts-types": "^2.0.7",
|
|
26
|
-
"@swc/core": "1.3.30",
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
28
|
-
"@typescript-eslint/parser": "^5.62.0",
|
|
29
|
-
"chai": "^4.3.10",
|
|
30
|
-
"eslint": "^8.50.0",
|
|
31
|
-
"eslint-config-prettier": "^8.10.0",
|
|
32
|
-
"eslint-config-salesforce": "^2.0.2",
|
|
33
|
-
"eslint-config-salesforce-license": "^0.2.0",
|
|
34
|
-
"eslint-config-salesforce-typescript": "^1.1.2",
|
|
35
|
-
"eslint-plugin-header": "^3.1.1",
|
|
36
|
-
"eslint-plugin-import": "^2.28.1",
|
|
37
|
-
"eslint-plugin-jsdoc": "^43.0.5",
|
|
38
|
-
"eslint-plugin-sf-plugin": "^1.16.5",
|
|
39
|
-
"husky": "^7.0.4",
|
|
40
|
-
"mocha": "^9.1.3",
|
|
41
|
-
"nyc": "^15.1.0",
|
|
42
|
-
"oclif": "^3.17.2",
|
|
43
|
-
"prettier": "^2.8.8",
|
|
44
|
-
"pretty-quick": "^3.1.0",
|
|
17
|
+
"@oclif/plugin-command-snapshot": "^5.0.1",
|
|
18
|
+
"@salesforce/cli-plugins-testkit": "^5.0.2",
|
|
19
|
+
"@salesforce/dev-scripts": "^6.0.3",
|
|
20
|
+
"@salesforce/plugin-command-reference": "^3.0.46",
|
|
21
|
+
"@types/color-convert": "^2.0.3",
|
|
22
|
+
"eslint-plugin-sf-plugin": "^1.16.14",
|
|
23
|
+
"oclif": "^4.0.3",
|
|
45
24
|
"shx": "^0.3.4",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"typescript": "4.9.5",
|
|
49
|
-
"wireit": "^0.13.0"
|
|
25
|
+
"ts-node": "^10.9.1",
|
|
26
|
+
"typescript": "^5.2.2"
|
|
50
27
|
},
|
|
51
28
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
29
|
+
"node": ">=18.0.0"
|
|
53
30
|
},
|
|
54
31
|
"files": [
|
|
55
32
|
"yarn.lock",
|
|
@@ -57,17 +34,18 @@
|
|
|
57
34
|
"/lib",
|
|
58
35
|
"/messages",
|
|
59
36
|
"/npm-shrinkwrap.json",
|
|
60
|
-
"/oclif.manifest.json"
|
|
37
|
+
"/oclif.manifest.json",
|
|
38
|
+
"/oclif.lock"
|
|
61
39
|
],
|
|
62
40
|
"homepage": "https://github.com/salesforcecli/plugin-apex",
|
|
63
41
|
"keywords": [
|
|
42
|
+
"apex",
|
|
64
43
|
"force",
|
|
65
44
|
"salesforce",
|
|
66
|
-
"
|
|
67
|
-
"sfdx-plugin",
|
|
45
|
+
"sf",
|
|
68
46
|
"sf-plugin",
|
|
69
|
-
"
|
|
70
|
-
"
|
|
47
|
+
"sfdx",
|
|
48
|
+
"sfdx-plugin"
|
|
71
49
|
],
|
|
72
50
|
"license": "BSD-3-Clause",
|
|
73
51
|
"oclif": {
|
|
@@ -75,7 +53,7 @@
|
|
|
75
53
|
"additionalHelpFlags": [
|
|
76
54
|
"-h"
|
|
77
55
|
],
|
|
78
|
-
"bin": "
|
|
56
|
+
"bin": "sf",
|
|
79
57
|
"topics": {
|
|
80
58
|
"apex": {
|
|
81
59
|
"description": "Use the apex commands to create Apex classes, execute anonymous blocks, view your logs, run Apex tests, and view Apex test results.",
|
|
@@ -98,21 +76,22 @@
|
|
|
98
76
|
"devPlugins": [
|
|
99
77
|
"@oclif/plugin-help",
|
|
100
78
|
"@oclif/plugin-command-snapshot",
|
|
101
|
-
"@salesforce/plugin-command-reference"
|
|
102
|
-
|
|
103
|
-
|
|
79
|
+
"@salesforce/plugin-command-reference"
|
|
80
|
+
],
|
|
81
|
+
"flexibleTaxonomy": true,
|
|
82
|
+
"topicSeparator": " "
|
|
104
83
|
},
|
|
105
84
|
"repository": "salesforcecli/plugin-apex",
|
|
106
85
|
"scripts": {
|
|
107
86
|
"build": "wireit",
|
|
108
87
|
"clean": "sf-clean",
|
|
109
88
|
"clean-all": "sf-clean all",
|
|
110
|
-
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
89
|
+
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json oclif.lock",
|
|
111
90
|
"compile": "wireit",
|
|
112
91
|
"docs": "sf-docs",
|
|
113
92
|
"format": "wireit",
|
|
114
93
|
"lint": "wireit",
|
|
115
|
-
"postpack": "shx rm -f oclif.manifest.json",
|
|
94
|
+
"postpack": "shx rm -f oclif.manifest.json oclif.lock",
|
|
116
95
|
"prepack": "sf-prepack",
|
|
117
96
|
"prepare": "sf-install",
|
|
118
97
|
"test": "wireit",
|
|
@@ -201,7 +180,7 @@
|
|
|
201
180
|
"output": []
|
|
202
181
|
},
|
|
203
182
|
"test:command-reference": {
|
|
204
|
-
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
183
|
+
"command": "ts-node \"./bin/dev.js\" commandreference:generate --erroronwarnings",
|
|
205
184
|
"files": [
|
|
206
185
|
"src/**/*.ts",
|
|
207
186
|
"messages/**",
|
|
@@ -212,7 +191,7 @@
|
|
|
212
191
|
]
|
|
213
192
|
},
|
|
214
193
|
"test:deprecation-policy": {
|
|
215
|
-
"command": "\"./bin/dev\" snapshot:compare",
|
|
194
|
+
"command": "ts-node \"./bin/dev.js\" snapshot:compare",
|
|
216
195
|
"files": [
|
|
217
196
|
"src/**/*.ts"
|
|
218
197
|
],
|
|
@@ -222,7 +201,7 @@
|
|
|
222
201
|
]
|
|
223
202
|
},
|
|
224
203
|
"test:json-schema": {
|
|
225
|
-
"command": "\"./bin/dev\" schema:compare",
|
|
204
|
+
"command": "ts-node \"./bin/dev.js\" schema:compare",
|
|
226
205
|
"files": [
|
|
227
206
|
"src/**/*.ts",
|
|
228
207
|
"schemas"
|
|
@@ -230,8 +209,10 @@
|
|
|
230
209
|
"output": []
|
|
231
210
|
}
|
|
232
211
|
},
|
|
212
|
+
"exports": "./lib/index.js",
|
|
213
|
+
"type": "module",
|
|
233
214
|
"sfdx": {
|
|
234
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/
|
|
235
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/
|
|
215
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.0.1.crt",
|
|
216
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.0.1.sig"
|
|
236
217
|
}
|
|
237
218
|
}
|
package/bin/dev
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const oclif = require('@oclif/core');
|
|
4
|
-
|
|
5
|
-
const path = require('path');
|
|
6
|
-
const project = path.join(__dirname, '..', 'tsconfig.json');
|
|
7
|
-
|
|
8
|
-
// In dev mode -> use ts-node and dev plugins
|
|
9
|
-
process.env.NODE_ENV = 'development';
|
|
10
|
-
|
|
11
|
-
// Enable SWC for faster typescript compiling
|
|
12
|
-
require('ts-node').register({ project, swc: true });
|
|
13
|
-
|
|
14
|
-
// In dev mode, always show stack traces
|
|
15
|
-
const g = (global.oclif = global.oclif || {});
|
|
16
|
-
|
|
17
|
-
// In dev mode, always show stack traces
|
|
18
|
-
global.oclif.debug = true;
|
|
19
|
-
|
|
20
|
-
// Start the CLI
|
|
21
|
-
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'));
|