Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
'max-statements': 0,
'fp/no-let': 0,
'fp/no-mutation': 0,
'promise/prefer-await-to-callbacks': 0,
},
overrides: [...overrides],
}
3 changes: 3 additions & 0 deletions src/deploy/hasher_segments.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const map = require('through2-map').obj
const { normalizePath } = require('./util')

// a parallel transform stream segment ctor that hashes fileObj's created by folder-walker
// TODO: use promises instead of callbacks
/* eslint-disable promise/prefer-await-to-callbacks */
const hasherCtor = ({ concurrentHash, hashAlgorithm }) => {
const hashaOpts = { algorithm: hashAlgorithm }
if (!concurrentHash) throw new Error('Missing required opts')
Expand Down Expand Up @@ -50,6 +52,7 @@ const manifestCollectorCtor = (filesObj, shaMap, { statusCb, assetType }) => {
cb(null)
})
}
/* eslint-enable promise/prefer-await-to-callbacks */

// transform stream ctor that filters folder-walker results for only files
const fileFilterCtor = objFilterCtor((fileObj) => fileObj.type === 'file')
Expand Down