@counterfact/repl 0.1.1 → 0.1.5
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 +55 -0
- package/dist/repl.js +3 -2
- package/package.json +4 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @counterfact/repl
|
|
2
|
+
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 04d67bb: Validate and send required OpenAPI cookie, body, and form inputs through the immutable route builder, including REPL completions for the new methods.
|
|
8
|
+
- Updated dependencies [04d67bb]
|
|
9
|
+
- Updated dependencies [13155b0]
|
|
10
|
+
- Updated dependencies [1714e9a]
|
|
11
|
+
- Updated dependencies [02d013a]
|
|
12
|
+
- Updated dependencies [25215f4]
|
|
13
|
+
- Updated dependencies [befb686]
|
|
14
|
+
- Updated dependencies [15b30fb]
|
|
15
|
+
- Updated dependencies [ba93689]
|
|
16
|
+
- @counterfact/client@0.2.0
|
|
17
|
+
- @counterfact/runtime@0.1.5
|
|
18
|
+
|
|
19
|
+
## 0.1.4
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [99dab55]
|
|
24
|
+
- @counterfact/runtime@0.1.4
|
|
25
|
+
|
|
26
|
+
## 0.1.3
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [5e59b84]
|
|
31
|
+
- Updated dependencies [f90e88d]
|
|
32
|
+
- Updated dependencies [fb73d12]
|
|
33
|
+
- Updated dependencies [8712a09]
|
|
34
|
+
- Updated dependencies [8b13036]
|
|
35
|
+
- Updated dependencies [afc52c0]
|
|
36
|
+
- Updated dependencies [3bfb75d]
|
|
37
|
+
- Updated dependencies [28aafab]
|
|
38
|
+
- Updated dependencies [28aafab]
|
|
39
|
+
- @counterfact/client@0.1.1
|
|
40
|
+
- @counterfact/runtime@0.1.3
|
|
41
|
+
|
|
42
|
+
## 0.1.2
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- d4f667d: Keep REPL route autocomplete synchronized with routes loaded after the session starts.
|
|
47
|
+
- Updated dependencies [669d9dd]
|
|
48
|
+
- @counterfact/runtime@0.1.2
|
|
49
|
+
|
|
50
|
+
## 0.1.1
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- Updated dependencies [5d1ea2e]
|
|
55
|
+
- @counterfact/runtime@0.1.1
|
package/dist/repl.js
CHANGED
|
@@ -5,6 +5,8 @@ function printToStdout(line) {
|
|
|
5
5
|
}
|
|
6
6
|
const ROUTE_BUILDER_METHODS = [
|
|
7
7
|
"body(",
|
|
8
|
+
"cookies(",
|
|
9
|
+
"form(",
|
|
8
10
|
"headers(",
|
|
9
11
|
"help(",
|
|
10
12
|
"method(",
|
|
@@ -117,7 +119,6 @@ function getRouteCompletions(line, routes) {
|
|
|
117
119
|
* exported function names and file-key prefixes from the loaded scenario modules.
|
|
118
120
|
*/
|
|
119
121
|
export function createCompleter(registry, fallback, routeCatalog, scenarioRegistry, groupedScenarioRegistries) {
|
|
120
|
-
const routes = getRoutesForCompletion(registry, routeCatalog);
|
|
121
122
|
return (line, callback) => {
|
|
122
123
|
const scenarioCompletions = getScenarioCompletions(line, scenarioRegistry, groupedScenarioRegistries);
|
|
123
124
|
if (scenarioCompletions !== undefined) {
|
|
@@ -129,7 +130,7 @@ export function createCompleter(registry, fallback, routeCatalog, scenarioRegist
|
|
|
129
130
|
callback(null, routeBuilderCompletions);
|
|
130
131
|
return;
|
|
131
132
|
}
|
|
132
|
-
const routeCompletions = getRouteCompletions(line,
|
|
133
|
+
const routeCompletions = getRouteCompletions(line, getRoutesForCompletion(registry, routeCatalog));
|
|
133
134
|
if (routeCompletions === undefined) {
|
|
134
135
|
if (fallback) {
|
|
135
136
|
fallback(line, callback);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@counterfact/repl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Inspect and manipulate a running Counterfact simulator from a Node.js REPL.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"test:packed-consumer": "node test/package/repl-consumer-smoke.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@counterfact/client": "0.
|
|
56
|
-
"@counterfact/runtime": "0.1.
|
|
55
|
+
"@counterfact/client": "0.2.0",
|
|
56
|
+
"@counterfact/runtime": "0.1.5"
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
}
|