Socket
Socket
Sign inDemoInstall

typescript-memoize

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

4

package.json
{
"name": "typescript-memoize",
"version": "1.1.0",
"version": "1.1.1",
"description": "Memoize decorator for Typescript",

@@ -43,3 +43,3 @@ "main": "./dist/memoize-decorator.js",

"jasmine-core": "3.6.0",
"karma": "5.2.3",
"karma": "6.3.16",
"karma-chrome-launcher": "3.1.0",

@@ -46,0 +46,0 @@ "karma-es6-shim": "1.0.0",

@@ -48,3 +48,3 @@ # typescript-memoize

// Memoize a method and expire the value after some time
// Memoize a method and expire the value after some time in milliseconds
@MemoizeExpiring(5000)

@@ -153,3 +153,3 @@ public getDataForSomeTime() {

@Memoize((name: string, planet: string) => {
return name + ';' + string;
return name + ';' + planet;
})

@@ -170,5 +170,5 @@ public getBetterGreeting(name: string, planet: string) {

@Memoize({
expiring: 10000,
expiring: 10000, // milliseconds
hashFunction: (name: string, planet: string) => {
return name + ';' + string;
return name + ';' + planet;
}

@@ -175,0 +175,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc