Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
32 lines
927 B
Plaintext
32 lines
927 B
Plaintext
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.isIterableIterator = isIterableIterator;
|
|
exports.mergeOptions = mergeOptions;
|
|
function mergeOptions(target, source) {
|
|
for (const k of Object.keys(source)) {
|
|
if ((k === "parserOpts" || k === "generatorOpts" || k === "assumptions") && source[k]) {
|
|
const parserOpts = source[k];
|
|
const targetObj = target[k] || (target[k] = {});
|
|
mergeDefaultFields(targetObj, parserOpts);
|
|
} else {
|
|
const val = source[k];
|
|
if (val !== undefined) target[k] = val;
|
|
}
|
|
}
|
|
}
|
|
function mergeDefaultFields(target, source) {
|
|
for (const k of Object.keys(source)) {
|
|
const val = source[k];
|
|
if (val !== undefined) target[k] = val;
|
|
}
|
|
}
|
|
function isIterableIterator(value) {
|
|
return !!value && typeof value.next === "function" && typeof value[Symbol.iterator] === "function";
|
|
}
|
|
0 && 0;
|
|
|
|
//# sourceMappingURL=util.js.map
|