@e-mc/image 0.9.9 → 0.10.1
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.js +5 -4
- package/package.json +2 -2
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.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.1/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { IHost, ModuleConstructor } from "./index";
|
|
@@ -86,9 +86,9 @@ NOTE: Usage without a **Host** is conducted through static methods. The **using*
|
|
|
86
86
|
|
|
87
87
|
## References
|
|
88
88
|
|
|
89
|
-
- https://www.unpkg.com/@e-mc/types@0.
|
|
90
|
-
- https://www.unpkg.com/@e-mc/types@0.
|
|
91
|
-
- https://www.unpkg.com/@e-mc/types@0.
|
|
89
|
+
- https://www.unpkg.com/@e-mc/types@0.10.1/lib/asset.d.ts
|
|
90
|
+
- https://www.unpkg.com/@e-mc/types@0.10.1/lib/image.d.ts
|
|
91
|
+
- https://www.unpkg.com/@e-mc/types@0.10.1/lib/settings.d.ts
|
|
92
92
|
|
|
93
93
|
## LICENSE
|
|
94
94
|
|
package/index.js
CHANGED
|
@@ -33,7 +33,9 @@ class Image extends core_1.Client {
|
|
|
33
33
|
this[_a] = '';
|
|
34
34
|
this[_b] = '';
|
|
35
35
|
}
|
|
36
|
-
static get REGEXP_SIZERANGE() {
|
|
36
|
+
static get REGEXP_SIZERANGE() {
|
|
37
|
+
return REGEXP_SIZERANGE;
|
|
38
|
+
}
|
|
37
39
|
static async transform(file, command, options) {
|
|
38
40
|
return options?.tempFile ? '' : null;
|
|
39
41
|
}
|
|
@@ -139,7 +141,7 @@ class Image extends core_1.Client {
|
|
|
139
141
|
result.add(deg);
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
|
-
if (result.size) {
|
|
144
|
+
if (result.size > 0) {
|
|
143
145
|
return { values: Array.from(result), color: parseHexDecimal(match[2]) };
|
|
144
146
|
}
|
|
145
147
|
}
|
|
@@ -318,7 +320,7 @@ class Image extends core_1.Client {
|
|
|
318
320
|
REGEXP_METHOD.lastIndex = i;
|
|
319
321
|
}
|
|
320
322
|
REGEXP_METHOD.lastIndex = 0;
|
|
321
|
-
if (result.length) {
|
|
323
|
+
if (result.length > 0) {
|
|
322
324
|
return result;
|
|
323
325
|
}
|
|
324
326
|
}
|
|
@@ -327,5 +329,4 @@ class Image extends core_1.Client {
|
|
|
327
329
|
}
|
|
328
330
|
}
|
|
329
331
|
_a = kCommand, _b = kOutputAs;
|
|
330
|
-
|
|
331
332
|
module.exports = Image;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/image",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
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.10.1"
|
|
24
24
|
}
|
|
25
25
|
}
|