sfdx-browserforce-plugin 4.4.1 → 4.4.2
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,13 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { Browserforce } from './browserforce.js';
|
|
3
3
|
export declare abstract class BrowserforceCommand<T> extends SfCommand<T> {
|
|
4
|
+
static baseFlags: {
|
|
5
|
+
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
+
definitionfile: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
planfile: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
statefile: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
4
11
|
protected bf: Browserforce;
|
|
5
12
|
protected settings: any[];
|
|
6
13
|
init(): Promise<void>;
|
|
@@ -4,31 +4,31 @@ import * as path from 'path';
|
|
|
4
4
|
import { Browserforce } from './browserforce.js';
|
|
5
5
|
import { ConfigParser } from './config-parser.js';
|
|
6
6
|
import * as DRIVERS from './plugins/index.js';
|
|
7
|
-
const baseFlags = {
|
|
8
|
-
'target-org': requiredOrgFlagWithDeprecations,
|
|
9
|
-
definitionfile: Flags.string({
|
|
10
|
-
char: 'f',
|
|
11
|
-
description: 'path to a browserforce state file'
|
|
12
|
-
}),
|
|
13
|
-
planfile: Flags.string({
|
|
14
|
-
char: 'p',
|
|
15
|
-
name: 'plan',
|
|
16
|
-
description: 'path to a browserforce plan file'
|
|
17
|
-
}),
|
|
18
|
-
statefile: Flags.string({
|
|
19
|
-
char: 's',
|
|
20
|
-
name: 'state',
|
|
21
|
-
description: 'path to a browserforce definition file\nThe schema is similar to the scratch org definition file.\nSee https://github.com/amtrack/sfdx-browserforce-plugin#supported-org-preferences for supported values.'
|
|
22
|
-
})
|
|
23
|
-
};
|
|
24
7
|
export class BrowserforceCommand extends SfCommand {
|
|
8
|
+
static baseFlags = {
|
|
9
|
+
...SfCommand.baseFlags,
|
|
10
|
+
'target-org': requiredOrgFlagWithDeprecations,
|
|
11
|
+
definitionfile: Flags.string({
|
|
12
|
+
char: 'f',
|
|
13
|
+
description: 'path to a browserforce state file'
|
|
14
|
+
}),
|
|
15
|
+
planfile: Flags.string({
|
|
16
|
+
char: 'p',
|
|
17
|
+
name: 'plan',
|
|
18
|
+
description: 'path to a browserforce plan file'
|
|
19
|
+
}),
|
|
20
|
+
statefile: Flags.string({
|
|
21
|
+
char: 's',
|
|
22
|
+
name: 'state',
|
|
23
|
+
description: 'path to a browserforce definition file\nThe schema is similar to the scratch org definition file.\nSee https://github.com/amtrack/sfdx-browserforce-plugin#supported-org-preferences for supported values.'
|
|
24
|
+
})
|
|
25
|
+
};
|
|
25
26
|
bf;
|
|
26
27
|
settings;
|
|
27
28
|
async init() {
|
|
28
29
|
await super.init();
|
|
29
30
|
const { flags } = await this.parse({
|
|
30
|
-
|
|
31
|
-
baseFlags
|
|
31
|
+
baseFlags: BrowserforceCommand.baseFlags
|
|
32
32
|
});
|
|
33
33
|
let definition;
|
|
34
34
|
if (flags.definitionfile) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserforce-command.js","sourceRoot":"","sources":["../src/browserforce-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,mB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
|
@@ -22,15 +22,55 @@
|
|
|
22
22
|
"hasDynamicHelp": false,
|
|
23
23
|
"multiple": false,
|
|
24
24
|
"type": "option"
|
|
25
|
+
},
|
|
26
|
+
"target-org": {
|
|
27
|
+
"aliases": [
|
|
28
|
+
"targetusername",
|
|
29
|
+
"u"
|
|
30
|
+
],
|
|
31
|
+
"char": "o",
|
|
32
|
+
"deprecateAliases": true,
|
|
33
|
+
"name": "target-org",
|
|
34
|
+
"noCacheDefault": true,
|
|
35
|
+
"required": true,
|
|
36
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
37
|
+
"hasDynamicHelp": true,
|
|
38
|
+
"multiple": false,
|
|
39
|
+
"type": "option"
|
|
40
|
+
},
|
|
41
|
+
"definitionfile": {
|
|
42
|
+
"char": "f",
|
|
43
|
+
"description": "path to a browserforce state file",
|
|
44
|
+
"name": "definitionfile",
|
|
45
|
+
"hasDynamicHelp": false,
|
|
46
|
+
"multiple": false,
|
|
47
|
+
"type": "option"
|
|
48
|
+
},
|
|
49
|
+
"planfile": {
|
|
50
|
+
"char": "p",
|
|
51
|
+
"description": "path to a browserforce plan file",
|
|
52
|
+
"name": "planfile",
|
|
53
|
+
"hasDynamicHelp": false,
|
|
54
|
+
"multiple": false,
|
|
55
|
+
"type": "option"
|
|
56
|
+
},
|
|
57
|
+
"statefile": {
|
|
58
|
+
"char": "s",
|
|
59
|
+
"description": "path to a browserforce definition file\nThe schema is similar to the scratch org definition file.\nSee https://github.com/amtrack/sfdx-browserforce-plugin#supported-org-preferences for supported values.",
|
|
60
|
+
"name": "statefile",
|
|
61
|
+
"hasDynamicHelp": false,
|
|
62
|
+
"multiple": false,
|
|
63
|
+
"type": "option"
|
|
25
64
|
}
|
|
26
65
|
},
|
|
27
|
-
"hasDynamicHelp":
|
|
66
|
+
"hasDynamicHelp": true,
|
|
28
67
|
"hiddenAliases": [],
|
|
29
68
|
"id": "browserforce:apply",
|
|
30
69
|
"pluginAlias": "sfdx-browserforce-plugin",
|
|
31
70
|
"pluginName": "sfdx-browserforce-plugin",
|
|
32
71
|
"pluginType": "core",
|
|
33
72
|
"strict": true,
|
|
73
|
+
"enableJsonFlag": true,
|
|
34
74
|
"isESM": true,
|
|
35
75
|
"relativePath": [
|
|
36
76
|
"lib",
|
|
@@ -61,15 +101,55 @@
|
|
|
61
101
|
"hasDynamicHelp": false,
|
|
62
102
|
"multiple": false,
|
|
63
103
|
"type": "option"
|
|
104
|
+
},
|
|
105
|
+
"target-org": {
|
|
106
|
+
"aliases": [
|
|
107
|
+
"targetusername",
|
|
108
|
+
"u"
|
|
109
|
+
],
|
|
110
|
+
"char": "o",
|
|
111
|
+
"deprecateAliases": true,
|
|
112
|
+
"name": "target-org",
|
|
113
|
+
"noCacheDefault": true,
|
|
114
|
+
"required": true,
|
|
115
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
116
|
+
"hasDynamicHelp": true,
|
|
117
|
+
"multiple": false,
|
|
118
|
+
"type": "option"
|
|
119
|
+
},
|
|
120
|
+
"definitionfile": {
|
|
121
|
+
"char": "f",
|
|
122
|
+
"description": "path to a browserforce state file",
|
|
123
|
+
"name": "definitionfile",
|
|
124
|
+
"hasDynamicHelp": false,
|
|
125
|
+
"multiple": false,
|
|
126
|
+
"type": "option"
|
|
127
|
+
},
|
|
128
|
+
"planfile": {
|
|
129
|
+
"char": "p",
|
|
130
|
+
"description": "path to a browserforce plan file",
|
|
131
|
+
"name": "planfile",
|
|
132
|
+
"hasDynamicHelp": false,
|
|
133
|
+
"multiple": false,
|
|
134
|
+
"type": "option"
|
|
135
|
+
},
|
|
136
|
+
"statefile": {
|
|
137
|
+
"char": "s",
|
|
138
|
+
"description": "path to a browserforce definition file\nThe schema is similar to the scratch org definition file.\nSee https://github.com/amtrack/sfdx-browserforce-plugin#supported-org-preferences for supported values.",
|
|
139
|
+
"name": "statefile",
|
|
140
|
+
"hasDynamicHelp": false,
|
|
141
|
+
"multiple": false,
|
|
142
|
+
"type": "option"
|
|
64
143
|
}
|
|
65
144
|
},
|
|
66
|
-
"hasDynamicHelp":
|
|
145
|
+
"hasDynamicHelp": true,
|
|
67
146
|
"hiddenAliases": [],
|
|
68
147
|
"id": "browserforce:plan",
|
|
69
148
|
"pluginAlias": "sfdx-browserforce-plugin",
|
|
70
149
|
"pluginName": "sfdx-browserforce-plugin",
|
|
71
150
|
"pluginType": "core",
|
|
72
151
|
"strict": true,
|
|
152
|
+
"enableJsonFlag": true,
|
|
73
153
|
"isESM": true,
|
|
74
154
|
"relativePath": [
|
|
75
155
|
"lib",
|
|
@@ -79,5 +159,5 @@
|
|
|
79
159
|
]
|
|
80
160
|
}
|
|
81
161
|
},
|
|
82
|
-
"version": "4.4.
|
|
162
|
+
"version": "4.4.2"
|
|
83
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfdx-browserforce-plugin",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"description": "sfdx plugin for browser automation",
|
|
5
5
|
"author": "Matthias Rolke <mr.amtrack@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@mdapi-issues/listmetadata-standardvalueset": "2.0.4",
|
|
12
|
-
"@salesforce/sf-plugins-core": "12.0.
|
|
12
|
+
"@salesforce/sf-plugins-core": "12.0.11",
|
|
13
13
|
"p-retry": "6.2.0",
|
|
14
14
|
"puppeteer": "23.6.0"
|
|
15
15
|
},
|