@aws-amplify/graphql-model-transformer 2.1.0 → 2.2.0-rds-1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/API.md +15 -15
- package/CHANGELOG.md +12 -0
- package/lib/graphql-types/mutation.d.ts.map +1 -1
- package/lib/graphql-types/mutation.js +9 -2
- package/lib/graphql-types/mutation.js.map +1 -1
- package/lib/rds-lambda.zip +0 -0
- package/lib/rds-notification-lambda.zip +0 -0
- package/lib/rds-patching-lambda.zip +0 -0
- package/lib/resolvers/generators/dynamodb-vtl-generator.d.ts +6 -5
- package/lib/resolvers/generators/dynamodb-vtl-generator.d.ts.map +1 -1
- package/lib/resolvers/generators/dynamodb-vtl-generator.js +5 -5
- package/lib/resolvers/generators/dynamodb-vtl-generator.js.map +1 -1
- package/lib/resolvers/generators/rds-vtl-generator.d.ts +6 -5
- package/lib/resolvers/generators/rds-vtl-generator.d.ts.map +1 -1
- package/lib/resolvers/generators/rds-vtl-generator.js +10 -10
- package/lib/resolvers/generators/rds-vtl-generator.js.map +1 -1
- package/lib/resolvers/generators/vtl-generator.d.ts +6 -5
- package/lib/resolvers/generators/vtl-generator.d.ts.map +1 -1
- package/lib/resolvers/rds/mutation.d.ts +4 -3
- package/lib/resolvers/rds/mutation.d.ts.map +1 -1
- package/lib/resolvers/rds/mutation.js +7 -3
- package/lib/resolvers/rds/mutation.js.map +1 -1
- package/lib/resolvers/rds/query.d.ts +2 -1
- package/lib/resolvers/rds/query.d.ts.map +1 -1
- package/lib/resolvers/rds/query.js +3 -1
- package/lib/resolvers/rds/query.js.map +1 -1
- package/lib/resolvers/rds/resolver.d.ts +6 -2
- package/lib/resolvers/rds/resolver.d.ts.map +1 -1
- package/lib/resolvers/rds/resolver.js +39 -25
- package/lib/resolvers/rds/resolver.js.map +1 -1
- package/lib/resources/model-resource-generator.js +5 -5
- package/lib/resources/model-resource-generator.js.map +1 -1
- package/package.json +8 -8
- package/publish-notification-lambda/node_modules/.package-lock.json +11 -11
- package/publish-notification-lambda/node_modules/@types/node/README.md +1 -1
- package/publish-notification-lambda/node_modules/@types/node/package.json +2 -2
- package/publish-notification-lambda/node_modules/archiver/CHANGELOG.md +18 -0
- package/publish-notification-lambda/node_modules/archiver/package.json +7 -7
- package/publish-notification-lambda/node_modules/tslib/package.json +2 -2
- package/publish-notification-lambda/package-lock.json +11 -11
- package/rds-lambda/handler.ts +2 -1
- package/rds-lambda/node_modules/.package-lock.json +407 -362
- package/rds-lambda/node_modules/@babel/code-frame/package.json +3 -2
- package/rds-lambda/node_modules/@babel/core/package.json +9 -9
- package/rds-lambda/node_modules/@babel/helpers/package.json +5 -5
- package/rds-lambda/node_modules/@babel/highlight/package.json +1 -1
- package/rds-lambda/node_modules/@babel/parser/package.json +3 -3
- package/rds-lambda/node_modules/@babel/traverse/package.json +4 -4
- package/rds-lambda/node_modules/@babel/types/lib/index.js.flow +10 -10
- package/rds-lambda/node_modules/@babel/types/package.json +2 -2
- package/rds-lambda/node_modules/@jest/console/package.json +7 -7
- package/rds-lambda/node_modules/@jest/core/package.json +25 -25
- package/rds-lambda/node_modules/@jest/environment/package.json +6 -6
- package/rds-lambda/node_modules/@jest/expect/package.json +5 -5
- package/rds-lambda/node_modules/@jest/expect-utils/package.json +5 -5
- package/rds-lambda/node_modules/@jest/fake-timers/package.json +8 -8
- package/rds-lambda/node_modules/@jest/globals/package.json +7 -7
- package/rds-lambda/node_modules/@jest/reporters/node_modules/istanbul-lib-instrument/CHANGELOG.md +642 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/istanbul-lib-instrument/LICENSE +24 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/istanbul-lib-instrument/README.md +22 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/istanbul-lib-instrument/package.json +50 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/lru-cache/LICENSE +15 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/lru-cache/README.md +166 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/lru-cache/package.json +34 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/semver/LICENSE +15 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/semver/README.md +637 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/semver/package.json +87 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/semver/range.bnf +16 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/yallist/LICENSE +15 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/yallist/README.md +204 -0
- package/rds-lambda/node_modules/@jest/reporters/node_modules/yallist/package.json +29 -0
- package/rds-lambda/node_modules/@jest/reporters/package.json +14 -14
- package/rds-lambda/node_modules/@jest/schemas/package.json +3 -3
- package/rds-lambda/node_modules/@jest/source-map/package.json +3 -3
- package/rds-lambda/node_modules/@jest/test-result/package.json +7 -7
- package/rds-lambda/node_modules/@jest/test-sequencer/package.json +6 -6
- package/rds-lambda/node_modules/@jest/transform/package.json +8 -8
- package/rds-lambda/node_modules/@jest/types/package.json +4 -4
- package/rds-lambda/node_modules/@types/jest/README.md +1 -1
- package/rds-lambda/node_modules/@types/jest/package.json +2 -2
- package/rds-lambda/node_modules/@types/node/README.md +1 -1
- package/rds-lambda/node_modules/@types/node/package.json +2 -2
- package/rds-lambda/node_modules/archiver/CHANGELOG.md +18 -0
- package/rds-lambda/node_modules/archiver/package.json +7 -7
- package/rds-lambda/node_modules/babel-jest/README.md +1 -1
- package/rds-lambda/node_modules/babel-jest/package.json +6 -6
- package/rds-lambda/node_modules/babel-plugin-jest-hoist/README.md +1 -1
- package/rds-lambda/node_modules/babel-plugin-jest-hoist/package.json +3 -3
- package/rds-lambda/node_modules/babel-preset-jest/README.md +1 -1
- package/rds-lambda/node_modules/babel-preset-jest/package.json +4 -4
- package/rds-lambda/node_modules/caniuse-lite/package.json +1 -1
- package/rds-lambda/node_modules/diff-sequences/package.json +3 -3
- package/rds-lambda/node_modules/electron-to-chromium/chromium-versions.json +1 -1
- package/rds-lambda/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
- package/rds-lambda/node_modules/electron-to-chromium/full-versions.json +1 -1
- package/rds-lambda/node_modules/electron-to-chromium/package.json +1 -1
- package/rds-lambda/node_modules/electron-to-chromium/versions.json +1 -1
- package/rds-lambda/node_modules/expect/package.json +9 -10
- package/rds-lambda/node_modules/jest/package.json +6 -6
- package/rds-lambda/node_modules/jest-changed-files/package.json +4 -3
- package/rds-lambda/node_modules/jest-circus/README.md +1 -1
- package/rds-lambda/node_modules/jest-circus/package.json +14 -14
- package/rds-lambda/node_modules/jest-cli/package.json +10 -10
- package/rds-lambda/node_modules/jest-config/package.json +15 -15
- package/rds-lambda/node_modules/jest-diff/package.json +7 -7
- package/rds-lambda/node_modules/jest-docblock/package.json +3 -3
- package/rds-lambda/node_modules/jest-each/README.md +1 -1
- package/rds-lambda/node_modules/jest-each/package.json +7 -7
- package/rds-lambda/node_modules/jest-environment-node/package.json +9 -9
- package/rds-lambda/node_modules/jest-get-type/package.json +3 -3
- package/rds-lambda/node_modules/jest-haste-map/package.json +7 -7
- package/rds-lambda/node_modules/jest-leak-detector/package.json +5 -5
- package/rds-lambda/node_modules/jest-matcher-utils/README.md +1 -1
- package/rds-lambda/node_modules/jest-matcher-utils/package.json +7 -7
- package/rds-lambda/node_modules/jest-message-util/package.json +5 -5
- package/rds-lambda/node_modules/jest-mock/package.json +5 -5
- package/rds-lambda/node_modules/jest-regex-util/package.json +3 -3
- package/rds-lambda/node_modules/jest-resolve/package.json +6 -6
- package/rds-lambda/node_modules/jest-resolve-dependencies/package.json +10 -10
- package/rds-lambda/node_modules/jest-runner/package.json +20 -20
- package/rds-lambda/node_modules/jest-runtime/package.json +19 -19
- package/rds-lambda/node_modules/jest-snapshot/package.json +14 -14
- package/rds-lambda/node_modules/jest-util/package.json +4 -4
- package/rds-lambda/node_modules/jest-validate/package.json +6 -6
- package/rds-lambda/node_modules/jest-watcher/package.json +7 -7
- package/rds-lambda/node_modules/jest-worker/README.md +1 -1
- package/rds-lambda/node_modules/jest-worker/package.json +5 -5
- package/rds-lambda/node_modules/pretty-format/package.json +5 -5
- package/rds-lambda/node_modules/tslib/package.json +2 -2
- package/rds-lambda/package-lock.json +410 -365
- package/rds-patching-lambda/node_modules/.package-lock.json +11 -11
- package/rds-patching-lambda/node_modules/@types/node/README.md +1 -1
- package/rds-patching-lambda/node_modules/@types/node/package.json +2 -2
- package/rds-patching-lambda/node_modules/archiver/CHANGELOG.md +18 -0
- package/rds-patching-lambda/node_modules/archiver/package.json +7 -7
- package/rds-patching-lambda/node_modules/tslib/package.json +2 -2
- package/rds-patching-lambda/package-lock.json +11 -11
- package/src/__tests__/__snapshots__/model-transformer.test.ts.snap +688 -0
- package/src/__tests__/model-transformer.test.ts +57 -1
- package/src/graphql-types/mutation.ts +11 -3
- package/src/resolvers/generators/dynamodb-vtl-generator.ts +7 -5
- package/src/resolvers/generators/rds-vtl-generator.ts +12 -10
- package/src/resolvers/generators/vtl-generator.ts +6 -5
- package/src/resolvers/rds/mutation.ts +18 -3
- package/src/resolvers/rds/query.ts +9 -1
- package/src/resolvers/rds/resolver.ts +45 -26
- package/src/resources/model-resource-generator.ts +5 -5
- package/tsconfig.tsbuildinfo +1 -1
package/rds-lambda/node_modules/@jest/reporters/node_modules/istanbul-lib-instrument/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
## istanbul-lib-instrument
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/istanbuljs/istanbul-lib-instrument.svg?branch=master)](https://travis-ci.org/istanbuljs/istanbul-lib-instrument)
|
4
|
+
|
5
|
+
Istanbul instrumenter library.
|
6
|
+
|
7
|
+
Version 1.1.x now implements instrumentation using `Babel`. The implementation is inspired
|
8
|
+
by prior art by @dtinth as demonstrated in the `__coverage__` babel plugin.
|
9
|
+
|
10
|
+
It provides 2 "modes" of instrumentation.
|
11
|
+
|
12
|
+
- The old API that is mostly unchanged (except for incompatibilities noted) and
|
13
|
+
performs the instrumentation using babel as a library.
|
14
|
+
|
15
|
+
- A `programVisitor` function for the Babel AST that can be used by a Babel plugin
|
16
|
+
to emit instrumentation for ES6 code directly without any source map
|
17
|
+
processing. This is the preferred path for babel users. The Babel plugin is
|
18
|
+
called `babel-plugin-istanbul`.
|
19
|
+
|
20
|
+
Incompatibilities and changes to instrumentation behavior can be found in
|
21
|
+
[v0-changes.md](v0-changes.md).
|
22
|
+
|
package/rds-lambda/node_modules/@jest/reporters/node_modules/istanbul-lib-instrument/package.json
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"name": "istanbul-lib-instrument",
|
3
|
+
"version": "6.0.0",
|
4
|
+
"description": "Core istanbul API for JS code coverage",
|
5
|
+
"author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",
|
6
|
+
"main": "src/index.js",
|
7
|
+
"files": [
|
8
|
+
"src"
|
9
|
+
],
|
10
|
+
"scripts": {
|
11
|
+
"test": "nyc mocha"
|
12
|
+
},
|
13
|
+
"dependencies": {
|
14
|
+
"@babel/core": "^7.12.3",
|
15
|
+
"@babel/parser": "^7.14.7",
|
16
|
+
"@istanbuljs/schema": "^0.1.2",
|
17
|
+
"istanbul-lib-coverage": "^3.2.0",
|
18
|
+
"semver": "^7.5.4"
|
19
|
+
},
|
20
|
+
"devDependencies": {
|
21
|
+
"@babel/cli": "^7.7.5",
|
22
|
+
"chai": "^4.2.0",
|
23
|
+
"clone": "^2.1.2",
|
24
|
+
"debug": "^4.1.1",
|
25
|
+
"documentation": "^12.1.4",
|
26
|
+
"js-yaml": "^3.13.1",
|
27
|
+
"mocha": "^6.2.3",
|
28
|
+
"nopt": "^4.0.1",
|
29
|
+
"nyc": "^15.1.0"
|
30
|
+
},
|
31
|
+
"license": "BSD-3-Clause",
|
32
|
+
"bugs": {
|
33
|
+
"url": "https://github.com/istanbuljs/istanbuljs/issues"
|
34
|
+
},
|
35
|
+
"homepage": "https://istanbul.js.org/",
|
36
|
+
"repository": {
|
37
|
+
"type": "git",
|
38
|
+
"url": "git+ssh://git@github.com/istanbuljs/istanbuljs.git",
|
39
|
+
"directory": "packages/istanbul-lib-instrument"
|
40
|
+
},
|
41
|
+
"keywords": [
|
42
|
+
"coverage",
|
43
|
+
"istanbul",
|
44
|
+
"js",
|
45
|
+
"instrumentation"
|
46
|
+
],
|
47
|
+
"engines": {
|
48
|
+
"node": ">=10"
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
The ISC License
|
2
|
+
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
@@ -0,0 +1,166 @@
|
|
1
|
+
# lru cache
|
2
|
+
|
3
|
+
A cache object that deletes the least-recently-used items.
|
4
|
+
|
5
|
+
[![Build Status](https://travis-ci.org/isaacs/node-lru-cache.svg?branch=master)](https://travis-ci.org/isaacs/node-lru-cache) [![Coverage Status](https://coveralls.io/repos/isaacs/node-lru-cache/badge.svg?service=github)](https://coveralls.io/github/isaacs/node-lru-cache)
|
6
|
+
|
7
|
+
## Installation:
|
8
|
+
|
9
|
+
```javascript
|
10
|
+
npm install lru-cache --save
|
11
|
+
```
|
12
|
+
|
13
|
+
## Usage:
|
14
|
+
|
15
|
+
```javascript
|
16
|
+
var LRU = require("lru-cache")
|
17
|
+
, options = { max: 500
|
18
|
+
, length: function (n, key) { return n * 2 + key.length }
|
19
|
+
, dispose: function (key, n) { n.close() }
|
20
|
+
, maxAge: 1000 * 60 * 60 }
|
21
|
+
, cache = new LRU(options)
|
22
|
+
, otherCache = new LRU(50) // sets just the max size
|
23
|
+
|
24
|
+
cache.set("key", "value")
|
25
|
+
cache.get("key") // "value"
|
26
|
+
|
27
|
+
// non-string keys ARE fully supported
|
28
|
+
// but note that it must be THE SAME object, not
|
29
|
+
// just a JSON-equivalent object.
|
30
|
+
var someObject = { a: 1 }
|
31
|
+
cache.set(someObject, 'a value')
|
32
|
+
// Object keys are not toString()-ed
|
33
|
+
cache.set('[object Object]', 'a different value')
|
34
|
+
assert.equal(cache.get(someObject), 'a value')
|
35
|
+
// A similar object with same keys/values won't work,
|
36
|
+
// because it's a different object identity
|
37
|
+
assert.equal(cache.get({ a: 1 }), undefined)
|
38
|
+
|
39
|
+
cache.reset() // empty the cache
|
40
|
+
```
|
41
|
+
|
42
|
+
If you put more stuff in it, then items will fall out.
|
43
|
+
|
44
|
+
If you try to put an oversized thing in it, then it'll fall out right
|
45
|
+
away.
|
46
|
+
|
47
|
+
## Options
|
48
|
+
|
49
|
+
* `max` The maximum size of the cache, checked by applying the length
|
50
|
+
function to all values in the cache. Not setting this is kind of
|
51
|
+
silly, since that's the whole purpose of this lib, but it defaults
|
52
|
+
to `Infinity`. Setting it to a non-number or negative number will
|
53
|
+
throw a `TypeError`. Setting it to 0 makes it be `Infinity`.
|
54
|
+
* `maxAge` Maximum age in ms. Items are not pro-actively pruned out
|
55
|
+
as they age, but if you try to get an item that is too old, it'll
|
56
|
+
drop it and return undefined instead of giving it to you.
|
57
|
+
Setting this to a negative value will make everything seem old!
|
58
|
+
Setting it to a non-number will throw a `TypeError`.
|
59
|
+
* `length` Function that is used to calculate the length of stored
|
60
|
+
items. If you're storing strings or buffers, then you probably want
|
61
|
+
to do something like `function(n, key){return n.length}`. The default is
|
62
|
+
`function(){return 1}`, which is fine if you want to store `max`
|
63
|
+
like-sized things. The item is passed as the first argument, and
|
64
|
+
the key is passed as the second argumnet.
|
65
|
+
* `dispose` Function that is called on items when they are dropped
|
66
|
+
from the cache. This can be handy if you want to close file
|
67
|
+
descriptors or do other cleanup tasks when items are no longer
|
68
|
+
accessible. Called with `key, value`. It's called *before*
|
69
|
+
actually removing the item from the internal cache, so if you want
|
70
|
+
to immediately put it back in, you'll have to do that in a
|
71
|
+
`nextTick` or `setTimeout` callback or it won't do anything.
|
72
|
+
* `stale` By default, if you set a `maxAge`, it'll only actually pull
|
73
|
+
stale items out of the cache when you `get(key)`. (That is, it's
|
74
|
+
not pre-emptively doing a `setTimeout` or anything.) If you set
|
75
|
+
`stale:true`, it'll return the stale value before deleting it. If
|
76
|
+
you don't set this, then it'll return `undefined` when you try to
|
77
|
+
get a stale entry, as if it had already been deleted.
|
78
|
+
* `noDisposeOnSet` By default, if you set a `dispose()` method, then
|
79
|
+
it'll be called whenever a `set()` operation overwrites an existing
|
80
|
+
key. If you set this option, `dispose()` will only be called when a
|
81
|
+
key falls out of the cache, not when it is overwritten.
|
82
|
+
* `updateAgeOnGet` When using time-expiring entries with `maxAge`,
|
83
|
+
setting this to `true` will make each item's effective time update
|
84
|
+
to the current time whenever it is retrieved from cache, causing it
|
85
|
+
to not expire. (It can still fall out of cache based on recency of
|
86
|
+
use, of course.)
|
87
|
+
|
88
|
+
## API
|
89
|
+
|
90
|
+
* `set(key, value, maxAge)`
|
91
|
+
* `get(key) => value`
|
92
|
+
|
93
|
+
Both of these will update the "recently used"-ness of the key.
|
94
|
+
They do what you think. `maxAge` is optional and overrides the
|
95
|
+
cache `maxAge` option if provided.
|
96
|
+
|
97
|
+
If the key is not found, `get()` will return `undefined`.
|
98
|
+
|
99
|
+
The key and val can be any value.
|
100
|
+
|
101
|
+
* `peek(key)`
|
102
|
+
|
103
|
+
Returns the key value (or `undefined` if not found) without
|
104
|
+
updating the "recently used"-ness of the key.
|
105
|
+
|
106
|
+
(If you find yourself using this a lot, you *might* be using the
|
107
|
+
wrong sort of data structure, but there are some use cases where
|
108
|
+
it's handy.)
|
109
|
+
|
110
|
+
* `del(key)`
|
111
|
+
|
112
|
+
Deletes a key out of the cache.
|
113
|
+
|
114
|
+
* `reset()`
|
115
|
+
|
116
|
+
Clear the cache entirely, throwing away all values.
|
117
|
+
|
118
|
+
* `has(key)`
|
119
|
+
|
120
|
+
Check if a key is in the cache, without updating the recent-ness
|
121
|
+
or deleting it for being stale.
|
122
|
+
|
123
|
+
* `forEach(function(value,key,cache), [thisp])`
|
124
|
+
|
125
|
+
Just like `Array.prototype.forEach`. Iterates over all the keys
|
126
|
+
in the cache, in order of recent-ness. (Ie, more recently used
|
127
|
+
items are iterated over first.)
|
128
|
+
|
129
|
+
* `rforEach(function(value,key,cache), [thisp])`
|
130
|
+
|
131
|
+
The same as `cache.forEach(...)` but items are iterated over in
|
132
|
+
reverse order. (ie, less recently used items are iterated over
|
133
|
+
first.)
|
134
|
+
|
135
|
+
* `keys()`
|
136
|
+
|
137
|
+
Return an array of the keys in the cache.
|
138
|
+
|
139
|
+
* `values()`
|
140
|
+
|
141
|
+
Return an array of the values in the cache.
|
142
|
+
|
143
|
+
* `length`
|
144
|
+
|
145
|
+
Return total length of objects in cache taking into account
|
146
|
+
`length` options function.
|
147
|
+
|
148
|
+
* `itemCount`
|
149
|
+
|
150
|
+
Return total quantity of objects currently in cache. Note, that
|
151
|
+
`stale` (see options) items are returned as part of this item
|
152
|
+
count.
|
153
|
+
|
154
|
+
* `dump()`
|
155
|
+
|
156
|
+
Return an array of the cache entries ready for serialization and usage
|
157
|
+
with 'destinationCache.load(arr)`.
|
158
|
+
|
159
|
+
* `load(cacheEntriesArray)`
|
160
|
+
|
161
|
+
Loads another cache entries array, obtained with `sourceCache.dump()`,
|
162
|
+
into the cache. The destination cache is reset before loading new entries
|
163
|
+
|
164
|
+
* `prune()`
|
165
|
+
|
166
|
+
Manually iterates over the entire cache proactively pruning old entries
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"name": "lru-cache",
|
3
|
+
"description": "A cache object that deletes the least-recently-used items.",
|
4
|
+
"version": "6.0.0",
|
5
|
+
"author": "Isaac Z. Schlueter <i@izs.me>",
|
6
|
+
"keywords": [
|
7
|
+
"mru",
|
8
|
+
"lru",
|
9
|
+
"cache"
|
10
|
+
],
|
11
|
+
"scripts": {
|
12
|
+
"test": "tap",
|
13
|
+
"snap": "tap",
|
14
|
+
"preversion": "npm test",
|
15
|
+
"postversion": "npm publish",
|
16
|
+
"prepublishOnly": "git push origin --follow-tags"
|
17
|
+
},
|
18
|
+
"main": "index.js",
|
19
|
+
"repository": "git://github.com/isaacs/node-lru-cache.git",
|
20
|
+
"devDependencies": {
|
21
|
+
"benchmark": "^2.1.4",
|
22
|
+
"tap": "^14.10.7"
|
23
|
+
},
|
24
|
+
"license": "ISC",
|
25
|
+
"dependencies": {
|
26
|
+
"yallist": "^4.0.0"
|
27
|
+
},
|
28
|
+
"files": [
|
29
|
+
"index.js"
|
30
|
+
],
|
31
|
+
"engines": {
|
32
|
+
"node": ">=10"
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
The ISC License
|
2
|
+
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|