@intellifend/requestshieldjs 2.0.0-qat.197 → 2.0.0-qat.202
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/README.md +11 -21
- package/dist/checksums.json +5 -5
- package/dist/intellifend.js +2 -2
- package/dist/intellifend.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,37 +6,27 @@ The RequestShield Browser SDK obtains single-use proof-of-work tokens and either
|
|
|
6
6
|
|
|
7
7
|
### npm / ESM
|
|
8
8
|
|
|
9
|
-
Install the
|
|
9
|
+
Install the SDK:
|
|
10
10
|
|
|
11
11
|
```console
|
|
12
12
|
npm install @intellifend/requestshieldjs
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
| Environment | Installation | `challengeUrl` |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| QAT | `npm install @intellifend/requestshieldjs@qat` | `https://challenge-dev.intellifend.ai` |
|
|
20
|
-
| STG | `npm install @intellifend/requestshieldjs@stg` | `https://challenge-stg.intellifend.ai` |
|
|
21
|
-
| Production | `npm install @intellifend/requestshieldjs` | `https://challenge.intellifend.ai` |
|
|
22
|
-
|
|
23
|
-
Import the API and initialize it with your environment's app key and Challenge
|
|
24
|
-
Server URL. This example targets QAT:
|
|
15
|
+
Import the API and initialize it with your app key:
|
|
25
16
|
|
|
26
17
|
```javascript
|
|
27
18
|
import { IntelliFend } from "@intellifend/requestshieldjs";
|
|
28
19
|
|
|
29
20
|
IntelliFend.init({
|
|
30
|
-
appKey: "
|
|
31
|
-
challengeUrl: "https://challenge
|
|
21
|
+
appKey: "YOUR_APP_KEY",
|
|
22
|
+
challengeUrl: "https://challenge.intellifend.ai",
|
|
32
23
|
protect: ["/api/register"],
|
|
33
24
|
});
|
|
34
25
|
```
|
|
35
26
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
app key and endpoint supplied for your environment. Pin the resolved version
|
|
27
|
+
Without `challengeUrl`, the SDK uses `https://challenge.intellifend.ai`. If
|
|
28
|
+
IntelliFend supplies a different endpoint for your application, set it explicitly.
|
|
29
|
+
Pin the resolved version
|
|
40
30
|
in your application's lockfile for reproducible installations.
|
|
41
31
|
|
|
42
32
|
The ESM entry point exports `IntelliFend`, `IntelliFendError`, `VERSION`, and
|
|
@@ -53,8 +43,8 @@ host, together with the license and third-party notices. For example:
|
|
|
53
43
|
src="/vendor/requestshield/intellifend.js"
|
|
54
44
|
integrity="sha384-<digest-from-checksums.json>"
|
|
55
45
|
crossorigin="anonymous"
|
|
56
|
-
data-app-key="
|
|
57
|
-
data-challenge-url="https://challenge
|
|
46
|
+
data-app-key="YOUR_APP_KEY"
|
|
47
|
+
data-challenge-url="https://challenge.intellifend.ai"
|
|
58
48
|
data-protect='["/api/register"]'
|
|
59
49
|
defer>
|
|
60
50
|
</script>
|
|
@@ -89,8 +79,8 @@ include their absolute HTTPS URLs:
|
|
|
89
79
|
|
|
90
80
|
```javascript
|
|
91
81
|
IntelliFend.init({
|
|
92
|
-
appKey: "
|
|
93
|
-
challengeUrl: "https://challenge
|
|
82
|
+
appKey: "YOUR_APP_KEY",
|
|
83
|
+
challengeUrl: "https://challenge.intellifend.ai",
|
|
94
84
|
protect: ["/api/register", "https://api.example.com/login"],
|
|
95
85
|
});
|
|
96
86
|
```
|
package/dist/checksums.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.0-qat.
|
|
2
|
+
"version": "2.0.0-qat.202",
|
|
3
3
|
"algorithm": "sha384",
|
|
4
4
|
"bundles": [
|
|
5
5
|
{
|
|
6
6
|
"name": "intellifend",
|
|
7
7
|
"path": "intellifend.js",
|
|
8
|
-
"version": "2.0.0-qat.
|
|
9
|
-
"integrity": "sha384-
|
|
8
|
+
"version": "2.0.0-qat.202",
|
|
9
|
+
"integrity": "sha384-07fZD+6GSgdB2lZNewxUvyN2kD0P1rK8Abih3JUDDA+OQ8S3qH2OypOyE24PvY/5"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "intellifend-esm",
|
|
13
13
|
"path": "intellifend.mjs",
|
|
14
|
-
"version": "2.0.0-qat.
|
|
15
|
-
"integrity": "sha384-
|
|
14
|
+
"version": "2.0.0-qat.202",
|
|
15
|
+
"integrity": "sha384-4NdnZYE3ax6ELSqwpjmrbLTsmcNGMRVhHusKNV+8pympCdd+pIOpPOB6+7/GVKjD"
|
|
16
16
|
}
|
|
17
17
|
]
|
|
18
18
|
}
|