@narrative.io/data-collaboration-sdk-ts 0.0.35 → 0.0.36

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/build/base-api.js CHANGED
@@ -25,7 +25,7 @@ export class BaseApi {
25
25
  if (this.verbose) {
26
26
  console.log(`Using environment: ${this.environment}`);
27
27
  console.log(`Using API key: ${this.apiKey ?? 'undefined'}`);
28
- console.log(`Using headers: ${JSON.stringify(this.headers)}`);
28
+ console.log(`Using headers: ${JSON.stringify(this.constructHeaders())}`);
29
29
  console.log(`Using base URL: ${this.getBaseUrl()}`);
30
30
  console.log(`Using base API: ${JSON.stringify(this.base_api)}`);
31
31
  console.log(`This is us: ${JSON.stringify(this)}`);
@@ -71,8 +71,11 @@ export class BaseApi {
71
71
  * @template T - Type of the response data.
72
72
  */
73
73
  async get(endpoint) {
74
- if (this.verbose)
74
+ if (this.verbose) {
75
75
  console.log(`Making GET request to ${endpoint}...`);
76
+ const resp = await this.base_api.get(endpoint);
77
+ console.log(`Response: ${JSON.stringify(resp)}`);
78
+ }
76
79
  return await this.base_api.get(endpoint);
77
80
  }
78
81
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",