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-service": "^4.5.13",
"babel-plugin-component": "^1.1.1",
"jest": "^27.4.5",
"sass": "^1.38.1",
"sass-loader": "^10.2.0",
"semver": "^7.3.5",
"threads-plugin": "^1.4.0",
"typescript": "~4.1.6",
"typescript": "^4.5.4",
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.14"
}

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import {
GetImageFromURL,
GetMetaFromFile,
SniffAudioExt, WriteMetaToFlac, WriteMetaToMp3
} from "@/decrypt/utils.ts";
} from "@/decrypt/utils";
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 = [
0x4f, 0x67, 0x67, 0x53, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,

View File

@ -5,7 +5,7 @@ import {
GetMetaFromFile,
SniffAudioExt,
SplitFilename
} from "@/decrypt/utils.ts";
} from "@/decrypt/utils";
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";

View File

@ -1,5 +1,5 @@
import {Decrypt as RawDecrypt} from "./raw";
import {GetArrayBuffer} from "@/decrypt/utils.ts";
import {GetArrayBuffer} from "@/decrypt/utils";
import {DecryptResult} from "@/decrypt/entity";
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 {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";