chore: update deps

This commit is contained in:
MengYX 2021-12-14 14:57:48 +08:00
parent a6367401ae
commit 8facd65834
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
12 changed files with 9869 additions and 2354 deletions

12191
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -37,11 +37,12 @@
"@vue/cli-plugin-typescript": "^4.5.13", "@vue/cli-plugin-typescript": "^4.5.13",
"@vue/cli-service": "^4.5.13", "@vue/cli-service": "^4.5.13",
"babel-plugin-component": "^1.1.1", "babel-plugin-component": "^1.1.1",
"jest": "^27.4.5",
"sass": "^1.38.1", "sass": "^1.38.1",
"sass-loader": "^10.2.0", "sass-loader": "^10.2.0",
"semver": "^7.3.5", "semver": "^7.3.5",
"threads-plugin": "^1.4.0", "threads-plugin": "^1.4.0",
"typescript": "~4.1.6", "typescript": "^4.5.4",
"vue-cli-plugin-element": "^1.0.1", "vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.14" "vue-template-compiler": "^2.6.14"
} }

View File

@ -5,7 +5,7 @@ import {
GetCoverFromFile, GetCoverFromFile,
GetMetaFromFile, GetMetaFromFile,
SniffAudioExt SniffAudioExt
} from "@/decrypt/utils.ts"; } from "@/decrypt/utils";
import {parseBlob as metaParseBlob} from "music-metadata-browser"; import {parseBlob as metaParseBlob} from "music-metadata-browser";
import {DecryptResult} from "@/decrypt/entity"; import {DecryptResult} from "@/decrypt/entity";
import config from "@/../package.json" import config from "@/../package.json"

View File

@ -5,8 +5,8 @@ import {
GetCoverFromFile, GetCoverFromFile,
GetMetaFromFile, GetMetaFromFile,
SniffAudioExt SniffAudioExt
} from "@/decrypt/utils.ts"; } from "@/decrypt/utils";
import {Decrypt as RawDecrypt} from "@/decrypt/raw.ts"; import {Decrypt as RawDecrypt} from "@/decrypt/raw";
import {parseBlob as metaParseBlob} from "music-metadata-browser"; import {parseBlob as metaParseBlob} from "music-metadata-browser";
import {DecryptResult} from "@/decrypt/entity"; import {DecryptResult} from "@/decrypt/entity";

View File

@ -3,11 +3,12 @@ import {
BytesHasPrefix, BytesHasPrefix,
GetArrayBuffer, GetArrayBuffer,
GetImageFromURL, GetImageFromURL,
GetMetaFromFile, IMusicMeta, GetMetaFromFile,
IMusicMeta,
SniffAudioExt, SniffAudioExt,
WriteMetaToFlac, WriteMetaToFlac,
WriteMetaToMp3 WriteMetaToMp3
} from "@/decrypt/utils.ts"; } from "@/decrypt/utils";
import {parseBlob as metaParseBlob} from "music-metadata-browser"; import {parseBlob as metaParseBlob} from "music-metadata-browser";
import jimp from 'jimp'; import jimp from 'jimp';
@ -209,7 +210,7 @@ class NcmDecrypt {
} }
gatherResult(): DecryptResult { gatherResult(): DecryptResult {
if (!this.newMeta) throw Error("bad sequence") if (!this.newMeta || !this.blob) throw Error("bad sequence")
return { return {
title: this.newMeta.title, title: this.newMeta.title,
artist: this.newMeta.artists?.join("; "), artist: this.newMeta.artists?.join("; "),
@ -217,7 +218,7 @@ class NcmDecrypt {
album: this.newMeta.album, album: this.newMeta.album,
picture: this.image?.url, picture: this.image?.url,
file: URL.createObjectURL(this.blob), file: URL.createObjectURL(this.blob),
blob: this.blob as Blob, blob: this.blob,
mime: this.mime mime: this.mime
} }
} }

View File

@ -1,4 +1,4 @@
import {AudioMimeType, GetArrayBuffer, GetCoverFromFile, GetMetaFromFile, SniffAudioExt} from "@/decrypt/utils.ts"; import {AudioMimeType, GetArrayBuffer, GetCoverFromFile, GetMetaFromFile, SniffAudioExt} from "@/decrypt/utils";
import {DecryptResult} from "@/decrypt/entity"; import {DecryptResult} from "@/decrypt/entity";

View File

@ -7,7 +7,7 @@ import {
GetImageFromURL, GetImageFromURL,
GetMetaFromFile, GetMetaFromFile,
SniffAudioExt, WriteMetaToFlac, WriteMetaToMp3 SniffAudioExt, WriteMetaToFlac, WriteMetaToMp3
} from "@/decrypt/utils.ts"; } from "@/decrypt/utils";
import {parseBlob as metaParseBlob} from "music-metadata-browser"; import {parseBlob as metaParseBlob} from "music-metadata-browser";

View File

@ -1,4 +1,4 @@
import {BytesHasPrefix, FLAC_HEADER, OGG_HEADER} from "@/decrypt/utils.ts"; import {BytesHasPrefix, FLAC_HEADER, OGG_HEADER} from "@/decrypt/utils";
const QMOggPublicHeader1 = [ const QMOggPublicHeader1 = [
0x4f, 0x67, 0x67, 0x53, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x67, 0x67, 0x53, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,

View File

@ -5,7 +5,7 @@ import {
GetMetaFromFile, GetMetaFromFile,
SniffAudioExt, SniffAudioExt,
SplitFilename SplitFilename
} from "@/decrypt/utils.ts"; } from "@/decrypt/utils";
import {Decrypt as QmcDecrypt, HandlerMap} from "@/decrypt/qmc"; import {Decrypt as QmcDecrypt, HandlerMap} from "@/decrypt/qmc";

View File

@ -1,4 +1,4 @@
import {AudioMimeType, GetArrayBuffer, GetCoverFromFile, GetMetaFromFile, SniffAudioExt} from "@/decrypt/utils.ts"; import {AudioMimeType, GetArrayBuffer, GetCoverFromFile, GetMetaFromFile, SniffAudioExt} from "@/decrypt/utils";
import {DecryptResult} from "@/decrypt/entity"; import {DecryptResult} from "@/decrypt/entity";

View File

@ -1,5 +1,5 @@
import {Decrypt as RawDecrypt} from "./raw"; import {Decrypt as RawDecrypt} from "./raw";
import {GetArrayBuffer} from "@/decrypt/utils.ts"; import {GetArrayBuffer} from "@/decrypt/utils";
import {DecryptResult} from "@/decrypt/entity"; import {DecryptResult} from "@/decrypt/entity";
const TM_HEADER = [0x00, 0x00, 0x00, 0x20, 0x66, 0x74, 0x79, 0x70]; const TM_HEADER = [0x00, 0x00, 0x00, 0x20, 0x66, 0x74, 0x79, 0x70];

View File

@ -1,6 +1,6 @@
import {Decrypt as RawDecrypt} from "@/decrypt/raw"; import {Decrypt as RawDecrypt} from "@/decrypt/raw";
import {DecryptResult} from "@/decrypt/entity"; import {DecryptResult} from "@/decrypt/entity";
import {AudioMimeType, BytesHasPrefix, GetArrayBuffer, GetCoverFromFile, GetMetaFromFile} from "@/decrypt/utils.ts"; import {AudioMimeType, BytesHasPrefix, GetArrayBuffer, GetCoverFromFile, GetMetaFromFile} from "@/decrypt/utils";
import {parseBlob as metaParseBlob} from "music-metadata-browser"; import {parseBlob as metaParseBlob} from "music-metadata-browser";