File indexing completed on 2024-11-17 04:55:14
0001 /* This Source Code Form is subject to the terms of the Mozilla Public 0002 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 0003 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 0004 0005 const { AdBlockClient } = require('..') 0006 const fs = require('fs') 0007 0008 const client = new AdBlockClient() 0009 if (!fs.existsSync('out')) { 0010 fs.mkdirSync('./out') 0011 } 0012 0013 client.generateDefaultManifestFile('out') 0014 client.generateRegionalManifestFiles('out') 0015 0016 process.on('uncaughtException', (err) => { 0017 console.error('Caught exception:', err) 0018 process.exit(1) 0019 }) 0020 0021 process.on('unhandledRejection', (err) => { 0022 console.error('Unhandled rejection:', err) 0023 process.exit(1) 0024 })