Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

multer-flydrive-engine

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multer-flydrive-engine - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

build/FlydriveStorageEngine.d.ts
import { StorageEngine } from 'multer';
import { Storage } from '@slynova/flydrive';
import { MulterFlydriveOptions } from './types';
import { MulterFlydriveOptions, Storage } from './types';
export declare class FlydriveStorageEngine implements StorageEngine {

@@ -5,0 +4,0 @@ private readonly opts;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const flydrive_1 = require("@slynova/flydrive");
const path_1 = require("path");

@@ -11,3 +10,3 @@ const crypto_1 = require("crypto");

async disk(req, file) {
return this.opts.disk instanceof flydrive_1.Storage ? this.opts.disk : this.opts.disk(req, file);
return typeof this.opts.disk === 'function' ? this.opts.disk(req, file) : this.opts.disk;
}

@@ -14,0 +13,0 @@ async destination(req, file) {

/// <reference types="multer" />
import { Request } from "express";
import { Storage } from '@slynova/flydrive';
export interface Storage {
put: (path: string, ...args: any[]) => Promise<void>;
getProperties: (path: string) => Promise<{
contentLength: number;
}>;
delete: (path: string) => Promise<void>;
}
export declare type MulterFlydriveOptionsFunction = ((req?: Request, file?: Express.Multer.File) => string | Promise<string>);
export interface MulterFlydriveOptions {
disk: Storage;
disk: object | ((...args: any[]) => Promise<object>);
destination?: string | MulterFlydriveOptionsFunction;
filename?: MulterFlydriveOptionsFunction;
}
{
"name": "multer-flydrive-engine",
"version": "1.0.1",
"version": "1.0.2",
"description": "A multer storage engine for flydrive's fluent storage interface",

@@ -48,5 +48,3 @@ "main": "build/index.js",

},
"dependencies": {
"@slynova/flydrive": "^0.3.1"
},
"dependencies": {},
"peerDependencies": {

@@ -53,0 +51,0 @@ "multer": "^1.4.2"

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