@jimp/utils
Advanced tools
Comparing version 1.0.1--canary.1285.8595111491.0 to 1.0.1--canary.1285.8595302168.0
@@ -14,6 +14,11 @@ "use strict"; | ||
}; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
return new image.constructor(newBitmap); | ||
} | ||
exports.clone = clone; | ||
function scan(image, xArg, yArg, wArg, hArg, cbArg) { | ||
function scan(image, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
xArg, yArg, wArg, hArg, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
cbArg) { | ||
let x; | ||
@@ -23,2 +28,3 @@ let y; | ||
let h; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
let cb; | ||
@@ -25,0 +31,0 @@ if (typeof xArg === "function") { |
@@ -8,5 +8,10 @@ import tinyColor from "tinycolor2"; | ||
}; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
return new image.constructor(newBitmap); | ||
} | ||
export function scan(image, xArg, yArg, wArg, hArg, cbArg) { | ||
export function scan(image, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
xArg, yArg, wArg, hArg, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
cbArg) { | ||
let x; | ||
@@ -16,2 +21,3 @@ let y; | ||
let h; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
let cb; | ||
@@ -18,0 +24,0 @@ if (typeof xArg === "function") { |
{ | ||
"name": "@jimp/utils", | ||
"version": "1.0.1--canary.1285.8595111491.0", | ||
"version": "1.0.1--canary.1285.8595302168.0", | ||
"repository": "jimp-dev/jimp", | ||
@@ -15,8 +15,8 @@ "scripts": { | ||
"dependencies": { | ||
"@jimp/types": "1.0.1--canary.1285.8595111491.0", | ||
"@jimp/types": "1.0.1--canary.1285.8595302168.0", | ||
"tinycolor2": "^1.6.0" | ||
}, | ||
"devDependencies": { | ||
"@jimp/config-eslint": "1.0.1--canary.1285.8595111491.0", | ||
"@jimp/config-typescript": "1.0.1--canary.1285.8595111491.0", | ||
"@jimp/config-eslint": "1.0.1--canary.1285.8595302168.0", | ||
"@jimp/config-typescript": "1.0.1--canary.1285.8595302168.0", | ||
"@types/tinycolor2": "^1.4.6", | ||
@@ -50,3 +50,3 @@ "eslint": "^8.57.0", | ||
"type": "module", | ||
"gitHead": "b539da206ab3b57b2cfc6dd738a5caa3d2657cc6" | ||
"gitHead": "ec8c56845977d27597a7c1f08c003b033c36f0e0" | ||
} |
@@ -11,2 +11,3 @@ import { RGBAColor, JimpClass, Bitmap, RGBColor } from "@jimp/types"; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
return new (image.constructor as any)(newBitmap); | ||
@@ -17,2 +18,3 @@ } | ||
image: I, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
f: (this: I, x: number, y: number, idx: number) => any | ||
@@ -26,2 +28,3 @@ ): I; | ||
h: number, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
cb: (x: number, y: number, idx: number) => any | ||
@@ -31,2 +34,3 @@ ): I; | ||
image: I, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
xArg: number | ((x: number, y: number, idx: number) => any), | ||
@@ -36,2 +40,3 @@ yArg?: number, | ||
hArg?: number, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
cbArg?: (x: number, y: number, idx: number) => any | ||
@@ -43,2 +48,3 @@ ): I { | ||
let h: number; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
let cb: (x: number, y: number, idx: number) => any; | ||
@@ -45,0 +51,0 @@ |
@@ -5,5 +5,3 @@ { | ||
"outDir": "dist" | ||
}, | ||
"include": ["src"], | ||
"exclude": ["node_modules", "dist"] | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51976
24
941
0
+ Added@jimp/types@1.0.1--canary.1285.8595302168.0(transitive)
- Removed@jimp/types@1.0.1--canary.1285.8595111491.0(transitive)