1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00

fix(fmt/json): support formatting number with exponent and no sign (#18894)

Numbers with an exponent and no sign (ex. `1e1`) would fail to parse.
This commit is contained in:
David Sherret 2023-04-30 10:03:39 -04:00 committed by Levente Kurusa
parent 36958ea7dc
commit 1cef6fa7fa
No known key found for this signature in database
GPG key ID: 9F72F3C05BA137C4
3 changed files with 8 additions and 8 deletions

View file

@ -51,8 +51,8 @@
"tools/wpt/manifest.json"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.84.0.wasm",
"https://plugins.dprint.dev/json-0.17.0.wasm",
"https://plugins.dprint.dev/typescript-0.84.2.wasm",
"https://plugins.dprint.dev/json-0.17.2.wasm",
"https://plugins.dprint.dev/markdown-0.15.2.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm",
"https://plugins.dprint.dev/exec-0.3.5.json@d687dda57be0fe9a0088ccdaefa5147649ff24127d8b3ea227536c68ee7abeab"

8
Cargo.lock generated
View file

@ -1534,9 +1534,9 @@ dependencies = [
[[package]]
name = "dprint-plugin-json"
version = "0.17.0"
version = "0.17.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6120aa5613816db2ef2ef539c229c24f4ee3dbba15317242bcf0de5f17a0060"
checksum = "602d5b9cc4657bdf06d27fa6c22dfcfdb85a19ab555f2834cf7b01ba8001a1f6"
dependencies = [
"anyhow",
"dprint-core",
@ -2596,9 +2596,9 @@ dependencies = [
[[package]]
name = "jsonc-parser"
version = "0.21.0"
version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a1853e40333206f9a685358046d13ab200169e3ee573019bddf0ede0dc29307"
checksum = "7b56a20e76235284255a09fcd1f45cf55d3c524ea657ebd3854735925c57743d"
dependencies = [
"serde_json",
]

View file

@ -65,7 +65,7 @@ clap_complete_fig = "=4.1.2"
console_static_text.workspace = true
data-url.workspace = true
dissimilar = "=1.0.4"
dprint-plugin-json = "=0.17.0"
dprint-plugin-json = "=0.17.2"
dprint-plugin-markdown = "=0.15.2"
dprint-plugin-typescript = "=0.84.2"
encoding_rs.workspace = true
@ -79,7 +79,7 @@ http.workspace = true
hyper.workspace = true
import_map = "=0.15.0"
indexmap.workspace = true
jsonc-parser = { version = "=0.21.0", features = ["serde"] }
jsonc-parser = { version = "=0.21.1", features = ["serde"] }
lazy-regex.workspace = true
libc.workspace = true
log = { workspace = true, features = ["serde"] }