@e-mc/document 0.6.7 → 0.6.8

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 -1
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -950,7 +950,7 @@ class Document extends core_1.Client {
950
950
  if (!result) {
951
951
  if (algorithm) {
952
952
  const limit = config.limit;
953
- if ((limit === Infinity || limit > 0 && Buffer.byteLength(code, encoding) <= limit) && (hashKey = core_1.Client.asHash(code, { algorithm, encoding }))) {
953
+ if ((limit === Infinity || limit > 0 && Buffer.byteLength(code, encoding) <= limit) && (hashKey = core_1.Client.asHash(code, algorithm, { encoding }))) {
954
954
  const hashMap = CACHE_HASH[moduleName] || (CACHE_HASH[moduleName] = {});
955
955
  const stored = hashMap[hashKey];
956
956
  if (stored && (result = getData(stored))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/document",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
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.6.7",
24
- "@e-mc/db": "0.6.7",
25
- "@e-mc/types": "0.6.7",
23
+ "@e-mc/core": "0.6.8",
24
+ "@e-mc/db": "0.6.8",
25
+ "@e-mc/types": "0.6.8",
26
26
  "chalk": "4.1.2",
27
- "htmlparser2": "^9.0.0",
27
+ "htmlparser2": "^9.1.0",
28
28
  "js-yaml": "^4.1.0",
29
29
  "picomatch": "^2.3.1"
30
30
  }