Travis build: 1637 [cron]

This commit is contained in:
30secondsofcode
2018-02-09 20:21:56 +00:00
parent a5e99157d9
commit df0dda885d
6 changed files with 1766 additions and 1759 deletions

3
dist/_30s.es5.js vendored
View File

@ -1761,8 +1761,7 @@ var round = function round(n) {
};
var runAsync = function runAsync(fn) {
var blob = 'var fn = ' + fn.toString() + '; postMessage(fn());';
var worker = new Worker(URL.createObjectURL(new Blob([blob]), {
var worker = new Worker(URL.createObjectURL(new Blob(['postMessage((' + fn + ')());']), {
type: 'application/javascript; charset=utf-8'
}));
return new Promise(function (res, rej) {

File diff suppressed because one or more lines are too long

3
dist/_30s.esm.js vendored
View File

@ -1013,9 +1013,8 @@ const reverseString = str => [...str].reverse().join('');
const round = (n, decimals = 0) => Number(`${Math.round(`${n}e${decimals}`)}e-${decimals}`);
const runAsync = fn => {
const blob = `var fn = ${fn.toString()}; postMessage(fn());`;
const worker = new Worker(
URL.createObjectURL(new Blob([blob]), {
URL.createObjectURL(new Blob([`postMessage((${fn})());`]), {
type: 'application/javascript; charset=utf-8'
})
);

3
dist/_30s.js vendored
View File

@ -1019,9 +1019,8 @@ const reverseString = str => [...str].reverse().join('');
const round = (n, decimals = 0) => Number(`${Math.round(`${n}e${decimals}`)}e-${decimals}`);
const runAsync = fn => {
const blob = `var fn = ${fn.toString()}; postMessage(fn());`;
const worker = new Worker(
URL.createObjectURL(new Blob([blob]), {
URL.createObjectURL(new Blob([`postMessage((${fn})());`]), {
type: 'application/javascript; charset=utf-8'
})
);

2
dist/_30s.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff