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.3 to 1.2.4

5

build/ts/index.js

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

13

build/ts/memoize.js

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

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