@lightsparkdev/core 1.0.7 → 1.0.8
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +6 -1
- package/dist/index.js +6 -1
- package/package.json +1 -2
- package/src/requester/Requester.ts +8 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1433,7 +1433,12 @@ var Requester = class {
|
|
|
1433
1433
|
if (!urlWithProtocol.startsWith("https://") && !urlWithProtocol.startsWith("http://")) {
|
|
1434
1434
|
urlWithProtocol = `https://${urlWithProtocol}`;
|
|
1435
1435
|
}
|
|
1436
|
-
const
|
|
1436
|
+
const url = `${urlWithProtocol}/${this.schemaEndpoint}`;
|
|
1437
|
+
logger.info(`Requester.makeRawRequest`, {
|
|
1438
|
+
url,
|
|
1439
|
+
variables
|
|
1440
|
+
});
|
|
1441
|
+
const response = await fetch(url, {
|
|
1437
1442
|
method: "POST",
|
|
1438
1443
|
headers,
|
|
1439
1444
|
body: JSON.stringify(bodyData)
|
package/dist/index.js
CHANGED
|
@@ -527,7 +527,12 @@ var Requester = class {
|
|
|
527
527
|
if (!urlWithProtocol.startsWith("https://") && !urlWithProtocol.startsWith("http://")) {
|
|
528
528
|
urlWithProtocol = `https://${urlWithProtocol}`;
|
|
529
529
|
}
|
|
530
|
-
const
|
|
530
|
+
const url = `${urlWithProtocol}/${this.schemaEndpoint}`;
|
|
531
|
+
logger.info(`Requester.makeRawRequest`, {
|
|
532
|
+
url,
|
|
533
|
+
variables
|
|
534
|
+
});
|
|
535
|
+
const response = await fetch(url, {
|
|
531
536
|
method: "POST",
|
|
532
537
|
headers,
|
|
533
538
|
body: JSON.stringify(bodyData)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Lightspark JS SDK",
|
|
5
5
|
"author": "Lightspark Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
"license": "Apache-2.0",
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"auto-bind": "^5.0.1",
|
|
80
|
-
"crypto": "^1.0.1",
|
|
81
80
|
"crypto-browserify": "^3.12.0",
|
|
82
81
|
"dayjs": "^1.11.7",
|
|
83
82
|
"graphql": "^16.6.0",
|
|
@@ -161,7 +161,14 @@ class Requester {
|
|
|
161
161
|
) {
|
|
162
162
|
urlWithProtocol = `https://${urlWithProtocol}`;
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
|
|
165
|
+
const url = `${urlWithProtocol}/${this.schemaEndpoint}`;
|
|
166
|
+
|
|
167
|
+
logger.info(`Requester.makeRawRequest`, {
|
|
168
|
+
url,
|
|
169
|
+
variables,
|
|
170
|
+
});
|
|
171
|
+
const response = await fetch(url, {
|
|
165
172
|
method: "POST",
|
|
166
173
|
headers: headers,
|
|
167
174
|
body: JSON.stringify(bodyData),
|