wayfarer-cli 0.0.0-stage → 2.0.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ashwin Sathian
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,30 @@
1
- # Temporary Holding Version
1
+ # wayfarer-cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Runs a [Wayfarer](https://github.com/AshwinSathian/wayfarer) collection, a
4
+ Wayfarer workspace backup or a Postman collection from a terminal or a CI
5
+ job, with the engine the Wayfarer app sends with: the same scripts, the
6
+ same variables and vault, the same results. It exits with `1` when a test
7
+ fails or a request gets no response.
8
+
9
+ ```bash
10
+ npx wayfarer-cli run collection.json -e environment.json -d data.csv --allow-scripts --reporter cli,junit
11
+ ```
12
+
13
+ - `-e` an environment (Wayfarer or Postman), `-d` a data file (CSV or JSON),
14
+ `-n` iterations, `--bail`, `--timeout <ms>`, `--insecure`.
15
+ - `--reporter cli,json,junit` writes `wayfarer-run.json` and
16
+ `wayfarer-run.junit.xml` (in `--out`, default the current folder).
17
+ - **A file's scripts run only with `--allow-scripts`.** Without it, a
18
+ collection that has a script is not run and nothing is sent: read a
19
+ file's scripts before you allow them.
20
+ - A request that uses a vault secret needs the vault: a workspace backup
21
+ brings it, or `--vault-file` names an exported one. The passphrase is read
22
+ from `WAYFARER_VAULT_PASSPHRASE`.
23
+ - Every request goes straight from Node: no CORS, no Local Bridge.
24
+
25
+ Node.js 22.12 or later. The full guide, with what the command line does not
26
+ do and a GitHub Actions example, is
27
+ [`docs/cli.md`](https://github.com/AshwinSathian/wayfarer/blob/main/docs/cli.md).
28
+
29
+ MIT licence. The packages bundled into `dist/wayfarer-cli.mjs` are listed,
30
+ with their licences, in `dist/THIRD_PARTY_LICENSES.txt`.
@@ -0,0 +1,186 @@
1
+ wayfarer-cli bundles the packages below. The script engine (quickjs-emscripten) is a dependency and carries its own.
2
+
3
+ --------------------------------------------------------------------------------
4
+ @noble/hashes@2.4.0 (MIT)
5
+
6
+ The MIT License (MIT)
7
+
8
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the “Software”), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ THE SOFTWARE.
27
+
28
+ --------------------------------------------------------------------------------
29
+ yaml@2.9.1 (ISC)
30
+
31
+ Copyright Eemeli Aro <eemeli@gmail.com>
32
+
33
+ Permission to use, copy, modify, and/or distribute this software for any purpose
34
+ with or without fee is hereby granted, provided that the above copyright notice
35
+ and this permission notice appear in all copies.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
39
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
41
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
42
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
43
+ THIS SOFTWARE.
44
+
45
+ --------------------------------------------------------------------------------
46
+ Run inside the script engine: chai@6.3.0 (MIT)
47
+
48
+ MIT License
49
+
50
+ Copyright (c) 2017 Chai.js Assertion Library
51
+
52
+ Permission is hereby granted, free of charge, to any person obtaining a copy
53
+ of this software and associated documentation files (the "Software"), to deal
54
+ in the Software without restriction, including without limitation the rights
55
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
56
+ copies of the Software, and to permit persons to whom the Software is
57
+ furnished to do so, subject to the following conditions:
58
+
59
+ The above copyright notice and this permission notice shall be included in all
60
+ copies or substantial portions of the Software.
61
+
62
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
68
+ SOFTWARE.
69
+
70
+ --------------------------------------------------------------------------------
71
+ Run inside the script engine: crypto-js@4.2.0 (MIT)
72
+
73
+ # License
74
+
75
+ [The MIT License (MIT)](http://opensource.org/licenses/MIT)
76
+
77
+ Copyright (c) 2009-2013 Jeff Mott
78
+ Copyright (c) 2013-2016 Evan Vosberg
79
+
80
+ Permission is hereby granted, free of charge, to any person obtaining a copy
81
+ of this software and associated documentation files (the "Software"), to deal
82
+ in the Software without restriction, including without limitation the rights
83
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
84
+ copies of the Software, and to permit persons to whom the Software is
85
+ furnished to do so, subject to the following conditions:
86
+
87
+ The above copyright notice and this permission notice shall be included in
88
+ all copies or substantial portions of the Software.
89
+
90
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
91
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
92
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
93
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
94
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
95
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
96
+ THE SOFTWARE.
97
+
98
+ --------------------------------------------------------------------------------
99
+ Run inside the script engine: lodash@4.18.1 (MIT)
100
+
101
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
102
+
103
+ Based on Underscore.js, copyright Jeremy Ashkenas,
104
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
105
+
106
+ This software consists of voluntary contributions made by many
107
+ individuals. For exact contribution history, see the revision history
108
+ available at https://github.com/lodash/lodash
109
+
110
+ The following license applies to all parts of this software except as
111
+ documented below:
112
+
113
+ ====
114
+
115
+ Permission is hereby granted, free of charge, to any person obtaining
116
+ a copy of this software and associated documentation files (the
117
+ "Software"), to deal in the Software without restriction, including
118
+ without limitation the rights to use, copy, modify, merge, publish,
119
+ distribute, sublicense, and/or sell copies of the Software, and to
120
+ permit persons to whom the Software is furnished to do so, subject to
121
+ the following conditions:
122
+
123
+ The above copyright notice and this permission notice shall be
124
+ included in all copies or substantial portions of the Software.
125
+
126
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
127
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
128
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
129
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
130
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
131
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
132
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
133
+
134
+ ====
135
+
136
+ Copyright and related rights for sample code are waived via CC0. Sample
137
+ code is defined as all source code displayed within the prose of the
138
+ documentation.
139
+
140
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
141
+
142
+ ====
143
+
144
+ Files located in the node_modules and vendor directories are externally
145
+ maintained libraries used by this software which have their own
146
+ licenses; we recommend you read them, as their terms may differ from the
147
+ terms above.
148
+
149
+ --------------------------------------------------------------------------------
150
+ Run inside the script engine: moment@2.31.0 (MIT)
151
+
152
+ Copyright (c) OpenJS Foundation and other contributors
153
+
154
+ Permission is hereby granted, free of charge, to any person
155
+ obtaining a copy of this software and associated documentation
156
+ files (the "Software"), to deal in the Software without
157
+ restriction, including without limitation the rights to use,
158
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
159
+ copies of the Software, and to permit persons to whom the
160
+ Software is furnished to do so, subject to the following
161
+ conditions:
162
+
163
+ The above copyright notice and this permission notice shall be
164
+ included in all copies or substantial portions of the Software.
165
+
166
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
167
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
168
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
169
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
170
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
171
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
172
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
173
+ OTHER DEALINGS IN THE SOFTWARE.
174
+
175
+ --------------------------------------------------------------------------------
176
+ Run inside the script engine: uuid@14.0.3 (MIT)
177
+
178
+ The MIT License (MIT)
179
+
180
+ Copyright (c) 2010-2020 Robert Kieffer and other contributors
181
+
182
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
183
+
184
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
185
+
186
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 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, 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.