Commit d19c73f6a5c9563914be6761839a3ba08ba10394
Use hashlru
cel committed on 5/15/2020, 9:01:34 PMParent: bd05d6ab80237bba5fb65b70dafabdf7d2d6787c
Files changed
index.js | changed |
lib/acme-challenge.js | changed |
package.json | changed |
index.js | ||
---|---|---|
@@ -24,9 +24,9 @@ | ||
24 | 24 … | var many = require('pull-many') |
25 | 25 … | var ident = require('pull-identify-filetype') |
26 | 26 … | var mime = require('mime-types') |
27 | 27 … | var moment = require('moment') |
28 | -var LRUCache = require('lrucache') | |
28 … | +var LRUCache = require('hashlru') | |
29 | 29 … | |
30 | 30 … | var hlCssPath = path.resolve(require.resolve('highlight.js'), '../../styles') |
31 | 31 … | |
32 | 32 … | function ParamError(msg) { |
lib/acme-challenge.js | ||
---|---|---|
@@ -1,7 +1,7 @@ | ||
1 | 1 … | var pull = require('pull-stream') |
2 | 2 … | var asyncmemo = require('asyncmemo') |
3 | -var lru = require('lrucache') | |
3 … | +var lru = require('hashlru') | |
4 | 4 … | |
5 | 5 … | function getChallenge(sbot, token, cb) { |
6 | 6 … | /* TODO: index this on disk */ |
7 | 7 … | pull( |
package.json | ||
---|---|---|
@@ -12,9 +12,9 @@ | ||
12 | 12 … | "dependencies": { |
13 | 13 … | "asyncmemo": "^1.0.0", |
14 | 14 … | "diff": "^3.0.1", |
15 | 15 … | "highlight.js": "^9.8.0", |
16 | - "lrucache": "^1.0.2", | |
16 … | + "hashlru": "^2.3.0", | |
17 | 17 … | "mime-types": "^2.1.12", |
18 | 18 … | "moment": "^2.14.1", |
19 | 19 … | "multicb": "^1.2.1", |
20 | 20 … | "node-polyglot": "^1.0.0", |
@@ -28,9 +28,9 @@ | ||
28 | 28 … | "pull-paramap": "^1.2.1", |
29 | 29 … | "pull-stream": "^3.5.0", |
30 | 30 … | "remove-markdown": "^0.1.0", |
31 | 31 … | "ssb-client": "^4.2.1", |
32 | - "ssb-config": "^2.2.0", | |
32 … | + "ssb-config": "^3.2.0", | |
33 | 33 … | "ssb-git-repo": "^2.11.0", |
34 | 34 … | "ssb-issues": "^1.0.0", |
35 | 35 … | "ssb-keys": "^7.0.3", |
36 | 36 … | "ssb-marked": "^0.6.0", |
Built with git-ssb-web