celitech-sdk 1.1.97 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # Celitech TypeScript SDK 1.1.97
1
+ # Celitech TypeScript SDK 1.2.1
2
2
 
3
3
  Welcome to the Celitech SDK documentation. This guide will help you get started with integrating and using the Celitech SDK in your project.
4
4
 
5
5
  ## Versions
6
6
 
7
7
  - API version: `1.1.0`
8
- - SDK version: `1.1.97`
8
+ - SDK version: `1.2.1`
9
9
 
10
10
  ## About the API
11
11
 
package/dist/index.js CHANGED
@@ -83,18 +83,13 @@ var CustomHook = class {
83
83
  return response.json();
84
84
  }
85
85
  async beforeRequest(request, params) {
86
- console.log("request", request);
87
- console.log("params", params);
88
86
  const clientId = params.get("clientId") || "";
89
87
  const clientSecret = params.get("clientSecret") || "";
90
- console.log("clientId", clientId);
91
- console.log("clientSecret", clientSecret);
92
88
  if (!clientId || !clientSecret) {
93
89
  throw new Error("Missing clientId and/or clientSecret constructor parameters");
94
90
  }
95
91
  if (!CURRENT_TOKEN || CURRENT_EXPIRY < Date.now()) {
96
92
  const tokenResponse = await this.getToken(clientId, clientSecret);
97
- console.log("tokenResponse", tokenResponse);
98
93
  if (tokenResponse.error) {
99
94
  throw new Error(tokenResponse.error);
100
95
  }
@@ -106,7 +101,6 @@ var CustomHook = class {
106
101
  CURRENT_TOKEN = access_token;
107
102
  }
108
103
  const authorization = `Bearer ${CURRENT_TOKEN}`;
109
- console.log("authorization", authorization);
110
104
  if (!request.headers) {
111
105
  request.headers = /* @__PURE__ */ new Map();
112
106
  }
package/dist/index.mjs CHANGED
@@ -43,18 +43,13 @@ var CustomHook = class {
43
43
  return response.json();
44
44
  }
45
45
  async beforeRequest(request, params) {
46
- console.log("request", request);
47
- console.log("params", params);
48
46
  const clientId = params.get("clientId") || "";
49
47
  const clientSecret = params.get("clientSecret") || "";
50
- console.log("clientId", clientId);
51
- console.log("clientSecret", clientSecret);
52
48
  if (!clientId || !clientSecret) {
53
49
  throw new Error("Missing clientId and/or clientSecret constructor parameters");
54
50
  }
55
51
  if (!CURRENT_TOKEN || CURRENT_EXPIRY < Date.now()) {
56
52
  const tokenResponse = await this.getToken(clientId, clientSecret);
57
- console.log("tokenResponse", tokenResponse);
58
53
  if (tokenResponse.error) {
59
54
  throw new Error(tokenResponse.error);
60
55
  }
@@ -66,7 +61,6 @@ var CustomHook = class {
66
61
  CURRENT_TOKEN = access_token;
67
62
  }
68
63
  const authorization = `Bearer ${CURRENT_TOKEN}`;
69
- console.log("authorization", authorization);
70
64
  if (!request.headers) {
71
65
  request.headers = /* @__PURE__ */ new Map();
72
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "celitech-sdk",
3
- "version": "1.1.97",
3
+ "version": "1.2.1",
4
4
  "description": "Welcome to the CELITECH API documentation! Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/) ",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/index.js",