@nextlyhq/storage-uploadthing 0.0.2-alpha.64 → 0.0.2-alpha.66
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/{chunk-W3CIFTIH.mjs → chunk-CNPHOD4B.mjs} +12 -5
- package/dist/chunk-CNPHOD4B.mjs.map +1 -0
- package/dist/{dist-4FMXMKHX.mjs → dist-QOPNSZNF.mjs} +85 -90
- package/dist/dist-QOPNSZNF.mjs.map +1 -0
- package/dist/index.cjs +33 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/local-plugin-2MPAVX5S-Q66ISMJN.mjs +4 -0
- package/dist/{local-plugin-X4OF5FWU-MLZIPEH2.mjs.map → local-plugin-2MPAVX5S-Q66ISMJN.mjs.map} +1 -1
- package/package.json +4 -4
- package/dist/chunk-W3CIFTIH.mjs.map +0 -1
- package/dist/dist-4FMXMKHX.mjs.map +0 -1
- package/dist/local-plugin-X4OF5FWU-MLZIPEH2.mjs +0 -4
|
@@ -3901,7 +3901,7 @@ var require_colour = __commonJS({
|
|
|
3901
3901
|
}
|
|
3902
3902
|
});
|
|
3903
3903
|
|
|
3904
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
3904
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/is.mjs
|
|
3905
3905
|
var defined = (val) => typeof val !== "undefined" && val !== null;
|
|
3906
3906
|
var object = (val) => typeof val === "object";
|
|
3907
3907
|
var plainObject = (val) => Object.prototype.toString.call(val) === "[object Object]";
|
|
@@ -3956,18 +3956,18 @@ var is_default = {
|
|
|
3956
3956
|
nativeError
|
|
3957
3957
|
};
|
|
3958
3958
|
|
|
3959
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
3959
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/sharp.mjs
|
|
3960
3960
|
var import_detect_libc2 = __toESM(require_detect_libc(), 1);
|
|
3961
3961
|
|
|
3962
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
3962
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/libvips.mjs
|
|
3963
3963
|
var import_semver = __toESM(require_semver2(), 1);
|
|
3964
3964
|
var import_detect_libc = __toESM(require_detect_libc(), 1);
|
|
3965
3965
|
|
|
3966
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
3966
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/package.json
|
|
3967
3967
|
var package_default = {
|
|
3968
3968
|
name: "sharp",
|
|
3969
3969
|
description: "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
|
|
3970
|
-
version: "0.35.
|
|
3970
|
+
version: "0.35.4",
|
|
3971
3971
|
author: "Lovell Fuller <npm@lovell.info>",
|
|
3972
3972
|
homepage: "https://sharp.pixelplumbing.com",
|
|
3973
3973
|
contributors: [
|
|
@@ -4129,31 +4129,31 @@ var package_default = {
|
|
|
4129
4129
|
semver: "^7.8.5"
|
|
4130
4130
|
},
|
|
4131
4131
|
optionalDependencies: {
|
|
4132
|
-
"@img/sharp-darwin-arm64": "0.35.
|
|
4133
|
-
"@img/sharp-darwin-x64": "0.35.
|
|
4134
|
-
"@img/sharp-freebsd-wasm32": "0.35.
|
|
4135
|
-
"@img/sharp-libvips-darwin-arm64": "1.3.
|
|
4136
|
-
"@img/sharp-libvips-darwin-x64": "1.3.
|
|
4137
|
-
"@img/sharp-libvips-linux-arm": "1.3.
|
|
4138
|
-
"@img/sharp-libvips-linux-arm64": "1.3.
|
|
4139
|
-
"@img/sharp-libvips-linux-ppc64": "1.3.
|
|
4140
|
-
"@img/sharp-libvips-linux-riscv64": "1.3.
|
|
4141
|
-
"@img/sharp-libvips-linux-s390x": "1.3.
|
|
4142
|
-
"@img/sharp-libvips-linux-x64": "1.3.
|
|
4143
|
-
"@img/sharp-libvips-linuxmusl-arm64": "1.3.
|
|
4144
|
-
"@img/sharp-libvips-linuxmusl-x64": "1.3.
|
|
4145
|
-
"@img/sharp-linux-arm": "0.35.
|
|
4146
|
-
"@img/sharp-linux-arm64": "0.35.
|
|
4147
|
-
"@img/sharp-linux-ppc64": "0.35.
|
|
4148
|
-
"@img/sharp-linux-riscv64": "0.35.
|
|
4149
|
-
"@img/sharp-linux-s390x": "0.35.
|
|
4150
|
-
"@img/sharp-linux-x64": "0.35.
|
|
4151
|
-
"@img/sharp-linuxmusl-arm64": "0.35.
|
|
4152
|
-
"@img/sharp-linuxmusl-x64": "0.35.
|
|
4153
|
-
"@img/sharp-webcontainers-wasm32": "0.35.
|
|
4154
|
-
"@img/sharp-win32-arm64": "0.35.
|
|
4155
|
-
"@img/sharp-win32-ia32": "0.35.
|
|
4156
|
-
"@img/sharp-win32-x64": "0.35.
|
|
4132
|
+
"@img/sharp-darwin-arm64": "0.35.4",
|
|
4133
|
+
"@img/sharp-darwin-x64": "0.35.4",
|
|
4134
|
+
"@img/sharp-freebsd-wasm32": "0.35.4",
|
|
4135
|
+
"@img/sharp-libvips-darwin-arm64": "1.3.3",
|
|
4136
|
+
"@img/sharp-libvips-darwin-x64": "1.3.3",
|
|
4137
|
+
"@img/sharp-libvips-linux-arm": "1.3.3",
|
|
4138
|
+
"@img/sharp-libvips-linux-arm64": "1.3.3",
|
|
4139
|
+
"@img/sharp-libvips-linux-ppc64": "1.3.3",
|
|
4140
|
+
"@img/sharp-libvips-linux-riscv64": "1.3.3",
|
|
4141
|
+
"@img/sharp-libvips-linux-s390x": "1.3.3",
|
|
4142
|
+
"@img/sharp-libvips-linux-x64": "1.3.3",
|
|
4143
|
+
"@img/sharp-libvips-linuxmusl-arm64": "1.3.3",
|
|
4144
|
+
"@img/sharp-libvips-linuxmusl-x64": "1.3.3",
|
|
4145
|
+
"@img/sharp-linux-arm": "0.35.4",
|
|
4146
|
+
"@img/sharp-linux-arm64": "0.35.4",
|
|
4147
|
+
"@img/sharp-linux-ppc64": "0.35.4",
|
|
4148
|
+
"@img/sharp-linux-riscv64": "0.35.4",
|
|
4149
|
+
"@img/sharp-linux-s390x": "0.35.4",
|
|
4150
|
+
"@img/sharp-linux-x64": "0.35.4",
|
|
4151
|
+
"@img/sharp-linuxmusl-arm64": "0.35.4",
|
|
4152
|
+
"@img/sharp-linuxmusl-x64": "0.35.4",
|
|
4153
|
+
"@img/sharp-webcontainers-wasm32": "0.35.4",
|
|
4154
|
+
"@img/sharp-win32-arm64": "0.35.4",
|
|
4155
|
+
"@img/sharp-win32-ia32": "0.35.4",
|
|
4156
|
+
"@img/sharp-win32-x64": "0.35.4"
|
|
4157
4157
|
},
|
|
4158
4158
|
peerDependenciesMeta: {
|
|
4159
4159
|
"@types/node": {
|
|
@@ -4161,22 +4161,22 @@ var package_default = {
|
|
|
4161
4161
|
}
|
|
4162
4162
|
},
|
|
4163
4163
|
devDependencies: {
|
|
4164
|
-
"@biomejs/biome": "^2.5.
|
|
4164
|
+
"@biomejs/biome": "^2.5.10",
|
|
4165
4165
|
"@cpplint/cli": "^0.1.0",
|
|
4166
|
-
"@emnapi/runtime": "^1.11.
|
|
4167
|
-
"@img/sharp-libvips-dev": "1.3.
|
|
4168
|
-
"@img/sharp-libvips-dev-wasm32": "1.3.
|
|
4169
|
-
"@img/sharp-libvips-win32-arm64": "1.3.
|
|
4170
|
-
"@img/sharp-libvips-win32-ia32": "1.3.
|
|
4171
|
-
"@img/sharp-libvips-win32-x64": "1.3.
|
|
4166
|
+
"@emnapi/runtime": "^1.11.3",
|
|
4167
|
+
"@img/sharp-libvips-dev": "1.3.3",
|
|
4168
|
+
"@img/sharp-libvips-dev-wasm32": "1.3.3",
|
|
4169
|
+
"@img/sharp-libvips-win32-arm64": "1.3.3",
|
|
4170
|
+
"@img/sharp-libvips-win32-ia32": "1.3.3",
|
|
4171
|
+
"@img/sharp-libvips-win32-x64": "1.3.3",
|
|
4172
4172
|
"@types/node": "*",
|
|
4173
|
-
emnapi: "^1.11.
|
|
4173
|
+
emnapi: "^1.11.3",
|
|
4174
4174
|
"exif-reader": "^2.0.3",
|
|
4175
|
-
|
|
4175
|
+
yauzl: "^3.4.0",
|
|
4176
4176
|
icc: "^4.0.0",
|
|
4177
|
-
"node-addon-api": "^8.9.
|
|
4177
|
+
"node-addon-api": "^8.9.2",
|
|
4178
4178
|
"node-gyp": "^12.4.0",
|
|
4179
|
-
publint: "^0.3.
|
|
4179
|
+
publint: "^0.3.24",
|
|
4180
4180
|
"tar-fs": "^3.1.3",
|
|
4181
4181
|
tsd: "^0.33.0"
|
|
4182
4182
|
},
|
|
@@ -4185,14 +4185,14 @@ var package_default = {
|
|
|
4185
4185
|
node: ">=20.9.0"
|
|
4186
4186
|
},
|
|
4187
4187
|
config: {
|
|
4188
|
-
libvips: ">=8.18.
|
|
4188
|
+
libvips: ">=8.18.6"
|
|
4189
4189
|
},
|
|
4190
4190
|
funding: {
|
|
4191
4191
|
url: "https://opencollective.com/libvips"
|
|
4192
4192
|
}
|
|
4193
4193
|
};
|
|
4194
4194
|
|
|
4195
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
4195
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/libvips.mjs
|
|
4196
4196
|
var minimumLibvipsVersionLabelled = process.env.npm_package_config_libvips || package_default.config.libvips;
|
|
4197
4197
|
var minimumLibvipsVersion = import_semver.default.coerce(minimumLibvipsVersionLabelled).version;
|
|
4198
4198
|
var prebuiltPlatforms = [
|
|
@@ -4378,7 +4378,7 @@ var libvips_default = {
|
|
|
4378
4378
|
useGlobalLibvips
|
|
4379
4379
|
};
|
|
4380
4380
|
|
|
4381
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
4381
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/sharp.mjs
|
|
4382
4382
|
var require2 = createRequire(import.meta.url);
|
|
4383
4383
|
var { version } = package_default;
|
|
4384
4384
|
var { runtimePlatformArch: runtimePlatformArch2, isUnsupportedNodeRuntime: isUnsupportedNodeRuntime2, prebuiltPlatforms: prebuiltPlatforms2, minimumLibvipsVersion: minimumLibvipsVersion2 } = libvips_default;
|
|
@@ -4533,7 +4533,7 @@ if (!sharp) {
|
|
|
4533
4533
|
}
|
|
4534
4534
|
var sharp_default = sharp;
|
|
4535
4535
|
|
|
4536
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
4536
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/constructor.mjs
|
|
4537
4537
|
var debuglog = util.debuglog("sharp");
|
|
4538
4538
|
var queueListener = (queueLength) => {
|
|
4539
4539
|
Sharp.queue.emit("change", queueLength);
|
|
@@ -4751,7 +4751,7 @@ function clone() {
|
|
|
4751
4751
|
clone2.options.debuglog = debuglog2;
|
|
4752
4752
|
clone2.options.queueListener = queueListener2;
|
|
4753
4753
|
if (this._isStreamInput()) {
|
|
4754
|
-
this.
|
|
4754
|
+
this._whenStreamInFinished(() => {
|
|
4755
4755
|
this._flattenBufferIn();
|
|
4756
4756
|
clone2.options.input.buffer = this.options.input.buffer;
|
|
4757
4757
|
clone2.emit("finish");
|
|
@@ -4762,7 +4762,7 @@ function clone() {
|
|
|
4762
4762
|
Object.assign(Sharp.prototype, { clone });
|
|
4763
4763
|
var constructor_default = Sharp;
|
|
4764
4764
|
|
|
4765
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
4765
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/input.mjs
|
|
4766
4766
|
var align = {
|
|
4767
4767
|
left: "low",
|
|
4768
4768
|
top: "low",
|
|
@@ -5234,11 +5234,6 @@ function _createInputDescriptor(input, inputOptions, containerOptions) {
|
|
|
5234
5234
|
function _write(chunk, _encoding, callback) {
|
|
5235
5235
|
if (Array.isArray(this.options.input.buffer)) {
|
|
5236
5236
|
if (is_default.buffer(chunk)) {
|
|
5237
|
-
if (this.options.input.buffer.length === 0) {
|
|
5238
|
-
this.on("finish", () => {
|
|
5239
|
-
this.streamInFinished = true;
|
|
5240
|
-
});
|
|
5241
|
-
}
|
|
5242
5237
|
this.options.input.buffer.push(chunk);
|
|
5243
5238
|
callback();
|
|
5244
5239
|
} else {
|
|
@@ -5256,11 +5251,18 @@ function _flattenBufferIn() {
|
|
|
5256
5251
|
function _isStreamInput() {
|
|
5257
5252
|
return Array.isArray(this.options.input.buffer);
|
|
5258
5253
|
}
|
|
5254
|
+
function _whenStreamInFinished(fn2) {
|
|
5255
|
+
if (this.writableFinished) {
|
|
5256
|
+
fn2();
|
|
5257
|
+
} else {
|
|
5258
|
+
this.once("finish", fn2);
|
|
5259
|
+
}
|
|
5260
|
+
}
|
|
5259
5261
|
function metadata(callback) {
|
|
5260
5262
|
const stack = Error();
|
|
5261
5263
|
if (is_default.fn(callback)) {
|
|
5262
5264
|
if (this._isStreamInput()) {
|
|
5263
|
-
this.
|
|
5265
|
+
this._whenStreamInFinished(() => {
|
|
5264
5266
|
this._flattenBufferIn();
|
|
5265
5267
|
sharp_default.metadata(this.options, (err, metadata2) => {
|
|
5266
5268
|
if (err) {
|
|
@@ -5283,7 +5285,7 @@ function metadata(callback) {
|
|
|
5283
5285
|
} else {
|
|
5284
5286
|
if (this._isStreamInput()) {
|
|
5285
5287
|
return new Promise((resolve, reject) => {
|
|
5286
|
-
|
|
5288
|
+
this._whenStreamInFinished(() => {
|
|
5287
5289
|
this._flattenBufferIn();
|
|
5288
5290
|
sharp_default.metadata(this.options, (err, metadata2) => {
|
|
5289
5291
|
if (err) {
|
|
@@ -5292,12 +5294,7 @@ function metadata(callback) {
|
|
|
5292
5294
|
resolve(metadata2);
|
|
5293
5295
|
}
|
|
5294
5296
|
});
|
|
5295
|
-
};
|
|
5296
|
-
if (this.writableFinished) {
|
|
5297
|
-
finished();
|
|
5298
|
-
} else {
|
|
5299
|
-
this.once("finish", finished);
|
|
5300
|
-
}
|
|
5297
|
+
});
|
|
5301
5298
|
});
|
|
5302
5299
|
} else {
|
|
5303
5300
|
return new Promise((resolve, reject) => {
|
|
@@ -5316,7 +5313,7 @@ function stats(callback) {
|
|
|
5316
5313
|
const stack = Error();
|
|
5317
5314
|
if (is_default.fn(callback)) {
|
|
5318
5315
|
if (this._isStreamInput()) {
|
|
5319
|
-
this.
|
|
5316
|
+
this._whenStreamInFinished(() => {
|
|
5320
5317
|
this._flattenBufferIn();
|
|
5321
5318
|
sharp_default.stats(this.options, (err, stats2) => {
|
|
5322
5319
|
if (err) {
|
|
@@ -5339,7 +5336,7 @@ function stats(callback) {
|
|
|
5339
5336
|
} else {
|
|
5340
5337
|
if (this._isStreamInput()) {
|
|
5341
5338
|
return new Promise((resolve, reject) => {
|
|
5342
|
-
this.
|
|
5339
|
+
this._whenStreamInFinished(() => {
|
|
5343
5340
|
this._flattenBufferIn();
|
|
5344
5341
|
sharp_default.stats(this.options, (err, stats2) => {
|
|
5345
5342
|
if (err) {
|
|
@@ -5371,6 +5368,7 @@ var input_default = (Sharp2) => {
|
|
|
5371
5368
|
_write,
|
|
5372
5369
|
_flattenBufferIn,
|
|
5373
5370
|
_isStreamInput,
|
|
5371
|
+
_whenStreamInFinished,
|
|
5374
5372
|
// Public
|
|
5375
5373
|
metadata,
|
|
5376
5374
|
stats
|
|
@@ -5378,7 +5376,7 @@ var input_default = (Sharp2) => {
|
|
|
5378
5376
|
Sharp2.align = align;
|
|
5379
5377
|
};
|
|
5380
5378
|
|
|
5381
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
5379
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/resize.mjs
|
|
5382
5380
|
var gravity = {
|
|
5383
5381
|
center: 0,
|
|
5384
5382
|
centre: 0,
|
|
@@ -5451,36 +5449,36 @@ function resize(widthOrOptions, height, options) {
|
|
|
5451
5449
|
if (is_default.defined(widthOrOptions)) {
|
|
5452
5450
|
if (is_default.object(widthOrOptions) && !is_default.defined(options)) {
|
|
5453
5451
|
options = widthOrOptions;
|
|
5454
|
-
} else if (is_default.integer(widthOrOptions) && widthOrOptions
|
|
5452
|
+
} else if (is_default.integer(widthOrOptions) && is_default.inRange(widthOrOptions, 1, 1e8)) {
|
|
5455
5453
|
this.options.width = widthOrOptions;
|
|
5456
5454
|
} else {
|
|
5457
|
-
throw is_default.invalidParameterError("width", "positive integer", widthOrOptions);
|
|
5455
|
+
throw is_default.invalidParameterError("width", "positive integer between 1 and 100000000", widthOrOptions);
|
|
5458
5456
|
}
|
|
5459
5457
|
} else {
|
|
5460
5458
|
this.options.width = -1;
|
|
5461
5459
|
}
|
|
5462
5460
|
if (is_default.defined(height)) {
|
|
5463
|
-
if (is_default.integer(height) && height
|
|
5461
|
+
if (is_default.integer(height) && is_default.inRange(height, 1, 1e8)) {
|
|
5464
5462
|
this.options.height = height;
|
|
5465
5463
|
} else {
|
|
5466
|
-
throw is_default.invalidParameterError("height", "positive integer", height);
|
|
5464
|
+
throw is_default.invalidParameterError("height", "positive integer between 1 and 100000000", height);
|
|
5467
5465
|
}
|
|
5468
5466
|
} else {
|
|
5469
5467
|
this.options.height = -1;
|
|
5470
5468
|
}
|
|
5471
5469
|
if (is_default.object(options)) {
|
|
5472
5470
|
if (is_default.defined(options.width)) {
|
|
5473
|
-
if (is_default.integer(options.width) && options.width
|
|
5471
|
+
if (is_default.integer(options.width) && is_default.inRange(options.width, 1, 1e8)) {
|
|
5474
5472
|
this.options.width = options.width;
|
|
5475
5473
|
} else {
|
|
5476
|
-
throw is_default.invalidParameterError("width", "positive integer", options.width);
|
|
5474
|
+
throw is_default.invalidParameterError("width", "positive integer between 1 and 100000000", options.width);
|
|
5477
5475
|
}
|
|
5478
5476
|
}
|
|
5479
5477
|
if (is_default.defined(options.height)) {
|
|
5480
|
-
if (is_default.integer(options.height) && options.height
|
|
5478
|
+
if (is_default.integer(options.height) && is_default.inRange(options.height, 1, 1e8)) {
|
|
5481
5479
|
this.options.height = options.height;
|
|
5482
5480
|
} else {
|
|
5483
|
-
throw is_default.invalidParameterError("height", "positive integer", options.height);
|
|
5481
|
+
throw is_default.invalidParameterError("height", "positive integer between 1 and 100000000", options.height);
|
|
5484
5482
|
}
|
|
5485
5483
|
}
|
|
5486
5484
|
if (is_default.defined(options.fit)) {
|
|
@@ -5644,7 +5642,7 @@ var resize_default = (Sharp2) => {
|
|
|
5644
5642
|
Sharp2.position = position;
|
|
5645
5643
|
};
|
|
5646
5644
|
|
|
5647
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
5645
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/composite.mjs
|
|
5648
5646
|
var blend = {
|
|
5649
5647
|
clear: "clear",
|
|
5650
5648
|
source: "source",
|
|
@@ -5708,17 +5706,17 @@ function composite(images) {
|
|
|
5708
5706
|
}
|
|
5709
5707
|
}
|
|
5710
5708
|
if (is_default.defined(image.left)) {
|
|
5711
|
-
if (is_default.integer(image.left)) {
|
|
5709
|
+
if (is_default.integer(image.left) && is_default.inRange(image.left, -1e8, 1e8)) {
|
|
5712
5710
|
composite2.left = image.left;
|
|
5713
5711
|
} else {
|
|
5714
|
-
throw is_default.invalidParameterError("left", "integer", image.left);
|
|
5712
|
+
throw is_default.invalidParameterError("left", "integer between -100000000 and 100000000", image.left);
|
|
5715
5713
|
}
|
|
5716
5714
|
}
|
|
5717
5715
|
if (is_default.defined(image.top)) {
|
|
5718
|
-
if (is_default.integer(image.top)) {
|
|
5716
|
+
if (is_default.integer(image.top) && is_default.inRange(image.top, -1e8, 1e8)) {
|
|
5719
5717
|
composite2.top = image.top;
|
|
5720
5718
|
} else {
|
|
5721
|
-
throw is_default.invalidParameterError("top", "integer", image.top);
|
|
5719
|
+
throw is_default.invalidParameterError("top", "integer between -100000000 and 100000000", image.top);
|
|
5722
5720
|
}
|
|
5723
5721
|
}
|
|
5724
5722
|
if (is_default.defined(image.top) !== is_default.defined(image.left)) {
|
|
@@ -5751,7 +5749,7 @@ var composite_default = (Sharp2) => {
|
|
|
5751
5749
|
Sharp2.blend = blend;
|
|
5752
5750
|
};
|
|
5753
5751
|
|
|
5754
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
5752
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/operation.mjs
|
|
5755
5753
|
var vipsPrecision = {
|
|
5756
5754
|
integer: "integer",
|
|
5757
5755
|
float: "float",
|
|
@@ -6200,7 +6198,7 @@ var operation_default = (Sharp2) => {
|
|
|
6200
6198
|
});
|
|
6201
6199
|
};
|
|
6202
6200
|
|
|
6203
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
6201
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/colour.mjs
|
|
6204
6202
|
var import_colour = __toESM(require_colour(), 1);
|
|
6205
6203
|
var colourspace = {
|
|
6206
6204
|
multiband: "multiband",
|
|
@@ -6280,7 +6278,7 @@ var colour_default = (Sharp2) => {
|
|
|
6280
6278
|
Sharp2.colorspace = colourspace;
|
|
6281
6279
|
};
|
|
6282
6280
|
|
|
6283
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
6281
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/channel.mjs
|
|
6284
6282
|
var bool2 = {
|
|
6285
6283
|
and: "and",
|
|
6286
6284
|
or: "or",
|
|
@@ -6366,7 +6364,7 @@ var formats = /* @__PURE__ */ new Map([
|
|
|
6366
6364
|
]);
|
|
6367
6365
|
var jp2Regex = /\.(jp[2x]|j2[kc])$/i;
|
|
6368
6366
|
var errJp2Save = () => new Error("JP2 output requires libvips with support for OpenJPEG");
|
|
6369
|
-
var bitdepthFromColourCount = (colours) => 1 <<
|
|
6367
|
+
var bitdepthFromColourCount = (colours) => 1 << 32 - Math.clz32(Math.ceil(Math.log2(colours)) - 1);
|
|
6370
6368
|
function toFile(fileOut, callback) {
|
|
6371
6369
|
let err;
|
|
6372
6370
|
if (!is_default.string(fileOut)) {
|
|
@@ -7129,7 +7127,7 @@ function _read() {
|
|
|
7129
7127
|
function _pipeline(callback, stack) {
|
|
7130
7128
|
if (typeof callback === "function") {
|
|
7131
7129
|
if (this._isStreamInput()) {
|
|
7132
|
-
this.
|
|
7130
|
+
this._whenStreamInFinished(() => {
|
|
7133
7131
|
this._flattenBufferIn();
|
|
7134
7132
|
sharp_default.pipeline(this.options, (err, data, info) => {
|
|
7135
7133
|
if (err) {
|
|
@@ -7151,7 +7149,7 @@ function _pipeline(callback, stack) {
|
|
|
7151
7149
|
return this;
|
|
7152
7150
|
} else if (this.options.streamOut) {
|
|
7153
7151
|
if (this._isStreamInput()) {
|
|
7154
|
-
this.
|
|
7152
|
+
this._whenStreamInFinished(() => {
|
|
7155
7153
|
this._flattenBufferIn();
|
|
7156
7154
|
sharp_default.pipeline(this.options, (err, data, info) => {
|
|
7157
7155
|
if (err) {
|
|
@@ -7164,9 +7162,6 @@ function _pipeline(callback, stack) {
|
|
|
7164
7162
|
this.on("end", () => this.emit("close"));
|
|
7165
7163
|
});
|
|
7166
7164
|
});
|
|
7167
|
-
if (this.streamInFinished) {
|
|
7168
|
-
this.emit("finish");
|
|
7169
|
-
}
|
|
7170
7165
|
} else {
|
|
7171
7166
|
sharp_default.pipeline(this.options, (err, data, info) => {
|
|
7172
7167
|
if (err) {
|
|
@@ -7183,7 +7178,7 @@ function _pipeline(callback, stack) {
|
|
|
7183
7178
|
} else {
|
|
7184
7179
|
if (this._isStreamInput()) {
|
|
7185
7180
|
return new Promise((resolve, reject) => {
|
|
7186
|
-
this.
|
|
7181
|
+
this._whenStreamInFinished(() => {
|
|
7187
7182
|
this._flattenBufferIn();
|
|
7188
7183
|
sharp_default.pipeline(this.options, (err, data, info) => {
|
|
7189
7184
|
if (err) {
|
|
@@ -7254,7 +7249,7 @@ var output_default = (Sharp2) => {
|
|
|
7254
7249
|
});
|
|
7255
7250
|
};
|
|
7256
7251
|
|
|
7257
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
7252
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/utility.mjs
|
|
7258
7253
|
var import_detect_libc3 = __toESM(require_detect_libc(), 1);
|
|
7259
7254
|
var require3 = createRequire(import.meta.url);
|
|
7260
7255
|
var runtimePlatform2 = libvips_default.runtimePlatformArch();
|
|
@@ -7373,7 +7368,7 @@ var utility_default = (Sharp2) => {
|
|
|
7373
7368
|
Sharp2.unblock = unblock;
|
|
7374
7369
|
};
|
|
7375
7370
|
|
|
7376
|
-
// ../../node_modules/.pnpm/sharp@0.35.
|
|
7371
|
+
// ../../node_modules/.pnpm/sharp@0.35.4_@types+node@20.19.17/node_modules/sharp/dist/index.mjs
|
|
7377
7372
|
input_default(constructor_default);
|
|
7378
7373
|
resize_default(constructor_default);
|
|
7379
7374
|
composite_default(constructor_default);
|
|
@@ -7405,5 +7400,5 @@ sharp/dist/index.mjs:
|
|
|
7405
7400
|
*/
|
|
7406
7401
|
|
|
7407
7402
|
export { dist_default as default };
|
|
7408
|
-
//# sourceMappingURL=dist-
|
|
7409
|
-
//# sourceMappingURL=dist-
|
|
7403
|
+
//# sourceMappingURL=dist-QOPNSZNF.mjs.map
|
|
7404
|
+
//# sourceMappingURL=dist-QOPNSZNF.mjs.map
|