Skip to content

Commit 0d53f90

Browse files
author
Mike Patnode
committed
Remove all dependencies. Bump version number
1 parent d1b408c commit 0d53f90

File tree

4 files changed

+227
-2896
lines changed

4 files changed

+227
-2896
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//
33
// Stores Parse files in AWS S3.
44

5-
const Parse = require('parse/node').Parse;
65
const AWS = require('aws-sdk');
76
const optionsFromArguments = require('./lib/optionsFromArguments');
87

@@ -186,7 +185,7 @@ class S3Adapter {
186185
let regex;
187186

188187
if (filename.length > 1024) {
189-
return new Parse.Error(Parse.Error.INVALID_FILE_NAME, 'Filename too long.');
188+
return 'Filename too long.';
190189
}
191190

192191
// From https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys
@@ -206,7 +205,7 @@ class S3Adapter {
206205
}
207206

208207
if (!filename.match(regex)) {
209-
return new Parse.Error(Parse.Error.INVALID_FILE_NAME, 'Filename contains invalid characters.');
208+
return 'Filename contains invalid characters.';
210209
}
211210

212211
return null;

0 commit comments

Comments
 (0)