chore: generate
This commit is contained in:
@@ -557,8 +557,11 @@ export namespace Provider {
|
|||||||
|
|
||||||
const metadata = iife(() => {
|
const metadata = iife(() => {
|
||||||
if (input.options?.metadata) return input.options.metadata
|
if (input.options?.metadata) return input.options.metadata
|
||||||
try { return JSON.parse(input.options?.headers?.["cf-aig-metadata"]) }
|
try {
|
||||||
catch { return undefined }
|
return JSON.parse(input.options?.headers?.["cf-aig-metadata"])
|
||||||
|
} catch {
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
})
|
})
|
||||||
const opts = {
|
const opts = {
|
||||||
metadata,
|
metadata,
|
||||||
@@ -572,7 +575,7 @@ export namespace Provider {
|
|||||||
accountId,
|
accountId,
|
||||||
gateway,
|
gateway,
|
||||||
apiKey: apiToken,
|
apiKey: apiToken,
|
||||||
...(Object.values(opts).some(v => v !== undefined) ? { options: opts } : {}),
|
...(Object.values(opts).some((v) => v !== undefined) ? { options: opts } : {}),
|
||||||
})
|
})
|
||||||
const unified = createUnified()
|
const unified = createUnified()
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,9 @@ describe("session.started event", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
describe("step-finish token propagation via Bus event", () => {
|
describe("step-finish token propagation via Bus event", () => {
|
||||||
test("non-zero tokens propagate through PartUpdated event", async () => {
|
test(
|
||||||
|
"non-zero tokens propagate through PartUpdated event",
|
||||||
|
async () => {
|
||||||
await Instance.provide({
|
await Instance.provide({
|
||||||
directory: projectRoot,
|
directory: projectRoot,
|
||||||
fn: async () => {
|
fn: async () => {
|
||||||
@@ -134,5 +136,7 @@ describe("step-finish token propagation via Bus event", () => {
|
|||||||
await Session.remove(session.id)
|
await Session.remove(session.id)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}, { timeout: 30000 })
|
},
|
||||||
|
{ timeout: 30000 },
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user