New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

icecast-metadata-player

Package Overview
Dependencies
Maintainers
0
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icecast-metadata-player - npm Package Compare versions

Comparing version 1.17.7 to 1.17.8

build/icecast-metadata-player-1.17.8.common.min.js

4

package.json
{
"name": "icecast-metadata-player",
"version": "1.17.7",
"version": "1.17.8",
"description": "Simple to use Javascript class that plays an Icecast stream with real-time metadata updates",

@@ -53,3 +53,3 @@ "keywords": [

"prettier": "^3.4.2",
"terser-webpack-plugin": "^5.3.10",
"terser-webpack-plugin": "^5.3.11",
"webpack": "^5.97.0",

@@ -56,0 +56,0 @@ "webpack-bundle-analyzer": "^4.10.2",

@@ -81,11 +81,11 @@ # Icecast Metadata Player

| - | - |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.7.main.min.js" download>`icecast-metadata-player-1.17.7.main.min.js`</a> | Core functionality (playback, metadata) <br> **Use this file in your `<script>` tag** |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.7.synaudio.min.js" download>`icecast-metadata-player-1.17.7.synaudio.min.js`</a> | Gapless playback support |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.7.mediasource.min.js" download>`icecast-metadata-player-1.17.7.mediasource.min.js`</a> | Mediasource playback support |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.7.mpeg.min.js" download>`icecast-metadata-player-1.17.7.mpeg.min.js`</a> | MPEG playback support (webaudio) |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.7.flac.min.js" download>`icecast-metadata-player-1.17.7.flac.min.js`</a> | FLAC playback support (webaudio) |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.7.opus.min.js" download>`icecast-metadata-player-1.17.7.opus.min.js`</a> | Opus playback support (webaudio) |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.7.vorbis.min.js" download>`icecast-metadata-player-1.17.7.vorbis.min.js`</a> | Vorbis playback support (webaudio) |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.7.common.min.js" download>`icecast-metadata-player-1.17.7.common.min.js`</a> | Common functions (webaudio) |
2. Add a `<script>` tag referencing `icecast-metadata-player-1.17.7.main.min.js` in your html.
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.8.main.min.js" download>`icecast-metadata-player-1.17.8.main.min.js`</a> | Core functionality (playback, metadata) <br> **Use this file in your `<script>` tag** |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.8.synaudio.min.js" download>`icecast-metadata-player-1.17.8.synaudio.min.js`</a> | Gapless playback support |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.8.mediasource.min.js" download>`icecast-metadata-player-1.17.8.mediasource.min.js`</a> | Mediasource playback support |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.8.mpeg.min.js" download>`icecast-metadata-player-1.17.8.mpeg.min.js`</a> | MPEG playback support (webaudio) |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.8.flac.min.js" download>`icecast-metadata-player-1.17.8.flac.min.js`</a> | FLAC playback support (webaudio) |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.8.opus.min.js" download>`icecast-metadata-player-1.17.8.opus.min.js`</a> | Opus playback support (webaudio) |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.8.vorbis.min.js" download>`icecast-metadata-player-1.17.8.vorbis.min.js`</a> | Vorbis playback support (webaudio) |
| <a href="https://raw.githubusercontent.com/eshaz/icecast-metadata-js/master/src/icecast-metadata-player/build/icecast-metadata-player-1.17.8.common.min.js" download>`icecast-metadata-player-1.17.8.common.min.js`</a> | Common functions (webaudio) |
2. Add a `<script>` tag referencing `icecast-metadata-player-1.17.8.main.min.js` in your html.
3. `IcecastMetadataPlayer` is made available as a global variable in your webpage to use wherever.

@@ -96,3 +96,3 @@

```html
<script src="icecast-metadata-player-1.17.7.main.min.js"></script>
<script src="icecast-metadata-player-1.17.8.main.min.js"></script>
<script>

@@ -442,3 +442,3 @@ const onMetadata = (metadata) => {

IcecastMetadataPlayer builds are supplied with a source map, which allows the minified code to be viewed as fully formatted code in a browser debugger.
* To enable the source map, simply copy `icecast-metadata-player-1.17.7.min.js.map` located in the build folder of this project to the location along side `icecast-metadata-player-1.17.7.min.js` in your website.
* To enable the source map, simply copy `icecast-metadata-player-1.17.8.min.js.map` located in the build folder of this project to the location along side `icecast-metadata-player-1.17.8.min.js` in your website.
* The source map can be used to step through and debug the code as well as see the full variable names and file origin on stack traces if you are facing any issues.

@@ -445,0 +445,0 @@

@@ -143,7 +143,24 @@ import {

const res = await request().catch((e) => {
const res = await request().catch(async (e) => {
// work around for Safari desktop to remove Range header for CORS
// Even though it's a safelisted header, and this shouldn't be needed
// See: https://fetch.spec.whatwg.org/#cors-safelisted-request-header
if (e.name === "TypeError" && e.message === "Load failed") {
if (typeof e === "function") {
// Safari 14 puts this error in a function.
// See https://github.com/eshaz/icecast-metadata-js/issues/207
const promiseError = await e().catch((err) => err);
if (
typeof promiseError === "object" &&
promiseError.name === "TypeError" &&
promiseError.message ===
"Request header field Range is not Allowed byt Access-Control-Allow-Headers."
) {
delete headers["Range"];
return request();
}
} else if (
typeof e === "object" &&
e.name === "TypeError" &&
e.message === "Load failed"
) {
delete headers["Range"];

@@ -150,0 +167,0 @@ return request();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc