@salesforce/plugin-apex 3.5.6 → 3.6.0
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 +6 -6
- package/lib/commands/apex/list/log.js +16 -13
- package/lib/commands/apex/list/log.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ FLAG DESCRIPTIONS
|
|
|
148
148
|
directory.
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
-
_See code: [src/commands/apex/get/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
151
|
+
_See code: [src/commands/apex/get/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.6.0/src/commands/apex/get/log.ts)_
|
|
152
152
|
|
|
153
153
|
## `sf apex get test`
|
|
154
154
|
|
|
@@ -208,7 +208,7 @@ EXAMPLES
|
|
|
208
208
|
me@myorg'
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
_See code: [src/commands/apex/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
211
|
+
_See code: [src/commands/apex/get/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.6.0/src/commands/apex/get/test.ts)_
|
|
212
212
|
|
|
213
213
|
## `sf apex list log`
|
|
214
214
|
|
|
@@ -248,7 +248,7 @@ EXAMPLES
|
|
|
248
248
|
$ sf apex list log --target-org me@my.org
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
-
_See code: [src/commands/apex/list/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
251
|
+
_See code: [src/commands/apex/list/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.6.0/src/commands/apex/list/log.ts)_
|
|
252
252
|
|
|
253
253
|
## `sf apex run`
|
|
254
254
|
|
|
@@ -295,7 +295,7 @@ EXAMPLES
|
|
|
295
295
|
$ sf apex run
|
|
296
296
|
```
|
|
297
297
|
|
|
298
|
-
_See code: [src/commands/apex/run.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
298
|
+
_See code: [src/commands/apex/run.ts](https://github.com/salesforcecli/plugin-apex/blob/3.6.0/src/commands/apex/run.ts)_
|
|
299
299
|
|
|
300
300
|
## `sf apex run test`
|
|
301
301
|
|
|
@@ -435,7 +435,7 @@ FLAG DESCRIPTIONS
|
|
|
435
435
|
--tests Test1 --tests Test2
|
|
436
436
|
```
|
|
437
437
|
|
|
438
|
-
_See code: [src/commands/apex/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
438
|
+
_See code: [src/commands/apex/run/test.ts](https://github.com/salesforcecli/plugin-apex/blob/3.6.0/src/commands/apex/run/test.ts)_
|
|
439
439
|
|
|
440
440
|
## `sf apex tail log`
|
|
441
441
|
|
|
@@ -478,6 +478,6 @@ EXAMPLES
|
|
|
478
478
|
$ sf apex tail log --color --skip-trace-flag
|
|
479
479
|
```
|
|
480
480
|
|
|
481
|
-
_See code: [src/commands/apex/tail/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.
|
|
481
|
+
_See code: [src/commands/apex/tail/log.ts](https://github.com/salesforcecli/plugin-apex/blob/3.6.0/src/commands/apex/tail/log.ts)_
|
|
482
482
|
|
|
483
483
|
<!-- commandsstop -->
|
|
@@ -30,7 +30,22 @@ export default class Log extends SfCommand {
|
|
|
30
30
|
}
|
|
31
31
|
if (!flags.json) {
|
|
32
32
|
// while not required to prevent table output, save a few iterations if only printing json
|
|
33
|
-
this.table(
|
|
33
|
+
this.table({
|
|
34
|
+
data: logRecords.map(formatForTable),
|
|
35
|
+
columns: [
|
|
36
|
+
'Application',
|
|
37
|
+
{ key: 'DurationMilliseconds', name: 'Duration (ms)' },
|
|
38
|
+
'Id',
|
|
39
|
+
'Location',
|
|
40
|
+
{ key: 'LogLength', name: 'Size (B)' },
|
|
41
|
+
{ key: 'User', name: 'Log User' },
|
|
42
|
+
'Operation',
|
|
43
|
+
'Request',
|
|
44
|
+
{ key: 'StartTime', name: 'Start Time' },
|
|
45
|
+
'Status',
|
|
46
|
+
],
|
|
47
|
+
overflow: 'wrap',
|
|
48
|
+
});
|
|
34
49
|
}
|
|
35
50
|
return logRecords;
|
|
36
51
|
}
|
|
@@ -45,16 +60,4 @@ const formatTime = (time) => {
|
|
|
45
60
|
const msIndex = time.indexOf('.');
|
|
46
61
|
return msIndex !== -1 ? time.substring(0, msIndex) + time.substring(msIndex + 4) : time;
|
|
47
62
|
};
|
|
48
|
-
const tableHeaders = {
|
|
49
|
-
Application: { header: 'Application' },
|
|
50
|
-
DurationMilliseconds: { header: 'Duration (ms)' },
|
|
51
|
-
Id: { header: 'Id' },
|
|
52
|
-
Location: { header: 'Location' },
|
|
53
|
-
LogLength: { header: 'Size (B)' },
|
|
54
|
-
User: { header: 'Log User' },
|
|
55
|
-
Operation: { header: 'Operation' },
|
|
56
|
-
Request: { header: 'Request' },
|
|
57
|
-
StartTime: { header: 'Start Time' },
|
|
58
|
-
Status: { header: 'Status' },
|
|
59
|
-
};
|
|
60
63
|
//# sourceMappingURL=log.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../src/commands/apex/list/log.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAa,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,SAAS,EACT,+BAA+B,EAC/B,iCAAiC,EACjC,QAAQ,GACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;AAK1E,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,SAAwB;IAChD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,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,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1F,CAAC,CAAC"}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-apex",
|
|
3
3
|
"description": "Apex commands",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.6.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@salesforce/apex-node": "^8.1.15",
|
|
9
9
|
"@salesforce/core": "^8.6.4",
|
|
10
10
|
"@salesforce/kit": "^3.2.2",
|
|
11
|
-
"@salesforce/sf-plugins-core": "^
|
|
11
|
+
"@salesforce/sf-plugins-core": "^12",
|
|
12
12
|
"ansis": "^3.3.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@oclif/core": "^4.0.
|
|
15
|
+
"@oclif/core": "^4.0.31",
|
|
16
16
|
"@oclif/plugin-command-snapshot": "^5.2.20",
|
|
17
|
-
"@salesforce/cli-plugins-testkit": "^5.3.
|
|
17
|
+
"@salesforce/cli-plugins-testkit": "^5.3.36",
|
|
18
18
|
"@salesforce/dev-scripts": "^10.2.10",
|
|
19
|
-
"@salesforce/plugin-command-reference": "^3.1.
|
|
20
|
-
"eslint-plugin-sf-plugin": "^1.20.
|
|
19
|
+
"@salesforce/plugin-command-reference": "^3.1.32",
|
|
20
|
+
"eslint-plugin-sf-plugin": "^1.20.11",
|
|
21
21
|
"oclif": "^4.15.12",
|
|
22
22
|
"ts-node": "^10.9.2",
|
|
23
23
|
"typescript": "^5.6.3"
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"exports": "./lib/index.js",
|
|
218
218
|
"type": "module",
|
|
219
219
|
"sfdx": {
|
|
220
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.
|
|
221
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.
|
|
220
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.6.0.crt",
|
|
221
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/3.6.0.sig"
|
|
222
222
|
}
|
|
223
223
|
}
|