@polyfill-io-aot/builder
Version:
This is the builder module for polyfill-io-aot.
15 lines • 687 B
JavaScript
;
const range = require("lodash/range");
const index_1 = require("./versions/index");
module.exports = function* uaGenerator() {
const ieRange = range(index_1.Versions.ie.ie.min, index_1.Versions.ie.ie.max)
.map((v) => `${v}.0`)
.concat(index_1.Versions.ie.ie.static);
for (const i of ieRange) {
yield `Mozilla/5.0 (Windows; U; MSIE ${i}; Windows NT 6.0; en-US)`;
}
for (const i of range(index_1.Versions.ie.edge.min, index_1.Versions.ie.edge.max)) {
yield `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/${i}.0`;
}
};
//# sourceMappingURL=ie.js.map