@shopify/jest-koa-mocks
Advanced tools
Comparing version 0.0.2-sknext-beta.2 to 0.0.8-sknext-beta.8
"use strict"; | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -14,8 +12,2 @@ value: true | ||
}); | ||
Object.defineProperty(exports, "Options", { | ||
enumerable: true, | ||
get: function get() { | ||
return _createMockContext.Options; | ||
} | ||
}); | ||
Object.defineProperty(exports, "createMockCookies", { | ||
@@ -28,10 +20,6 @@ enumerable: true, | ||
var _createMockContext = _interopRequireWildcard(require("./create-mock-context")); | ||
var _createMockContext = _interopRequireDefault(require("./create-mock-context")); | ||
var _createMockCookies = _interopRequireDefault(require("./create-mock-cookies")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } |
@@ -12,8 +12,2 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "Options", { | ||
enumerable: true, | ||
get: function () { | ||
return _createMockContext.Options; | ||
} | ||
}); | ||
Object.defineProperty(exports, "createMockCookies", { | ||
@@ -26,10 +20,6 @@ enumerable: true, | ||
var _createMockContext = _interopRequireWildcard(require("./create-mock-context")); | ||
var _createMockContext = _interopRequireDefault(require("./create-mock-context")); | ||
var _createMockCookies = _interopRequireDefault(require("./create-mock-cookies")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
@@ -1,3 +0,4 @@ | ||
export { default as createMockContext, Options } from './create-mock-context'; | ||
export { default as createMockContext } from './create-mock-context'; | ||
export type { Options } from './create-mock-context'; | ||
export { default as createMockCookies } from './create-mock-cookies'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var create_mock_context_1 = require("./create-mock-context"); | ||
exports.createMockContext = create_mock_context_1.default; | ||
Object.defineProperty(exports, "createMockContext", { enumerable: true, get: function () { return create_mock_context_1.default; } }); | ||
var create_mock_cookies_1 = require("./create-mock-cookies"); | ||
exports.createMockCookies = create_mock_cookies_1.default; | ||
Object.defineProperty(exports, "createMockCookies", { enumerable: true, get: function () { return create_mock_cookies_1.default; } }); |
@@ -1,1 +0,1 @@ | ||
module.exports = require("./build/node/index"); | ||
module.exports = require("./build/cjs/index"); |
{ | ||
"name": "@shopify/jest-koa-mocks", | ||
"version": "0.0.2-sknext-beta.2", | ||
"version": "0.0.8-sknext-beta.8", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42862
549