@forklaunch/universal-sdk 0.5.2 → 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 +4 -1
- package/lib/index.mjs +4 -1
- package/package.json +1 -1
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") {
|