New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nc-plugin

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nc-plugin - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

18

build/main/lib/IStorageAdapterV2.d.ts
/// <reference types="node" />
import { Readable } from 'stream';
import IStorageAdapter from './IStorageAdapter';
export default interface IStorageAdapterV2 extends IStorageAdapter {
fileCreateByUrl(destPath: string, url: string, fileMeta?: FileMeta, fetchOptions?: any): Promise<any>;
export default interface IStorageAdapterV2<FileCreateByUrlOptions extends {
fetchOptions?: {
buffer?: boolean;
};
} = {
fetchOptions?: {
buffer?: boolean;
};
}> extends IStorageAdapter {
fileCreateByUrl(destPath: string, url: string, options?: FileCreateByUrlOptions): Promise<any>;
fileCreateByStream(destPath: string, readStream: Readable): Promise<void>;

@@ -10,7 +18,1 @@ fileReadByStream(key: string): Promise<Readable>;

}
interface FileMeta {
fileName?: string;
mimetype?: string;
size?: number | string;
}
export {};
/// <reference types="node" />
import { Readable } from 'stream';
import IStorageAdapter from './IStorageAdapter';
export default interface IStorageAdapterV2 extends IStorageAdapter {
fileCreateByUrl(destPath: string, url: string, fileMeta?: FileMeta, fetchOptions?: any): Promise<any>;
export default interface IStorageAdapterV2<FileCreateByUrlOptions extends {
fetchOptions?: {
buffer?: boolean;
};
} = {
fetchOptions?: {
buffer?: boolean;
};
}> extends IStorageAdapter {
fileCreateByUrl(destPath: string, url: string, options?: FileCreateByUrlOptions): Promise<any>;
fileCreateByStream(destPath: string, readStream: Readable): Promise<void>;

@@ -10,7 +18,1 @@ fileReadByStream(key: string): Promise<Readable>;

}
interface FileMeta {
fileName?: string;
mimetype?: string;
size?: number | string;
}
export {};
{
"name": "nc-plugin",
"version": "0.1.5",
"version": "0.1.6",
"description": "NocoDB Plugin Template",

@@ -5,0 +5,0 @@ "author": {

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