diff --git a/examples/jinja.ts b/examples/jinja.ts index a707b09..a926ad5 100755 --- a/examples/jinja.ts +++ b/examples/jinja.ts @@ -13,11 +13,14 @@ async function main() { const a = new Box({ value: ["a", "b"] }); const b = new Box({ value: { x: "x" } }); - const f = sb.jinja('as=[{% for a in as %}{{a}},{% endfor%}], b={{b["x"]}}, c={{c}}', { - as: a.future.value, - b: b.future.value, - c: "1234", - }); + const f = sb.jinja( + 'as=[{% for a in as %}{{a}},{% endfor%}], b={{b["x"]}}, c={{c}}', + { + as: a.future.value, + b: b.future.value, + c: "1234", + }, + ); const c = new Box({ value: f }); diff --git a/src/Future.ts b/src/Future.ts index 30961a5..c1981dc 100644 --- a/src/Future.ts +++ b/src/Future.ts @@ -244,7 +244,7 @@ export class Jinja extends Directive { } }; collectFutures([template, variables]); - this.items = Array.from(futures) + this.items = Array.from(futures); } override next(..._items: any[]) { diff --git a/src/Node.ts b/src/Node.ts index 603b7e6..7b4ba60 100644 --- a/src/Node.ts +++ b/src/Node.ts @@ -1,5 +1,10 @@ import { idGenerator } from "substrate/idGenerator"; -import { Future, FutureAnyObject, Trace, replaceWithPlaceholders } from "substrate/Future"; +import { + Future, + FutureAnyObject, + Trace, + replaceWithPlaceholders, +} from "substrate/Future"; import { SubstrateResponse } from "substrate/SubstrateResponse"; import { NodeError, SubstrateError } from "substrate/Error"; import { AnyNode } from "substrate/Nodes"; diff --git a/src/Platform.ts b/src/Platform.ts index d71b3ca..68ac165 100644 --- a/src/Platform.ts +++ b/src/Platform.ts @@ -44,7 +44,7 @@ export const getPlatformProperties = (): PlatformProperties => { runtimeVersion: typeof Deno.version === "string" ? Deno.version - : (Deno.version?.deno ?? "unknown"), + : Deno.version?.deno ?? "unknown", }; } if (typeof EdgeRuntime !== "undefined") {