Skip to content

Commit

Permalink
fix(katzencore): Trying new updater
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlkatze committed Aug 15, 2024
1 parent 6b14834 commit ba24729
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/runtime/update.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { version } from '../../package.json'

export interface UpdateResult {
currentVersion: string
latestVersion: string
}

export const updateCheck = async () => {
const pkg = (await import('../../package.json', { assert: { type: 'json' } })
).default as { version: string }
const version = pkg.version
const https = await import('node:https')
return new Promise<UpdateResult>((resolve) => {
https.get('https://registry.npmjs.org/@maxlkatze/cms/latest', (res) => {
Expand Down

0 comments on commit ba24729

Please sign in to comment.