Skip to content

Commit 689daa0

Browse files
committed
avoid GitHub api to avoid rate limits
1 parent 06c6609 commit 689daa0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PlotlyLight"
22
uuid = "ca7969ec-10b3-423e-8d99-40f33abb42bf"
33
authors = ["joshday <[email protected]>"]
4-
version = "0.7.1"
4+
version = "0.7.2"
55

66
[deps]
77
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"

src/PlotlyLight.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ end
5050
get_semver(x) = VersionNumber(match(r"v(\d+)\.(\d+)\.(\d+)", x).match[2:end])
5151

5252
function latest_plotlyjs_version()
53-
n = JSON3.read(download("https://api.github.com/repos/plotly/plotly.js/releases/latest")).name
54-
VersionNumber(n)
53+
file = download("https://github.com/plotly/plotly.js/releases/latest")
54+
get_semver(read(file, String))
5555
end
5656

5757
function download_plotly!(v::VersionNumber = latest_plotlyjs_version())

0 commit comments

Comments
 (0)