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.6.2 to 0.6.3

15

lib/index.d.ts

@@ -191,13 +191,14 @@ /// <reference path="type.d.ts" />

namespace Cloud {
interface CloudUploadOptions<T>{
interface UploadOptions<T>{
upload: squared.CloudServiceUpload;
credentials: T;
filename: string;
fileUri: string;
fileGroup: [Buffer | string, string][];
filename?: string;
mimeType?: string;
}
type CloudServiceClient = (config: squared.CloudService) => boolean;
type CloudServiceHost = (this: IFileManager, credentials: PlainObject, serviceName: string) => CloudUploadCallback;
type CloudUploadCallback = (buffer: Buffer, options: CloudUploadOptions<unknown>, success: (value?: unknown) => void) => void;
type ServiceClient = (config: squared.CloudService) => boolean;
type ServiceHost = (this: IFileManager, credentials: PlainObject, serviceName: string) => UploadCallback;
type UploadCallback = (buffer: Buffer, options: UploadOptions<unknown>, success: (value?: unknown) => void) => void;
}

@@ -299,4 +300,4 @@

settings: settings.CloudModule;
getService(data: Undef<squared.CloudService[]>, functionName: CloudFunctions): Undef<squared.CloudService>;
hasService(data: squared.CloudService, functionName: CloudFunctions): squared.CloudServiceAction | false;
getService(functionName: CloudFunctions, data: Undef<squared.CloudService[]>): Undef<squared.CloudService>;
hasService(functionName: CloudFunctions, data: squared.CloudService): squared.CloudServiceAction | false;
}

@@ -303,0 +304,0 @@

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