Huge News!Announcing our $40M Series B led by Abstract Ventures.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 2.3.1 to 2.3.2

4

build/cjs/create-mock-context/create-mock-context.js

@@ -16,3 +16,3 @@ "use strict";

var _createMockCookies = _interopRequireDefault(require("../create-mock-cookies"));
var _index = _interopRequireDefault(require("../create-mock-cookies/index.js"));

@@ -93,3 +93,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

Object.assign(context, extensions);
context.cookies = (0, _createMockCookies["default"])(cookies); // ctx.request.body is a common enough custom property for middleware to add that it's handy to just support it by default
context.cookies = (0, _index["default"])(cookies); // ctx.request.body is a common enough custom property for middleware to add that it's handy to just support it by default

@@ -96,0 +96,0 @@ context.request.body = requestBody;

@@ -11,3 +11,3 @@ "use strict";

var _createMockContext = _interopRequireWildcard(require("./create-mock-context"));
var _createMockContext = _interopRequireWildcard(require("./create-mock-context.js"));

@@ -14,0 +14,0 @@ Object.keys(_createMockContext).forEach(function (key) {

@@ -11,3 +11,3 @@ "use strict";

var _createMockCookies = _interopRequireWildcard(require("./create-mock-cookies"));
var _createMockCookies = _interopRequireWildcard(require("./create-mock-cookies.js"));

@@ -14,0 +14,0 @@ Object.keys(_createMockCookies).forEach(function (key) {

@@ -9,3 +9,3 @@ "use strict";

get: function get() {
return _createMockContext["default"];
return _index["default"];
}

@@ -16,10 +16,10 @@ });

get: function get() {
return _createMockCookies["default"];
return _index2["default"];
}
});
var _createMockContext = _interopRequireDefault(require("./create-mock-context"));
var _index = _interopRequireDefault(require("./create-mock-context/index.js"));
var _createMockCookies = _interopRequireDefault(require("./create-mock-cookies"));
var _index2 = _interopRequireDefault(require("./create-mock-cookies/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -16,3 +16,3 @@ "use strict";

var _createMockCookies = _interopRequireDefault(require("../create-mock-cookies"));
var _index = _interopRequireDefault(require("../create-mock-cookies/index.js"));

@@ -78,3 +78,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

Object.assign(context, extensions);
context.cookies = (0, _createMockCookies.default)(cookies); // ctx.request.body is a common enough custom property for middleware to add that it's handy to just support it by default
context.cookies = (0, _index.default)(cookies); // ctx.request.body is a common enough custom property for middleware to add that it's handy to just support it by default

@@ -81,0 +81,0 @@ context.request.body = requestBody;

@@ -9,3 +9,3 @@ "use strict";

var _createMockContext = _interopRequireWildcard(require("./create-mock-context"));
var _createMockContext = _interopRequireWildcard(require("./create-mock-context.js"));

@@ -12,0 +12,0 @@ Object.keys(_createMockContext).forEach(function (key) {

@@ -9,3 +9,3 @@ "use strict";

var _createMockCookies = _interopRequireWildcard(require("./create-mock-cookies"));
var _createMockCookies = _interopRequireWildcard(require("./create-mock-cookies.js"));

@@ -12,0 +12,0 @@ Object.keys(_createMockCookies).forEach(function (key) {

@@ -9,3 +9,3 @@ "use strict";

get: function () {
return _createMockContext.default;
return _index.default;
}

@@ -16,10 +16,10 @@ });

get: function () {
return _createMockCookies.default;
return _index2.default;
}
});
var _createMockContext = _interopRequireDefault(require("./create-mock-context"));
var _index = _interopRequireDefault(require("./create-mock-context/index.js"));
var _createMockCookies = _interopRequireDefault(require("./create-mock-cookies"));
var _index2 = _interopRequireDefault(require("./create-mock-cookies/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -8,2 +8,8 @@ # Changelog

## [2.3.2] - 2021-03-03
### Fixed
- Updated multi-build outputs to include mandatory extensions to fix "Module not found" issues reported by ESM supported bundlers [#1759](https://github.com/Shopify/quilt/pull/1759)
## [2.3.0] - 2020-12-18

@@ -10,0 +16,0 @@

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

module.exports = require("./build/node/index");
module.exports = require("./build/cjs/index.js");
{
"name": "@shopify/jest-koa-mocks",
"version": "2.3.1",
"version": "2.3.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Utilities to easily stub Koa context and cookies",

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

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