@wirecatch/cli 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +33 -2
- package/THIRD_PARTY_NOTICES.md +110 -0
- package/dist/wirecatch.mjs +29934 -0
- package/package.json +24 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wired Technologies
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @wirecatch/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Run Wirecatch collections from the command line or in CI. It reads collection, environment and globals
|
|
4
|
+
files in the v2.0 and v2.1 format that Wirecatch exports, runs every request with its scripts and tests,
|
|
5
|
+
and exits non-zero when anything fails.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npx @wirecatch/cli run my-api.collection.json -e staging.environment.json -r cli,junit
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- Exit code `0` when everything passed, `1` when a request or test failed, `2` when the input could not be used.
|
|
12
|
+
- Reporters: `cli`, `json`, `junit`.
|
|
13
|
+
- `--parallel <n>` runs up to n iterations at once (requests inside each stay in order).
|
|
14
|
+
- Scripts run in a sandbox with no access to your files, network or environment variables except through the `pm` API.
|
|
15
|
+
- File uploads named in a collection are read only from `--working-dir` (default: the current folder).
|
|
16
|
+
|
|
17
|
+
- Every answer is checked for common security mistakes (headers, CORS, cookies, leaked errors and secrets). Add `--fail-on-security high` to fail the run on them.
|
|
18
|
+
|
|
19
|
+
## Active security checks (Team plan)
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
WIRECATCH_ORG_KEY=wco_... npx @wirecatch/cli scan https://api.example.com/v1/orders -H "Authorization: Bearer $TOKEN" --fail-on medium
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Sends about ten altered copies of the request (no credentials, a made-up token, another website's origin,
|
|
26
|
+
forwarded headers, TRACE, marked input) and reports weaknesses with fixes. Only for sites your organization
|
|
27
|
+
has verified in Wirecatch (checked by the Wirecatch server), or localhost (checked from your machine).
|
|
28
|
+
Requests that change data are only resent with `--allow-unsafe`. Writes JUnit with `-r junit`.
|
|
29
|
+
|
|
30
|
+
Run `wirecatch --help` and `wirecatch scan --help` for every option. Needs Node.js 20 or newer. The package is a single file with no dependencies.
|
|
31
|
+
|
|
32
|
+
More at https://wirecatch.com
|
|
33
|
+
|
|
34
|
+
MIT licence. Bundled open-source packages and their licences are listed in THIRD_PARTY_NOTICES.md.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
This package bundles the following open-source packages. Their licences follow.
|
|
4
|
+
|
|
5
|
+
## @cfworker/json-schema 4.1.1
|
|
6
|
+
|
|
7
|
+
Licence: MIT
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2020 Jeremy Danyow
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## crypto-js 4.2.0
|
|
34
|
+
|
|
35
|
+
Licence: MIT
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
# License
|
|
39
|
+
|
|
40
|
+
[The MIT License (MIT)](http://opensource.org/licenses/MIT)
|
|
41
|
+
|
|
42
|
+
Copyright (c) 2009-2013 Jeff Mott
|
|
43
|
+
Copyright (c) 2013-2016 Evan Vosberg
|
|
44
|
+
|
|
45
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
46
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
47
|
+
in the Software without restriction, including without limitation the rights
|
|
48
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
50
|
+
furnished to do so, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
The above copyright notice and this permission notice shall be included in
|
|
53
|
+
all copies or substantial portions of the Software.
|
|
54
|
+
|
|
55
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
56
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
57
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
58
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
59
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
60
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
61
|
+
THE SOFTWARE.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## tldts 7.4.19
|
|
65
|
+
|
|
66
|
+
Licence: MIT
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Copyright (c) 2017 Thomas Parisot, 2018 Rémi Berson
|
|
70
|
+
|
|
71
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
72
|
+
associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
73
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
74
|
+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
75
|
+
subject to the following conditions:
|
|
76
|
+
|
|
77
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
78
|
+
|
|
79
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
80
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
81
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## undici 7.30.2
|
|
85
|
+
|
|
86
|
+
Licence: MIT
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
MIT License
|
|
90
|
+
|
|
91
|
+
Copyright (c) Matteo Collina and Undici contributors
|
|
92
|
+
|
|
93
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
94
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
95
|
+
in the Software without restriction, including without limitation the rights
|
|
96
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
97
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
98
|
+
furnished to do so, subject to the following conditions:
|
|
99
|
+
|
|
100
|
+
The above copyright notice and this permission notice shall be included in all
|
|
101
|
+
copies or substantial portions of the Software.
|
|
102
|
+
|
|
103
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
104
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
105
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
106
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
107
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
108
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
109
|
+
SOFTWARE.
|
|
110
|
+
```
|