@counterfact/repl 0.1.1 → 0.1.4
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 +39 -0
- package/dist/repl.js +1 -2
- package/package.json +4 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @counterfact/repl
|
|
2
|
+
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [99dab55]
|
|
8
|
+
- @counterfact/runtime@0.1.4
|
|
9
|
+
|
|
10
|
+
## 0.1.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [5e59b84]
|
|
15
|
+
- Updated dependencies [f90e88d]
|
|
16
|
+
- Updated dependencies [fb73d12]
|
|
17
|
+
- Updated dependencies [8712a09]
|
|
18
|
+
- Updated dependencies [8b13036]
|
|
19
|
+
- Updated dependencies [afc52c0]
|
|
20
|
+
- Updated dependencies [3bfb75d]
|
|
21
|
+
- Updated dependencies [28aafab]
|
|
22
|
+
- Updated dependencies [28aafab]
|
|
23
|
+
- @counterfact/client@0.1.1
|
|
24
|
+
- @counterfact/runtime@0.1.3
|
|
25
|
+
|
|
26
|
+
## 0.1.2
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- d4f667d: Keep REPL route autocomplete synchronized with routes loaded after the session starts.
|
|
31
|
+
- Updated dependencies [669d9dd]
|
|
32
|
+
- @counterfact/runtime@0.1.2
|
|
33
|
+
|
|
34
|
+
## 0.1.1
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [5d1ea2e]
|
|
39
|
+
- @counterfact/runtime@0.1.1
|
package/dist/repl.js
CHANGED
|
@@ -117,7 +117,6 @@ function getRouteCompletions(line, routes) {
|
|
|
117
117
|
* exported function names and file-key prefixes from the loaded scenario modules.
|
|
118
118
|
*/
|
|
119
119
|
export function createCompleter(registry, fallback, routeCatalog, scenarioRegistry, groupedScenarioRegistries) {
|
|
120
|
-
const routes = getRoutesForCompletion(registry, routeCatalog);
|
|
121
120
|
return (line, callback) => {
|
|
122
121
|
const scenarioCompletions = getScenarioCompletions(line, scenarioRegistry, groupedScenarioRegistries);
|
|
123
122
|
if (scenarioCompletions !== undefined) {
|
|
@@ -129,7 +128,7 @@ export function createCompleter(registry, fallback, routeCatalog, scenarioRegist
|
|
|
129
128
|
callback(null, routeBuilderCompletions);
|
|
130
129
|
return;
|
|
131
130
|
}
|
|
132
|
-
const routeCompletions = getRouteCompletions(line,
|
|
131
|
+
const routeCompletions = getRouteCompletions(line, getRoutesForCompletion(registry, routeCatalog));
|
|
133
132
|
if (routeCompletions === undefined) {
|
|
134
133
|
if (fallback) {
|
|
135
134
|
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.4",
|
|
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.1.
|
|
56
|
-
"@counterfact/runtime": "0.1.
|
|
55
|
+
"@counterfact/client": "0.1.1",
|
|
56
|
+
"@counterfact/runtime": "0.1.4"
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
}
|