@counterfact/repl 0.1.11 → 0.1.13
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 +18 -0
- package/dist/repl.js +4 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @counterfact/repl
|
|
2
2
|
|
|
3
|
+
## 0.1.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0d35a14: Handle prototype-named cookie/query inputs as ordinary own data properties, preserve unchanged context initializers containing an own `__proto__` key, and ignore inherited names when completing scenario groups.
|
|
8
|
+
- Updated dependencies [fb8c805]
|
|
9
|
+
- Updated dependencies [0d35a14]
|
|
10
|
+
- @counterfact/runtime@0.5.0
|
|
11
|
+
- @counterfact/client@0.2.2
|
|
12
|
+
|
|
13
|
+
## 0.1.12
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [b55f3e4]
|
|
18
|
+
- Updated dependencies [3390560]
|
|
19
|
+
- @counterfact/runtime@0.4.2
|
|
20
|
+
|
|
3
21
|
## 0.1.11
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/repl.js
CHANGED
|
@@ -57,7 +57,10 @@ function getScenarioCompletions(line, scenarioRegistry, groupedScenarioRegistrie
|
|
|
57
57
|
return [matches, groupPartial];
|
|
58
58
|
}
|
|
59
59
|
const selectedGroup = args[0] ?? "";
|
|
60
|
-
const selectedRegistry = groupedScenarioRegistries
|
|
60
|
+
const selectedRegistry = Object.hasOwn(groupedScenarioRegistries, selectedGroup)
|
|
61
|
+
? // eslint-disable-next-line security/detect-object-injection -- Only an own group key is read; arbitrary API group names are supported.
|
|
62
|
+
groupedScenarioRegistries[selectedGroup]
|
|
63
|
+
: undefined;
|
|
61
64
|
if (selectedRegistry === undefined) {
|
|
62
65
|
const scenarioPartial = hasTrailingWhitespace
|
|
63
66
|
? ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@counterfact/repl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
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.2.
|
|
56
|
-
"@counterfact/runtime": "0.
|
|
55
|
+
"@counterfact/client": "0.2.2",
|
|
56
|
+
"@counterfact/runtime": "0.5.0"
|
|
57
57
|
}
|
|
58
58
|
}
|