diff --git a/index.js b/index.js index 98590cd..32e0e04 100644 --- a/index.js +++ b/index.js @@ -6,17 +6,6 @@ const async = require("async"); const stream = require("stream"); const schema = require("./schema.js"); -/** - Apply a filter to arg0 to remove hidden files names (starting with dot) - @function removeHidden - @params {[String]} from - list of file names - @return {[String]} -*/ - -function removeHidden(from) { - return from.filter(e => e.charAt(0) !== "."); -} - class Pass { constructor(options) { this.passTypes = ["boardingPass", "eventTicket", "coupon", "generic", "storeCard"]; @@ -464,4 +453,15 @@ class Pass { } } +/** + Apply a filter to arg0 to remove hidden files names (starting with dot) + @function removeHidden + @params {[String]} from - list of file names + @return {[String]} +*/ + +function removeHidden(from) { + return from.filter(e => e.charAt(0) !== "."); +} + module.exports = { Pass };