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.7.0 to 0.7.1

31

lib/index.d.ts

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

namespace chrome {
type UnusedStyles = string[];
interface ChromeAsset {

@@ -139,6 +141,8 @@ rootDir?: string;

namespace Image {
type CompressFormat = squared.CompressFormat;
interface UsingOptions {
data: FileData;
command?: string;
compress?: squared.CompressFormat;
compress?: CompressFormat;
callback?: FileManagerWriteImageCallback;

@@ -201,6 +205,10 @@ }

namespace Cloud {
type CloudService = squared.CloudService;
type CloudServiceUpload = squared.CloudServiceUpload;
type CloudServiceDownload = squared.CloudServiceDownload;
interface UploadData<T> {
buffer: Buffer;
storage: squared.CloudService;
upload: squared.CloudServiceUpload;
service: CloudService;
upload: CloudServiceUpload;
credential: T;

@@ -214,5 +222,9 @@ fileUri: string;

type ServiceClient = (config: squared.CloudService) => boolean;
interface ServiceClient {
validate: (config: CloudService) => boolean;
setCredential?: (credential: PlainObject) => void;
}
type UploadHost = (this: IFileManager, service: string, credential: PlainObject) => UploadCallback;
type DownloadHost = (this: IFileManager, service: string, credential: PlainObject, download: squared.CloudServiceDownload, success: (value: Null<Buffer | string>) => void) => void;
type DownloadHost = (this: IFileManager, service: string, credential: PlainObject, download: CloudServiceDownload, success: (value: Null<Buffer | string>) => void) => void;
type UploadCallback = (data: UploadData<unknown>, success: (value: string) => void) => void;

@@ -262,8 +274,5 @@ }

interface ChromeModule {
interface ChromeModule extends Partial<chrome.TranspileMap> {
eval_function?: boolean;
eval_text_template?: boolean;
html?: ObjectMap<StandardMap>;
css?: ObjectMap<StandardMap>;
js?: ObjectMap<StandardMap>;
}

@@ -478,3 +487,3 @@ }

assets: ExternalAsset[];
unusedStyles?: string[];
unusedStyles?: chrome.UnusedStyles;
transpileMap?: chrome.TranspileMap;

@@ -493,3 +502,3 @@ }

inlineCssCloud?: string;
inlineMap?: StringMap;
inlineCssMap?: StringMap;
etag?: string;

@@ -496,0 +505,0 @@ invalid?: boolean;

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