@e-mc/document 0.0.2 → 0.0.4
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/chrome/index.js +1 -2
- package/package.json +4 -5
package/chrome/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const path = require("path");
|
|
4
4
|
const fs = require("fs");
|
|
5
|
-
const jimp = require("jimp");
|
|
6
5
|
const asset_1 = require("../asset");
|
|
7
6
|
const util_1 = require("../util");
|
|
8
7
|
const types_1 = require("../../types");
|
|
@@ -2238,7 +2237,7 @@ class ChromeDocument extends index_1.default {
|
|
|
2238
2237
|
}
|
|
2239
2238
|
else {
|
|
2240
2239
|
try {
|
|
2241
|
-
({ width, height } = (await jimp.read(buffer)).bitmap);
|
|
2240
|
+
({ width, height } = (await require('jimp').read(buffer)).bitmap);
|
|
2242
2241
|
}
|
|
2243
2242
|
catch {
|
|
2244
2243
|
const filename = item.localUri || item.filename;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/document",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Document constructor for
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"description": "Document constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -20,11 +20,10 @@
|
|
|
20
20
|
"license": "BSD 3-Clause",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/core": "0.0.
|
|
24
|
-
"@e-mc/db": "0.0.
|
|
23
|
+
"@e-mc/core": "0.0.4",
|
|
24
|
+
"@e-mc/db": "0.0.4",
|
|
25
25
|
"chalk": "4.1.2",
|
|
26
26
|
"htmlparser2": "^8.0.1",
|
|
27
|
-
"jimp": "^0.22.7",
|
|
28
27
|
"js-yaml": "^4.1.0",
|
|
29
28
|
"picomatch": "^2.3.1"
|
|
30
29
|
}
|