Socket
Socket
Sign inDemoInstall

@squared-functions/types

Package Overview
Dependencies
Maintainers
1
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squared-functions/types - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

23

lib/index.d.ts

@@ -46,7 +46,7 @@ /// <reference path="file.d.ts" />

isJpeg(filename: string, mimeType?: string, filepath?: string): boolean;
parseResizeMode(value: string): Undef<ResizeMode>;
parseResizeMode(value: string): Undef<ResizeData>;
parseOpacity(value: string): Undef<number>;
parseRotation(value: string): Undef<number[]>;
resize(self: jimp, width: number, height: number, mode?: string): jimp;
rotate(self: jimp, filepath: string, values: number[], manager: IFileManager): jimp;
parseRotation(value: string): Undef<RotateData>;
resize(self: jimp, options: ResizeData): jimp;
rotate(self: jimp, options: RotateData, filepath: string, preRotate?: () => void, postWrite?: (result?: any) => void): jimp;
opacity(self: jimp, value: Undef<number>): jimp;

@@ -81,3 +81,3 @@ }

readonly assets: ExpressAsset[];
readonly postFinalize: (this: functions.IFileManager) => void;
readonly postFinalize: (this: IFileManager) => void;
readonly requestMain?: ExpressAsset;

@@ -110,3 +110,3 @@ add(value: string): void;

checkPermissions(res: Response, dirname: string): boolean;
loadSettings(value: Settings): void;
loadSettings(value: Settings, ignorePermissions?: boolean): void;
moduleNode(): INode;

@@ -204,8 +204,15 @@ moduleCompress(): ICompress;

interface ResizeMode {
mode: string;
interface RotateData {
values: number[];
color: Null<number>;
}
interface ResizeData {
width: number;
height: number;
mode: string;
algorithm: string;
align: number;
}
export as namespace functions;
{
"name": "@squared-functions/types",
"version": "0.2.1",
"version": "0.2.2",
"description": "Type definitions for squared-functions",

@@ -17,3 +17,3 @@ "types": "lib/index.d.ts",

"dependencies": {
"typescript": "^3.8.3"
"typescript": "^4.0.5"
},

@@ -20,0 +20,0 @@ "bugs": {

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