mirror of
https://github.com/hanzoai/msw.git
synced 2026-09-24 17:00:34 +00:00
fix: use statuses as a shim (#2607)
This commit is contained in:
committed by
GitHub
parent
797d916238
commit
f61122b762
Vendored
-5
@@ -1,8 +1,3 @@
|
||||
declare module '@bundled-es-modules/statuses' {
|
||||
import * as statuses from 'statuses'
|
||||
export default statuses
|
||||
}
|
||||
|
||||
declare module 'babel-minify' {
|
||||
export default function babelMinify(
|
||||
code: string,
|
||||
|
||||
+1
-1
@@ -237,7 +237,6 @@
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@bundled-es-modules/statuses": "^1.0.1",
|
||||
"@inquirer/confirm": "^5.0.0",
|
||||
"@mswjs/interceptors": "^0.39.1",
|
||||
"@open-draft/deferred-promise": "^2.2.0",
|
||||
@@ -250,6 +249,7 @@
|
||||
"path-to-regexp": "^6.3.0",
|
||||
"picocolors": "^1.1.1",
|
||||
"rettime": "^0.7.0",
|
||||
"statuses": "^2.0.2",
|
||||
"strict-event-emitter": "^0.5.1",
|
||||
"tough-cookie": "^6.0.0",
|
||||
"type-fest": "^4.26.1",
|
||||
|
||||
Generated
+10
-11
@@ -8,9 +8,6 @@ importers:
|
||||
|
||||
.:
|
||||
dependencies:
|
||||
'@bundled-es-modules/statuses':
|
||||
specifier: ^1.0.1
|
||||
version: 1.0.1
|
||||
'@inquirer/confirm':
|
||||
specifier: ^5.0.0
|
||||
version: 5.0.2(@types/[email protected])
|
||||
@@ -47,6 +44,9 @@ importers:
|
||||
rettime:
|
||||
specifier: ^0.7.0
|
||||
version: 0.7.0
|
||||
statuses:
|
||||
specifier: ^2.0.2
|
||||
version: 2.0.2
|
||||
strict-event-emitter:
|
||||
specifier: ^0.5.1
|
||||
version: 0.5.1
|
||||
@@ -324,9 +324,6 @@ packages:
|
||||
resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@bundled-es-modules/[email protected]':
|
||||
resolution: {integrity: sha512-yn7BklA5acgcBr+7w064fGV+SGIFySjCKpqjcWgBAIfrAkY+4GQTJJHQMeT3V/sgz23VTEVV8TtOmkvJAhFVfg==}
|
||||
|
||||
'@cloudflare/[email protected]':
|
||||
resolution: {integrity: sha512-JWAX7ZhQ7KjkdJwASgG58MZ/pQ15brlnZ9/0YBwDQ0hrJ/LaK392aTRFlj2r/PRKDZ5dOuujRywNYaNpfeFiEA==}
|
||||
|
||||
@@ -4540,6 +4537,10 @@ packages:
|
||||
resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==}
|
||||
engines: {node: '>= 0.8'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
|
||||
engines: {node: '>= 0.8'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==}
|
||||
|
||||
@@ -5430,10 +5431,6 @@ snapshots:
|
||||
'@babel/helper-validator-identifier': 7.22.20
|
||||
to-fast-properties: 2.0.0
|
||||
|
||||
'@bundled-es-modules/[email protected]':
|
||||
dependencies:
|
||||
statuses: 2.0.1
|
||||
|
||||
'@cloudflare/[email protected]': {}
|
||||
|
||||
'@commitlint/[email protected](@types/[email protected])([email protected])':
|
||||
@@ -9827,7 +9824,7 @@ snapshots:
|
||||
ms: 2.1.3
|
||||
on-finished: 2.4.1
|
||||
range-parser: 1.2.1
|
||||
statuses: 2.0.1
|
||||
statuses: 2.0.2
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
@@ -9997,6 +9994,8 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import statuses from '@bundled-es-modules/statuses'
|
||||
import statuses from '../../../shims/statuses'
|
||||
import { Headers as HeadersPolyfill } from 'headers-polyfill'
|
||||
import type { HttpResponseInit } from '../../HttpResponse'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import statuses from '@bundled-es-modules/statuses'
|
||||
import statuses from '../../../shims/statuses'
|
||||
|
||||
const { message } = statuses
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import * as allStatuses from 'statuses'
|
||||
const statuses = (allStatuses as any).default || allStatuses
|
||||
|
||||
export const message = statuses.message as typeof import('statuses').message
|
||||
|
||||
export default statuses
|
||||
+1
-1
@@ -30,7 +30,7 @@ const shimConfig: Options = {
|
||||
platform: 'neutral',
|
||||
entry: glob.sync('./src/shims/**/*.ts'),
|
||||
format: ['esm', 'cjs'],
|
||||
noExternal: ['cookie'],
|
||||
noExternal: Object.keys(packageJson.dependencies),
|
||||
outDir: './lib/shims',
|
||||
bundle: true,
|
||||
splitting: false,
|
||||
|
||||
Reference in New Issue
Block a user