Socket
Socket
Sign inDemoInstall

@squared-functions/types

Package Overview
Dependencies
2
Maintainers
1
Versions
359
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.9.1 to 3.9.2

2

index.d.ts

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

function coerceObject<T = unknown>(data: T, parseString?: FunctionArgs<[string], unknown>, cache?: boolean): T;
function getEncoding(value: unknown): BufferEncoding;
function getEncoding(value: unknown, fallback?: BufferEncoding): BufferEncoding;
function encryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): Undef<string>;

@@ -210,0 +210,0 @@ function decryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): Undef<string>;

@@ -603,3 +603,3 @@ "use strict";

case 'RegExp': {
const pattern = /^("[^"]+"|'[^']+'|[^\s,]+)(?:\s*,\s*("[^"]+"|'[^']+'|[^\s]+))?$/.exec(match[2].trim());
const pattern = /^("[^"]+"|'[^']+'|[^\s,]+)(?:\s*,\s*("[^"]+"|'[^']+'|\S+))?$/.exec(match[2].trim());
if (pattern) {

@@ -704,20 +704,4 @@ return new (match[1] === 'URL' ? URL : RegExp)(removeQuotes(pattern[1]), pattern[2] ? removeQuotes(pattern[2]) : '');

exports.asFunction = asFunction;
function getEncoding(value) {
if (typeof value === 'string') {
switch (value = value.trim().toLowerCase()) {
case 'ascii':
case 'utf8':
case 'utf-8':
case 'utf16le':
case 'ucs2':
case 'ucs-2':
case 'base64':
case 'base64url':
case 'latin1':
case 'binary':
case 'hex':
return value;
}
}
return 'utf-8';
function getEncoding(value, fallback = 'utf-8') {
return typeof value === 'string' && Buffer.isEncoding(value = value.trim().toLowerCase()) ? value : fallback;
}

@@ -724,0 +708,0 @@ exports.getEncoding = getEncoding;

@@ -1,3 +0,1 @@

/// <reference path="object.d.ts" />
import type { ImageModule } from './module';

@@ -4,0 +2,0 @@ import type { LogTime } from './logger';

@@ -85,4 +85,4 @@ /// <reference path="type.d.ts" />

transform(localFile: string, command: string, options?: TransformOptions): Promise<Null<Buffer> | string>;
clamp(value: Undef<string>, min?: number, max?: number): number;
isBinary(value: Undef<string>): value is string;
clamp(value: unknown, min?: number, max?: number): number;
isBinary(mime: unknown): mime is string;
readonly prototype: IImageV1;

@@ -202,3 +202,3 @@ new(...args: unknown[]): IImageV1;

updateGradle(source: string, namespaces: string[], value: string, options?: UpdateGradleOptions | boolean): string;
removeSourceMappingURL(value: string): [string, string?];
removeSourceMappingURL(value: string): [string, string?, Null<RawSourceMap>?];
generateLintTable(messages: LintMessage[], options: GenerateLintTableOptions): LogComponent[];

@@ -542,2 +542,3 @@ using?(this: T, instance: IDocument<T>, file: ExternalAsset): Promise<unknown>;

getMemUsage(format?: boolean): number;
getPackageVersion(name: string | [string, string], startDir: string): string;
getPackageVersion(name: string | [string, string], unstable?: boolean, startDir?: string): string;

@@ -544,0 +545,0 @@ checkSemVer(name: string | [string, string], options: CheckSemVerOptions): boolean;

@@ -1,3 +0,1 @@

/// <reference path="type.d.ts" />
import type { LogStatus } from './squared';

@@ -4,0 +2,0 @@

/// <reference path="type.d.ts" />
/// <reference path="dom.d.ts" />
/// <reference path="object.d.ts" />

@@ -24,2 +24,14 @@ interface ElementScope {

interface BoxRect<T = number> {
top: T;
right: T;
bottom: T;
left: T;
}
interface BoxRectDimension extends BoxRect, Dimension {
numberOfLines?: number;
overflow?: boolean;
}
export interface FileAsset extends TextAsset, OutputAction, DocumentAction, ImportAction<ImportFrom[] | boolean> {

@@ -254,3 +266,3 @@ format?: StringOfArray;

bounds: BoxRectDimension;
css: CssStyleMap;
css: PlainObject;
outerWrapperIds?: string[];

@@ -257,0 +269,0 @@ }

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc