Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 37d9be6

Browse files
committed
Remove filter that was filtering out function folders
1 parent 4dbb13f commit 37d9be6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/deploy/hash-fns.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const pump = promisify(require('pump'))
44
const fs = promisifyAll(require('fs'))
55
const fromArray = require('from2-array')
66

7-
const { hasherCtor, manifestCollectorCtor, fnStatCtor, fnFilterCtor } = require('./hasher-segments')
7+
const { hasherCtor, manifestCollectorCtor, fnStatCtor } = require('./hasher-segments')
88

99
module.exports = hashFns
1010
async function hashFns(dir, opts) {
@@ -14,7 +14,7 @@ async function hashFns(dir, opts) {
1414
assetType: 'function',
1515
hashAlgorithm: 'sha256',
1616
// tmpDir,
17-
statusCb: () => { }
17+
statusCb: () => {}
1818
},
1919
opts
2020
)
@@ -27,15 +27,14 @@ async function hashFns(dir, opts) {
2727
const fileStream = fromArray.obj(fileList)
2828

2929
const fnStat = fnStatCtor({ root: dir, concurrentStat: opts.concurrentHash, tmpDir: opts.tmpDir })
30-
const fnFilter = fnFilterCtor()
3130
const hasher = hasherCtor(opts)
3231

3332
// Written to by manifestCollector
3433
const functions = {} // normalizedPath: hash (wanted by deploy API)
3534
const fnShaMap = {} //hash: [fileObj, fileObj, fileObj]
3635
const manifestCollector = manifestCollectorCtor(functions, fnShaMap, opts)
3736

38-
await pump(fileStream, fnStat, fnFilter, hasher, manifestCollector)
37+
await pump(fileStream, fnStat, hasher, manifestCollector)
3938

4039
return { functions, fnShaMap }
4140
}

0 commit comments

Comments
 (0)