@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lightsparkdev/core
2
2
 
3
+ ## 1.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - a59d636: Remove crypto as dep - available directly in Node
8
+
3
9
  ## 1.0.7
4
10
 
5
11
  ### Patch Changes
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 response = await fetch(`${urlWithProtocol}/${this.schemaEndpoint}`, {
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 response = await fetch(`${urlWithProtocol}/${this.schemaEndpoint}`, {
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.7",
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
- const response = await fetch(`${urlWithProtocol}/${this.schemaEndpoint}`, {
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),