Skip to content

Commit d0f1dad

Browse files
Update versionControl.js
1 parent 668276f commit d0f1dad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/base/utils/versionControl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import fetch from "node-fetch";
1+
import { fetch, FetchResultTypes } from '@sapphire/fetch';
22

33

44

55

66
const versionControl = async(warnMessage) => {
77
const thisVersion = require("../../../package.json").version
8-
const latestVersion = await fetch("https://registry.npmjs.com/wump.js").then((data) => data["dist-tags"].latest)
8+
const latestVersion = await fetch("https://registry.npmjs.com/wump.js", FetchResultTypes.JSON).then((data) => data["dist-tags"].latest)
99
if(thisVersion !== latestVersion){
1010
console.log(warnMessage)
1111
} else {

0 commit comments

Comments
 (0)