Travis build: 1653 [cron]

This commit is contained in:
30secondsofcode
2018-02-12 20:21:04 +00:00
parent bb9110e7fc
commit d634f7e26d
7 changed files with 32 additions and 34 deletions

20
dist/_30s.es5.js vendored
View File

@ -362,16 +362,20 @@ var curry = function curry(fn) {
};
var debounce = function debounce(fn) {
var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var inDebounce = void 0;
var timeoutId = void 0;
return function () {
var context = this,
args = arguments;
clearTimeout(inDebounce);
inDebounce = setTimeout(function () {
return fn.apply(context, args);
}, wait);
var _this = this;
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
clearTimeout(timeoutId);
timeoutId = setTimeout(function () {
return fn.apply(_this, args);
}, ms);
};
};

File diff suppressed because one or more lines are too long

12
dist/_30s.esm.js vendored
View File

@ -192,13 +192,11 @@ const currentURL = () => window.location.href;
const curry = (fn, arity = fn.length, ...args) =>
arity <= args.length ? fn(...args) : curry.bind(null, fn, arity, ...args);
const debounce = (fn, wait = 0) => {
let inDebounce;
return function() {
const context = this,
args = arguments;
clearTimeout(inDebounce);
inDebounce = setTimeout(() => fn.apply(context, args), wait);
const debounce = (fn, ms = 0) => {
let timeoutId;
return function(...args) {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => fn.apply(this, args), ms);
};
};

12
dist/_30s.js vendored
View File

@ -198,13 +198,11 @@ const currentURL = () => window.location.href;
const curry = (fn, arity = fn.length, ...args) =>
arity <= args.length ? fn(...args) : curry.bind(null, fn, arity, ...args);
const debounce = (fn, wait = 0) => {
let inDebounce;
return function() {
const context = this,
args = arguments;
clearTimeout(inDebounce);
inDebounce = setTimeout(() => fn.apply(context, args), wait);
const debounce = (fn, ms = 0) => {
let timeoutId;
return function(...args) {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => fn.apply(this, args), ms);
};
};

2
dist/_30s.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,8 @@
const debounce = (fn, wait = 0) => {
let inDebounce;
return function() {
const context = this,
args = arguments;
clearTimeout(inDebounce);
inDebounce = setTimeout(() => fn.apply(context, args), wait);
const debounce = (fn, ms = 0) => {
let timeoutId;
return function(...args) {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => fn.apply(this, args), ms);
};
};
module.exports = debounce;

View File

@ -1,4 +1,4 @@
Test log for: Sun Feb 11 2018 20:20:34 GMT+0000 (UTC)
Test log for: Mon Feb 12 2018 20:20:58 GMT+0000 (UTC)
> 30-seconds-of-code@0.0.1 test /home/travis/build/Chalarangelo/30-seconds-of-code
> tape test/**/*.test.js | tap-spec
@ -1797,14 +1797,14 @@ Test log for: Sun Feb 11 2018 20:20:34 GMT+0000 (UTC)
✔ zipWith is a Function
✔ Sends a GET request
✔ Runs the function provided
✔ Sends a POST request
✔ Runs the function provided
✔ Runs promises in series
✔ Works with multiple promises
total: 901
passing: 901
duration: 2.4s
duration: 2.3s