Skip to content

Commit

Permalink
Update code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Mar 30, 2020
1 parent afc61a8 commit 5a27222
Show file tree
Hide file tree
Showing 28 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion build/cjs/async-iterators.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function isIteratorProp(target, prop) {
wrapIdbValue.instanceOfAny(target, [IDBIndex, IDBObjectStore, IDBCursor])) ||
(prop === 'iterate' && wrapIdbValue.instanceOfAny(target, [IDBIndex, IDBObjectStore])));
}
wrapIdbValue.replaceTraps(oldTraps => ({
wrapIdbValue.replaceTraps((oldTraps) => ({
...oldTraps,
get(target, prop, receiver) {
if (isIteratorProp(target, prop))
Expand Down
2 changes: 1 addition & 1 deletion build/cjs/async-iterators.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/cjs/database-extras.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/cjs/entry.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions build/cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ function openDB(name, version, { blocked, upgrade, blocking, terminated } = {})
const request = indexedDB.open(name, version);
const openPromise = wrapIdbValue.wrap(request);
if (upgrade) {
request.addEventListener('upgradeneeded', event => {
request.addEventListener('upgradeneeded', (event) => {
upgrade(wrapIdbValue.wrap(request.result), event.oldVersion, event.newVersion, wrapIdbValue.wrap(request.transaction));
});
}
if (blocked)
request.addEventListener('blocked', () => blocked());
openPromise
.then(db => {
.then((db) => {
if (terminated)
db.addEventListener('close', () => terminated());
if (blocking)
Expand Down Expand Up @@ -77,7 +77,7 @@ function getMethod(target, prop) {
cachedMethods.set(prop, method);
return method;
}
wrapIdbValue.replaceTraps(oldTraps => ({
wrapIdbValue.replaceTraps((oldTraps) => ({
...oldTraps,
get: (target, prop, receiver) => getMethod(target, prop) || oldTraps.get(target, prop, receiver),
has: (target, prop) => !!getMethod(target, prop) || oldTraps.has(target, prop),
Expand Down
2 changes: 1 addition & 1 deletion build/cjs/util.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/cjs/util.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/cjs/wrap-idb-value.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const instanceOfAny = (object, constructors) => constructors.some(c => object instanceof c);
const instanceOfAny = (object, constructors) => constructors.some((c) => object instanceof c);

let idbProxyableTypes;
let cursorAdvanceMethods;
Expand Down Expand Up @@ -47,7 +47,7 @@ function promisifyRequest(request) {
request.addEventListener('error', error);
});
promise
.then(value => {
.then((value) => {
// Since cursoring reuses the IDBRequest (*sigh*), we cache it for later retrieval
// (see wrapFunction).
if (value instanceof IDBCursor) {
Expand Down
Loading

0 comments on commit 5a27222

Please sign in to comment.