@mastra/client-js 0.1.0-alpha.15 → 0.1.0-alpha.16

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/dist/index.mjs CHANGED
@@ -417,7 +417,7 @@ var MastraClient = class extends BaseResource {
417
417
  const queryObj = {
418
418
  name: name ?? "",
419
419
  scope: scope ?? "",
420
- page: String(page) ? String(page) : "",
420
+ page: page ? String(page) : "",
421
421
  perPage: perPage ? String(perPage) : "",
422
422
  attribute: _attribute?.length ? _attribute : ""
423
423
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.1.0-alpha.15",
3
+ "version": "0.1.0-alpha.16",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "types": "dist/index.d.mts",
@@ -16,6 +16,11 @@
16
16
  },
17
17
  "repository": "github:mastra-ai/client-js",
18
18
  "license": "ISC",
19
+ "scripts": {
20
+ "build": "tsup-node src/index.ts --format esm --dts --clean --treeshake",
21
+ "dev": "tsup-node src/index.ts --format esm --dts --clean --treeshake --watch",
22
+ "test": "vitest run"
23
+ },
19
24
  "dependencies": {
20
25
  "@mastra/core": "^0.2.0-alpha.83",
21
26
  "json-schema": "^0.4.0",
@@ -31,10 +36,5 @@
31
36
  "tsup": "^8.0.1",
32
37
  "typescript": "^5.7.3",
33
38
  "vitest": "^3.0.4"
34
- },
35
- "scripts": {
36
- "build": "tsup-node src/index.ts --format esm --dts --clean --treeshake",
37
- "dev": "tsup-node src/index.ts --format esm --dts --clean --treeshake --watch",
38
- "test": "vitest run"
39
39
  }
40
- }
40
+ }
package/src/client.ts CHANGED
@@ -145,7 +145,7 @@ export class MastraClient extends BaseResource {
145
145
  const queryObj = {
146
146
  name: name ?? '',
147
147
  scope: scope ?? '',
148
- page: String(page) ? String(page) : '',
148
+ page: page ? String(page) : '',
149
149
  perPage: perPage ? String(perPage) : '',
150
150
  attribute: _attribute?.length ? _attribute : ''
151
151
  }