zapier-platform-core 11.3.1 → 11.3.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zapier-platform-core",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.2",
|
|
4
4
|
"description": "The core SDK for CLI apps in the Zapier Developer Platform.",
|
|
5
5
|
"repository": "zapier/zapier-platform",
|
|
6
6
|
"homepage": "https://platform.zapier.com/",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"node-fetch": "2.6.7",
|
|
51
51
|
"oauth-sign": "0.9.0",
|
|
52
52
|
"semver": "7.3.5",
|
|
53
|
-
"zapier-platform-schema": "11.3.
|
|
53
|
+
"zapier-platform-schema": "11.3.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"adm-zip": "0.5.5",
|
|
@@ -14,7 +14,24 @@ const addQueryParams = (req) => {
|
|
|
14
14
|
|
|
15
15
|
normalizeEmptyParamFields(req);
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
let stringifiedParams = querystring.stringify(req.params);
|
|
18
|
+
|
|
19
|
+
// it goes against spec, but for compatibility, some APIs want certain
|
|
20
|
+
// characters (mostly $) unencoded
|
|
21
|
+
if (req.skipEncodingChars) {
|
|
22
|
+
for (let i = 0; i < req.skipEncodingChars.length; i++) {
|
|
23
|
+
const char = req.skipEncodingChars.charAt(i);
|
|
24
|
+
const valToReplace = querystring.escape(char);
|
|
25
|
+
if (valToReplace === char) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
// no replaceAll in JS yet, coming in a node version soon!
|
|
29
|
+
stringifiedParams = stringifiedParams.replace(
|
|
30
|
+
new RegExp(valToReplace, 'g'),
|
|
31
|
+
char
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
18
35
|
|
|
19
36
|
if (stringifiedParams) {
|
|
20
37
|
req.url += `${splitter}${stringifiedParams}`;
|