Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/decorators

Package Overview
Dependencies
Maintainers
19
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/decorators - npm Package Compare versions

Comparing version 1.2.5 to 2.0.0

LICENSE.md

18

build/cjs/index.js

@@ -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

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