@superglue/cli 1.1.256 → 1.1.257
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.
|
@@ -70,7 +70,7 @@ Some APIs (e.g. Salesforce) use SOAP XML login where credentials are embedded in
|
|
|
70
70
|
|
|
71
71
|
### Parsing XML responses
|
|
72
72
|
|
|
73
|
-
XML responses (SOAP and other XML APIs) are auto-parsed to an object on `sourceData.stepId.data`.
|
|
73
|
+
XML responses (SOAP and other XML APIs) are auto-parsed to an object on `sourceData.stepId.data`. Account for these parser quirks in transforms and stopConditions — probe the real response with a small page before writing selectors:
|
|
74
74
|
|
|
75
75
|
- **Every tag name is UPPERCASED.** `<response><record>` becomes `RESPONSE.RECORD`, regardless of the source casing. Always select uppercase keys.
|
|
76
76
|
- **Single vs multiple children collapse.** One child element parses to an object; multiple with the same tag parse to an array. Normalize before mapping: `const rows = Array.isArray(x) ? x : (x ? [x] : [])`.
|
|
@@ -208,7 +208,7 @@ pagination: {
|
|
|
208
208
|
}
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
**Variables** — the matching variable
|
|
211
|
+
**Variables** — the matching variable must appear in the request (URL, queryParams, headers, or body). Throws if missing.
|
|
212
212
|
|
|
213
213
|
| Type | Variable | Starts at | Increments by |
|
|
214
214
|
| ----------- | ---------------------------- | --------- | ------------------------ |
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ Some APIs (e.g. Salesforce) use SOAP XML login where credentials are embedded in
|
|
|
70
70
|
|
|
71
71
|
### Parsing XML responses
|
|
72
72
|
|
|
73
|
-
XML responses (SOAP and other XML APIs) are auto-parsed to an object on `sourceData.stepId.data`.
|
|
73
|
+
XML responses (SOAP and other XML APIs) are auto-parsed to an object on `sourceData.stepId.data`. Account for these parser quirks in transforms and stopConditions — probe the real response with a small page before writing selectors:
|
|
74
74
|
|
|
75
75
|
- **Every tag name is UPPERCASED.** `<response><record>` becomes `RESPONSE.RECORD`, regardless of the source casing. Always select uppercase keys.
|
|
76
76
|
- **Single vs multiple children collapse.** One child element parses to an object; multiple with the same tag parse to an array. Normalize before mapping: `const rows = Array.isArray(x) ? x : (x ? [x] : [])`.
|
|
@@ -208,7 +208,7 @@ pagination: {
|
|
|
208
208
|
}
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
**Variables** — the matching variable
|
|
211
|
+
**Variables** — the matching variable must appear in the request (URL, queryParams, headers, or body). Throws if missing.
|
|
212
212
|
|
|
213
213
|
| Type | Variable | Starts at | Increments by |
|
|
214
214
|
| ----------- | ---------------------------- | --------- | ------------------------ |
|