nodebb-plugin-markdown 10.0.1 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -136,8 +136,7 @@ const Markdown = {
136
136
  Markdown._externalImageCache = cacheCreate({
137
137
  name: 'markdown.externalImageCache',
138
138
  max: parseInt(_self.config.probeCacheSize, 10) || 256,
139
- length: function () { return 1; },
140
- maxAge: 1000 * 60 * 60 * 24, // 1 day
139
+ ttl: 1000 * 60 * 60 * 24, // 1 day
141
140
  });
142
141
  }
143
142
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-markdown",
3
- "version": "10.0.1",
3
+ "version": "10.1.0",
4
4
  "description": "A Markdown parser for NodeBB",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "probe-image-size": "^7.2.1"
38
38
  },
39
39
  "nbbpm": {
40
- "compatibility": "^2.0.0"
40
+ "compatibility": "^2.4.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@commitlint/cli": "16.2.1",