@deflectbot/deflect-sdk 1.1.0 → 1.1.2

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/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ class Deflect {
36
36
  const extraArgs = Object.keys(window.Deflect.extraArgs || {})
37
37
  .map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(window.Deflect.extraArgs[key])}`)
38
38
  .join("&");
39
- const scriptUrl = `https://js.deflect.bot/main.js?site=${encodeURIComponent(window.Deflect.siteKey)}${extraArgs ? `&${extraArgs}` : ""}`;
39
+ const scriptUrl = `https://js.deflect.bot/main.js?sitekey=${encodeURIComponent(window.Deflect.siteKey)}${extraArgs ? `&${extraArgs}` : ""}`;
40
40
  return new Promise((resolve, reject) => {
41
41
  const cachedScript = sessionStorage.getItem("deflect_script");
42
42
  const lastFetchTime = localStorage.getItem("deflect_script_timestamp");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deflectbot/deflect-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
package/src/index.ts CHANGED
@@ -46,7 +46,7 @@ class Deflect {
46
46
  )
47
47
  .join("&");
48
48
 
49
- const scriptUrl = `https://js.deflect.bot/main.js?site=${encodeURIComponent(
49
+ const scriptUrl = `https://js.deflect.bot/main.js?sitekey=${encodeURIComponent(
50
50
  window.Deflect.siteKey
51
51
  )}${extraArgs ? `&${extraArgs}` : ""}`;
52
52