New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

msw

Package Overview
Dependencies
Maintainers
1
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msw - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

lib/core/GraphQLHandler-BumTfgY4.d.mts

2

cli/init.js

@@ -5,3 +5,3 @@ const fs = require('fs')

const { until } = require('@open-draft/until')
const confirm = require('@inquirer/confirm')
const confirm = require('@inquirer/confirm').default
const invariant = require('./invariant')

@@ -8,0 +8,0 @@ const { SERVICE_WORKER_BUILD_PATH } = require('../config/constants')

@@ -1,2 +0,2 @@

import { R as RequestHandler } from './HttpResponse-_514VQ9z.js';
import { R as RequestHandler } from './HttpResponse-jHZ0p2dL.js';
import './typeUtils.js';

@@ -3,0 +3,0 @@

import { DocumentNode } from 'graphql';
import { c as RequestHandlerOptions, a as ResponseResolver } from './HttpResponse-_514VQ9z.js';
import { a as GraphQLQuery, b as GraphQLVariables, e as GraphQLHandlerNameSelector, G as GraphQLHandler, f as GraphQLResolverExtras, g as GraphQLResponseBody } from './GraphQLHandler-jOzqbxSK.js';
import { c as RequestHandlerOptions, a as ResponseResolver } from './HttpResponse-jHZ0p2dL.js';
import { a as GraphQLQuery, b as GraphQLVariables, e as GraphQLHandlerNameSelector, G as GraphQLHandler, f as GraphQLResolverExtras, g as GraphQLResponseBody } from './GraphQLHandler-DqVT0Gbq.js';
import { Path } from './utils/matching/matchRequestUrl.js';

@@ -5,0 +5,0 @@ import './typeUtils.js';

import 'graphql';
import '../HttpResponse-_514VQ9z.js';
import '../HttpResponse-jHZ0p2dL.js';
import '../utils/matching/matchRequestUrl.js';
export { E as ExpectedOperationTypeNode, G as GraphQLHandler, l as GraphQLHandlerInfo, e as GraphQLHandlerNameSelector, d as GraphQLJsonRequestBody, a as GraphQLQuery, c as GraphQLRequestBody, m as GraphQLRequestParsedResult, f as GraphQLResolverExtras, g as GraphQLResponseBody, b as GraphQLVariables, n as isDocumentNode } from '../GraphQLHandler-jOzqbxSK.js';
export { E as ExpectedOperationTypeNode, G as GraphQLHandler, l as GraphQLHandlerInfo, e as GraphQLHandlerNameSelector, d as GraphQLJsonRequestBody, a as GraphQLQuery, c as GraphQLRequestBody, m as GraphQLRequestParsedResult, f as GraphQLResolverExtras, g as GraphQLResponseBody, b as GraphQLVariables, n as isDocumentNode } from '../GraphQLHandler-DqVT0Gbq.js';
import '../typeUtils.js';

@@ -1,2 +0,2 @@

import { g as RequestHandlerDefaultInfo, R as RequestHandler, a as ResponseResolver, c as RequestHandlerOptions, i as ResponseResolutionContext } from '../HttpResponse-_514VQ9z.js';
import { g as RequestHandlerDefaultInfo, R as RequestHandler, a as ResponseResolver, c as RequestHandlerOptions, i as ResponseResolutionContext } from '../HttpResponse-jHZ0p2dL.js';
import { Path, Match, PathParams } from '../utils/matching/matchRequestUrl.js';

@@ -3,0 +3,0 @@ import '../typeUtils.js';

@@ -1,2 +0,2 @@

export { A as AsyncResponseResolverReturnType, D as DefaultBodyType, d as DefaultRequestMultipartBody, J as JsonBodyType, M as MaybeAsyncResponseResolverReturnType, R as RequestHandler, m as RequestHandlerArgs, g as RequestHandlerDefaultInfo, n as RequestHandlerExecutionResult, k as RequestHandlerInternalInfo, c as RequestHandlerOptions, a as ResponseResolver, l as ResponseResolverInfo, b as ResponseResolverReturnType } from '../HttpResponse-_514VQ9z.js';
export { A as AsyncResponseResolverReturnType, D as DefaultBodyType, d as DefaultRequestMultipartBody, J as JsonBodyType, M as MaybeAsyncResponseResolverReturnType, R as RequestHandler, m as RequestHandlerArgs, g as RequestHandlerDefaultInfo, n as RequestHandlerExecutionResult, k as RequestHandlerInternalInfo, c as RequestHandlerOptions, a as ResponseResolver, l as ResponseResolverInfo, b as ResponseResolverReturnType } from '../HttpResponse-jHZ0p2dL.js';
import '../typeUtils.js';

