@jimp/plugin-threshold 1.1.1 → 1.1.3--canary.34e8f3b.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.
@@ -1,4 +1,5 @@
1
1
 
2
- > @jimp/plugin-threshold@1.1.0 build /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
2
+ 
3
+ > @jimp/plugin-threshold@1.1.2 build /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
3
4
  > tshy
4
5
 
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @jimp/plugin-threshold@1.1.2 lint /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
4
+ > eslint .
5
+
@@ -0,0 +1,147 @@
1
+
2
+ > @jimp/plugin-threshold@1.1.1 test:browser /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
3
+ > vitest --config vitest.config.browser.mjs "--watch=false" "--u"
4
+
5
+
6
+  RUN  v1.4.0 /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
7
+  Browser runner started at http://localhost:5173/
8
+
9
+ [?25l · src/index.test.ts (1)
10
+ · Threshold (1)
11
+ · defines default threshold for lighter backgrounds
12
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l ❯ src/index.test.ts (1)
13
+ ❯ Threshold (1)
14
+ ⠙ defines default threshold for lighter backgrounds
15
+ [?25l ❯ src/index.test.ts (1)
16
+ ❯ Threshold (1)
17
+ ⠹ defines default threshold for lighter backgrounds
18
+ [?25l ❯ src/index.test.ts (1)
19
+ ❯ Threshold (1)
20
+ ⠸ defines default threshold for lighter backgrounds
21
+ [?25l ❯ src/index.test.ts (1)
22
+ ❯ Threshold (1)
23
+ ⠼ defines default threshold for lighter backgrounds
24
+ [?25l ❯ src/index.test.ts (1)
25
+ ❯ Threshold (1)
26
+ ⠴ defines default threshold for lighter backgrounds
27
+ [?25l ❯ src/index.test.ts (1)
28
+ ❯ Threshold (1)
29
+ ⠦ defines default threshold for lighter backgrounds
30
+ [?25l ❯ src/index.test.ts (1)
31
+ ❯ Threshold (1)
32
+ ⠧ defines default threshold for lighter backgrounds
33
+ [?25l ❯ src/index.test.ts (1)
34
+ ❯ Threshold (1)
35
+ ⠇ defines default threshold for lighter backgrounds
36
+ [?25l ❯ src/index.test.ts (1)
37
+ ❯ Threshold (1)
38
+ ⠏ defines default threshold for lighter backgrounds
39
+ [?25l ❯ src/index.test.ts (1)
40
+ ❯ Threshold (1)
41
+ ⠋ defines default threshold for lighter backgrounds
42
+ [?25l ❯ src/index.test.ts (1)
43
+ ❯ Threshold (1)
44
+ ⠙ defines default threshold for lighter backgrounds
45
+ [?25l ❯ src/index.test.ts (1)
46
+ ❯ Threshold (1)
47
+ ⠹ defines default threshold for lighter backgrounds
48
+ [?25l ❯ src/index.test.ts (1)
49
+ ❯ Threshold (1)
50
+ ⠸ defines default threshold for lighter backgrounds
51
+ [?25l ❯ src/index.test.ts (1)
52
+ ❯ Threshold (1)
53
+ ⠼ defines default threshold for lighter backgrounds
54
+ [?25l ❯ src/index.test.ts (1)
55
+ ❯ Threshold (1)
56
+ ⠴ defines default threshold for lighter backgrounds
57
+ [?25l ❯ src/index.test.ts (1)
58
+ ❯ Threshold (1)
59
+ ⠦ defines default threshold for lighter backgrounds
60
+ [?25l ❯ src/index.test.ts (1)
61
+ ❯ Threshold (1)
62
+ ⠧ defines default threshold for lighter backgrounds
63
+ [?25l ❯ src/index.test.ts (1)
64
+ ❯ Threshold (1)
65
+ ⠇ defines default threshold for lighter backgrounds
66
+ [?25l ❯ src/index.test.ts (1)
67
+ ❯ Threshold (1)
68
+ ⠏ defines default threshold for lighter backgrounds
69
+ [?25l ❯ src/index.test.ts (1)
70
+ ❯ Threshold (1)
71
+ ⠋ defines default threshold for lighter backgrounds
72
+ [?25l ❯ src/index.test.ts (1)
73
+ ❯ Threshold (1)
74
+ ⠙ defines default threshold for lighter backgrounds
75
+ [?25l ❯ src/index.test.ts (1)
76
+ ❯ Threshold (1)
77
+ ⠹ defines default threshold for lighter backgrounds
78
+ [?25l ❯ src/index.test.ts (1)
79
+ ❯ Threshold (1)
80
+ ⠸ defines default threshold for lighter backgrounds
81
+ [?25l · src/index.test.ts (1)
82
+ · Threshold (1)
83
+ · defines default threshold for lighter backgrounds
84
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l ❯ src/index.test.ts (1)
85
+ ❯ Threshold (1)
86
+ ⠙ defines default threshold for lighter backgrounds
87
+ [?25l ❯ src/index.test.ts (1)
88
+ ❯ Threshold (1)
89
+ ⠹ defines default threshold for lighter backgrounds
90
+ [?25l ❯ src/index.test.ts (1)
91
+ ❯ Threshold (1)
92
+ ⠸ defines default threshold for lighter backgrounds
93
+ [?25l ❯ src/index.test.ts (1)
94
+ ❯ Threshold (1)
95
+ ⠼ defines default threshold for lighter backgrounds
96
+ [?25l ❯ src/index.test.ts (1)
97
+ ❯ Threshold (1)
98
+ ⠴ defines default threshold for lighter backgrounds
99
+ [?25l ❯ src/index.test.ts (1)
100
+ ❯ Threshold (1)
101
+ ⠦ defines default threshold for lighter backgrounds
102
+ [?25l ❯ src/index.test.ts (1)
103
+ ❯ Threshold (1)
104
+ ⠧ defines default threshold for lighter backgrounds
105
+ [?25l ❯ src/index.test.ts (1)
106
+ ❯ Threshold (1)
107
+ ⠇ defines default threshold for lighter backgrounds
108
+ [?25l ❯ src/index.test.ts (1)
109
+ ❯ Threshold (1)
110
+ ⠏ defines default threshold for lighter backgrounds
111
+ [?25l ❯ src/index.test.ts (1)
112
+ ❯ Threshold (1)
113
+ ⠋ defines default threshold for lighter backgrounds
114
+ [?25l ❯ src/index.test.ts (1)
115
+ ❯ Threshold (1)
116
+ ⠙ defines default threshold for lighter backgrounds
117
+ [?25l ❯ src/index.test.ts (1)
118
+ ❯ Threshold (1)
119
+ ⠹ defines default threshold for lighter backgrounds
120
+ [?25l ❯ src/index.test.ts (1)
121
+ ❯ Threshold (1)
122
+ ⠸ defines default threshold for lighter backgrounds
123
+ [?25l ❯ src/index.test.ts (1)
124
+ ❯ Threshold (1)
125
+ ⠼ defines default threshold for lighter backgrounds
126
+ [?25l ❯ src/index.test.ts (1)
127
+ ❯ Threshold (1)
128
+ ⠴ defines default threshold for lighter backgrounds
129
+ [?25l ❯ src/index.test.ts (1)
130
+ ❯ Threshold (1)
131
+ ⠦ defines default threshold for lighter backgrounds
132
+ [?25l ❯ src/index.test.ts (1)
133
+ ❯ Threshold (1)
134
+ ⠧ defines default threshold for lighter backgrounds
135
+ [?25l ✓ src/index.test.ts (1) 420ms
136
+ ✓ Threshold (1) 420ms
137
+ ✓ defines default threshold for lighter backgrounds 420ms
138
+  ✓ src/index.test.ts (1) 420ms
139
+ ✓ Threshold (1) 420ms
140
+ ✓ defines default threshold for lighter backgrounds 420ms
141
+
142
+  Test Files  1 passed (1)
143
+  Tests  1 passed (1)
144
+  Start at  00:42:21
145
+  Duration  1.81s (transform 0ms, setup 0ms, collect 59ms, tests 420ms, environment 0ms, prepare 0ms)
146
+
147
+ [?25h[?25h
@@ -1,9 +1,10 @@
1
1
 
2
- > @jimp/plugin-threshold@1.1.0 test /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
3
- > vitest "--watch=false"
2
+ 
3
+ > @jimp/plugin-threshold@1.1.2 test /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
4
+ > vitest "--watch=false" "-u"
4
5
 
5
6
 
6
-  RUN  v1.4.0 /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
7
+  RUN  v2.0.5 /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
7
8
 
8
9
  [?25l · src/index.test.ts (1)
9
10
  · Threshold (1)
@@ -92,22 +93,16 @@
92
93
  [?25l ❯ src/index.test.ts (1)
93
94
  ❯ Threshold (1)
94
95
  ⠇ defines default threshold for lighter backgrounds
95
- [?25l ❯ src/index.test.ts (1)
96
- ❯ Threshold (1)
97
- ⠏ defines default threshold for lighter backgrounds
98
- [?25l ❯ src/index.test.ts (1)
99
- ❯ Threshold (1)
100
- ⠋ defines default threshold for lighter backgrounds
101
- [?25l ✓ src/index.test.ts (1) 703ms
102
- ✓ Threshold (1) 702ms
103
- ✓ defines default threshold for lighter backgrounds 702ms
104
- [?25l[?25l ✓ src/index.test.ts (1) 703ms
105
- ✓ Threshold (1) 702ms
106
- ✓ defines default threshold for lighter backgrounds 702ms
96
+ [?25l ✓ src/index.test.ts (1) 651ms
97
+ ✓ Threshold (1) 651ms
98
+ ✓ defines default threshold for lighter backgrounds 650ms
99
+  ✓ src/index.test.ts (1) 651ms
100
+ ✓ Threshold (1) 651ms
101
+ ✓ defines default threshold for lighter backgrounds 650ms
107
102
 
108
103
   Test Files  1 passed (1)
109
104
   Tests  1 passed (1)
110
-  Start at  19:09:02
111
-  Duration  1.16s (transform 139ms, setup 0ms, collect 185ms, tests 703ms, environment 0ms, prepare 63ms)
105
+  Start at  01:23:31
106
+  Duration  1.36s (transform 157ms, setup 0ms, collect 243ms, tests 651ms, environment 0ms, prepare 88ms)
112
107
 
113
108
  [?25h[?25h
@@ -0,0 +1,2 @@
1
+ import shared from "@jimp/config-eslint/base.js";
2
+ export default [...shared];
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@jimp/plugin-threshold",
3
- "version": "1.1.1",
3
+ "version": "1.1.3--canary.34e8f3b.0",
4
4
  "repository": "jimp-dev/jimp",
5
+ "engines": {
6
+ "node": ">=18"
7
+ },
5
8
  "scripts": {
6
9
  "lint": "eslint .",
7
10
  "test": "vitest",
@@ -13,25 +16,25 @@
13
16
  "author": "Andrew Lisowski <lisowski54@gmail.com>",
14
17
  "license": "MIT",
15
18
  "devDependencies": {
16
- "@jimp/config-eslint": "1.1.1",
17
- "@jimp/config-typescript": "1.1.1",
18
- "@jimp/config-vitest": "1.1.1",
19
- "@jimp/js-jpeg": "1.1.1",
20
- "@jimp/test-utils": "1.1.1",
21
- "@vitest/browser": "^1.4.0",
22
- "eslint": "^8.57.0",
19
+ "@jimp/config-eslint": "1.1.3--canary.34e8f3b.0",
20
+ "@jimp/config-typescript": "1.1.3--canary.34e8f3b.0",
21
+ "@jimp/config-vitest": "1.1.3--canary.34e8f3b.0",
22
+ "@jimp/js-jpeg": "1.1.3--canary.34e8f3b.0",
23
+ "@jimp/test-utils": "1.1.3--canary.34e8f3b.0",
24
+ "@vitest/browser": "^2.0.5",
25
+ "eslint": "^9.9.1",
23
26
  "tshy": "^3.0.2",
24
27
  "typescript": "^5.5.4",
25
- "vite-plugin-node-polyfills": "^0.21.0",
26
- "vitest": "^1.4.0"
28
+ "vite-plugin-node-polyfills": "^0.22.0",
29
+ "vitest": "^2.0.5"
27
30
  },
28
31
  "dependencies": {
29
- "@jimp/core": "1.1.1",
30
- "@jimp/plugin-color": "1.1.1",
31
- "@jimp/plugin-hash": "1.1.1",
32
- "@jimp/types": "1.1.1",
33
- "@jimp/utils": "1.1.1",
34
- "zod": "^3.22.4"
32
+ "@jimp/core": "1.1.3--canary.34e8f3b.0",
33
+ "@jimp/plugin-color": "1.1.3--canary.34e8f3b.0",
34
+ "@jimp/plugin-hash": "1.1.3--canary.34e8f3b.0",
35
+ "@jimp/types": "1.1.3--canary.34e8f3b.0",
36
+ "@jimp/utils": "1.1.3--canary.34e8f3b.0",
37
+ "zod": "^3.23.8"
35
38
  },
36
39
  "tshy": {
37
40
  "exclude": [
@@ -63,5 +66,5 @@
63
66
  },
64
67
  "sideEffects": false,
65
68
  "module": "./dist/esm/index.js",
66
- "gitHead": "310b6ef10aaddedf85fb326fcc793d29f23c36d8"
69
+ "gitHead": "34e8f3bbb3f0392953c609a6d4f6e4ec4acb092e"
67
70
  }
package/src/index.test.ts CHANGED
@@ -14,7 +14,7 @@ describe("Threshold", () => {
14
14
  test("defines default threshold for lighter backgrounds", async () => {
15
15
  const testImage = await jimp.read(getTestImagePath("hands.jpg"));
16
16
  const expectedImage = await jimp.read(
17
- getTestImagePath("hands_mx200_rp255.jpg")
17
+ getTestImagePath("hands_mx200_rp255.jpg"),
18
18
  );
19
19
  const output = testImage.threshold({ max: 200, replace: 255 }).hash();
20
20
 
package/.eslintrc.cjs DELETED
@@ -1,5 +0,0 @@
1
- /** @type {import("eslint").Linter.Config} */
2
- module.exports = {
3
- root: true,
4
- extends: [require.resolve("@jimp/config-eslint/base.js")],
5
- };