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.1.0 to 0.2.0

22

lib/index.d.ts

@@ -31,6 +31,5 @@ /// <reference path="file.d.ts" />

interface ICompress extends IModule {
gzip_level: number;
brotli_quality: number;
jpeg_quality: number;
tinify_api_key: string;
gzipLevel: number;
brotliQuality: number;
tinifyApiKey: string;
createWriteStreamAsGzip(source: string, filepath: string, level?: number): WriteStream;

@@ -46,2 +45,3 @@ createWriteStreamAsBrotli(source: string, filepath: string, quality?: number, mimeType?: string): WriteStream;

interface IImage extends IModule {
jpegQuality: number;
isJpeg(filename: string, mimeType?: string, filepath?: string): boolean;

@@ -73,2 +73,4 @@ parseResizeMode(value: string): Undef<ResizeMode>;

cleared: boolean;
emptyDirectory: boolean;
productionRelease: boolean;
readonly files: Set<string>;

@@ -81,3 +83,3 @@ readonly filesQueued: Set<string>;

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

@@ -87,3 +89,5 @@ add(value: string): void;

performAsyncTask(): void;
removeAsyncTask(): boolean;
removeAsyncTask(): void;
completeAsyncTask(filepath?: string): void;
performFinalize(): void;
replace(file: ExpressAsset, replaceWith: string): void;

@@ -103,3 +107,3 @@ validate(file: ExpressAsset, exclusions: Exclusions): boolean;

writeBuffer(assets: ExpressAsset[], file: ExpressAsset, filepath: string, cached?: boolean): void;
processAssets(empty: boolean): void;
processAssets(): void;
finalizeAssets(release: boolean): Promise<void[]>;

@@ -115,5 +119,7 @@ }

moduleChrome(): IChrome;
new(dirname: string, assets: ExpressAsset[], completeAsyncTask: (filepath?: string) => void): IFileManager;
new(dirname: string, assets: ExpressAsset[], postFinalize: (this: functions.IFileManager) => void, productionRelease?: boolean): IFileManager;
}
declare const FileManager: FileManagerConstructor;
interface IModule {

@@ -120,0 +126,0 @@ readonly major: number;

{
"name": "@squared-functions/types",
"version": "0.1.0",
"version": "0.2.0",
"description": "Type definitions for squared-functions",

@@ -5,0 +5,0 @@ "types": "lib/index.d.ts",

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