@mymehq/sdk 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -118,7 +118,12 @@ var HttpTransport = class {
118
118
  if (!query) return url;
119
119
  const params = new URLSearchParams();
120
120
  for (const [key, value] of Object.entries(query)) {
121
- if (value !== void 0) {
121
+ if (value === void 0) continue;
122
+ if (Array.isArray(value)) {
123
+ params.set(key, value.join(","));
124
+ } else if (typeof value === "boolean") {
125
+ params.set(key, value ? "true" : "false");
126
+ } else {
122
127
  params.set(key, String(value));
123
128
  }
124
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mymehq/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
@@ -15,19 +15,19 @@
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
- "scripts": {
19
- "build": "tsup",
20
- "typecheck": "tsc --noEmit",
21
- "test": "vitest run",
22
- "test:watch": "vitest"
23
- },
24
18
  "dependencies": {
25
- "@mymehq/shared": "workspace:*"
19
+ "@mymehq/shared": "1.0.0"
26
20
  },
27
21
  "devDependencies": {
28
- "@mymehq/server": "workspace:*",
29
22
  "@types/node": "^22.0.0",
30
23
  "tsup": "^8.5.1",
31
- "typescript": "^6.0.2"
24
+ "typescript": "^6.0.2",
25
+ "@mymehq/server": "0.0.1"
26
+ },
27
+ "scripts": {
28
+ "build": "tsup",
29
+ "typecheck": "tsc --noEmit",
30
+ "test": "vitest run",
31
+ "test:watch": "vitest"
32
32
  }
33
- }
33
+ }