jsmediatags
Advanced tools
Comparing version 3.9.3 to 3.9.4
@@ -250,3 +250,3 @@ 'use strict'; | ||
if (flags && flags.format.unsynchronisation) { | ||
if (flags && flags.format.unsynchronisation && !id3header.flags.unsynchronisation) { | ||
frameData = this.getUnsyncFileReader(frameData, frameDataOffset, frameSize); | ||
@@ -253,0 +253,0 @@ frameDataOffset = 0; |
{ | ||
"name": "jsmediatags", | ||
"version": "3.9.3", | ||
"version": "3.9.4", | ||
"description": "Media Tags Reader (ID3, MP4)", | ||
@@ -51,11 +51,11 @@ "author": { | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.5.0", | ||
"@babel/cli": "^7.5.0", | ||
"@babel/cli": "^7.12.16", | ||
"@babel/core": "^7.5.0", | ||
"babel-jest": "^24.8.0", | ||
"@babel/plugin-proposal-class-properties": "^7.5.0", | ||
"@babel/plugin-transform-block-scoping": "^7.4.4", | ||
"@babel/plugin-transform-classes": "^7.4.4", | ||
"@babel/plugin-transform-flow-strip-types": "^7.4.4", | ||
"@babel/plugin-transform-modules-commonjs": "^7.5.0", | ||
"@babel/plugin-transform-flow-strip-types": "^7.4.4", | ||
"@babel/preset-env": "^7.5.0", | ||
"babel-jest": "^26.6.3", | ||
"babelify": "^10.0.0", | ||
@@ -65,6 +65,6 @@ "browserify": "^16.3.0", | ||
"google-closure-compiler": "20170626.0.0", | ||
"jest-cli": "^24.8.0", | ||
"jest-cli": "^26.6.3", | ||
"react": "^16.2.0", | ||
"react-native": "^0.60.0", | ||
"watchify": "^3.11.1" | ||
"react-native": "^0.63.4", | ||
"watchify": "^4.0.0" | ||
}, | ||
@@ -71,0 +71,0 @@ "scripts": { |
@@ -90,2 +90,6 @@ # JS MediaTags | ||
``` | ||
Note that the URI has to include the scheme (e.g.: https://), as relative URIs are not supported. | ||
```javascript | ||
@@ -266,2 +270,15 @@ // From Blob | ||
### Picture data | ||
The `picture` tag contains an array buffer of all the bytes of the album artwork image as well as the content type of the image. The data can be converted and displayed as an image using: | ||
```javascript | ||
const { data, format } = result.tags.picture; | ||
let base64String = ""; | ||
for (const i = 0; i < data.length; i++) { | ||
base64String += String.fromCharCode(data[i]); | ||
} | ||
img.src = `data:${format};base64,${base64String}`; | ||
``` | ||
### HTTP Access Control (CORS) | ||
@@ -268,0 +285,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
471
1
175229
28
3562