Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@napi-rs/image

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@napi-rs/image - npm Package Compare versions

Comparing version 1.4.2 to 1.4.4

16

index.d.ts

@@ -105,2 +105,14 @@ /* tslint:disable */

}
export const enum PngRowFilter {
None = 0,
Sub = 1,
Up = 2,
Average = 3,
Paeth = 4,
MinSum = 5,
Entropy = 6,
Bigrams = 7,
BigEnt = 8,
Brute = 9
}
export interface PNGLosslessOptions {

@@ -118,3 +130,3 @@ /**

/** Which filters to try on the file (0-5) */
filter?: Array<number>
filter?: Array<PngRowFilter>
/**

@@ -148,4 +160,2 @@ * Whether to attempt bit depth reduction

strip?: boolean
/** Whether to use heuristics to pick the best filter and compression */
useHeuristics?: boolean
}

@@ -152,0 +162,0 @@ export function losslessCompressPngSync(input: Buffer, options?: PNGLosslessOptions | undefined | null): Buffer

3

index.js

@@ -249,3 +249,3 @@ const { existsSync, readFileSync } = require('fs')

const { ChromaSubsampling, compressJpegSync, compressJpeg, CompressionType, FilterType, losslessCompressPngSync, losslessCompressPng, pngQuantizeSync, pngQuantize, Orientation, ResizeFilterType, JsColorType, Transformer } = nativeBinding
const { ChromaSubsampling, compressJpegSync, compressJpeg, CompressionType, FilterType, PngRowFilter, losslessCompressPngSync, losslessCompressPng, pngQuantizeSync, pngQuantize, Orientation, ResizeFilterType, JsColorType, Transformer } = nativeBinding

@@ -257,2 +257,3 @@ module.exports.ChromaSubsampling = ChromaSubsampling

module.exports.FilterType = FilterType
module.exports.PngRowFilter = PngRowFilter
module.exports.losslessCompressPngSync = losslessCompressPngSync

@@ -259,0 +260,0 @@ module.exports.losslessCompressPng = losslessCompressPng

{
"name": "@napi-rs/image",
"version": "1.4.2",
"version": "1.4.4",
"main": "index.js",

@@ -64,19 +64,19 @@ "types": "index.d.ts",

"devDependencies": {
"@napi-rs/cli": "^2.13.2"
"@napi-rs/cli": "^2.14.1"
},
"gitHead": "f04033cfe1195d94882bf108cdf638b9a8c023cf",
"gitHead": "fdd80a15bf0f215383c622a4361a3b74dd22bddd",
"optionalDependencies": {
"@napi-rs/image-win32-x64-msvc": "1.4.2",
"@napi-rs/image-darwin-x64": "1.4.2",
"@napi-rs/image-linux-x64-gnu": "1.4.2",
"@napi-rs/image-darwin-arm64": "1.4.2",
"@napi-rs/image-android-arm64": "1.4.2",
"@napi-rs/image-linux-arm64-gnu": "1.4.2",
"@napi-rs/image-linux-arm64-musl": "1.4.2",
"@napi-rs/image-linux-arm-gnueabihf": "1.4.2",
"@napi-rs/image-linux-x64-musl": "1.4.2",
"@napi-rs/image-freebsd-x64": "1.4.2",
"@napi-rs/image-win32-ia32-msvc": "1.4.2",
"@napi-rs/image-android-arm-eabi": "1.4.2"
"@napi-rs/image-win32-x64-msvc": "1.4.4",
"@napi-rs/image-darwin-x64": "1.4.4",
"@napi-rs/image-linux-x64-gnu": "1.4.4",
"@napi-rs/image-darwin-arm64": "1.4.4",
"@napi-rs/image-android-arm64": "1.4.4",
"@napi-rs/image-linux-arm64-gnu": "1.4.4",
"@napi-rs/image-linux-arm64-musl": "1.4.4",
"@napi-rs/image-linux-arm-gnueabihf": "1.4.4",
"@napi-rs/image-linux-x64-musl": "1.4.4",
"@napi-rs/image-freebsd-x64": "1.4.4",
"@napi-rs/image-win32-ia32-msvc": "1.4.4",
"@napi-rs/image-android-arm-eabi": "1.4.4"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc