New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@5app/memoize

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@5app/memoize - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

4

index.js

@@ -23,3 +23,3 @@ /**

*/
function Memoize(callback, opts = {}) {
export default function Memoize(callback, opts = {}) {
// Disable all memoize

@@ -139,3 +139,1 @@ const {MEMOIZE_DISABLE = false} = process.env;

}
module.exports = Memoize;
{
"name": "@5app/memoize",
"version": "1.3.1",
"version": "1.4.0",
"description": "Memoize decorator",
"main": "index.js",
"type": "module",
"exports": {
".": "./index.js"
},
"scripts": {

@@ -11,3 +15,2 @@ "lint": "eslint ./",

"precommit-msg": "echo 'Running pre-commit checks... (skip using --no-verify)' && exit 0",
"semantic-release": "semantic-release",
"test": "npm run lint && npm run spec",

@@ -29,21 +32,20 @@ "spec": "nyc mocha test/spec/**/*.js"

"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"chai": "^4.3.0",
"@5app/semantic-release-config": "^1.0.1",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"eslint": "^7.20.0",
"eslint-config-5app": "^0.14.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"husky": "^5.0.0",
"mocha": "^8.3.0",
"eslint": "^8.21.0",
"eslint-config-5app": "^0.16.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^4.3.8",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"pretty-quick": "^3.1.0",
"semantic-release": "^17.3.9"
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"semantic-release": "^19.0.3"
},
"publishConfig": {
"access": "public"
"release": {
"extends": "@5app/semantic-release-config"
},

@@ -50,0 +52,0 @@ "commitlint": {

@@ -14,6 +14,6 @@ # Memoize

```js
const got = require('got'); // simple http requst library for the purpose of demonstration
const memoize = require('@5app/memoize');
import got from 'got'; // simple http requst library for the purpose of demonstration
import memoize from '@5app/memoize';
// Let's say we're going to decorate an add function... it's
// Let's decorate the got function
const memoGot = memoize(got);

@@ -25,3 +25,5 @@

// only one request is actually made, the second will piggy back off the first.
// Will call...
// GET https://github.com
// ... but that's it, it wont call it again the second request will piggy back off the first.
```

@@ -44,3 +46,4 @@

```js
const memoize = require('@5app/memoize');
import memoize from '@5app/memoize';
const memoGot = memoize(got, {

@@ -47,0 +50,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