@paid-ai/paid-node 0.3.0 → 0.3.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.
@@ -60,8 +60,8 @@ class PaidClient {
60
60
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
61
61
  "X-Fern-Language": "JavaScript",
62
62
  "X-Fern-SDK-Name": "@paid-ai/paid-node",
63
- "X-Fern-SDK-Version": "0.3.0",
64
- "User-Agent": "@paid-ai/paid-node/0.3.0",
63
+ "X-Fern-SDK-Version": "0.3.1",
64
+ "User-Agent": "@paid-ai/paid-node/0.3.1",
65
65
  "X-Fern-Runtime": core.RUNTIME.type,
66
66
  "X-Fern-Runtime-Version": core.RUNTIME.version,
67
67
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.3.0";
1
+ export declare const SDK_VERSION = "0.3.1";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.3.0";
4
+ exports.SDK_VERSION = "0.3.1";
@@ -42,7 +42,9 @@ class Usage extends Client_js_1.Usage {
42
42
  this.signals = [];
43
43
  }
44
44
  flush(requestOptions) {
45
- return this.recordBulk({ signals: this.signals }, requestOptions);
45
+ const response = this.recordBulk({ signals: this.signals }, requestOptions);
46
+ this.signals = [];
47
+ return response;
46
48
  }
47
49
  record(signal = {}, requestOptions) {
48
50
  if (!this.signals) {
@@ -24,8 +24,8 @@ export class PaidClient {
24
24
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
25
25
  "X-Fern-Language": "JavaScript",
26
26
  "X-Fern-SDK-Name": "@paid-ai/paid-node",
27
- "X-Fern-SDK-Version": "0.3.0",
28
- "User-Agent": "@paid-ai/paid-node/0.3.0",
27
+ "X-Fern-SDK-Version": "0.3.1",
28
+ "User-Agent": "@paid-ai/paid-node/0.3.1",
29
29
  "X-Fern-Runtime": core.RUNTIME.type,
30
30
  "X-Fern-Runtime-Version": core.RUNTIME.version,
31
31
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.3.0";
1
+ export declare const SDK_VERSION = "0.3.1";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.3.0";
1
+ export const SDK_VERSION = "0.3.1";
@@ -6,7 +6,9 @@ export class Usage extends UsageClient {
6
6
  this.signals = [];
7
7
  }
8
8
  flush(requestOptions) {
9
- return this.recordBulk({ signals: this.signals }, requestOptions);
9
+ const response = this.recordBulk({ signals: this.signals }, requestOptions);
10
+ this.signals = [];
11
+ return response;
10
12
  }
11
13
  record(signal = {}, requestOptions) {
12
14
  if (!this.signals) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paid-ai/paid-node",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/paid-ai/paid-node",
6
6
  "type": "commonjs",
@@ -110,11 +110,11 @@
110
110
  },
111
111
  "peerDependencies": {
112
112
  "@ai-sdk/openai": ">=1.0.0",
113
- "@anthropic-ai/sdk": ">=0.56.0",
113
+ "@anthropic-ai/sdk": ">=0.36.3",
114
114
  "@langchain/core": ">=0.3.0",
115
115
  "@mistralai/mistralai": ">=1.0.0",
116
116
  "ai": ">=5.0.0",
117
- "openai": ">=5.0.0"
117
+ "openai": ">=4.85.4"
118
118
  },
119
119
  "peerDependenciesMeta": {
120
120
  "@ai-sdk/openai": {
@@ -153,11 +153,11 @@
153
153
  "prettier": "^3.4.2",
154
154
  "typescript": "~5.7.2",
155
155
  "@ai-sdk/openai": ">=1.0.0",
156
- "@anthropic-ai/sdk": ">=0.56.0",
156
+ "@anthropic-ai/sdk": ">=0.36.3",
157
157
  "@langchain/core": ">=0.3.0",
158
158
  "@mistralai/mistralai": ">=1.0.0",
159
159
  "ai": ">=5.0.0",
160
- "openai": ">=5.0.0"
160
+ "openai": ">=4.85.4"
161
161
  },
162
162
  "browser": {
163
163
  "fs": false,