Browse Source

chore: update deps

20230320
MengYX 3 years ago
parent
commit
8facd65834
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 41307
      package-lock.json
  2. 3
      package.json
  3. 2
      src/decrypt/kgm.ts
  4. 4
      src/decrypt/kwm.ts
  5. 9
      src/decrypt/ncm.ts
  6. 2
      src/decrypt/ncmcache.ts
  7. 2
      src/decrypt/qmc.ts
  8. 2
      src/decrypt/qmcMask.ts
  9. 2
      src/decrypt/qmccache.ts
  10. 2
      src/decrypt/raw.ts
  11. 2
      src/decrypt/tm.ts
  12. 2
      src/decrypt/xm.ts

41307
package-lock.json

File diff suppressed because it is too large

3
package.json

@ -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"
}

2
src/decrypt/kgm.ts

@ -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"

4
src/decrypt/kwm.ts

@ -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";

9
src/decrypt/ncm.ts

@ -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
}
}

2
src/decrypt/ncmcache.ts

@ -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";

2
src/decrypt/qmc.ts

@ -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";

2
src/decrypt/qmcMask.ts

@ -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,

2
src/decrypt/qmccache.ts

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

2
src/decrypt/raw.ts

@ -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";

2
src/decrypt/tm.ts

@ -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];

2
src/decrypt/xm.ts

@ -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";

Loading…
Cancel
Save