@forklaunch/universal-sdk 0.5.1 → 0.5.3

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
@@ -417,10 +417,10 @@ var UniversalSdk = class _UniversalSdk {
417
417
  }
418
418
  const fullSdkPath = sdkPath.split(".");
419
419
  while (fullSdkPath.length > 0) {
420
- fullSdkPath.shift();
421
420
  if (fullSdkPath.join(".") in this.sdkPathMap) {
422
421
  break;
423
422
  }
423
+ fullSdkPath.shift();
424
424
  }
425
425
  if (fullSdkPath.length === 0) {
426
426
  throw new Error(`Sdk path not found: ${sdkPath}`);
@@ -671,6 +671,9 @@ var universalSdk = async (options) => {
671
671
  if (prop === "then" || prop === "catch" || prop === "finally") {
672
672
  return void 0;
673
673
  }
674
+ if (prop === "fetch") {
675
+ return sdkInternal.executeFetchCall;
676
+ }
674
677
  if (typeof prop === "string" && prop in sdkInternal) {
675
678
  const value = sdkInternal[prop];
676
679
  if (typeof value === "function") {
package/lib/index.mjs CHANGED
@@ -385,10 +385,10 @@ var UniversalSdk = class _UniversalSdk {
385
385
  }
386
386
  const fullSdkPath = sdkPath.split(".");
387
387
  while (fullSdkPath.length > 0) {
388
- fullSdkPath.shift();
389
388
  if (fullSdkPath.join(".") in this.sdkPathMap) {
390
389
  break;
391
390
  }
391
+ fullSdkPath.shift();
392
392
  }
393
393
  if (fullSdkPath.length === 0) {
394
394
  throw new Error(`Sdk path not found: ${sdkPath}`);
@@ -639,6 +639,9 @@ var universalSdk = async (options) => {
639
639
  if (prop === "then" || prop === "catch" || prop === "finally") {
640
640
  return void 0;
641
641
  }
642
+ if (prop === "fetch") {
643
+ return sdkInternal.executeFetchCall;
644
+ }
642
645
  if (typeof prop === "string" && prop in sdkInternal) {
643
646
  const value = sdkInternal[prop];
644
647
  if (typeof value === "function") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/universal-sdk",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Cross runtime fetch library for forklaunch router sdks",
5
5
  "keywords": [
6
6
  "fetch",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "ajv": "^8.17.1",
35
35
  "ajv-formats": "^3.0.1",
36
- "@forklaunch/common": "0.4.4"
36
+ "@forklaunch/common": "0.4.5"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^24.0.13",