@@ -1,2 +0,2 @@

import { D as DefaultBodyType, c as RequestHandlerOptions, a as ResponseResolver } from './HttpResponse-_514VQ9z.js';
import { D as DefaultBodyType, c as RequestHandlerOptions, a as ResponseResolver } from './HttpResponse-jHZ0p2dL.js';
import { HttpHandler, HttpRequestResolverExtras } from './handlers/HttpHandler.js';

@@ -3,0 +3,0 @@ import { PathParams, Path } from './utils/matching/matchRequestUrl.js';

@@ -1,2 +0,2 @@

export { f as HttpResponse, H as HttpResponseInit, S as StrictRequest, e as StrictResponse } from './HttpResponse-_514VQ9z.js';
export { f as HttpResponse, H as HttpResponseInit, S as StrictRequest, e as StrictResponse } from './HttpResponse-jHZ0p2dL.js';
import './typeUtils.js';
export { SetupApi } from './SetupApi.js';
export { A as AsyncResponseResolverReturnType, D as DefaultBodyType, d as DefaultRequestMultipartBody, f as HttpResponse, H as HttpResponseInit, J as JsonBodyType, R as RequestHandler, c as RequestHandlerOptions, a as ResponseResolver, b as ResponseResolverReturnType, S as StrictRequest, e as StrictResponse } from './HttpResponse-_514VQ9z.js';
export { A as AsyncResponseResolverReturnType, D as DefaultBodyType, d as DefaultRequestMultipartBody, f as HttpResponse, H as HttpResponseInit, J as JsonBodyType, R as RequestHandler, c as RequestHandlerOptions, a as ResponseResolver, b as ResponseResolverReturnType, S as StrictRequest, e as StrictResponse } from './HttpResponse-jHZ0p2dL.js';
export { HttpRequestHandler, HttpResponseResolver, http } from './http.js';
export { HttpHandler, HttpMethods, HttpRequestParsedResult, RequestQuery } from './handlers/HttpHandler.js';
export { GraphQLRequestHandler, GraphQLResponseResolver, graphql } from './graphql.js';
export { G as GraphQLHandler, d as GraphQLJsonRequestBody, a as GraphQLQuery, c as GraphQLRequestBody, b as GraphQLVariables, P as ParsedGraphQLRequest } from './GraphQLHandler-jOzqbxSK.js';
export { G as GraphQLHandler, d as GraphQLJsonRequestBody, a as GraphQLQuery, c as GraphQLRequestBody, b as GraphQLVariables, P as ParsedGraphQLRequest } from './GraphQLHandler-DqVT0Gbq.js';
export { Match, Path, PathParams, matchRequestUrl } from './utils/matching/matchRequestUrl.js';

@@ -8,0 +8,0 @@ export { HandleRequestOptions, handleRequest } from './utils/handleRequest.js';

@@ -1,2 +0,2 @@

import { e as StrictResponse } from './HttpResponse-_514VQ9z.js';
import { e as StrictResponse } from './HttpResponse-jHZ0p2dL.js';
import './typeUtils.js';

@@ -3,0 +3,0 @@

import { EventMap, Emitter } from 'strict-event-emitter';
import { R as RequestHandler, g as RequestHandlerDefaultInfo } from './HttpResponse-_514VQ9z.js';
import { R as RequestHandler, g as RequestHandlerDefaultInfo } from './HttpResponse-jHZ0p2dL.js';
import { LifeCycleEventEmitter } from './sharedOptions.js';

@@ -4,0 +4,0 @@ import { Disposable } from './utils/internal/Disposable.js';

@@ -1,2 +0,2 @@

export { h as HandlersExecutionResult, i as ResponseResolutionContext, j as executeHandlers } from '../HttpResponse-_514VQ9z.js';
export { h as HandlersExecutionResult, i as ResponseResolutionContext, j as executeHandlers } from '../HttpResponse-jHZ0p2dL.js';
import '../typeUtils.js';
import { Emitter } from 'strict-event-emitter';
import { h as HandlersExecutionResult, R as RequestHandler } from '../HttpResponse-_514VQ9z.js';
import { h as HandlersExecutionResult, R as RequestHandler } from '../HttpResponse-jHZ0p2dL.js';
import { SharedOptions, LifeCycleEventsMap } from '../sharedOptions.js';

