multer-flydrive-engine
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "multer-flydrive-engine", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A multer storage engine for flydrive's fluent storage interface", | ||
@@ -38,3 +38,2 @@ "main": "build/index.js", | ||
"devDependencies": { | ||
"@slynova/flydrive": "^0.3.1", | ||
"@types/express": "^4.17.2", | ||
@@ -50,3 +49,8 @@ "@types/multer": "^1.4.2", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"@slynova/flydrive": "^0.3.1" | ||
}, | ||
"peerDependencies": { | ||
"multer": "^1.4.2" | ||
}, | ||
"eslintConfig": { | ||
@@ -53,0 +57,0 @@ "extends": [ |
@@ -11,12 +11,12 @@ # multer-flydrive-engine | ||
local: { | ||
driver: 'local', | ||
root: process.cwd(), | ||
}, | ||
driver: 'local', | ||
root: process.cwd(), | ||
}, | ||
s3: { | ||
driver: 's3', | ||
key: 'AWS_S3_KEY', | ||
secret: 'AWS_S3_SECRET', | ||
region: 'AWS_S3_REGION', | ||
bucket: 'AWS_S3_BUCKET', | ||
} | ||
driver: 's3', | ||
key: 'AWS_S3_KEY', | ||
secret: 'AWS_S3_SECRET', | ||
region: 'AWS_S3_REGION', | ||
bucket: 'AWS_S3_BUCKET', | ||
} | ||
} | ||
@@ -27,3 +27,3 @@ }); | ||
async disk (req, file) { | ||
return req.query.dest === 's3' ? storage.disk('s3) : storage.disk('local'); | ||
return req.query.dest === 's3' ? storage.disk('s3') : storage.disk('local'); | ||
}, | ||
@@ -36,3 +36,3 @@ async destination (req, file) { | ||
} | ||
}) | ||
}); | ||
@@ -39,0 +39,0 @@ var upload = multer({ storage: storageEngine }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7990
9
2
+ Added@slynova/flydrive@^0.3.1
+ Added@slynova/flydrive@0.3.1(transitive)
+ Addedappend-field@1.0.0(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedbusboy@0.2.14(transitive)
+ Addedclone@2.1.2(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcreate-output-stream@0.0.1(transitive)
+ Addeddicer@0.2.5(transitive)
+ Addedee-first@1.1.1(transitive)
+ Addedfs-extra@6.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@0.0.11.0.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedmedia-typer@0.3.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedmulter@1.4.4(transitive)
+ Addednode-exceptions@3.0.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedon-finished@2.4.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@1.1.142.3.8(transitive)
+ Addedresetable@1.0.3(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstreamsearch@0.1.2(transitive)
+ Addedstring_decoder@0.10.311.1.1(transitive)
+ Addedtype-is@1.6.18(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)