@shopify/decorators
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -1,4 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var memoize_1 = require("./memoize"); | ||
Object.defineProperty(exports, "memoize", { enumerable: true, get: function () { return memoize_1.default; } }); | ||
export { default as memoize } from './memoize'; |
@@ -1,7 +0,5 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var function_enhancers_1 = require("@shopify/function-enhancers"); | ||
function memoize(resolver) { | ||
import { memoize as memoizeEnhancer } from '@shopify/function-enhancers'; | ||
export default function memoize(resolver) { | ||
return function (_target, propertyKey, descriptor) { | ||
var method = descriptor.value; | ||
const { value: method } = descriptor; | ||
if (!method || !(method instanceof Function)) { | ||
@@ -12,5 +10,5 @@ return descriptor; | ||
get: function get() { | ||
var newDescriptor = { | ||
const newDescriptor = { | ||
configurable: true, | ||
value: function_enhancers_1.memoize(method, resolver), | ||
value: memoizeEnhancer(method, resolver), | ||
}; | ||
@@ -23,2 +21,1 @@ Object.defineProperty(this, propertyKey, newDescriptor); | ||
} | ||
exports.default = memoize; |
@@ -1,1 +0,1 @@ | ||
module.exports = require("./build/node/index.js"); | ||
module.exports = require("./build/cjs/index.js"); |
{ | ||
"name": "@shopify/decorators", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"license": "MIT", | ||
@@ -35,3 +35,3 @@ "description": "A set of decorators to aid your JavaScript journey", | ||
"dependencies": { | ||
"@shopify/function-enhancers": "^1.1.3", | ||
"@shopify/function-enhancers": "^1.1.4", | ||
"tslib": "^1.14.1" | ||
@@ -38,0 +38,0 @@ }, |
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
10962
110