Initial commit - Dutchie dispensary scraper

This commit is contained in:
Kelly
2025-11-28 19:45:44 -07:00
commit 5757a8e9bd
23375 changed files with 3788799 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const flatten = require('./flatten.js');
const limitAsync = require('./limitAsync.js');
async function flatMapAsync(array, callback, options) {
if (options?.concurrency != null) {
callback = limitAsync.limitAsync(callback, options.concurrency);
}
const results = await Promise.all(array.map(callback));
return flatten.flatten(results);
}
exports.flatMapAsync = flatMapAsync;