@e-mc/image 0.7.0 → 0.8.0
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 +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -21,8 +21,8 @@ class Image extends core_1.Client {
|
|
|
21
21
|
this[_b] = '';
|
|
22
22
|
}
|
|
23
23
|
static get REGEXP_SIZERANGE() { return REGEXP_SIZERANGE; }
|
|
24
|
-
static transform(file, command, options) {
|
|
25
|
-
return
|
|
24
|
+
static async transform(file, command, options) {
|
|
25
|
+
return options?.tempFile ? '' : null;
|
|
26
26
|
}
|
|
27
27
|
static clamp(value, min = 0, max = 1) {
|
|
28
28
|
switch (typeof value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/image",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Image constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"license": "BSD 3-Clause",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/core": "0.
|
|
23
|
+
"@e-mc/core": "0.8.0"
|
|
24
24
|
}
|
|
25
25
|
}
|