@e-mc/compress 0.10.2 → 0.10.3
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 +4 -4
- package/index.d.ts +4 -4
- package/index.js +1 -1
- package/package.json +4 -4
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.10.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.3/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { IModule, ModuleConstructor } from "./index";
|
|
@@ -116,9 +116,9 @@ instance.tryImage("/tmp/image.png", "/path/output/compressed.png", options)
|
|
|
116
116
|
|
|
117
117
|
## References
|
|
118
118
|
|
|
119
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
120
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
121
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
119
|
+
- https://www.unpkg.com/@e-mc/types@0.10.3/lib/squared.d.ts
|
|
120
|
+
- https://www.unpkg.com/@e-mc/types@0.10.3/lib/compress.d.ts
|
|
121
|
+
- https://www.unpkg.com/@e-mc/types@0.10.3/lib/settings.d.ts
|
|
122
122
|
|
|
123
123
|
* https://www.npmjs.com/package/@types/node
|
|
124
124
|
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CompressConstructor } from '
|
|
2
|
-
|
|
3
|
-
declare const Compress: CompressConstructor;
|
|
4
|
-
|
|
1
|
+
import type { CompressConstructor } from '@e-mc/types/lib';
|
|
2
|
+
|
|
3
|
+
declare const Compress: CompressConstructor;
|
|
4
|
+
|
|
5
5
|
export = Compress;
|
package/index.js
CHANGED
|
@@ -5,8 +5,8 @@ const fs = require("fs");
|
|
|
5
5
|
const stream = require("stream");
|
|
6
6
|
const zlib = require("zlib");
|
|
7
7
|
const wawoff2 = require("wawoff2");
|
|
8
|
-
const module_1 = require("@e-mc/module");
|
|
9
8
|
const types_1 = require("@e-mc/types");
|
|
9
|
+
const module_1 = require("@e-mc/module");
|
|
10
10
|
const { toSfnt, toWoff } = require('woff2sfnt-sfnt2woff');
|
|
11
11
|
const kChunkSize = Symbol('chunkSize');
|
|
12
12
|
const CACHE_IMAGE = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/compress",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "Compress constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"name": "An Pham",
|
|
21
21
|
"email": "anpham6@gmail.com"
|
|
22
22
|
},
|
|
23
|
-
"license": "BSD
|
|
23
|
+
"license": "BSD-3-Clause",
|
|
24
24
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@e-mc/module": "0.10.
|
|
27
|
-
"@e-mc/types": "0.10.
|
|
26
|
+
"@e-mc/module": "0.10.3",
|
|
27
|
+
"@e-mc/types": "0.10.3",
|
|
28
28
|
"wawoff2": "^2.0.1",
|
|
29
29
|
"woff2sfnt-sfnt2woff": "^1.0.0"
|
|
30
30
|
}
|