@counterfact/repl 0.1.12 → 0.1.14

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # @counterfact/repl
2
2
 
3
+ ## 0.1.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7cf6324]
8
+ - Updated dependencies [7563291]
9
+ - Updated dependencies [0bc24a0]
10
+ - Updated dependencies [6ea99b0]
11
+ - Updated dependencies [de2bd09]
12
+ - Updated dependencies [31b46b0]
13
+ - @counterfact/runtime@1.0.0
14
+ - @counterfact/client@0.3.0
15
+
16
+ ## 0.1.13
17
+
18
+ ### Patch Changes
19
+
20
+ - 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.
21
+ - Updated dependencies [fb8c805]
22
+ - Updated dependencies [0d35a14]
23
+ - @counterfact/runtime@0.5.0
24
+ - @counterfact/client@0.2.2
25
+
3
26
  ## 0.1.12
4
27
 
5
28
  ### 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[selectedGroup];
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.12",
3
+ "version": "0.1.14",
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.1",
56
- "@counterfact/runtime": "0.4.2"
55
+ "@counterfact/client": "0.3.0",
56
+ "@counterfact/runtime": "1.0.0"
57
57
  }
58
58
  }