This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see https://github.com/GoogleChrome/workbox/issues/1384#issuecomment-433550967 | |
function precacheManifestHack() { | |
console.log( | |
chalk.red( | |
"Applying dirty hack for https://github.com/GoogleChrome/workbox/issues/1384#issuecomment-433550967" | |
) | |
); | |
const globPath = path.join( | |
__dirname, | |
"/..", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cacheFirstGet(ref, handlerFunc, timeout = 10000) { | |
let options = {}; | |
if (ref instanceof firebase.firestore.DocumentReference) { | |
options.includeMetadataChanges = true; | |
} else if (ref instanceof firebase.firestore.Query) { | |
options.includeQueryMetadataChanges = true; | |
} else { | |
throw new Error("Input must implement DocumentReference or Query"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-07-20T17:20:31 bbrc[97993]: INFO Logging to /bb/logs/bbrc/bbrc.log.2017-07-20T17:20:31 | |
2017-07-20T17:20:31 bbrc[97993]: INFO Script run logs at /bb/logs/bbrc/bbrc.log.2017-07-20T17:20:31.d | |
2017-07-20T17:20:31 bbrc[97993]: TRACE Checking to see if logs at /bb/logs/bbrc/bbrc.log.2017-07-15T12:13:12.d are old enough to be deleted (7 days) | |
2017-07-20T17:20:31 bbrc[97993]: TRACE Checking to see if logs at /bb/logs/bbrc/bbrc.log.2017-07-19T12:14:54 are old enough to be deleted (7 days) | |
2017-07-20T17:20:31 bbrc[97993]: TRACE Checking to see if logs at /bb/logs/bbrc/bbrc.log.2017-07-19T12:14:54.d are old enough to be deleted (7 days) | |
2017-07-20T17:20:31 bbrc[97993]: TRACE Checking to see if logs at /bb/logs/bbrc/bbrc.log.2017-07-19T18:25:24 are old enough to be deleted (7 days) | |
2017-07-20T17:20:31 bbrc[97993]: TRACE Checking to see if logs at /bb/logs/bbrc/bbrc.log.2017-07-19T18:25:24.d are old enough to be deleted (7 days) | |
2017-07-20T17:20:31 bbrc[97993]: TRACE Checking to see if logs at /bb/logs/bbrc/bbrc.lo |