From 2fc66d4aff86fff4535ed099af82d07c4bb92b26 Mon Sep 17 00:00:00 2001 From: "Dmitriy A. Golev" Date: Sun, 21 Jun 2015 00:40:52 +0300 Subject: [PATCH] v1.1.7 - Support for `audit-argument-checks` package - Other minor improvements --- .versions | 2 +- files.coffee | 5 +++-- package.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.versions b/.versions index fa1746e8..8b838e7b 100644 --- a/.versions +++ b/.versions @@ -32,7 +32,7 @@ minimongo@1.0.8 mongo@1.1.0 observe-sequence@1.0.6 ordered-dict@1.0.3 -ostrio:files@1.1.6 +ostrio:files@1.1.7 ostrio:jsextensions@0.0.4 random@1.0.3 reactive-dict@1.1.0 diff --git a/files.coffee b/files.coffee index 6b9fe4b3..61132f72 100644 --- a/files.coffee +++ b/files.coffee @@ -18,7 +18,7 @@ _insts = {} @description Create object with only needed props ### rcp = (obj) -> - o = { + o = currentFile: obj.currentFile search: obj.search storagePath: obj.storagePath @@ -28,7 +28,6 @@ rcp = (obj) -> debug: obj.debug _prefix: obj._prefix cacheControl: obj.cacheControl - } return o ### @@ -157,6 +156,7 @@ class Meteor.Files _methods = {} _methods[self.methodNames.MeteorFileUnlink] = (inst) -> + check inst, Object console.info "Meteor.Files Debugger: [MeteorFileUnlink]" if self.debug self.remove.call cp(_insts[inst._prefix], inst), inst.search @@ -168,6 +168,7 @@ class Meteor.Files check first, Boolean check chunksQty, Number check currentChunk, Number + check totalSentChunks, Number check randFileName, String check part, Number check partsQty, Number diff --git a/package.js b/package.js index 603c248e..2eb03552 100644 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'ostrio:files', - version: '1.1.6', + version: '1.1.7', summary: 'Upload, Store and Download small and huge files to/from file system (FS) via DDP and HTTP', git: 'https://github.com/VeliovGroup/Meteor-Files', documentation: 'README.md'