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.3.8 to 0.3.9

36

lib/index.d.ts

@@ -6,3 +6,2 @@ /// <reference path="type.d.ts" />

import type { WriteStream } from 'fs';
import type { Options as PrettierOptions } from 'prettier';
import type * as jimp from 'jimp';

@@ -119,2 +118,3 @@

resolvePath(value: string, href: string, hostname?: boolean): Undef<string>;
toPosixPath(value: string): string;
}

@@ -154,3 +154,2 @@

createConfig(value: string): Undef<StandardMap | string>;
setPrettierOptions(options?: PrettierOptions): PrettierOptions;
minifyHtml(format: string, value: string, transpileMap?: TranspileMap): Promise<Void<string>>;

@@ -184,3 +183,3 @@ minifyCss(format: string, value: string, transpileMap?: TranspileMap): Promise<Void<string>>;

readonly assets: ExpressAsset[];
readonly postFinalize: (this: IFileManager) => void;
readonly postFinalize: FunctionType<Promise<unknown[]>>;
readonly requestMain?: ExpressAsset;

@@ -194,20 +193,20 @@ install(name: string, ...args: any[]): void;

performFinalize(): void;
getHtmlPages(modified?: boolean): ExpressAsset[];
getAbsoluteUrl(value: string, href: string): string;
replacePath(source: string, segment: string, value: string, base64?: boolean): Undef<string>;
escapePathSeparator(value: string): string;
replace(file: ExpressAsset, replaceWith: string): void;
validate(file: ExpressAsset, exclusions: squared.base.Exclusions): boolean;
getHtmlPages(modified?: boolean): ExpressAsset[];
getFileOutput(file: ExpressAsset): internal.FileOutput;
getRelativeUrl(file: ExpressAsset, url: string): Undef<string>;
getAbsoluteUrl(value: string, href: string): string;
getFullUri(file: ExpressAsset, filename?: string): string;
replacePath(source: string, segment: string, value: string, base64?: boolean): Undef<string>;
normalizePath(value: string): string;
replaceExtension(value: string, ext: string): string;
getUTF8String(file: ExpressAsset, filepath?: string): string;
transformCss(file: ExpressAsset, content: string): Undef<string>;
appendContent(file: ExpressAsset, content: string, outputOnly?: boolean): Promise<string>;
getTrailingContent(file: ExpressAsset): Promise<string>;
appendContent(file: ExpressAsset, content: string, outputOnly?: boolean): Promise<string>;
transformBuffer(assets: ExpressAsset[], file: ExpressAsset, filepath: string): Promise<void>;
transformCss(file: ExpressAsset, content: string): Undef<string>;
compressFile(assets: ExpressAsset[], file: ExpressAsset, filepath: string, cached?: boolean): void;
writeBuffer(assets: ExpressAsset[], file: ExpressAsset, filepath: string, cached?: boolean): void;
transformBuffer(file: ExpressAsset, filepath: string): Promise<void>;
compressFile(file: ExpressAsset, filepath: string, cached?: boolean): void;
writeBuffer(file: ExpressAsset, filepath: string, cached?: boolean): void;
processAssets(): void;
finalizeAssets(release: boolean): Promise<unknown>;
finalizeAssets(): Promise<unknown[]>;
}

@@ -221,3 +220,3 @@

moduleImage(): IImage;
new(dirname: string, assets: ExpressAsset[], postFinalize: (this: IFileManager) => void, productionRelease?: boolean): IFileManager;
new(dirname: string, assets: ExpressAsset[], postFinalize: FunctionType<Promise<unknown[]>>, productionRelease?: boolean): IFileManager;
}

@@ -233,2 +232,3 @@

getFileSize(filepath: string): number;
replaceExtension(value: string, ext: string): string;
writeFail(description: string, message: unknown): void;

@@ -302,5 +302,7 @@ }

filepath?: string;
invalid?: boolean;
buffer?: Buffer;
sourceUTF8?: string;
inlineBase64?: string;
originalName?: string;
toBase64?: string;
invalid?: boolean;
}

@@ -307,0 +309,0 @@ }

{
"name": "@squared-functions/types",
"version": "0.3.8",
"version": "0.3.9",
"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