| 1 |
Source: node-memoize-one |
| 2 |
Maintainer: Home Assistant Team <[email protected]> |
| 3 |
Uploaders: |
| 4 |
Edward Betts <[email protected]>, |
| 5 |
Section: javascript |
| 6 |
Build-Depends: |
| 7 |
debhelper-compat (= 13), |
| 8 |
dh-nodejs, |
| 9 |
dh-sequence-nodejs-no-lerna, |
| 10 |
jest <!nocheck>, |
| 11 |
node-expect-type <!nocheck>, |
| 12 |
node-lodash-packages <!nocheck>, |
| 13 |
node-rollup-plugin-replace, |
| 14 |
node-rollup-plugin-terser, |
| 15 |
node-rollup-plugin-typescript, |
| 16 |
node-tslib, |
| 17 |
node-typescript, |
| 18 |
rollup, |
| 19 |
ts-jest <!nocheck>, |
| 20 |
Standards-Version: 4.7.4 |
| 21 |
Homepage: https://github.com/alexreardon/memoize-one |
| 22 |
Vcs-Browser: https://salsa.debian.org/homeassistant-team/js/node-memoize-one |
| 23 |
Vcs-Git: https://salsa.debian.org/homeassistant-team/js/node-memoize-one |
| 24 |
Testsuite: autopkgtest-pkg-nodejs |
| 25 |
|
| 26 |
Package: node-memoize-one |
| 27 |
Architecture: all |
| 28 |
Multi-Arch: foreign |
| 29 |
Depends: |
| 30 |
nodejs:any, |
| 31 |
${misc:Depends}, |
| 32 |
Breaks: node-react-highlight-words (<< 0.20.0+~cs7.18.6+ds-1~) |
| 33 |
Replaces: node-react-highlight-words (<< 0.20.0+~cs7.18.6+ds-1~) |
| 34 |
Description: single-entry memoization for JavaScript function calls |
| 35 |
memoize-one wraps a function and caches the result from its most recent |
| 36 |
invocation. When the wrapped function is called again with the same arguments, |
| 37 |
it returns the cached value instead of calling the original function again. |
| 38 |
. |
| 39 |
The cache is limited to one entry, so a new set of arguments replaces the |
| 40 |
previous cached arguments and result. By default, arguments are compared using |
| 41 |
strict equality, with special handling for NaN. A custom equality function can |
| 42 |
also be supplied. |
| 43 |
. |
| 44 |
The calling context, this, is treated as part of the comparison, so the same |
| 45 |
arguments with a different context cause a fresh computation. The memoized |
| 46 |
function also provides a clear() method for discarding the cached result. |
| 47 |
|
| 48 |
Package: libjs-memoize-one |
| 49 |
Architecture: all |
| 50 |
Multi-Arch: foreign |
| 51 |
Depends: |
| 52 |
${misc:Depends}, |
| 53 |
Description: single-entry memoization for JavaScript function calls - browser version |
| 54 |
memoize-one wraps a function and caches the result from its most recent |
| 55 |
invocation. When the wrapped function is called again with the same arguments, |
| 56 |
it returns the cached value instead of calling the original function again. |
| 57 |
. |
| 58 |
This package provides the browser-ready UMD builds. |