@inner-dj/client 0.2.1 → 0.2.6

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/NOTICES ADDED
@@ -0,0 +1,251 @@
1
+ @inner-dj/common
2
+ 0.2.3 <https://codeberg.org/sanin/inner-dj>
3
+ MIT License
4
+
5
+ Copyright (c) 2026 Cory Sanin
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+
25
+
26
+ ******************************
27
+
28
+ content-disposition
29
+ 3.0.0 <https://github.com/jshttp/content-disposition>
30
+ (The MIT License)
31
+
32
+ Copyright (c) 2014-2017 Douglas Christopher Wilson
33
+
34
+ Permission is hereby granted, free of charge, to any person obtaining
35
+ a copy of this software and associated documentation files (the
36
+ 'Software'), to deal in the Software without restriction, including
37
+ without limitation the rights to use, copy, modify, merge, publish,
38
+ distribute, sublicense, and/or sell copies of the Software, and to
39
+ permit persons to whom the Software is furnished to do so, subject to
40
+ the following conditions:
41
+
42
+ The above copyright notice and this permission notice shall be
43
+ included in all copies or substantial portions of the Software.
44
+
45
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
46
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
47
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
48
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
49
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
50
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
51
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
52
+
53
+
54
+ ******************************
55
+
56
+ fast-shuffle
57
+ 6.2.1 <https://github.com/philihp/fast-shuffle>
58
+ MIT License
59
+
60
+ Copyright (c) 2018 Phil Busby
61
+
62
+ Permission is hereby granted, free of charge, to any person obtaining a copy
63
+ of this software and associated documentation files (the "Software"), to deal
64
+ in the Software without restriction, including without limitation the rights
65
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
+ copies of the Software, and to permit persons to whom the Software is
67
+ furnished to do so, subject to the following conditions:
68
+
69
+ The above copyright notice and this permission notice shall be included in all
70
+ copies or substantial portions of the Software.
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
78
+ SOFTWARE.
79
+
80
+
81
+ ******************************
82
+
83
+ get-youtube-id-ng
84
+ 1.0.1 <https://github.com/CorySanin/get-youtube-id>
85
+ This software is released under the MIT license:
86
+
87
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
88
+ this software and associated documentation files (the "Software"), to deal in
89
+ the Software without restriction, including without limitation the rights to
90
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
91
+ the Software, and to permit persons to whom the Software is furnished to do so,
92
+ subject to the following conditions:
93
+
94
+ The above copyright notice and this permission notice shall be included in all
95
+ copies or substantial portions of the Software.
96
+
97
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
99
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
100
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
101
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
102
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
103
+
104
+
105
+ ******************************
106
+
107
+ jsonwebtoken
108
+ 9.0.3 <https://github.com/auth0/node-jsonwebtoken>
109
+ The MIT License (MIT)
110
+
111
+ Copyright (c) 2015 Auth0, Inc. <support@auth0.com> (http://auth0.com)
112
+
113
+ Permission is hereby granted, free of charge, to any person obtaining a copy
114
+ of this software and associated documentation files (the "Software"), to deal
115
+ in the Software without restriction, including without limitation the rights
116
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
117
+ copies of the Software, and to permit persons to whom the Software is
118
+ furnished to do so, subject to the following conditions:
119
+
120
+ The above copyright notice and this permission notice shall be included in all
121
+ copies or substantial portions of the Software.
122
+
123
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
125
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
126
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
127
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
128
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
129
+ SOFTWARE.
130
+
131
+
132
+ ******************************
133
+
134
+ ky
135
+ 2.1.0 <https://github.com/sindresorhus/ky>
136
+ MIT License
137
+
138
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
139
+
140
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
141
+
142
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
143
+
144
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
145
+
146
+
147
+ ******************************
148
+
149
+ lru-cache
150
+ 11.5.2 <https://github.com/isaacs/node-lru-cache>
151
+ # Blue Oak Model License
152
+
153
+ Version 1.0.0
154
+
155
+ ## Purpose
156
+
157
+ This license gives everyone as much permission to work with
158
+ this software as possible, while protecting contributors
159
+ from liability.
160
+
161
+ ## Acceptance
162
+
163
+ In order to receive this license, you must agree to its
164
+ rules. The rules of this license are both obligations
165
+ under that agreement and conditions to your license.
166
+ You must not do anything with this software that triggers
167
+ a rule that you cannot or will not follow.
168
+
169
+ ## Copyright
170
+
171
+ Each contributor licenses you to do everything with this
172
+ software that would otherwise infringe that contributor's
173
+ copyright in it.
174
+
175
+ ## Notices
176
+
177
+ You must ensure that everyone who gets a copy of
178
+ any part of this software from you, with or without
179
+ changes, also gets the text of this license or a link to
180
+ <https://blueoakcouncil.org/license/1.0.0>.
181
+
182
+ ## Excuse
183
+
184
+ If anyone notifies you in writing that you have not
185
+ complied with [Notices](#notices), you can keep your
186
+ license by taking all practical steps to comply within 30
187
+ days after the notice. If you do not do so, your license
188
+ ends immediately.
189
+
190
+ ## Patent
191
+
192
+ Each contributor licenses you to do everything with this
193
+ software that would otherwise infringe any patent claims
194
+ they can license or become able to license.
195
+
196
+ ## Reliability
197
+
198
+ No contributor can revoke this license.
199
+
200
+ ## No Liability
201
+
202
+ ***As far as the law allows, this software comes as is,
203
+ without any warranty or condition, and no contributor
204
+ will be liable to anyone for any damages related to this
205
+ software or this license, under any kind of legal claim.***
206
+
207
+
208
+ ******************************
209
+
210
+ spawn-but-with-promises
211
+ 1.0.4 <https://github.com/CorySanin/spawn-but-with-promises>
212
+ MIT License
213
+
214
+ Copyright (c) 2025 Cory Sanin
215
+
216
+ Permission is hereby granted, free of charge, to any person obtaining a copy
217
+ of this software and associated documentation files (the "Software"), to deal
218
+ in the Software without restriction, including without limitation the rights
219
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
220
+ copies of the Software, and to permit persons to whom the Software is
221
+ furnished to do so, subject to the following conditions:
222
+
223
+ The above copyright notice and this permission notice shall be included in all
224
+ copies or substantial portions of the Software.
225
+
226
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
227
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
228
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
229
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
230
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
231
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
232
+ SOFTWARE.
233
+
234
+
235
+ ******************************
236
+
237
+ yaml
238
+ 2.9.0 <https://github.com/eemeli/yaml>
239
+ Copyright Eemeli Aro <eemeli@gmail.com>
240
+
241
+ Permission to use, copy, modify, and/or distribute this software for any purpose
242
+ with or without fee is hereby granted, provided that the above copyright notice
243
+ and this permission notice appear in all copies.
244
+
245
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
246
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
247
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
248
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
249
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
250
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
251
+ THIS SOFTWARE.
package/README.md CHANGED
@@ -17,16 +17,25 @@ The inner-dj client is available via [npm](https://www.npmjs.com/package/@inner-
17
17
 
18
18
  ### npm
19
19
 
20
- ```
20
+ ```sh
21
21
  npx @inner-dj/client
22
22
  ```
23
23
 
24
24
  ### pnpm
25
25
 
26
- ```
26
+ ```sh
27
27
  pnpm dlx @inner-dj/client
28
28
  ```
29
29
 
30
+ ### single executable
31
+
32
+ Download the AMD64 Linux binary from [releases](https://codeberg.org/sanin/inner-dj/releases/latest).
33
+
34
+ ```sh
35
+ chmod +x inner-dj-client_x86_64
36
+ ./inner-dj-client_x86_64
37
+ ```
38
+
30
39
  ## Configuration
31
40
 
32
41
  By default, inner-dj client will attempt to load a configuration file at `config/config.yaml` (relative to the current working directory).
package/lib/src/player.js CHANGED
@@ -9,7 +9,7 @@ import { shuffle } from 'fast-shuffle';
9
9
  import { spawn } from 'spawn-but-with-promises';
10
10
  import { getFilesNoError, ytdlp, ytdlpDefaults, encodePayload } from '@inner-dj/common';
11
11
  import getYouTubeID from 'get-youtube-id-ng';
12
- import contentDisposition from 'content-disposition';
12
+ import * as contentDisposition from 'content-disposition';
13
13
  function emptyArray(arr) {
14
14
  while (arr.length) {
15
15
  arr.pop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inner-dj/client",
3
- "version": "0.2.1",
3
+ "version": "0.2.6",
4
4
  "description": "player component of inner-dj",
5
5
  "keywords": [
6
6
  "jukebox",
@@ -37,28 +37,32 @@
37
37
  },
38
38
  "files": [
39
39
  "lib/src",
40
- "!lib/**/*.js.map"
40
+ "!lib/**/*.js.map",
41
+ "LICENSE",
42
+ "NOTICES"
41
43
  ],
42
44
  "dependencies": {
43
- "content-disposition": "2.0.1",
44
- "fast-shuffle": "^6.2.0",
45
+ "@inner-dj/common": "0.2.3",
46
+ "content-disposition": "3.0.0",
47
+ "fast-shuffle": "^6.2.1",
45
48
  "get-youtube-id-ng": "1.0.1",
46
49
  "jsonwebtoken": "9.0.3",
47
- "ky": "^2.0.2",
48
- "lru-cache": "^11.5.1",
50
+ "ky": "^2.1.0",
51
+ "lru-cache": "^11.5.2",
49
52
  "spawn-but-with-promises": "^1.0.4",
50
- "yaml": "^2.9.0",
51
- "@inner-dj/common": "0.2.0"
53
+ "yaml": "^2.9.0"
52
54
  },
53
55
  "devDependencies": {
54
56
  "@sindresorhus/tsconfig": "8.1.0",
55
57
  "@types/jsonwebtoken": "^9.0.10",
56
- "@types/node": "^24.12.4",
57
- "@vercel/ncc": "0.44.0",
58
+ "@types/node": "^26.2.0",
59
+ "@vercel/ncc": "0.44.1",
60
+ "npm-attribution-generator": "^2.0.0",
58
61
  "typescript": "^7.0.2"
59
62
  },
60
63
  "scripts": {
61
- "build": "tsc && chmod +x ./lib/src/main.js",
64
+ "attribution": "generate-attribution && mv oss-attribution/attribution.txt ./NOTICES ; rm -rf ./oss-attribution",
65
+ "build": "tsc && chmod +x ./lib/src/main.js && pnpm run attribution",
62
66
  "ncc": "pnpm run build && ncc build lib/src/main.js --license licenses.txt",
63
67
  "sea": "pnpm run ncc && mkdir -p bin && node --build-sea sea-config.json",
64
68
  "start": "./lib/src/main.js"