summaryrefslogtreecommitdiff
path: root/tools/release/helpers/crates_io.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-03-01 15:40:32 -0500
committerGitHub <noreply@github.com>2022-03-01 15:40:32 -0500
commit4be0365fb8251a8614f16e6162f4f43c9885d2a3 (patch)
tree22a9a476053487c8ac22e53e20aea4bb483fbb97 /tools/release/helpers/crates_io.ts
parent6a030a5396f9c838b4d4523f43ab2d9e2f502e04 (diff)
chore(tools): use automation scripts from automation repo (#13796)
Diffstat (limited to 'tools/release/helpers/crates_io.ts')
-rw-r--r--tools/release/helpers/crates_io.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/release/helpers/crates_io.ts b/tools/release/helpers/crates_io.ts
deleted file mode 100644
index af26f55af..000000000
--- a/tools/release/helpers/crates_io.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
-
-export interface CratesIoMetadata {
- crate: {
- id: string;
- name: string;
- };
- versions: {
- crate: string;
- num: string;
- }[];
-}
-
-export async function getCratesIoMetadata(crateName: string) {
- // rate limit
- await new Promise((resolve) => setTimeout(resolve, 100));
-
- const response = await fetch(`https://crates.io/api/v1/crates/${crateName}`);
- const data = await response.json();
-
- return data as CratesIoMetadata;
-}