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

@solid-primitives/audio

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/audio - npm Package Compare versions

Comparing version

to
1.3.8

5

dist/index.js

@@ -46,3 +46,6 @@ import { onMount, onCleanup, createEffect } from 'solid-js';

const pause = () => player.pause();
const seek = (time) => player.fastSeek ? player.fastSeek(time) : player.currentTime = time;
const seek = (time) => (
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
player.fastSeek ? player.fastSeek(time) : player.currentTime = time
);
const setVolume = (volume) => player.volume = volume;

@@ -49,0 +52,0 @@ return { play, pause, seek, setVolume, player };

8

package.json
{
"name": "@solid-primitives/audio",
"version": "1.3.7",
"version": "1.3.8",
"description": "Primitives to manage audio and single sounds.",

@@ -70,2 +70,3 @@ "author": "David Di Biase <dave.dibiase@gmail.com>",

},
"typesVersions": {},
"keywords": [

@@ -77,6 +78,6 @@ "audio",

"devDependencies": {
"solid-heroicons": "^2.0.3"
"solid-heroicons": "^3.1.1"
},
"dependencies": {
"@solid-primitives/utils": "^5.0.0"
"@solid-primitives/utils": "^5.2.1"
},

@@ -86,3 +87,2 @@ "peerDependencies": {

},
"typesVersions": {},
"scripts": {

@@ -89,0 +89,0 @@ "start": "vite serve dev",

@@ -53,3 +53,3 @@ <p>

src: AudioSource,
handlers: AudioEventHandlers = {}
handlers: AudioEventHandlers = {},
): {

@@ -86,3 +86,3 @@ play: VoidFunction;

playing?: Accessor<boolean>,
volume?: Accessor<number>
volume?: Accessor<number>,
): [

@@ -101,3 +101,3 @@ {

pause: VoidFunction;
}
},
];

@@ -104,0 +104,0 @@ ```

Sorry, the diff of this file is not supported yet