@prosopo/provider 3.2.1 → 3.2.3
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
|
@@ -77,15 +77,25 @@ class FrictionlessManager extends captchaManager.CaptchaManager {
|
|
|
77
77
|
process.env.BOT_DECRYPTION_KEY,
|
|
78
78
|
...await this.getDetectorKeys()
|
|
79
79
|
].filter((k) => k);
|
|
80
|
-
this.logger.debug(() =>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
this.logger.debug(() => {
|
|
81
|
+
const loggedKeys = decryptKeys.map((key) => {
|
|
82
|
+
if (!key) return "";
|
|
83
|
+
const start = key.slice(0, 5);
|
|
84
|
+
const middle = key.slice(
|
|
85
|
+
Math.floor(key.length / 2) - 5,
|
|
86
|
+
Math.floor(key.length / 2) + 5
|
|
87
|
+
);
|
|
88
|
+
const end = key.slice(-5);
|
|
89
|
+
return `${start}...${middle}...${end}`;
|
|
90
|
+
});
|
|
91
|
+
return {
|
|
92
|
+
msg: "Decrypting score",
|
|
93
|
+
data: {
|
|
94
|
+
keysLength: decryptKeys.length,
|
|
95
|
+
keys: loggedKeys
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
});
|
|
89
99
|
let baseBotScore;
|
|
90
100
|
let timestamp;
|
|
91
101
|
for (const [keyIndex, key] of decryptKeys.entries()) {
|
|
@@ -75,15 +75,25 @@ class FrictionlessManager extends CaptchaManager {
|
|
|
75
75
|
process.env.BOT_DECRYPTION_KEY,
|
|
76
76
|
...await this.getDetectorKeys()
|
|
77
77
|
].filter((k) => k);
|
|
78
|
-
this.logger.debug(() =>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
this.logger.debug(() => {
|
|
79
|
+
const loggedKeys = decryptKeys.map((key) => {
|
|
80
|
+
if (!key) return "";
|
|
81
|
+
const start = key.slice(0, 5);
|
|
82
|
+
const middle = key.slice(
|
|
83
|
+
Math.floor(key.length / 2) - 5,
|
|
84
|
+
Math.floor(key.length / 2) + 5
|
|
85
|
+
);
|
|
86
|
+
const end = key.slice(-5);
|
|
87
|
+
return `${start}...${middle}...${end}`;
|
|
88
|
+
});
|
|
89
|
+
return {
|
|
90
|
+
msg: "Decrypting score",
|
|
91
|
+
data: {
|
|
92
|
+
keysLength: decryptKeys.length,
|
|
93
|
+
keys: loggedKeys
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
});
|
|
87
97
|
let baseBotScore;
|
|
88
98
|
let timestamp;
|
|
89
99
|
for (const [keyIndex, key] of decryptKeys.entries()) {
|