@e-mc/compress 0.13.4 → 0.13.6
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/README.md +6 -4
- package/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.13.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.13.6/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { IModule, ModuleConstructor } from "./index";
|
|
@@ -66,6 +66,7 @@ import type { Options as ZopfliOptions } from "node-zopfli";
|
|
|
66
66
|
interface CompressModule {
|
|
67
67
|
gzip?: ZlibOptions;
|
|
68
68
|
brotli?: BrotliOptions;
|
|
69
|
+
/** @deprecated */
|
|
69
70
|
zopfli?: ZopfliOptions;
|
|
70
71
|
settings?: {
|
|
71
72
|
broadcast_id?: string | string[];
|
|
@@ -74,6 +75,7 @@ interface CompressModule {
|
|
|
74
75
|
cache_expires?: number | string;
|
|
75
76
|
gzip_level?: number;
|
|
76
77
|
brotli_quality?: number;
|
|
78
|
+
/** @deprecated */
|
|
77
79
|
zopfli_iterations?: number;
|
|
78
80
|
chunk_size?: number | string;
|
|
79
81
|
};
|
|
@@ -123,9 +125,9 @@ instance.tryImage("/tmp/image.png", "/path/output/compressed.png", options)
|
|
|
123
125
|
|
|
124
126
|
## References
|
|
125
127
|
|
|
126
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
127
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
128
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
128
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/squared.d.ts
|
|
129
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/compress.d.ts
|
|
130
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/settings.d.ts
|
|
129
131
|
|
|
130
132
|
* https://www.npmjs.com/package/@types/node
|
|
131
133
|
|
package/index.js
CHANGED
|
@@ -337,7 +337,7 @@ class Compress extends core_1.Module {
|
|
|
337
337
|
else {
|
|
338
338
|
endProcess(null, data, ext);
|
|
339
339
|
}
|
|
340
|
-
if (tempDir) {
|
|
340
|
+
if (tempDir && hash) {
|
|
341
341
|
const pathname = path.join(from, ext);
|
|
342
342
|
let tempFont;
|
|
343
343
|
if (core_1.Module.createDir(tempFont = path.join(tempDir, pathname))) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/compress",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.6",
|
|
4
4
|
"description": "Compress constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"license": "BSD-3-Clause",
|
|
23
23
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@e-mc/core": "0.13.
|
|
26
|
-
"@e-mc/types": "0.13.
|
|
25
|
+
"@e-mc/core": "0.13.6",
|
|
26
|
+
"@e-mc/types": "0.13.6",
|
|
27
27
|
"wawoff2": "^2.0.1",
|
|
28
28
|
"woff2sfnt-sfnt2woff": "^1.0.0"
|
|
29
29
|
}
|