@foxford/sdk 6.0.0 → 6.1.1
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/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ if (window.antibotInitialized === void 0) window.antibotInitialized = false;
|
|
|
98
98
|
var _FoxfordAntibot = class _FoxfordAntibot {
|
|
99
99
|
constructor(config = _FoxfordAntibot.DEFAULT_CONFIG) {
|
|
100
100
|
this.createAntibotFrame = (params) => {
|
|
101
|
-
if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || this.config.debug) {
|
|
101
|
+
if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || window.location.hostname.endsWith("foxford-school.com") || window.location.hostname.endsWith("foxford-home-school.ru") || window.location.hostname.endsWith("smartlearning.ru") || this.config.debug) {
|
|
102
102
|
const frame = _FoxfordAntibot.createFrame(params.src, params == null ? void 0 : params.onload, params == null ? void 0 : params.onerror);
|
|
103
103
|
document.body.appendChild(frame);
|
|
104
104
|
window.antibotInitialized = true;
|
package/index.js
CHANGED
|
@@ -46,7 +46,7 @@ if (window.antibotInitialized === void 0) window.antibotInitialized = false;
|
|
|
46
46
|
var _FoxfordAntibot = class _FoxfordAntibot {
|
|
47
47
|
constructor(config = _FoxfordAntibot.DEFAULT_CONFIG) {
|
|
48
48
|
this.createAntibotFrame = (params) => {
|
|
49
|
-
if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || this.config.debug) {
|
|
49
|
+
if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || window.location.hostname.endsWith("foxford-school.com") || window.location.hostname.endsWith("foxford-home-school.ru") || window.location.hostname.endsWith("smartlearning.ru") || this.config.debug) {
|
|
50
50
|
const frame = _FoxfordAntibot.createFrame(params.src, params == null ? void 0 : params.onload, params == null ? void 0 : params.onerror);
|
|
51
51
|
document.body.appendChild(frame);
|
|
52
52
|
window.antibotInitialized = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxford/sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Foxford sdk for external projects",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"decamelize-keys-deep": "^0.1.1",
|
|
26
26
|
"js-levenshtein": "^1.1.6",
|
|
27
27
|
"lodash": "^4.18.1",
|
|
28
|
-
"@foxford/services": "2.0.
|
|
28
|
+
"@foxford/services": "2.0.1",
|
|
29
29
|
"@foxford/types": "1.2.0"
|
|
30
30
|
},
|
|
31
31
|
"main": "./index.cjs",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"package.json",
|
|
61
61
|
"plugins"
|
|
62
62
|
],
|
|
63
|
-
"sha": "
|
|
63
|
+
"sha": "de5bcf4",
|
|
64
64
|
"scripts": {}
|
|
65
65
|
}
|