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.5.4 to 0.5.5

34

lib/index.d.ts
/// <reference path="type.d.ts" />
import type * as awsCore from 'aws-sdk/lib/core';
import type { Response } from 'express';

@@ -8,2 +7,5 @@ import type { CorsOptions } from 'cors';

import type { ConfigurationOptions } from 'aws-sdk/lib/core';
import type { GoogleAuthOptions } from 'google-auth-library';
declare namespace functions {

@@ -39,3 +41,3 @@ type BoolString = boolean | string;

interface ResultOfFileAction {
interface FilePostResult {
success: boolean;

@@ -45,4 +47,6 @@ zipname?: string;

files?: string[];
application?: string;
system?: string;
error?: {
message: string;
hint?: string;
};
}

@@ -167,3 +171,9 @@ }

interface StorageSharedKeyCredential {
accountName: string;
accountKey: string;
}
type CloudServiceClient = (data: chrome.CloudService, settings: StandardMap) => boolean;
type CloudServiceHost = (this: IFileManager, config: chrome.CloudService) => CloudServiceUpload;
type CloudServiceUpload = (buffer: Buffer, success: (value?: unknown) => void, options: CloudUploadOptions) => void;

@@ -181,4 +191,10 @@ }

s3?: {
[key: string]: awsCore.ConfigurationOptions;
[key: string]: ConfigurationOptions;
};
azure?: {
[key: string]: external.StorageSharedKeyCredential;
};
gcs?: {
[key: string]: GoogleAuthOptions;
};
}

@@ -245,5 +261,3 @@

createConfig(value: string): Undef<StandardMap | string>;
minifyHtml(format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>;
minifyCss(format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>;
minifyJs(format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>;
transform(type: ExternalCategory, format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>;
formatContent(mimeType: string, format: string, value: string, transpileMap?: chrome.TranspileMap): Promise<Void<string>>;

@@ -315,2 +329,4 @@ removeCss(source: string, styles: string[]): Undef<string>;

moduleImage(): IImage;
moduleChrome(): IChrome;
moduleCloud(): ICloud;
new(dirname: string, body: RequestBody, postFinalize: FunctionType<void>, productionRelease?: boolean): IFileManager;

@@ -330,3 +346,3 @@ }

writeMessage(value: string, message: unknown, title?: string, color?: "green" | "yellow" | "blue" | "white" | "grey"): void;
writeFail(description: string, message: unknown): void;
writeFail(value: string, message: unknown): void;
}

@@ -333,0 +349,0 @@

@@ -12,2 +12,3 @@ type Undef<T> = T | undefined;

type StandardMap = Record<string, any>;
type PlainObject = Record<string | number | symbol, unknown>;
type ObjectMap<T> = Record<string, T>;

@@ -14,0 +15,0 @@

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