@arcjet/analyze 1.0.0-beta.2 → 1.0.0-beta.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/index.js +8 -2
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -7,14 +7,20 @@ const FREE_EMAIL_PROVIDERS = [
|
|
|
7
7
|
"aol.com",
|
|
8
8
|
"hotmail.co.uk",
|
|
9
9
|
];
|
|
10
|
-
function
|
|
10
|
+
function noOpSensitiveInfoDetect() {
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
function noOpBotsDetect() {
|
|
11
14
|
return [];
|
|
12
15
|
}
|
|
13
16
|
function createCoreImports(detect) {
|
|
14
17
|
if (typeof detect !== "function") {
|
|
15
|
-
detect =
|
|
18
|
+
detect = noOpSensitiveInfoDetect;
|
|
16
19
|
}
|
|
17
20
|
return {
|
|
21
|
+
"arcjet:js-req/bot-identifier": {
|
|
22
|
+
detect: noOpBotsDetect,
|
|
23
|
+
},
|
|
18
24
|
"arcjet:js-req/email-validator-overrides": {
|
|
19
25
|
isFreeEmail(domain) {
|
|
20
26
|
if (FREE_EMAIL_PROVIDERS.includes(domain)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcjet/analyze",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"description": "Arcjet local analysis engine",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://arcjet.com",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"test": "node --test --experimental-test-coverage"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@arcjet/analyze-wasm": "1.0.0-beta.
|
|
45
|
-
"@arcjet/protocol": "1.0.0-beta.
|
|
44
|
+
"@arcjet/analyze-wasm": "1.0.0-beta.3",
|
|
45
|
+
"@arcjet/protocol": "1.0.0-beta.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@arcjet/eslint-config": "1.0.0-beta.
|
|
49
|
-
"@arcjet/rollup-config": "1.0.0-beta.
|
|
50
|
-
"@arcjet/tsconfig": "1.0.0-beta.
|
|
48
|
+
"@arcjet/eslint-config": "1.0.0-beta.3",
|
|
49
|
+
"@arcjet/rollup-config": "1.0.0-beta.3",
|
|
50
|
+
"@arcjet/tsconfig": "1.0.0-beta.3",
|
|
51
51
|
"@bytecodealliance/jco": "1.5.0",
|
|
52
|
-
"@rollup/wasm-node": "4.34.
|
|
52
|
+
"@rollup/wasm-node": "4.34.9",
|
|
53
53
|
"@types/node": "18.18.0",
|
|
54
54
|
"expect": "29.7.0",
|
|
55
|
-
"typescript": "5.
|
|
55
|
+
"typescript": "5.8.2"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public",
|