@shopify/jest-koa-mocks
Advanced tools
Comparing version 3.0.0 to 3.0.1-address-mocks-minified-beta.0
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" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31200
0
1