@salesforcedevs/dw-components 1.3.94 → 1.3.100
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dw-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.100",
|
|
4
4
|
"description": "Lightning web components for https://developer.salesforce.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/setimmediate": "^1.0.2",
|
|
25
25
|
"setimmediate": "^1.0.5"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "4bd7c51cf9da75498e1cc258d6fb4426a0c42889"
|
|
28
28
|
}
|
|
@@ -7,6 +7,7 @@ const LOCAL_STORAGE_KEY = "subscriberEmail";
|
|
|
7
7
|
export default class Form extends LightningElement {
|
|
8
8
|
@api checkboxTextSet: string = "";
|
|
9
9
|
@api countries: string = "";
|
|
10
|
+
@api drmDomain: string = "https://drm.my.salesforce-sites.com";
|
|
10
11
|
|
|
11
12
|
private firstName: string = "";
|
|
12
13
|
private lastName: string = "";
|
|
@@ -102,13 +103,7 @@ export default class Form extends LightningElement {
|
|
|
102
103
|
|
|
103
104
|
try {
|
|
104
105
|
const res = await fetch(
|
|
105
|
-
|
|
106
|
-
{
|
|
107
|
-
method: "GET",
|
|
108
|
-
headers: {
|
|
109
|
-
"Content-Type": "application/json"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
106
|
+
`${this.drmDomain}/utilities/services/apexrest/countries`
|
|
112
107
|
);
|
|
113
108
|
|
|
114
109
|
if (!res.ok) {
|
|
@@ -162,12 +157,9 @@ export default class Form extends LightningElement {
|
|
|
162
157
|
|
|
163
158
|
try {
|
|
164
159
|
const res = await fetch(
|
|
165
|
-
|
|
160
|
+
`${this.drmDomain}/handler/services/apexrest/handler`,
|
|
166
161
|
{
|
|
167
162
|
method: "POST",
|
|
168
|
-
headers: {
|
|
169
|
-
"Content-Type": "application/json"
|
|
170
|
-
},
|
|
171
163
|
body: JSON.stringify(formData)
|
|
172
164
|
}
|
|
173
165
|
);
|