Sha256: 732ce6f94cf22e44547003ee9e591ebb1c15783ea25d04882dda5e9beeb41648

Contents?: true

Size: 1.62 KB

Versions: 26

Compression:

Stored size: 1.62 KB

Contents

{"version":3,"sources":["../../src/core/sharedOptions.ts"],"sourcesContent":["import type { Emitter } from 'strict-event-emitter'\nimport type { UnhandledRequestStrategy } from './utils/request/onUnhandledRequest'\n\nexport interface SharedOptions {\n  /**\n   * Specifies how to react to a request that has no corresponding\n   * request handler. Warns on unhandled requests by default.\n   *\n   * @example worker.start({ onUnhandledRequest: 'bypass' })\n   * @example worker.start({ onUnhandledRequest: 'warn' })\n   * @example server.listen({ onUnhandledRequest: 'error' })\n   */\n  onUnhandledRequest?: UnhandledRequestStrategy\n}\n\nexport type LifeCycleEventsMap = {\n  'request:start': [\n    args: {\n      request: Request\n      requestId: string\n    },\n  ]\n  'request:match': [\n    args: {\n      request: Request\n      requestId: string\n    },\n  ]\n  'request:unhandled': [\n    args: {\n      request: Request\n      requestId: string\n    },\n  ]\n  'request:end': [\n    args: {\n      request: Request\n      requestId: string\n    },\n  ]\n  'response:mocked': [\n    args: {\n      response: Response\n      request: Request\n      requestId: string\n    },\n  ]\n  'response:bypass': [\n    args: {\n      response: Response\n      request: Request\n      requestId: string\n    },\n  ]\n  unhandledException: [\n    args: {\n      error: Error\n      request: Request\n      requestId: string\n    },\n  ]\n}\n\nexport type LifeCycleEventEmitter<\n  EventsMap extends Record<string | symbol, any>,\n> = Pick<Emitter<EventsMap>, 'on' | 'removeListener' | 'removeAllListeners'>\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.25 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.24 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.23 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.22 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.21 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.20 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.19 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.18 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.17 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.16 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.15 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.14 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.13 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.12 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.11 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.10 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.9 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.8 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map
clapton-0.0.7 lib/clapton/javascripts/node_modules/msw/lib/core/sharedOptions.js.map