@rwa-xyz/partners 0.1.0 → 0.1.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.
@@ -27,6 +27,8 @@ class RwaPartners {
27
27
  timeoutMs: options.timeoutMs ?? 120_000,
28
28
  sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),
29
29
  };
30
+ // Not enumerable, so logging or serializing the client never prints it.
31
+ Object.defineProperty(this.transport, "apiKey", { enumerable: false });
30
32
  this.assets = new assets_js_1.Assets(this.transport);
31
33
  this.metrics = new metrics_js_1.Metrics(this.transport);
32
34
  }
package/dist/cjs/http.js CHANGED
@@ -120,11 +120,13 @@ async function send(transport, spec) {
120
120
  const signal = AbortSignal.timeout(transport.timeoutMs);
121
121
  let response;
122
122
  try {
123
+ // A redirect is the answer, never followed: the API sends none.
123
124
  response = await transport.fetch(url, {
124
125
  method: spec.method,
125
126
  headers,
126
127
  body,
127
128
  signal,
129
+ redirect: "manual",
128
130
  });
129
131
  }
130
132
  catch (error) {
@@ -4,4 +4,4 @@
4
4
  *
5
5
  * @module sdk/typescript/version
6
6
  */
7
- export declare const VERSION = "0.1.0";
7
+ export declare const VERSION = "0.1.1";
@@ -8,4 +8,4 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.VERSION = void 0;
10
10
  // // // //
11
- exports.VERSION = "0.1.0";
11
+ exports.VERSION = "0.1.1";
@@ -24,6 +24,8 @@ export class RwaPartners {
24
24
  timeoutMs: options.timeoutMs ?? 120_000,
25
25
  sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),
26
26
  };
27
+ // Not enumerable, so logging or serializing the client never prints it.
28
+ Object.defineProperty(this.transport, "apiKey", { enumerable: false });
27
29
  this.assets = new Assets(this.transport);
28
30
  this.metrics = new Metrics(this.transport);
29
31
  }
package/dist/esm/http.js CHANGED
@@ -114,11 +114,13 @@ export async function send(transport, spec) {
114
114
  const signal = AbortSignal.timeout(transport.timeoutMs);
115
115
  let response;
116
116
  try {
117
+ // A redirect is the answer, never followed: the API sends none.
117
118
  response = await transport.fetch(url, {
118
119
  method: spec.method,
119
120
  headers,
120
121
  body,
121
122
  signal,
123
+ redirect: "manual",
122
124
  });
123
125
  }
124
126
  catch (error) {
@@ -4,4 +4,4 @@
4
4
  *
5
5
  * @module sdk/typescript/version
6
6
  */
7
- export declare const VERSION = "0.1.0";
7
+ export declare const VERSION = "0.1.1";
@@ -5,4 +5,4 @@
5
5
  * @module sdk/typescript/version
6
6
  */
7
7
  // // // //
8
- export const VERSION = "0.1.0";
8
+ export const VERSION = "0.1.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rwa-xyz/partners",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The RWA.xyz Partners API client, in beta: submit asset metrics and read your assets.",
5
5
  "license": "MIT",
6
6
  "type": "module",