@e-mc/document 0.5.10 → 0.5.11
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.
- package/index.js +1 -1
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -966,7 +966,7 @@ class Document extends core_1.Client {
|
|
|
966
966
|
if (!result) {
|
|
967
967
|
if (algorithm) {
|
|
968
968
|
const limit = config.limit;
|
|
969
|
-
if ((limit === Infinity || limit > 0 && Buffer.byteLength(code, encoding) <= limit) && (hashKey = core_1.Client.asHash(code,
|
|
969
|
+
if ((limit === Infinity || limit > 0 && Buffer.byteLength(code, encoding) <= limit) && (hashKey = core_1.Client.asHash(code, algorithm, { encoding }))) {
|
|
970
970
|
const hashMap = CACHE_HASH[moduleName] || (CACHE_HASH[moduleName] = {});
|
|
971
971
|
const stored = hashMap[hashKey];
|
|
972
972
|
if (stored && (result = getData(stored))) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/document",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
4
4
|
"description": "Document constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/core": "0.5.
|
|
24
|
-
"@e-mc/db": "0.5.
|
|
25
|
-
"@e-mc/types": "0.5.
|
|
23
|
+
"@e-mc/core": "0.5.11",
|
|
24
|
+
"@e-mc/db": "0.5.11",
|
|
25
|
+
"@e-mc/types": "0.5.11",
|
|
26
26
|
"chalk": "4.1.2",
|
|
27
|
-
"htmlparser2": "^9.
|
|
27
|
+
"htmlparser2": "^9.1.0",
|
|
28
28
|
"js-yaml": "^4.1.0",
|
|
29
29
|
"picomatch": "^2.3.1"
|
|
30
30
|
}
|