@@ -4,0 +4,0 @@ import { RequiredDeep } from '../typeUtils.js';

@@ -1,2 +0,2 @@

import { H as HttpResponseInit } from '../../HttpResponse-_514VQ9z.js';
import { H as HttpResponseInit } from '../../HttpResponse-jHZ0p2dL.js';
import '../../typeUtils.js';

@@ -3,0 +3,0 @@

@@ -36,2 +36,3 @@ "use strict";

var import_statuses = __toESM(require("@bundled-es-modules/statuses"));
var import_headers_polyfill = require("headers-polyfill");
const { message } = import_statuses.default;

@@ -58,3 +59,5 @@ function normalizeResponseInit(init = {}) {

if (typeof document !== "undefined") {
const responseCookies = init.headers.get("Set-Cookie")?.split(",") || [];
const responseCookies = import_headers_polyfill.Headers.prototype.getSetCookie.call(
init.headers
);
for (const cookieString of responseCookies) {

@@ -61,0 +64,0 @@ document.cookie = cookieString;

import 'graphql';
export { j as GraphQLMultipartRequestBody, i as GraphQLParsedOperationsMap, h as ParsedGraphQLQuery, P as ParsedGraphQLRequest, p as parseDocumentNode, k as parseGraphQLRequest } from '../../GraphQLHandler-jOzqbxSK.js';
import '../../HttpResponse-_514VQ9z.js';
export { j as GraphQLMultipartRequestBody, i as GraphQLParsedOperationsMap, h as ParsedGraphQLQuery, P as ParsedGraphQLRequest, p as parseDocumentNode, k as parseGraphQLRequest } from '../../GraphQLHandler-DqVT0Gbq.js';
import '../../HttpResponse-jHZ0p2dL.js';
import '../../typeUtils.js';
import '../matching/matchRequestUrl.js';

@@ -1,2 +0,2 @@

import { d as DefaultRequestMultipartBody } from '../../HttpResponse-_514VQ9z.js';
import { d as DefaultRequestMultipartBody } from '../../HttpResponse-jHZ0p2dL.js';
import '../../typeUtils.js';

@@ -3,0 +3,0 @@

@@ -1,2 +0,2 @@

import { R as RequestHandler, g as RequestHandlerDefaultInfo, c as RequestHandlerOptions } from '../../HttpResponse-_514VQ9z.js';
import { R as RequestHandler, g as RequestHandlerDefaultInfo, c as RequestHandlerOptions } from '../../HttpResponse-jHZ0p2dL.js';
import '../../typeUtils.js';

@@ -3,0 +3,0 @@

@@ -5,3 +5,3 @@ /* eslint-disable */

/**
* Mock Service Worker (2.2.3).
* Mock Service Worker (2.2.4).
* @see https://github.com/mswjs/msw

@@ -8,0 +8,0 @@ * - Please do NOT modify this file.

{
"name": "msw",
"version": "2.2.3",
"version": "2.2.4",
"description": "Seamless REST/GraphQL API mocking library for browser and Node.js.",

@@ -129,3 +129,3 @@ "main": "./lib/core/index.js",

"@open-draft/test-server": "^0.4.2",
"@ossjs/release": "^0.8.0",
"@ossjs/release": "^0.8.1",
"@playwright/test": "^1.40.1",

@@ -138,4 +138,4 @@ "@swc/core": "^1.3.102",

"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@web/dev-server": "^0.1.38",

@@ -150,3 +150,3 @@ "axios": "^1.6.5",

"esbuild-loader": "^4.0.2",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",

@@ -153,0 +153,0 @@ "eslint-plugin-prettier": "^5.1.3",

import statuses from '@bundled-es-modules/statuses'
import type { HttpResponseInit } from '../../HttpResponse'
import { Headers as HeadersPolyfill } from 'headers-polyfill'

@@ -43,6 +44,9 @@ const { message } = statuses

// Write the mocked response cookies to the document.
// Note that Fetch API Headers will concatenate multiple "Set-Cookie"
// headers into a single comma-separated string, just as it does
// with any other multi-value headers.
const responseCookies = init.headers.get('Set-Cookie')?.split(',') || []
// Use `headers-polyfill` to get the Set-Cookie header value correctly.
// This is an alternative until TypeScript 5.2
// and Node.js v20 become the minimum supported version
// and getSetCookie in Headers can be used directly.
const responseCookies = HeadersPolyfill.prototype.getSetCookie.call(
init.headers,
)

@@ -49,0 +53,0 @@ for (const cookieString of responseCookies) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc