@jimp/plugin-threshold 1.0.5 → 1.1.1--canary.8356674.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/.tshy/build.json CHANGED
@@ -2,7 +2,6 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "rootDir": "../src",
5
- "target": "es2022",
6
5
  "module": "nodenext",
7
6
  "moduleResolution": "nodenext"
8
7
  }
@@ -3,11 +3,13 @@
3
3
  "include": [
4
4
  "../src/**/*.ts",
5
5
  "../src/**/*.cts",
6
- "../src/**/*.tsx"
6
+ "../src/**/*.tsx",
7
+ "../src/**/*.json"
7
8
  ],
8
9
  "exclude": [
9
10
  "../**/*.test.ts",
10
- "../src/**/*.mts"
11
+ "../src/**/*.mts",
12
+ "../src/package.json"
11
13
  ],
12
14
  "compilerOptions": {
13
15
  "outDir": "../.tshy-build/commonjs"
package/.tshy/esm.json CHANGED
@@ -3,10 +3,12 @@
3
3
  "include": [
4
4
  "../src/**/*.ts",
5
5
  "../src/**/*.mts",
6
- "../src/**/*.tsx"
6
+ "../src/**/*.tsx",
7
+ "../src/**/*.json"
7
8
  ],
8
9
  "exclude": [
9
- "../**/*.test.ts"
10
+ "../**/*.test.ts",
11
+ "../src/package.json"
10
12
  ],
11
13
  "compilerOptions": {
12
14
  "outDir": "../.tshy-build/esm"
@@ -1,4 +1,4 @@
1
1
 
2
- > @jimp/plugin-threshold@1.0.4 build /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
2
+ > @jimp/plugin-threshold@1.1.0 build /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
3
3
  > tshy
4
4
 
@@ -0,0 +1,113 @@
1
+
2
+ > @jimp/plugin-threshold@1.1.0 test /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
3
+ > vitest "--watch=false"
4
+
5
+
6
+  RUN  v1.4.0 /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
7
+
8
+ [?25l · src/index.test.ts (1)
9
+ · Threshold (1)
10
+ · defines default threshold for lighter backgrounds
11
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l ❯ src/index.test.ts (1)
12
+ ❯ Threshold (1)
13
+ ⠙ defines default threshold for lighter backgrounds
14
+ [?25l ❯ src/index.test.ts (1)
15
+ ❯ Threshold (1)
16
+ ⠹ defines default threshold for lighter backgrounds
17
+ [?25l ❯ src/index.test.ts (1)
18
+ ❯ Threshold (1)
19
+ ⠸ defines default threshold for lighter backgrounds
20
+ [?25l ❯ src/index.test.ts (1)
21
+ ❯ Threshold (1)
22
+ ⠼ defines default threshold for lighter backgrounds
23
+ [?25l ❯ src/index.test.ts (1)
24
+ ❯ Threshold (1)
25
+ ⠴ defines default threshold for lighter backgrounds
26
+ [?25l ❯ src/index.test.ts (1)
27
+ ❯ Threshold (1)
28
+ ⠦ defines default threshold for lighter backgrounds
29
+ [?25l ❯ src/index.test.ts (1)
30
+ ❯ Threshold (1)
31
+ ⠧ defines default threshold for lighter backgrounds
32
+ [?25l ❯ src/index.test.ts (1)
33
+ ❯ Threshold (1)
34
+ ⠇ defines default threshold for lighter backgrounds
35
+ [?25l ❯ src/index.test.ts (1)
36
+ ❯ Threshold (1)
37
+ ⠏ defines default threshold for lighter backgrounds
38
+ [?25l ❯ src/index.test.ts (1)
39
+ ❯ Threshold (1)
40
+ ⠋ defines default threshold for lighter backgrounds
41
+ [?25l ❯ src/index.test.ts (1)
42
+ ❯ Threshold (1)
43
+ ⠙ defines default threshold for lighter backgrounds
44
+ [?25l ❯ src/index.test.ts (1)
45
+ ❯ Threshold (1)
46
+ ⠹ defines default threshold for lighter backgrounds
47
+ [?25l ❯ src/index.test.ts (1)
48
+ ❯ Threshold (1)
49
+ ⠸ defines default threshold for lighter backgrounds
50
+ [?25l ❯ src/index.test.ts (1)
51
+ ❯ Threshold (1)
52
+ ⠼ defines default threshold for lighter backgrounds
53
+ [?25l ❯ src/index.test.ts (1)
54
+ ❯ Threshold (1)
55
+ ⠴ defines default threshold for lighter backgrounds
56
+ [?25l ❯ src/index.test.ts (1)
57
+ ❯ Threshold (1)
58
+ ⠦ defines default threshold for lighter backgrounds
59
+ [?25l ❯ src/index.test.ts (1)
60
+ ❯ Threshold (1)
61
+ ⠧ defines default threshold for lighter backgrounds
62
+ [?25l ❯ src/index.test.ts (1)
63
+ ❯ Threshold (1)
64
+ ⠇ defines default threshold for lighter backgrounds
65
+ [?25l ❯ src/index.test.ts (1)
66
+ ❯ Threshold (1)
67
+ ⠏ defines default threshold for lighter backgrounds
68
+ [?25l ❯ src/index.test.ts (1)
69
+ ❯ Threshold (1)
70
+ ⠋ defines default threshold for lighter backgrounds
71
+ [?25l ❯ src/index.test.ts (1)
72
+ ❯ Threshold (1)
73
+ ⠙ defines default threshold for lighter backgrounds
74
+ [?25l ❯ src/index.test.ts (1)
75
+ ❯ Threshold (1)
76
+ ⠹ defines default threshold for lighter backgrounds
77
+ [?25l ❯ src/index.test.ts (1)
78
+ ❯ Threshold (1)
79
+ ⠸ defines default threshold for lighter backgrounds
80
+ [?25l ❯ src/index.test.ts (1)
81
+ ❯ Threshold (1)
82
+ ⠼ defines default threshold for lighter backgrounds
83
+ [?25l ❯ src/index.test.ts (1)
84
+ ❯ Threshold (1)
85
+ ⠴ defines default threshold for lighter backgrounds
86
+ [?25l ❯ src/index.test.ts (1)
87
+ ❯ Threshold (1)
88
+ ⠦ defines default threshold for lighter backgrounds
89
+ [?25l ❯ src/index.test.ts (1)
90
+ ❯ Threshold (1)
91
+ ⠧ defines default threshold for lighter backgrounds
92
+ [?25l ❯ src/index.test.ts (1)
93
+ ❯ Threshold (1)
94
+ ⠇ 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
107
+
108
+  Test Files  1 passed (1)
109
+  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)
112
+
113
+ [?25h[?25h
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # v1.1.0 (Sun Sep 01 2024)
2
+
3
+ #### ⚠️ Pushed to `main`
4
+
5
+ - upgrade tshy ([@hipstersmoothie](https://github.com/hipstersmoothie))
6
+ - update more docs ([@hipstersmoothie](https://github.com/hipstersmoothie))
7
+
8
+ #### Authors: 1
9
+
10
+ - Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
11
+
12
+ ---
13
+
1
14
  # v1.0.3 (Sat Aug 31 2024)
2
15
 
3
16
  #### 🐛 Bug Fix
package/README.md CHANGED
@@ -7,24 +7,4 @@
7
7
 
8
8
  This is useful as a simplified method for processing scanned drawings, signatures, etc
9
9
 
10
- ## Usage
11
-
12
- - @param {number} options object
13
- - max: A number auto limited between 0 - 255
14
- - replace: (optional) A number auto limited between 0 - 255 (default 255)
15
- - autoGreyscale: (optional) A boolean whether to apply greyscale beforehand (default true)
16
- - @param {function(Error, Jimp)} cb (optional) a callback for when complete
17
-
18
- ```js
19
- import jimp from "jimp";
20
-
21
- async function main() {
22
- const image = await jimp.read("test/image.png");
23
-
24
- image.threshold({ max: 150 });
25
- // or
26
- image.threshold({ max: 200, replace: 200, autoGreyscale: false });
27
- }
28
-
29
- main();
30
- ```
10
+ - [threshold](http://jimp-dev.github.io/jimp/api/jimp/classes/jimp#threshold)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimp/plugin-threshold",
3
- "version": "1.0.5",
3
+ "version": "1.1.1--canary.8356674.0",
4
4
  "repository": "jimp-dev/jimp",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -13,24 +13,24 @@
13
13
  "author": "Andrew Lisowski <lisowski54@gmail.com>",
14
14
  "license": "MIT",
15
15
  "devDependencies": {
16
- "@jimp/config-eslint": "1.0.5",
17
- "@jimp/config-typescript": "1.0.5",
18
- "@jimp/config-vitest": "1.0.5",
19
- "@jimp/js-jpeg": "1.0.5",
20
- "@jimp/test-utils": "1.0.5",
16
+ "@jimp/config-eslint": "1.1.1--canary.8356674.0",
17
+ "@jimp/config-typescript": "1.1.1--canary.8356674.0",
18
+ "@jimp/config-vitest": "1.1.1--canary.8356674.0",
19
+ "@jimp/js-jpeg": "1.1.1--canary.8356674.0",
20
+ "@jimp/test-utils": "1.1.1--canary.8356674.0",
21
21
  "@vitest/browser": "^1.4.0",
22
22
  "eslint": "^8.57.0",
23
- "tshy": "^1.12.0",
23
+ "tshy": "^3.0.2",
24
24
  "typescript": "^5.5.4",
25
25
  "vite-plugin-node-polyfills": "^0.21.0",
26
26
  "vitest": "^1.4.0"
27
27
  },
28
28
  "dependencies": {
29
- "@jimp/core": "1.0.5",
30
- "@jimp/plugin-color": "1.0.5",
31
- "@jimp/plugin-hash": "1.0.5",
32
- "@jimp/types": "1.0.5",
33
- "@jimp/utils": "1.0.5",
29
+ "@jimp/core": "1.1.1--canary.8356674.0",
30
+ "@jimp/plugin-color": "1.1.1--canary.8356674.0",
31
+ "@jimp/plugin-hash": "1.1.1--canary.8356674.0",
32
+ "@jimp/types": "1.1.1--canary.8356674.0",
33
+ "@jimp/utils": "1.1.1--canary.8356674.0",
34
34
  "zod": "^3.22.4"
35
35
  },
36
36
  "tshy": {
@@ -62,5 +62,6 @@
62
62
  "access": "public"
63
63
  },
64
64
  "sideEffects": false,
65
- "gitHead": "44ab95c1875f9f94d993d7a48d66de00115fb4a8"
65
+ "module": "./dist/esm/index.js",
66
+ "gitHead": "8356674e4a0c8ea7e0ee83483e809b2937f77edb"
66
67
  }