koatty_store
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -47,6 +47,6 @@ import { CacheStore, StoreOptions } from "."; | ||
* @param {string} name | ||
* @param {Function} scripts | ||
* @param {*} scripts | ||
* @memberof MemoryStore | ||
*/ | ||
defineCommand(name: string, scripts: Function): Promise<any>; | ||
defineCommand(name: string, scripts: any): Promise<any>; | ||
/** | ||
@@ -53,0 +53,0 @@ * |
@@ -64,3 +64,3 @@ "use strict"; | ||
* @param {string} name | ||
* @param {Function} scripts | ||
* @param {*} scripts | ||
* @memberof MemoryStore | ||
@@ -71,3 +71,5 @@ */ | ||
Object.defineProperty(client, name, { | ||
value: scripts, | ||
value: async function () { | ||
return scripts; | ||
}, | ||
writable: false, | ||
@@ -74,0 +76,0 @@ configurable: false, |
{ | ||
"name": "koatty_store", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Cache store for koatty.", | ||
@@ -87,2 +87,2 @@ "scripts": { | ||
} | ||
} | ||
} |
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
2111582
1357