@foxford/sdk 6.1.1 → 6.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.
Files changed (3) hide show
  1. package/index.cjs +3 -1
  2. package/index.js +3 -1
  3. package/package.json +3 -3
package/index.cjs CHANGED
@@ -94,7 +94,9 @@ module.exports = __toCommonJS(index_exports);
94
94
  var import_services2 = require("@foxford/services");
95
95
 
96
96
  // src/antibot/index.ts
97
- if (window.antibotInitialized === void 0) window.antibotInitialized = false;
97
+ if (typeof window !== "undefined" && window.antibotInitialized === void 0) {
98
+ window.antibotInitialized = false;
99
+ }
98
100
  var _FoxfordAntibot = class _FoxfordAntibot {
99
101
  constructor(config = _FoxfordAntibot.DEFAULT_CONFIG) {
100
102
  this.createAntibotFrame = (params) => {
package/index.js CHANGED
@@ -42,7 +42,9 @@ var __async = (__this, __arguments, generator) => {
42
42
  import { ApiService, CaptchaService as CaptchaService2 } from "@foxford/services";
43
43
 
44
44
  // src/antibot/index.ts
45
- if (window.antibotInitialized === void 0) window.antibotInitialized = false;
45
+ if (typeof window !== "undefined" && window.antibotInitialized === void 0) {
46
+ window.antibotInitialized = false;
47
+ }
46
48
  var _FoxfordAntibot = class _FoxfordAntibot {
47
49
  constructor(config = _FoxfordAntibot.DEFAULT_CONFIG) {
48
50
  this.createAntibotFrame = (params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foxford/sdk",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
4
4
  "description": "Foxford sdk for external projects",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "js-levenshtein": "^1.1.6",
27
27
  "lodash": "^4.18.1",
28
28
  "@foxford/services": "2.0.1",
29
- "@foxford/types": "1.2.0"
29
+ "@foxford/types": "1.2.1"
30
30
  },
31
31
  "main": "./index.cjs",
32
32
  "module": "./index.js",
@@ -60,6 +60,6 @@
60
60
  "package.json",
61
61
  "plugins"
62
62
  ],
63
- "sha": "de5bcf4",
63
+ "sha": "b1d432f",
64
64
  "scripts": {}
65
65
  }