Skip to content

Commit a79c266

Browse files
committed
Update Mockttp: keylogs, webhook rules, streaming events & client fixes
1 parent 00b21dd commit a79c266

File tree

4 files changed

+23
-17
lines changed

4 files changed

+23
-17
lines changed

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"mobx-shallow-undo": "^1.0.0",
110110
"mobx-utils": "^5.1.0",
111111
"mockrtc": "^0.5.0",
112-
"mockttp": "^4.0.0",
112+
"mockttp": "^4.2.0",
113113
"monaco-editor": "^0.27.0",
114114
"node-forge": "^1.3.0",
115115
"openapi-directory": "^1.3.0",

src/model/rules/rule-descriptions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ export function nameStepClass(key: StepClassKey): string {
170170
case 'callback':
171171
case 'stream':
172172
case 'delay':
173+
case 'wait-for-request-body':
174+
case 'webhook':
173175
throw new Error(`${key} step should not be used directly`);
174176
default:
175177
throw new UnreachableCheck(key);
@@ -265,6 +267,8 @@ export function summarizeStepClass(key: StepClassKey): string {
265267
case 'callback':
266268
case 'stream':
267269
case 'delay':
270+
case 'wait-for-request-body':
271+
case 'webhook':
268272
throw new Error(`${key} step should not be used directly`);
269273
default:
270274
throw new UnreachableCheck(key);

src/model/rules/rules.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,9 @@ const HiddenSteps = [
288288
'callback',
289289
'stream',
290290
'wait-for-rtc-track', // Not super useful here I think
291-
'delay' // Not exposed yet until we have more multi-step options
291+
'delay', // Not exposed yet until we have more multi-step options
292+
'wait-for-request-body', // Not exposed yet until we have more multi-step options
293+
'webhook' // Not exposed yet until we have more multi-step options
292294
] as const;
293295

294296
const MatcherLimitedSteps: {

0 commit comments

Comments
 (0)