(transforms: Transform[])
| 268 | } |
| 269 | |
| 270 | function getRequestPath(transforms: Transform[]): string | undefined { |
| 271 | let path: string | undefined; |
| 272 | for (const transform of transforms) { |
| 273 | if ( |
| 274 | transform.type === 'request.path' && |
| 275 | transform.op === 'set' && |
| 276 | typeof transform.args === 'string' && |
| 277 | isValidRequestPath(transform.args) |
| 278 | ) { |
| 279 | path = transform.args; |
| 280 | } |
| 281 | } |
| 282 | return path; |
| 283 | } |
| 284 | |
| 285 | function findMatchingKeys(data: TransformData, keyPattern: KeyRule): string[] { |
| 286 | const matched: string[] = []; |
no test coverage detected