@revizly/sharp 0.35.0-revizly34 → 0.35.0-revizly36
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/dist/index.d.cts +1980 -0
- package/dist/index.d.mts +1980 -0
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/lib/index.d.ts +2 -2
- package/package.json +22 -13
package/dist/input.cjs
CHANGED
|
@@ -125,7 +125,7 @@ function _createInputDescriptor (input, inputOptions, containerOptions) {
|
|
|
125
125
|
}
|
|
126
126
|
// Density
|
|
127
127
|
if (is.defined(inputOptions.density)) {
|
|
128
|
-
if (is.inRange(inputOptions.density, 1, 100000)) {
|
|
128
|
+
if (is.number(inputOptions.density) && is.inRange(inputOptions.density, 1, 100000)) {
|
|
129
129
|
inputDescriptor.density = inputOptions.density;
|
|
130
130
|
} else {
|
|
131
131
|
throw is.invalidParameterError('density', 'number between 1 and 100000', inputOptions.density);
|
package/dist/input.mjs
CHANGED
|
@@ -125,7 +125,7 @@ function _createInputDescriptor (input, inputOptions, containerOptions) {
|
|
|
125
125
|
}
|
|
126
126
|
// Density
|
|
127
127
|
if (is.defined(inputOptions.density)) {
|
|
128
|
-
if (is.inRange(inputOptions.density, 1, 100000)) {
|
|
128
|
+
if (is.number(inputOptions.density) && is.inRange(inputOptions.density, 1, 100000)) {
|
|
129
129
|
inputDescriptor.density = inputOptions.density;
|
|
130
130
|
} else {
|
|
131
131
|
throw is.invalidParameterError('density', 'number between 1 and 100000', inputOptions.density);
|
package/lib/index.d.ts
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
/// <reference types="node" />
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
declare type Duplex = import('node:stream').Duplex;
|
|
31
|
+
declare type ColorLike = import('@img/colour').ColorLike;
|
|
32
32
|
|
|
33
33
|
//#region Constructor functions
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revizly/sharp",
|
|
3
3
|
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
|
|
4
|
-
"version": "0.35.0-
|
|
4
|
+
"version": "0.35.0-revizly36",
|
|
5
5
|
"author": "Lovell Fuller <npm@lovell.info>",
|
|
6
6
|
"homepage": "https://sharp.pixelplumbing.com",
|
|
7
7
|
"contributors": [
|
|
@@ -98,9 +98,10 @@
|
|
|
98
98
|
"build:dist": "node scripts/build.mjs",
|
|
99
99
|
"clean": "rm -rf src/build/ test/fixtures/output.*",
|
|
100
100
|
"test": "npm run lint && npm run test-unit",
|
|
101
|
-
"lint": "npm run lint-cpp && npm run lint-js && npm run lint-types",
|
|
101
|
+
"lint": "npm run lint-cpp && npm run lint-js && npm run lint-types && npm run lint-publish",
|
|
102
102
|
"lint-cpp": "cpplint --quiet src/*.h src/*.cc",
|
|
103
103
|
"lint-js": "biome lint",
|
|
104
|
+
"lint-publish": "publint --strict",
|
|
104
105
|
"lint-types": "tsd --files ./test/types/sharp.test-d.ts",
|
|
105
106
|
"test-leak": "./test/leak/leak.sh",
|
|
106
107
|
"test-unit": "node --experimental-test-coverage test/unit.mjs",
|
|
@@ -120,13 +121,20 @@
|
|
|
120
121
|
],
|
|
121
122
|
"main": "./dist/index.cjs",
|
|
122
123
|
"module": "./dist/index.mjs",
|
|
123
|
-
"types": "./
|
|
124
|
+
"types": "./dist/index.d.mts",
|
|
124
125
|
"exports": {
|
|
125
126
|
".": {
|
|
126
|
-
"import":
|
|
127
|
-
|
|
127
|
+
"import": {
|
|
128
|
+
"types": "./dist/index.d.mts",
|
|
129
|
+
"default": "./dist/index.mjs"
|
|
130
|
+
},
|
|
131
|
+
"require": {
|
|
132
|
+
"types": "./dist/index.d.cts",
|
|
133
|
+
"default": "./dist/index.cjs"
|
|
134
|
+
}
|
|
128
135
|
}
|
|
129
136
|
},
|
|
137
|
+
"sideEffects": true,
|
|
130
138
|
"repository": {
|
|
131
139
|
"type": "git",
|
|
132
140
|
"url": "git://github.com/janaz/sharp.git"
|
|
@@ -152,26 +160,27 @@
|
|
|
152
160
|
"dependencies": {
|
|
153
161
|
"@img/colour": "^1.1.0",
|
|
154
162
|
"detect-libc": "^2.1.2",
|
|
155
|
-
"semver": "^7.8.
|
|
163
|
+
"semver": "^7.8.4"
|
|
156
164
|
},
|
|
157
165
|
"optionalDependencies": {
|
|
158
|
-
"@revizly/sharp-libvips-linux-arm64": "1.0.
|
|
159
|
-
"@revizly/sharp-libvips-linux-x64": "1.0.
|
|
160
|
-
"@revizly/sharp-linux-arm64": "0.35.0-
|
|
161
|
-
"@revizly/sharp-linux-x64": "0.35.0-
|
|
166
|
+
"@revizly/sharp-libvips-linux-arm64": "1.0.39",
|
|
167
|
+
"@revizly/sharp-libvips-linux-x64": "1.0.39",
|
|
168
|
+
"@revizly/sharp-linux-arm64": "0.35.0-revizly36",
|
|
169
|
+
"@revizly/sharp-linux-x64": "0.35.0-revizly36"
|
|
162
170
|
},
|
|
163
171
|
"devDependencies": {
|
|
164
172
|
"@biomejs/biome": "^2.4.16",
|
|
165
173
|
"@cpplint/cli": "^0.1.0",
|
|
166
|
-
"@emnapi/runtime": "^1.
|
|
167
|
-
"@revizly/sharp-libvips-dev": "1.0.
|
|
174
|
+
"@emnapi/runtime": "^1.11.0",
|
|
175
|
+
"@revizly/sharp-libvips-dev": "1.0.39",
|
|
168
176
|
"@types/node": "*",
|
|
169
|
-
"emnapi": "^1.
|
|
177
|
+
"emnapi": "^1.11.0",
|
|
170
178
|
"exif-reader": "^2.0.3",
|
|
171
179
|
"extract-zip": "^2.0.1",
|
|
172
180
|
"icc": "^4.0.0",
|
|
173
181
|
"node-addon-api": "^8.8.0",
|
|
174
182
|
"node-gyp": "^12.4.0",
|
|
183
|
+
"publint": "^0.3.21",
|
|
175
184
|
"tar-fs": "^3.1.2",
|
|
176
185
|
"tsd": "^0.33.0"
|
|
177
186
|
},
|