rads-db 3.0.80 → 3.0.81
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/integrations/node.cjs +2 -1
- package/integrations/node.mjs +2 -1
- package/package.json +1 -1
package/integrations/node.cjs
CHANGED
|
@@ -69,7 +69,8 @@ async function getSchema(normalizedOptions) {
|
|
|
69
69
|
}
|
|
70
70
|
schema = (0, _lib.parseSchema)(entities);
|
|
71
71
|
} else if (apiUrl) {
|
|
72
|
-
const
|
|
72
|
+
const url = new URL("radsTunnel", apiUrl);
|
|
73
|
+
const fetchResponse = await fetch(url.href, {
|
|
73
74
|
method: "POST",
|
|
74
75
|
headers: {
|
|
75
76
|
"content-type": "application/json"
|
package/integrations/node.mjs
CHANGED
|
@@ -64,7 +64,8 @@ export async function getSchema(normalizedOptions) {
|
|
|
64
64
|
}
|
|
65
65
|
schema = parseSchema(entities);
|
|
66
66
|
} else if (apiUrl) {
|
|
67
|
-
const
|
|
67
|
+
const url = new URL("radsTunnel", apiUrl);
|
|
68
|
+
const fetchResponse = await fetch(url.href, {
|
|
68
69
|
method: "POST",
|
|
69
70
|
headers: { "content-type": "application/json" },
|
|
70
71
|
body: JSON.stringify({ method: "_schema" })
|