Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snd-lib

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snd-lib - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

6

dist/constant.js

@@ -150,11 +150,11 @@ "use strict";

json: _01_json_1.default,
audioSrc: "https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.1/assets/sounds/sprite/01/audioSprite.mp3",
audioSrc: "https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.3/assets/sounds/sprite/01/audioSprite.mp3",
},
[KITS.SND02]: {
json: _02_json_1.default,
audioSrc: "https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.1/assets/sounds/sprite/02/audioSprite.mp3",
audioSrc: "https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.3/assets/sounds/sprite/02/audioSprite.mp3",
},
[KITS.SND03]: {
json: _03_json_1.default,
audioSrc: "https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.1/assets/sounds/sprite//03/audioSprite.mp3",
audioSrc: "https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.3/assets/sounds/sprite//03/audioSprite.mp3",
},

@@ -161,0 +161,0 @@ };

@@ -136,4 +136,6 @@ "use strict";

return this.playSwipe(options);
if (options.index !== null && options.index !== undefined && options.index !== 0) {
throw ("Index out of range");
if (!(soundKey.includes(constant_1.SOUNDS.TAP) || soundKey.includes(constant_1.SOUNDS.TYPE) || soundKey.includes(constant_1.SOUNDS.SWIPE))) {
if (options.index !== null && options.index !== undefined && options.index !== 0) {
throw ("Index out of range");
}
}

@@ -140,0 +142,0 @@ this._soundKit.play(soundKey, options);

{
"name": "snd-lib",
"version": "1.2.2",
"version": "1.2.3",
"description": "With the spread of smart speakers and wireless earphones, the importance of sound in interaction design is increasing day by day. However, compared to many researches and practices in the fields of visual design and animation in interaction design, it seems that not enough knowledge has been shared about interaction design with sound, except in some fields such as games.\nInteraction should not be limited to text and visuals, but should be richer than that. In order to make the intensity of interaction richer and stronger, we should have more discussion about sound.\nHowever, in the area of interaction design, there are fewer sound designers than visual designers and programmers, and there are certainly barriers to creating sound.\nTo encourage UX developers to further explore discussions in the area of interaction design with sound, we have developed UI sound assets that can be used for free without worrying about licensing.\nUI sound assets, developed in collaboration with multiple sound designers, are designed to fit the components used in many modern UIs. Each asset is individually designed with a different concept, so you can feel the change in texture and tone by switching the sounds.\nWe hope that you will use it as a resource to further refine the quality of UX for your apps, services, and products under development, and that it will help you to explore the field of sound design.\nAll UI sounds published on \"SND\" can be used for free, regardless of whether they are commercial or non-commercial. Therefore, you can use them not only for prototyping, but also for implementation in your services. *Please check the terms of use for details.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -40,3 +40,3 @@ # SND

```html
<script src="https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.2/dist/browser/snd.js?kit=01"></script>
<script src="https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.3/dist/browser/snd.js?kit=01"></script>
```

@@ -73,3 +73,3 @@

<!-- Load JavaScript file from CDN -->
<script src="https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.2/dist/browser/snd.js?kit=01"></script>
<script src="https://cdn.jsdelivr.net/gh/snd-lib/snd-lib@v1.2.3/dist/browser/snd.js?kit=01"></script>
</head>

@@ -76,0 +76,0 @@ <body>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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