🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

js-sys

Package Overview
Dependencies
Maintainers
0
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-sys - cargo Package Compare versions

Comparing version
0.3.97
to
0.3.98
+1
-1
.cargo_vcs_info.json
{
"git": {
"sha1": "3c5043f94d85c7df1b25195ab005814ba001a93b"
"sha1": "49457f2db4465688cb597e9030ccfdefbd2b662e"
},
"path_in_vcs": "crates/js-sys"
}

@@ -79,3 +79,3 @@ # This file is automatically @generated by Cargo.

name = "js-sys"
version = "0.3.97"
version = "0.3.98"
dependencies = [

@@ -153,5 +153,5 @@ "cfg-if",

name = "wasm-bindgen"
version = "0.2.120"
version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df52b6d9b87e0c74c9edfa1eb2d9bf85e5d63515474513aa50fa181b3c4f5db1"
checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790"
dependencies = [

@@ -167,5 +167,5 @@ "cfg-if",

name = "wasm-bindgen-macro"
version = "0.2.120"
version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78b1041f495fb322e64aca85f5756b2172e35cd459376e67f2a6c9dffcedb103"
checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578"
dependencies = [

@@ -178,5 +178,5 @@ "quote",

name = "wasm-bindgen-macro-support"
version = "0.2.120"
version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9dcd0ff20416988a18ac686d4d4d0f6aae9ebf08a389ff5d29012b05af2a1b41"
checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2"
dependencies = [

@@ -192,5 +192,5 @@ "bumpalo",

name = "wasm-bindgen-shared"
version = "0.2.120"
version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49757b3c82ebf16c57d69365a142940b384176c24df52a087fb748e2085359ea"
checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441"
dependencies = [

@@ -197,0 +197,0 @@ "unicode-ident",

@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO

name = "js-sys"
version = "0.3.97"
version = "0.3.98"
authors = ["The wasm-bindgen Developers"]

@@ -80,3 +80,3 @@ build = false

[dependencies.wasm-bindgen]
version = "=0.2.120"
version = "=0.2.121"
default-features = false

@@ -83,0 +83,0 @@

@@ -130,3 +130,7 @@ //! Converting between JavaScript `Promise`s to Rust `Future`s.

impl<T: JsGeneric + FromWasmAbi> From<Promise<T>> for JsFuture<T> {
// `FromWasmAbi` is what the closure shim invokes on the resolved value;
// no layout equivalence with `JsValue` is required at this seam — the
// per-type `from_abi` does the conversion (e.g. for dynamic unions it
// runs the variant dispatcher).
impl<T: FromWasmAbi + 'static> From<Promise<T>> for JsFuture<T> {
fn from(js: Promise<T>) -> JsFuture<T> {

@@ -221,3 +225,3 @@ // Use the `then` method to schedule two callbacks, one for the

impl<T: JsGeneric + FromWasmAbi> IntoFuture for Promise<T> {
impl<T: FromWasmAbi + 'static> IntoFuture for Promise<T> {
type Output = Result<T, JsValue>;

@@ -224,0 +228,0 @@ type IntoFuture = JsFuture<T>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display