music-metadata-browser
Advanced tools
Comparing version 0.9.1 to 0.10.0
@@ -13,4 +13,4 @@ "use strict"; | ||
const mm = require("music-metadata/lib/core"); | ||
const readable_web_to_node_stream_1 = require("readable-web-to-node-stream"); | ||
const toBuffer = require("typedarray-to-buffer"); | ||
const Browser2NodeStream_1 = require("./fetch/Browser2NodeStream"); | ||
const debug = initDebug('music-metadata-browser:main'); | ||
@@ -34,3 +34,3 @@ /** | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const ns = new Browser2NodeStream_1.Browser2NodeStream(stream); | ||
const ns = new readable_web_to_node_stream_1.ReadableWeToNodeStream(stream); | ||
const res = yield exports.parseNodeStream(ns, contentType, options); | ||
@@ -37,0 +37,0 @@ debug(`Completed parsing from stream bytesRead=${ns.bytesRead} / fileSize=${options && options.fileSize ? options.fileSize : '?'}`); |
@@ -65,3 +65,4 @@ // Karma configuration file, see link for more information | ||
browserStack: { | ||
forcelocal: true // force traffic through the local BrowserStack tunnel, passes flag through to BrowserStackTunnel | ||
forcelocal: true, // force traffic through the local BrowserStack tunnel, passes flag through to BrowserStackTunnel | ||
project: 'music-metadata-browser' | ||
}, | ||
@@ -71,3 +72,3 @@ | ||
customLaunchers: { | ||
bs_win_chrome_69: { | ||
bs_win_chrome: { | ||
base: 'BrowserStack', | ||
@@ -77,5 +78,5 @@ os: 'Windows', | ||
browser: 'Chrome', | ||
browser_version: '69.0' | ||
browser_version: '74.0' | ||
}, | ||
bs_win_firefox_62: { | ||
bs_win_firefox: { | ||
base: 'BrowserStack', | ||
@@ -85,5 +86,5 @@ os: 'Windows', | ||
browser: 'Firefox', | ||
browser_version: '62.0' | ||
browser_version: '66.0' | ||
}, | ||
bs_osx_safari_12: { | ||
bs_osx_safari: { | ||
base: 'BrowserStack', | ||
@@ -95,3 +96,3 @@ os: 'OS X', | ||
}, | ||
bs_win_edge_17: { | ||
bs_win_edge: { | ||
base: 'BrowserStack', | ||
@@ -101,3 +102,10 @@ os: 'Windows', | ||
browser: 'Edge', | ||
browser_version: '17' | ||
browser_version: '18' | ||
}, | ||
bs_win_opera: { | ||
base: 'BrowserStack', | ||
os: 'Windows', | ||
os_version: '10', | ||
browser: 'Opera', | ||
browser_version: '60' | ||
} | ||
@@ -104,0 +112,0 @@ }, |
{ | ||
"name": "music-metadata-browser", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"description": "Browserifed version of music-metadata", | ||
@@ -56,3 +56,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"clean": "del-cli dist/** src/**/*.js src/**/*.js.map src/**/*.d.ts test/**/*.js test/**/*.js.map coverage", | ||
"clean": "del-cli dist/** src/**/*.js src/**/*.js.map src/**/*.d.ts coverage", | ||
"compile-dist": "tsc -p src/tsconfig.dist.json", | ||
@@ -62,3 +62,3 @@ "compile-test": "tsc -p src/tsconfig.spec.json", | ||
"build": "npm run compile-dist", | ||
"tslint": "tslint 'src/**/*.ts' --exclude 'src/**/*.d.ts' 'test/**/*.ts' --exclude 'test/**/*.d.ts'", | ||
"tslint": "tslint 'src/**/*.ts' --exclude 'src/**/*.d.ts'", | ||
"eslint": "eslint karma.conf.js", | ||
@@ -71,3 +71,3 @@ "lint": "npm run tslint && npm run eslint", | ||
"browserstack": "karma start --browsers bs_win_chrome_69,bs_win_firefox_62,bs_osx_safari_12,bs_win_edge_17 --single-run --reporters coverage-istanbul,spec", | ||
"travis-karma-browserstack": "karma start --browsers bs_win_chrome_69,bs_win_firefox_62,bs_osx_safari_12,bs_win_edge_17 --single-run --reporters coverage-istanbul,spec,BrowserStack", | ||
"travis-karma-browserstack": "karma start --browsers bs_win_chrome,bs_osx_safari,bs_win_edge,bs_win_opera --single-run --reporters coverage-istanbul,spec,BrowserStack", | ||
"post-coveralls": "coveralls < coverage/lcov.info", | ||
@@ -106,2 +106,3 @@ "post-codacy": " codacy-coverage < coverage/lcov.info" | ||
"readable-stream": "^3.3.0", | ||
"readable-web-to-node-stream": "^1.0.0", | ||
"remove": "^0.1.5", | ||
@@ -108,0 +109,0 @@ "typedarray-to-buffer": "^3.1.5" |
@@ -5,3 +5,3 @@ [![Build Status](https://travis-ci.org/Borewit/music-metadata-browser.svg?branch=master)](https://travis-ci.org/Borewit/music-metadata-browser) | ||
[![dependencies Status](https://david-dm.org/Borewit/music-metadata-browser/status.svg)](https://david-dm.org/Borewit/music-metadata-browser) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/Borewit/music-metadata/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Borewit/music-metadata-browser?targetFile=package.json) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/Borewit/music-metadata-browser/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Borewit/music-metadata-browser?targetFile=package.json) | ||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/77818ccb061e445e907cacbafc6ac8c2)](https://www.codacy.com/app/Borewit/music-metadata-browser?utm_source=github.com&utm_medium=referral&utm_content=Borewit/music-metadata-browser&utm_campaign=Badge_Grade) | ||
@@ -79,5 +79,5 @@ [![Coverage Status](https://coveralls.io/repos/github/Borewit/music-metadata-browser/badge.svg?branch=master)](https://coveralls.io/github/Borewit/music-metadata-browser?branch=master) | ||
This is how you can import music-metadata in JavaScript, in you code: | ||
Import music-metadata in JavaScript: | ||
```JavaScript | ||
var mm = require('music-metadata-browser'); | ||
const mm = require('music-metadata-browser'); | ||
``` | ||
@@ -84,0 +84,0 @@ |
Sorry, the diff of this file is not supported yet
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
213393
8
12
356
+ Addedreadable-web-to-node-stream@1.1.4(transitive)