clicktone 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +19 -15
package/README.md
CHANGED
|
@@ -34,8 +34,8 @@ import ClickTone from 'clicktone';
|
|
|
34
34
|
<sub>ClickTone uses the Web Audio API, which supports many audio file formats: MP3, WAV, OGG, AAC and others. Note that not all browsers support these formats.</sub>
|
|
35
35
|
```javascript
|
|
36
36
|
const sound = new ClickTone({
|
|
37
|
-
|
|
38
|
-
file: new URL('./sound.mp3', import.meta.url).href,
|
|
37
|
+
file: './sound.mp3',
|
|
38
|
+
// file: new URL('./sound.mp3', import.meta.url).href,
|
|
39
39
|
volume: 0.7,
|
|
40
40
|
throttle: 100,
|
|
41
41
|
callback: () => { console.log('Playback ended') },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clicktone",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "ClickTone is designed to control audio playback with various settings, including volume control, callback and debug mode. It also includes iOS support.",
|
|
5
5
|
"author": "ux-ui.pro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"clean": "rimraf dist",
|
|
18
18
|
"build": "vite build",
|
|
19
|
-
"lint:js": "eslint
|
|
20
|
-
"lint:fix:js": "eslint
|
|
21
|
-
"format:js": "prettier --write
|
|
19
|
+
"lint:js": "eslint src/**/*.{ts,js}",
|
|
20
|
+
"lint:fix:js": "eslint src/**/*.{ts,js} --fix",
|
|
21
|
+
"format:js": "prettier --write src/**/*.{ts,js}",
|
|
22
22
|
"lint:fix": "yarn lint:fix:js && yarn format:js"
|
|
23
23
|
},
|
|
24
24
|
"source": "src/index.ts",
|
|
@@ -27,28 +27,32 @@
|
|
|
27
27
|
"browser": "./dist/index.umd.js",
|
|
28
28
|
"types": "dist/index.d.ts",
|
|
29
29
|
"exports": {
|
|
30
|
-
"
|
|
31
|
-
|
|
30
|
+
".": {
|
|
31
|
+
"require": "./dist/index.cjs.js",
|
|
32
|
+
"import": "./dist/index.es.js",
|
|
33
|
+
"default": "./dist/index.umd.js"
|
|
34
|
+
},
|
|
35
|
+
"./dist/*": "./dist/*"
|
|
32
36
|
},
|
|
33
37
|
"files": [
|
|
34
38
|
"dist/"
|
|
35
39
|
],
|
|
36
40
|
"devDependencies": {
|
|
37
|
-
"@eslint/js": "9.
|
|
41
|
+
"@eslint/js": "9.22.0",
|
|
38
42
|
"@rollup/plugin-terser": "0.4.4",
|
|
39
|
-
"@types/node": "22.13.
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
41
|
-
"@typescript-eslint/parser": "8.
|
|
42
|
-
"eslint": "9.
|
|
43
|
-
"eslint-config-prettier": "10.
|
|
43
|
+
"@types/node": "22.13.10",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "8.26.0",
|
|
45
|
+
"@typescript-eslint/parser": "8.26.0",
|
|
46
|
+
"eslint": "9.22.0",
|
|
47
|
+
"eslint-config-prettier": "10.1.1",
|
|
44
48
|
"eslint-import-resolver-typescript": "3.8.3",
|
|
45
49
|
"eslint-plugin-import": "2.31.0",
|
|
46
50
|
"globals": "16.0.0",
|
|
47
|
-
"prettier": "3.5.
|
|
51
|
+
"prettier": "3.5.3",
|
|
48
52
|
"rimraf": "6.0.1",
|
|
49
53
|
"typescript": "5.8.2",
|
|
50
|
-
"vite": "6.2.
|
|
51
|
-
"vite-plugin-dts": "4.5.
|
|
54
|
+
"vite": "6.2.1",
|
|
55
|
+
"vite-plugin-dts": "4.5.3"
|
|
52
56
|
},
|
|
53
57
|
"keywords": [
|
|
54
58
|
"MP3",
|