@dyrected/sdk 2.4.4 → 2.4.6
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -911,7 +911,7 @@ var DyrectedClient = class {
|
|
|
911
911
|
defaultDepth;
|
|
912
912
|
constructor(config) {
|
|
913
913
|
this.baseUrl = config.baseUrl.replace(/\/$/, "");
|
|
914
|
-
this.fetch = config.fetch || fetch;
|
|
914
|
+
this.fetch = (config.fetch || fetch).bind(globalThis);
|
|
915
915
|
this.defaultDepth = config.defaultDepth ?? 1;
|
|
916
916
|
this.headers = {
|
|
917
917
|
"Content-Type": "application/json",
|
package/dist/index.js
CHANGED
|
@@ -873,7 +873,7 @@ var DyrectedClient = class {
|
|
|
873
873
|
defaultDepth;
|
|
874
874
|
constructor(config) {
|
|
875
875
|
this.baseUrl = config.baseUrl.replace(/\/$/, "");
|
|
876
|
-
this.fetch = config.fetch || fetch;
|
|
876
|
+
this.fetch = (config.fetch || fetch).bind(globalThis);
|
|
877
877
|
this.defaultDepth = config.defaultDepth ?? 1;
|
|
878
878
|
this.headers = {
|
|
879
879
|
"Content-Type": "application/json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyrected/sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"tsup": "^8.5.1",
|
|
24
24
|
"typescript": "^5.4.5",
|
|
25
25
|
"vitest": "^1.0.0",
|
|
26
|
-
"@dyrected/core": "2.5.
|
|
26
|
+
"@dyrected/core": "2.5.2"
|
|
27
27
|
},
|
|
28
28
|
"license": "BSL-1.1",
|
|
29
29
|
"author": "Busola Okeowo <busolaokemoney@gmail.com>",
|
|
30
30
|
"homepage": "https://dyrected.com",
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/
|
|
33
|
+
"url": "git+https://github.com/Dyrected/dyrected.git"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|