Skip to content

Commit

Permalink
style: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
vansergen committed Jul 13, 2023
1 parent d334860 commit d1b9204
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 28 deletions.
36 changes: 18 additions & 18 deletions docs/assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
e || !t || !t.__esModule
? ae(n, "default", { value: t, enumerable: !0 })
: n,
t
t,
)
);
var de = _e((ce, he) => {
Expand Down Expand Up @@ -73,7 +73,7 @@
continue;
}
throw new TypeError(
"clone is not deep and does not support nested objects"
"clone is not deep and does not support nested objects",
);
}
return n;
Expand Down Expand Up @@ -151,7 +151,7 @@
: e === t.Set.empty
? this
: new t.Set(
Object.keys(this.elements).concat(Object.keys(e.elements))
Object.keys(this.elements).concat(Object.keys(e.elements)),
);
}),
(t.idf = function (e, n) {
Expand Down Expand Up @@ -185,7 +185,7 @@
return e.map(function (m) {
return new t.Token(
t.utils.asString(m).toLowerCase(),
t.utils.clone(n)
t.utils.clone(n),
);
});
for (
Expand Down Expand Up @@ -228,7 +228,7 @@
t.utils.warn(
`Function is not registered with pipeline. This may cause problems when serialising the index.
`,
e
e,
);
}),
(t.Pipeline.load = function (e) {
Expand Down Expand Up @@ -1021,7 +1021,7 @@
t.version +
"' does not match serialized index '" +
e.version +
"'"
"'",
);
for (var l = 0; l < i.length; l++) {
var h = i[l],
Expand Down Expand Up @@ -1067,7 +1067,7 @@
(t.Builder.prototype.field = function (e, n) {
if (/\//.test(e))
throw new RangeError(
"Field '" + e + "' contains illegal character '/'"
"Field '" + e + "' contains illegal character '/'",
);
this._fields[e] = n || {};
}),
Expand Down Expand Up @@ -1190,7 +1190,7 @@
}),
(t.Builder.prototype.createTokenSet = function () {
this.tokenSet = t.TokenSet.fromArray(
Object.keys(this.invertedIndex).sort()
Object.keys(this.invertedIndex).sort(),
);
}),
(t.Builder.prototype.build = function () {
Expand Down Expand Up @@ -1241,7 +1241,7 @@
this.metadata[i][a][h] == null
? (this.metadata[i][a][h] = e.metadata[i][a][h])
: (this.metadata[i][a][h] = this.metadata[i][a][h].concat(
e.metadata[i][a][h]
e.metadata[i][a][h],
));
}
}
Expand Down Expand Up @@ -1649,7 +1649,7 @@
this.createComponents(document.body),
this.ensureFocusedElementVisible(),
window.addEventListener("hashchange", () =>
this.ensureFocusedElementVisible()
this.ensureFocusedElementVisible(),
);
}
createComponents(e) {
Expand Down Expand Up @@ -1730,11 +1730,11 @@
(this.navigation = document.querySelector(".col-menu")),
window.addEventListener(
"scroll",
ne(() => this.onScroll(), 10)
ne(() => this.onScroll(), 10),
),
window.addEventListener(
"resize",
ne(() => this.onResize(), 10)
ne(() => this.onResize(), 10),
),
(this.searchInput = document.querySelector("#tsd-search input")),
this.searchInput &&
Expand Down Expand Up @@ -1853,7 +1853,7 @@
r = document.querySelector("#tsd-search .results");
if (!n || !r)
throw new Error(
"The input field or the result list wrapper was not found"
"The input field or the result list wrapper was not found",
);
let i = !1;
r.addEventListener("mousedown", () => (i = !0)),
Expand All @@ -1872,7 +1872,7 @@
"input",
ue(() => {
He(t, e, n, r);
}, 200)
}, 200),
);
let i = !1;
n.addEventListener("keydown", (s) => {
Expand Down Expand Up @@ -1969,7 +1969,7 @@
for (; o != -1; )
i.push(
ie(t.substring(s, o)),
`<b>${ie(t.substring(o, o + r.length))}</b>`
`<b>${ie(t.substring(o, o + r.length))}</b>`,
),
(s = o + r.length),
(o = n.indexOf(r, s));
Expand All @@ -1994,7 +1994,7 @@
Be = !1,
A = !1,
xe = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
navigator.userAgent,
);
document.documentElement.classList.add(xe ? "is-mobile" : "not-mobile");
xe &&
Expand Down Expand Up @@ -2100,7 +2100,7 @@
document.querySelectorAll(".tsd-index-section").forEach((n) => {
n.style.display = "block";
let r = Array.from(n.querySelectorAll(".tsd-index-link")).every(
(i) => i.offsetParent == null
(i) => i.offsetParent == null,
);
n.style.display = r ? "none" : "block";
});
Expand Down Expand Up @@ -2166,7 +2166,7 @@
this.getIconRotation(i),
],
},
o
o,
)
.addEventListener("finish", () => {
this.icon.style.transform = this.getIconRotation(i);
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/search.js

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

4 changes: 3 additions & 1 deletion docs/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,9 @@ ul.tsd-type-parameter-list h5 {
overflow: hidden;
opacity: 0.8;
height: 40px;
transition: opacity 0.1s, background-color 0.2s;
transition:
opacity 0.1s,
background-color 0.2s;
vertical-align: bottom;
cursor: pointer;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/BodyParser.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="default" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="default" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IBodyParserOptions.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="default" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion docs/modules.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="default" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion docs/types/IBodyContentType.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="default" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion docs/types/IParse.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="default" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion docs/variables/default.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html class="default" lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ suite("BodyParser", () => {
test("constructor (with an invalid `parse` option)", () => {
throws(
() => new BodyParser({ parse: 2 as unknown as IParse }),
new TypeError("`parse` is not a function")
new TypeError("`parse` is not a function"),
);
});

Expand Down

0 comments on commit d1b9204

Please sign in to comment.