nodejs / citgm

Canary in the Gold Mine

Home Page:https://www.npmjs.com/package/citgm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`through2@4.0.2` chromium binary is not available for arm64

RafaelGSS opened this issue · comments

Can this be fixed in through2? I doubt it actually needs puppeteer for its test.

To answer your question, I don't know if that's the intended way, but it seems you can combine conditions by using an object:

"skip": {
  "osx11": ">=21"
}

isObjectMatch(obj) {
return _.some(obj, (value, key) => {
if (!this.isStringMatch(key)) return false;
if (typeof value === 'boolean') return value;
if (typeof value === 'string') return this.isStringMatch(value);
if (Array.isArray(value)) return this.isArrayMatch(value);
return false;
});
}