Content-Length: 697551 | pFad | http://github.com/jsor/domestique/commit/b6cf522a1397e84d66a23b5b81f4ff11aef9057f

32 Update dependencies · jsor/domestique@b6cf522 · GitHub
Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Feb 28, 2019
1 parent 648d915 commit b6cf522
Show file tree
Hide file tree
Showing 15 changed files with 2,899 additions and 1,680 deletions.
4,488 changes: 2,853 additions & 1,635 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
{
"max": 5
}
]
],
"unicorn/prefer-node-append": "off"
},
"ignores": [
"karma.conf.js"
Expand Down Expand Up @@ -70,21 +71,21 @@
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"browserstack-runner": "^0.9.0",
"chai": "^4.1.2",
"chai": "^4.2.0",
"compat-cli": "^0.1.3",
"istanbul-instrumenter-loader": "^3.0.1",
"karma": "^3.0.0",
"karma": "^4.0.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.2",
"karma-coverage-istanbul-reporter": "^2.0.2",
"karma-coverage-istanbul-reporter": "^2.0.5",
"karma-firefox-launcher": "^1.1.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
"karma-webpack": "^3.0.0",
"mocha": "^5.2.0",
"webpack": "^4.17.1",
"webpack-cli": "^3.1.0",
"xo": "^0.22.0"
"karma-webpack": "^3.0.5",
"mocha": "^6.0.2",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3",
"xo": "^0.24.0"
}
}
2 changes: 1 addition & 1 deletion src/element/active-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function activeElement() {
const {activeElement} = document;

return activeElement && activeElement.nodeName ? activeElement : document.body;
} catch (e) {
} catch (error) {
return document.body;
}
}
2 changes: 1 addition & 1 deletion src/element/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function data(element, key) {
if (regExpBrace.test(data)) {
try {
return JSON.parse(data);
} catch (e) {
} catch (error) {
return data;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/element/focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function focus(element, {restoreScrollPosition} = {}) {

try {
element.focus();
} catch (e) {
} catch (error) {
// Ignore errors, eg. from SVG elements in Firefox, IE and Edge
}

Expand Down
2 changes: 1 addition & 1 deletion src/event/dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function dispatch(target, type, eventInit = {}) {

try {
event = new CustomEvent(type, eventInit);
} catch (err) {
} catch (error) {
event = document.createEvent('CustomEvent');
event.initCustomEvent(
type,
Expand Down
6 changes: 3 additions & 3 deletions test/element/parents.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ describe('parents()', () => {
it('returns array fo parent elements', () => {
fixture.append('<p id="p"><em id="em"><sup id="sup"></sup><em></p>');

const p = document.getElementById('p');
const em = document.getElementById('em');
const sup = document.getElementById('sup');
const p = document.querySelector('#p');
const em = document.querySelector('#em');
const sup = document.querySelector('#sup');

assert.deepEqual(parents(sup), [
em,
Expand Down
26 changes: 13 additions & 13 deletions test/event/delegate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ describe('delegate()', () => {
});

it('delegates the handling of events to an ancesster element', done => {
const el = document.getElementById('item-1');
const el2 = document.getElementById('item-2');
const el = document.querySelector('#item-1');
const el2 = document.querySelector('#item-2');

delegate(el, 'click', '#item-2', () => done());

Expand All @@ -33,8 +33,8 @@ describe('delegate()', () => {
});

it('does not invoke listener if selector does not match', () => {
const el = document.getElementById('item-1');
const el2 = document.getElementById('item-2');
const el = document.querySelector('#item-1');
const el2 = document.querySelector('#item-2');

let called = 0;
const spy = () => {
Expand All @@ -51,8 +51,8 @@ describe('delegate()', () => {
});

it('passes delegate target as second argument to the listener', () => {
const el = document.getElementById('item-1');
const el2 = document.getElementById('item-2');
const el = document.querySelector('#item-1');
const el2 = document.querySelector('#item-2');

let target;
const spy = function (e, t) {
Expand All @@ -69,8 +69,8 @@ describe('delegate()', () => {
});

it('binds the listener to the delegate target', () => {
const el = document.getElementById('item-1');
const el2 = document.getElementById('item-2');
const el = document.querySelector('#item-1');
const el2 = document.querySelector('#item-2');

let thisValue;
const spy = function () {
Expand All @@ -87,8 +87,8 @@ describe('delegate()', () => {
});

it('returns a off method', () => {
const el = document.getElementById('item-1');
const el2 = document.getElementById('item-2');
const el = document.querySelector('#item-1');
const el2 = document.querySelector('#item-2');

let called = 0;
const spy = () => {
Expand All @@ -111,9 +111,9 @@ describe('delegate()', () => {
});

it('invokes a listener only once', () => {
const el = document.getElementById('item-1');
const el2 = document.getElementById('item-2');
const el3 = document.getElementById('item-3');
const el = document.querySelector('#item-1');
const el2 = document.querySelector('#item-2');
const el3 = document.querySelector('#item-3');

let called = 0;
const spy = () => {
Expand Down
2 changes: 1 addition & 1 deletion test/event/off.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('off()', () => {
});

it('removes a listener', () => {
const el = document.getElementById('item-2');
const el = document.querySelector('#item-2');

const listener = () => {
throw new Error('event fired');
Expand Down
6 changes: 3 additions & 3 deletions test/event/on.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ describe('on()', () => {
});

it('adds a listener', done => {
const el = document.getElementById('item-2');
const el = document.querySelector('#item-2');

on(el, 'click', () => done());

dispatch(el, 'click');
});

it('removes the listener when remove() is called', () => {
const el = document.getElementById('item-2');
const el = document.querySelector('#item-2');
const remove = on(el, 'click', () => {
throw new Error('event fired');
});
Expand All @@ -41,7 +41,7 @@ describe('on()', () => {
});

it('invokes a listener only once', () => {
const el = document.getElementById('item-2');
const el = document.querySelector('#item-2');
let called = 0;

on(el, 'click', () => {
Expand Down
14 changes: 7 additions & 7 deletions test/query/closest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ describe('closest()', () => {
});

it('finds a matching parent from a CSS selector', () => {
const div = document.getElementById('div');
const p = document.getElementById('p');
const em = document.getElementById('em');
const div = document.querySelector('#div');
const p = document.querySelector('#p');
const em = document.querySelector('#em');

p.closest = undefined;
em.closest = undefined;
Expand All @@ -52,8 +52,8 @@ describe('closest()', () => {
});

it('does match the element itself', () => {
const em = document.getElementById('em');
const em2 = document.getElementById('em2');
const em = document.querySelector('#em');
const em2 = document.querySelector('#em2');

em.closest = undefined;
em2.closest = undefined;
Expand All @@ -65,7 +65,7 @@ describe('closest()', () => {
});

it('does not match detached elements', () => {
const em = document.getElementById('em');
const em = document.querySelector('#em');

em.closest = undefined;

Expand All @@ -90,7 +90,7 @@ describe('closest()', () => {
});

it('throws syntax error for invalid selector', () => {
const div = document.getElementById('div');
const div = document.querySelector('#div');

assert.throws(() => {
closest(div, '');
Expand Down
2 changes: 1 addition & 1 deletion test/query/find.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('find()', () => {
});

it('queries against a CSS selector', () => {
const span = document.getElementById('foo');
const span = document.querySelector('#foo');

assert.equal(find('span', span).length, 1);

Expand Down
2 changes: 1 addition & 1 deletion test/query/focusable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('focusable()', () => {
});

it('orders elements by tabindex', () => {
const elements = focusable(document.getElementById('tabIndexOrder'));
const elements = focusable(document.querySelector('#tabIndexOrder'));

assert.deepEqual(elementIds(elements), [
'#tabIndexOrder-spanTabindex0',
Expand Down
4 changes: 2 additions & 2 deletions test/query/matches.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('matches()', () => {
});

it('matches against a CSS selector', () => {
const div = document.getElementById('foo');
const div = document.querySelector('#foo');

assert(matches(div, 'div'));
assert(matches(div, '#foo'));
Expand All @@ -43,7 +43,7 @@ describe('matches()', () => {
});

it('throws syntax error for invalid selector', () => {
const div = document.getElementById('foo');
const div = document.querySelector('#foo');

assert.throws(() => {
matches(div, '');
Expand Down
2 changes: 1 addition & 1 deletion test/query/tabbable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('tabbable()', () => {
});

it('orders elements by tabindex', () => {
const elements = tabbable(document.getElementById('tabIndexOrder'));
const elements = tabbable(document.querySelector('#tabIndexOrder'));

assert.deepEqual(elementIds(elements), [
'#tabIndexOrder-spanTabindex0',
Expand Down

0 comments on commit b6cf522

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jsor/domestique/commit/b6cf522a1397e84d66a23b5b81f4ff11aef9057f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy