mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Moved removeHidden function to the bottom of the file
This commit is contained in:
22
index.js
22
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 };
|
||||
|
||||
Reference in New Issue
Block a user