Skip to content

Commit

Permalink
Merge pull request #137 from superfaceai/chore/update_javy
Browse files Browse the repository at this point in the history
chore: update Javy dependency
  • Loading branch information
TheEdward162 committed Mar 15, 2024
2 parents af098c3 + 445e073 commit c16d469
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 45 deletions.
161 changes: 123 additions & 38 deletions core/Cargo.lock

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

2 changes: 1 addition & 1 deletion core/interpreter_js/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sf_std = { path = "../host_to_core_std", package = "host_to_core_std" }
map_std = { path = "../core_to_map_std", package = "core_to_map_std" }

# quickjs-wasm-rs = "2.0.1"
quickjs-wasm-rs = { git = "https://github.com/superfaceai/javy.git", rev = "2d3f56831d4d08ea3bb747b49e679674f9927393", features = [] }
quickjs-wasm-rs = { git = "https://github.com/superfaceai/javy.git", rev = "9583c8fc728f3920ebc4875964ed1b033f71cc97", features = [] }
# quickjs-wasm-rs = { path = "../../../javy/crates/quickjs-wasm-rs", features = [] }

serde = { workspace = true }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="@superface/map-std" />
/// <reference types="@superfaceai/map-std" />
// @ts-check

/** @type {UseCase<{ safety: 'unsafe', input: { from: AnyValue, to: AnyValue, subject: AnyValue, text?: AnyValue, html?: AnyValue, attachments?: [{ content: AnyValue, type: AnyValue, filename?: AnyValue }] }, result: { messageId: AnyValue }, error: { title: string, detail: string } }>} */
Expand Down
2 changes: 1 addition & 1 deletion examples/comlinks/src/communication.send-sms.twilio.map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="@superface/map-std" />
/// <reference types="@superfaceai/map-std" />
// @ts-check

/** @type {UseCase<{ safety: 'unsafe', input: { to?: AnyValue, from?: AnyValue, text?: AnyValue }, result: { messageId: AnyValue }, error: { title: string, detail: string } }>} */
Expand Down
2 changes: 1 addition & 1 deletion examples/comlinks/src/communication.send-sms.tyntec.map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="@superface/map-std" />
/// <reference types="@superfaceai/map-std" />
// @ts-check

/** @type {UseCase<{ safety: 'unsafe', input: { to?: AnyValue, from?: AnyValue, text?: AnyValue }, result: { messageId: AnyValue }, error: { title: string, detail: string } }>} */
Expand Down
2 changes: 1 addition & 1 deletion examples/comlinks/src/wasm-sdk.example.localhost.map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="@superface/map-std" />
/// <reference types="@superfaceai/map-std" />
/// <reference path="./wasm-sdk.example.profile.ts" />
// @ts-check

Expand Down
4 changes: 2 additions & 2 deletions examples/comlinks/src/wasm-sdk.example.profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
type Example = UseCase<{
safety: 'safe'
input: { id: AnyValue }
result: { url: AnyValue, method: AnyValue, query: AnyValue, headers: AnyValue, x?: 1, y: true, z: "seven" }
result: { url: AnyValue, method: AnyValue, query: AnyValue, headers: AnyValue }
error: { title: AnyValue, detail?: AnyValue, r: boolean }
}>;

const exampleExamples: Example['examples'] = [
{ input: { id: "a" }, result: { url: 1, method: 2, query: 3, headers: 4, x: 1, y: true, z: 'seven' } },
{ input: { id: "a" }, result: { url: 1, method: 2, query: 3, headers: 4 } },
{ input: { id: 1 }, error: { title: "hi", r: true } }
]

0 comments on commit c16d469

Please sign in to comment.