webflow-api 0.7.1 → 0.7.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/dist/Webflow.js +2 -2
- package/package.json +1 -1
- package/src/Webflow.js +2 -2
package/dist/Webflow.js
CHANGED
|
@@ -134,7 +134,7 @@ var Webflow = /*#__PURE__*/function () {
|
|
|
134
134
|
key: "get",
|
|
135
135
|
value: function get(path) {
|
|
136
136
|
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
137
|
-
return this.authenticatedFetch('GET', path,
|
|
137
|
+
return this.authenticatedFetch('GET', path, null, query);
|
|
138
138
|
}
|
|
139
139
|
}, {
|
|
140
140
|
key: "post",
|
|
@@ -158,7 +158,7 @@ var Webflow = /*#__PURE__*/function () {
|
|
|
158
158
|
key: "delete",
|
|
159
159
|
value: function _delete(path) {
|
|
160
160
|
var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
161
|
-
return this.authenticatedFetch('DELETE', path, query);
|
|
161
|
+
return this.authenticatedFetch('DELETE', path, null, query);
|
|
162
162
|
} // Meta
|
|
163
163
|
|
|
164
164
|
}, {
|
package/package.json
CHANGED
package/src/Webflow.js
CHANGED
|
@@ -91,7 +91,7 @@ export default class Webflow {
|
|
|
91
91
|
// Generic HTTP request handlers
|
|
92
92
|
|
|
93
93
|
get(path, query = {}) {
|
|
94
|
-
return this.authenticatedFetch('GET', path,
|
|
94
|
+
return this.authenticatedFetch('GET', path, null, query);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
post(path, data, query = {}) {
|
|
@@ -107,7 +107,7 @@ export default class Webflow {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
delete(path, query = {}) {
|
|
110
|
-
return this.authenticatedFetch('DELETE', path, query);
|
|
110
|
+
return this.authenticatedFetch('DELETE', path, null, query);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// Meta
|