@hyphen/sdk 2.0.0 → 2.0.2

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.cjs CHANGED
@@ -209,10 +209,7 @@ var BaseService = class extends import_hookified.Hookified {
209
209
  const { data: configData, ...restConfig } = config2 || {};
210
210
  let body;
211
211
  if (configData) {
212
- body = typeof configData === "string" ? (
213
- /* c8 ignore next */
214
- configData
215
- ) : JSON.stringify(configData);
212
+ body = typeof configData === "string" ? configData : JSON.stringify(configData);
216
213
  if (!headers["content-type"] && !headers["Content-Type"]) {
217
214
  headers["content-type"] = "application/json";
218
215
  }
@@ -1472,3 +1469,4 @@ var Hyphen = class extends import_hookified3.Hookified {
1472
1469
  env,
1473
1470
  loadEnv
1474
1471
  });
1472
+ /* v8 ignore next -- @preserve */
package/dist/index.js CHANGED
@@ -172,10 +172,7 @@ var BaseService = class extends Hookified {
172
172
  const { data: configData, ...restConfig } = config2 || {};
173
173
  let body;
174
174
  if (configData) {
175
- body = typeof configData === "string" ? (
176
- /* c8 ignore next */
177
- configData
178
- ) : JSON.stringify(configData);
175
+ body = typeof configData === "string" ? configData : JSON.stringify(configData);
179
176
  if (!headers["content-type"] && !headers["Content-Type"]) {
180
177
  headers["content-type"] = "application/json";
181
178
  }
@@ -1434,3 +1431,4 @@ export {
1434
1431
  env,
1435
1432
  loadEnv
1436
1433
  };
1434
+ /* v8 ignore next -- @preserve */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyphen/sdk",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Hyphen SDK for Node.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -30,15 +30,15 @@
30
30
  "author": "Team Hyphen <hello@hyphen.ai>",
31
31
  "license": "MIT",
32
32
  "devDependencies": {
33
- "@biomejs/biome": "^2.2.5",
33
+ "@biomejs/biome": "^2.2.7",
34
34
  "@swc/core": "^1.13.20",
35
- "@types/node": "^24.7.0",
36
- "@vitest/coverage-v8": "^3.2.4",
35
+ "@types/node": "^24.9.1",
36
+ "@vitest/coverage-v8": "^4.0.2",
37
37
  "rimraf": "^6.0.1",
38
38
  "tsd": "^0.33.0",
39
39
  "tsup": "^8.5.0",
40
40
  "typescript": "^5.9.3",
41
- "vitest": "^3.2.4"
41
+ "vitest": "^4.0.2"
42
42
  },
43
43
  "files": [
44
44
  "dist",
@@ -46,10 +46,10 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@cacheable/net": "^2.0.1",
49
- "@faker-js/faker": "^10.0.0",
50
- "cacheable": "^2.1.0",
49
+ "@faker-js/faker": "^10.1.0",
50
+ "cacheable": "^2.1.1",
51
51
  "dotenv": "^17.2.3",
52
- "hookified": "^1.12.1",
53
- "pino": "^10.0.0"
52
+ "hookified": "^1.12.2",
53
+ "pino": "^10.1.0"
54
54
  }
55
55
  }