@forklaunch/universal-sdk 0.5.4 → 0.6.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.
package/lib/index.js CHANGED
@@ -456,7 +456,9 @@ var UniversalSdk = class _UniversalSdk {
456
456
  let url = getSdkPath(this.host + path);
457
457
  if (params) {
458
458
  for (const key in params) {
459
- url = url.replace(`:${key}`, encodeURIComponent(params[key]));
459
+ const paramValue = encodeURIComponent(params[key]);
460
+ url = url.replace(`:${key}`, paramValue);
461
+ url = url.replace(`{${key}}`, paramValue);
460
462
  }
461
463
  }
462
464
  let defaultContentType = "application/json";
package/lib/index.mjs CHANGED
@@ -424,7 +424,9 @@ var UniversalSdk = class _UniversalSdk {
424
424
  let url = getSdkPath(this.host + path);
425
425
  if (params) {
426
426
  for (const key in params) {
427
- url = url.replace(`:${key}`, encodeURIComponent(params[key]));
427
+ const paramValue = encodeURIComponent(params[key]);
428
+ url = url.replace(`:${key}`, paramValue);
429
+ url = url.replace(`{${key}}`, paramValue);
428
430
  }
429
431
  }
430
432
  let defaultContentType = "application/json";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/universal-sdk",
3
- "version": "0.5.4",
3
+ "version": "0.6.1",
4
4
  "description": "Cross runtime fetch library for forklaunch router sdks",
5
5
  "keywords": [
6
6
  "fetch",
@@ -33,18 +33,18 @@
33
33
  "dependencies": {
34
34
  "ajv": "^8.17.1",
35
35
  "ajv-formats": "^3.0.1",
36
- "@forklaunch/common": "0.4.6"
36
+ "@forklaunch/common": "0.5.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^24.1.0",
40
- "@typescript/native-preview": "7.0.0-dev.20250802.1",
39
+ "@types/node": "^24.3.0",
40
+ "@typescript/native-preview": "7.0.0-dev.20250821.1",
41
41
  "fetch-mock": "^12.5.3",
42
42
  "jest": "^30.0.5",
43
43
  "openapi3-ts": "^4.5.0",
44
44
  "prettier": "^3.6.2",
45
- "ts-jest": "^29.4.0",
45
+ "ts-jest": "^29.4.1",
46
46
  "tsup": "^8.5.0",
47
- "typedoc": "^0.28.9"
47
+ "typedoc": "^0.28.10"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsgo --noEmit && tsup index.ts --format cjs,esm --no-splitting --dts --tsconfig tsconfig.json --out-dir lib --clean",