@shopify/decorators
Advanced tools
Comparing version 1.2.5 to 2.0.0
@@ -1,15 +0,9 @@ | ||
"use strict"; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "memoize", { | ||
enumerable: true, | ||
get: function get() { | ||
return _memoize["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var _memoize = _interopRequireDefault(require("./memoize.js")); | ||
var memoize = require('./memoize.js'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
exports.memoize = memoize['default']; |
@@ -1,13 +0,12 @@ | ||
"use strict"; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = memoize; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var _functionEnhancers = require("@shopify/function-enhancers"); | ||
var functionEnhancers = require('@shopify/function-enhancers'); | ||
function memoize(resolver) { | ||
return function (_target, propertyKey, descriptor) { | ||
var method = descriptor.value; | ||
const { | ||
value: method | ||
} = descriptor; | ||
@@ -20,5 +19,5 @@ if (!method || !(method instanceof Function)) { | ||
get: function get() { | ||
var newDescriptor = { | ||
const newDescriptor = { | ||
configurable: true, | ||
value: (0, _functionEnhancers.memoize)(method, resolver) | ||
value: functionEnhancers.memoize(method, resolver) | ||
}; | ||
@@ -30,2 +29,4 @@ Object.defineProperty(this, propertyKey, newDescriptor); | ||
}; | ||
} | ||
} | ||
exports.default = memoize; |
@@ -10,2 +10,8 @@ # Changelog | ||
## 2.0.0 - 2021-05-21 | ||
### Breaking Change | ||
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. [#1906](https://github.com/Shopify/quilt/pull/1906) | ||
## 1.2.5 - 2021-04-13 | ||
@@ -12,0 +18,0 @@ |
{ | ||
"name": "@shopify/decorators", | ||
"version": "1.2.5", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
@@ -23,2 +23,5 @@ "description": "A set of decorators to aid your JavaScript journey", | ||
"homepage": "https://github.com/Shopify/quilt/blob/main/packages/decorators/README.md", | ||
"engines": { | ||
"node": ">=12.14.0" | ||
}, | ||
"files": [ | ||
@@ -33,3 +36,3 @@ "build/*", | ||
"dependencies": { | ||
"@shopify/function-enhancers": "^1.1.5" | ||
"@shopify/function-enhancers": "^2.0.0" | ||
}, | ||
@@ -45,3 +48,4 @@ "module": "index.mjs", | ||
} | ||
} | ||
}, | ||
"gitHead": "40de4af181104f298cbab42d2d3d68e228a9a31a" | ||
} |
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
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
11185
20
73
+ Added@shopify/function-enhancers@2.0.8(transitive)
- Removed@shopify/function-enhancers@1.1.5(transitive)