webflow-api 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -29,7 +29,7 @@ const webflow = new Webflow({ token: "[ACCESS TOKEN]" });
29
29
 
30
30
  // fully loaded
31
31
  const webflow = new Webflow({
32
- token: "[ACCESS TOKEN]"
32
+ token: "[ACCESS TOKEN]",
33
33
  version: "1.0.0",
34
34
  mode: "cors",
35
35
  headers: {
package/dist/Webflow.js CHANGED
@@ -25,6 +25,12 @@ class Webflow {
25
25
  this.client = new _WebflowClient.WebflowClient(options);
26
26
  this.responseWrapper = new _ResponseWrapper.default(this);
27
27
  }
28
+ set token(value) {
29
+ this.client.token = value;
30
+ }
31
+ get token() {
32
+ return this.client.token;
33
+ }
28
34
  get(path, query = {}) {
29
35
  return this.client.get(path, query);
30
36
  }
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  declare class Webflow {
2
2
  constructor(options: Webflow.Options);
3
+ token: string;
3
4
 
4
5
  get<Result extends any>(
5
6
  path: string,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "webflow-api",
3
3
  "description": "Webflow's official Node.js SDK for Data APIs",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "types": "index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "contributors": [
package/src/Webflow.js CHANGED
@@ -13,6 +13,13 @@ export class Webflow {
13
13
  this.responseWrapper = new ResponseWrapper(this);
14
14
  }
15
15
 
16
+ set token(value) {
17
+ this.client.token = value;
18
+ }
19
+ get token() {
20
+ return this.client.token;
21
+ }
22
+
16
23
  get(path, query = {}) {
17
24
  return this.client.get(path, query);
18
25
  }