Comparing version 1.0.3 to 1.0.4
export var isWeakable = function (value) { return (value && (typeof value === 'object') | ||
// || typeof value === 'function' // not using function to prevent leaks | ||
); }; | ||
|| typeof value === 'function'); }; |
@@ -60,3 +60,3 @@ import { WeakStorage } from "./types"; | ||
* | ||
* inboxed is about __isolation__. | ||
* inboxed is about __isolation__. Or creating parallel caches. | ||
* | ||
@@ -84,3 +84,3 @@ * @param {Function} fn function to "box" | ||
* | ||
* @see {@link inboxed} | ||
* @see {@link inboxed} for argument based cache separation | ||
* @see https://github.com/theKashey/kashe#fork | ||
@@ -87,0 +87,0 @@ */ |
@@ -142,3 +142,3 @@ import functionDouble from "function-double"; | ||
* | ||
* inboxed is about __isolation__. | ||
* inboxed is about __isolation__. Or creating parallel caches. | ||
* | ||
@@ -190,3 +190,3 @@ * @param {Function} fn function to "box" | ||
* | ||
* @see {@link inboxed} | ||
* @see {@link inboxed} for argument based cache separation | ||
* @see https://github.com/theKashey/kashe#fork | ||
@@ -193,0 +193,0 @@ */ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fork = exports.inboxed = exports.boxed = exports.weakKashe = exports.kashe = void 0; | ||
var weak_1 = require("./weak"); | ||
exports.kashe = weak_1.kashe; | ||
exports.weakKashe = weak_1.weakKashe; | ||
exports.boxed = weak_1.boxed; | ||
exports.inboxed = weak_1.inboxed; | ||
exports.fork = weak_1.fork; | ||
Object.defineProperty(exports, "kashe", { enumerable: true, get: function () { return weak_1.kashe; } }); | ||
Object.defineProperty(exports, "weakKashe", { enumerable: true, get: function () { return weak_1.weakKashe; } }); | ||
Object.defineProperty(exports, "boxed", { enumerable: true, get: function () { return weak_1.boxed; } }); | ||
Object.defineProperty(exports, "inboxed", { enumerable: true, get: function () { return weak_1.inboxed; } }); | ||
Object.defineProperty(exports, "fork", { enumerable: true, get: function () { return weak_1.fork; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createSelectorCreator = exports.createStructuredSelector = exports.createSelector = exports.strongMemoize = void 0; | ||
var reselect_1 = require("reselect"); | ||
exports.createSelectorCreator = reselect_1.createSelectorCreator; | ||
exports.createStructuredSelector = reselect_1.createStructuredSelector; | ||
Object.defineProperty(exports, "createSelectorCreator", { enumerable: true, get: function () { return reselect_1.createSelectorCreator; } }); | ||
Object.defineProperty(exports, "createStructuredSelector", { enumerable: true, get: function () { return reselect_1.createStructuredSelector; } }); | ||
var weak_1 = require("./weak"); | ||
@@ -7,0 +8,0 @@ var strongStorage_1 = require("./strongStorage"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createStrongStorage = void 0; | ||
var utils_1 = require("./utils"); | ||
@@ -4,0 +5,0 @@ exports.createStrongStorage = function (startIndex, endIndex, storage) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isWeakable = void 0; | ||
exports.isWeakable = function (value) { return (value && (typeof value === 'object') | ||
// || typeof value === 'function' // not using function to prevent leaks | ||
); }; | ||
|| typeof value === 'function'); }; |
@@ -60,3 +60,3 @@ import { WeakStorage } from "./types"; | ||
* | ||
* inboxed is about __isolation__. | ||
* inboxed is about __isolation__. Or creating parallel caches. | ||
* | ||
@@ -84,3 +84,3 @@ * @param {Function} fn function to "box" | ||
* | ||
* @see {@link inboxed} | ||
* @see {@link inboxed} for argument based cache separation | ||
* @see https://github.com/theKashey/kashe#fork | ||
@@ -87,0 +87,0 @@ */ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fork = exports.inboxed = exports.boxed = exports.swap = exports.weakKashe = exports.kashe = exports.weakMemoizeCreator = void 0; | ||
var function_double_1 = require("function-double"); | ||
@@ -147,3 +148,3 @@ var weakStorage_1 = require("./weakStorage"); | ||
* | ||
* inboxed is about __isolation__. | ||
* inboxed is about __isolation__. Or creating parallel caches. | ||
* | ||
@@ -196,3 +197,3 @@ * @param {Function} fn function to "box" | ||
* | ||
* @see {@link inboxed} | ||
* @see {@link inboxed} for argument based cache separation | ||
* @see https://github.com/theKashey/kashe#fork | ||
@@ -199,0 +200,0 @@ */ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createWeakStorage = void 0; | ||
var utils_1 = require("./utils"); | ||
@@ -4,0 +5,0 @@ exports.createWeakStorage = function (indexId, storage) { |
{ | ||
"name": "kashe", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Stateless weak memoization replacement for reselect and memoize-one", | ||
@@ -5,0 +5,0 @@ "main": "dist/es5/index.js", |
@@ -21,3 +21,3 @@ <div align="center"> | ||
- [lodash.memoize](https://lodash.com/docs/4.17.11#memoize) is a cool thing. But but default it has endless cache size. | ||
- [lodash.memoize](https://lodash.com/docs/4.17.11#memoize) is a cool thing. But by default it has endless cache size. | ||
- [memoize-one only](https://github.com/alexreardon/memoize-one) remembers the latest arguments and result. No need to worry about __cache busting__ mechanisms such as maxAge, maxSize, exclusions and so on which can be prone to __memory leaks__. | ||
@@ -24,0 +24,0 @@ - [react.useMemo](https://reactjs.org/docs/hooks-reference.html#usememo) is the greatest of all. Still memoize only __one__ call, but doing it on per-component level. |
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
53868
939