Skip to content

Commit c8d7e8b

Browse files
committed
Formatting
1 parent 22f793e commit c8d7e8b

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

examples/jinja.ts

+8-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ async function main() {
1313
const a = new Box({ value: ["a", "b"] });
1414
const b = new Box({ value: { x: "x" } });
1515

16-
const f = sb.jinja('as=[{% for a in as %}{{a}},{% endfor%}], b={{b["x"]}}, c={{c}}', {
17-
as: a.future.value,
18-
b: b.future.value,
19-
c: "1234",
20-
});
16+
const f = sb.jinja(
17+
'as=[{% for a in as %}{{a}},{% endfor%}], b={{b["x"]}}, c={{c}}',
18+
{
19+
as: a.future.value,
20+
b: b.future.value,
21+
c: "1234",
22+
},
23+
);
2124

2225
const c = new Box({ value: f });
2326

src/Future.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export class Jinja extends Directive {
244244
}
245245
};
246246
collectFutures([template, variables]);
247-
this.items = Array.from(futures)
247+
this.items = Array.from(futures);
248248
}
249249

250250
override next(..._items: any[]) {

src/Node.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { idGenerator } from "substrate/idGenerator";
2-
import { Future, FutureAnyObject, Trace, replaceWithPlaceholders } from "substrate/Future";
2+
import {
3+
Future,
4+
FutureAnyObject,
5+
Trace,
6+
replaceWithPlaceholders,
7+
} from "substrate/Future";
38
import { SubstrateResponse } from "substrate/SubstrateResponse";
49
import { NodeError, SubstrateError } from "substrate/Error";
510
import { AnyNode } from "substrate/Nodes";

src/Platform.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const getPlatformProperties = (): PlatformProperties => {
4444
runtimeVersion:
4545
typeof Deno.version === "string"
4646
? Deno.version
47-
: (Deno.version?.deno ?? "unknown"),
47+
: Deno.version?.deno ?? "unknown",
4848
};
4949
}
5050
if (typeof EdgeRuntime !== "undefined") {

0 commit comments

Comments
 (0)