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

@shopify/jest-koa-mocks

Package Overview
Dependencies
Maintainers
19
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/jest-koa-mocks - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1-address-mocks-minified-beta.0

4

build/ts/create-mock-cookies/create-mock-cookies.js
export default function createMockCookies(cookies = {}, secure = true) {
const cookieEntries = Object.keys(cookies).map(key => [key, cookies[key]]);
const cookieEntries = Object.keys(cookies).map((key) => [key, cookies[key]]);
const requestStore = new Map(cookieEntries);

@@ -9,3 +9,3 @@ const responseStore = new Map(cookieEntries);

}),
get: jest.fn(key => {
get: jest.fn((key) => {
return requestStore.get(key);

@@ -12,0 +12,0 @@ }),

{
"name": "@shopify/jest-koa-mocks",
"version": "3.0.0",
"version": "3.0.1-address-mocks-minified-beta.0",
"license": "MIT",

@@ -52,3 +52,3 @@ "description": "Utilities to easily stub Koa context and cookies",

},
"gitHead": "40de4af181104f298cbab42d2d3d68e228a9a31a"
"gitHead": "1a19759d10db9ca65d346141b10e7b0654e023e6"
}
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