soundcloud-api-ts 1.6.4 → 1.6.5
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 +3 -3
- package/dist/{chunk-LNMDNQSC.js → chunk-TDMKITMS.js} +2 -2
- package/dist/{chunk-LNMDNQSC.js.map → chunk-TDMKITMS.js.map} +1 -1
- package/dist/{chunk-TZWEL7VA.mjs → chunk-ZK2KWVSV.mjs} +2 -2
- package/dist/{chunk-TZWEL7VA.mjs.map → chunk-ZK2KWVSV.mjs.map} +1 -1
- package/dist/cli.js +6 -6
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +63 -63
- package/dist/index.mjs +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[]()
|
|
10
10
|
[](https://twin-paws.github.io/soundcloud-api-ts/)
|
|
11
11
|
|
|
12
|
-
A fully-typed TypeScript client for the SoundCloud API. Zero dependencies, native `fetch`, built-in OAuth 2.
|
|
12
|
+
A fully-typed TypeScript client for the SoundCloud API. Zero dependencies, native `fetch`, built-in OAuth 2.1 + PKCE, automatic retry, and an interactive CLI.
|
|
13
13
|
|
|
14
14
|
## Why soundcloud-api-ts?
|
|
15
15
|
|
|
@@ -29,7 +29,7 @@ A fully-typed TypeScript client for the SoundCloud API. Zero dependencies, nativ
|
|
|
29
29
|
| --- | --- | --- | --- |
|
|
30
30
|
| TypeScript | ✅ Native | ✅ | ✅ |
|
|
31
31
|
| Dependencies | **0** | 1 | 3 (lodash, cookie, undici) |
|
|
32
|
-
| Auth method | **Official OAuth 2.
|
|
32
|
+
| Auth method | **Official OAuth 2.1** | ⚠️ Scrape client ID from browser | ⚠️ Scrape client ID from browser |
|
|
33
33
|
| PKCE support | ✅ | ❌ | ❌ |
|
|
34
34
|
| Auto token refresh | ✅ on 401 | ❌ | ❌ |
|
|
35
35
|
| Auto retry (429/5xx) | ✅ exponential backoff | ❌ | ❌ |
|
|
@@ -117,7 +117,7 @@ const track = await sc.tracks.getTrack(123456);
|
|
|
117
117
|
const streams = await sc.tracks.getStreams(123456);
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
## OAuth 2.
|
|
120
|
+
## OAuth 2.1 Flow
|
|
121
121
|
|
|
122
122
|
```ts
|
|
123
123
|
import { SoundCloudClient, generateCodeVerifier, generateCodeChallenge } from "soundcloud-api-ts";
|
|
@@ -1738,5 +1738,5 @@ exports.unrepostPlaylist = unrepostPlaylist;
|
|
|
1738
1738
|
exports.unrepostTrack = unrepostTrack;
|
|
1739
1739
|
exports.updatePlaylist = updatePlaylist;
|
|
1740
1740
|
exports.updateTrack = updateTrack;
|
|
1741
|
-
//# sourceMappingURL=chunk-
|
|
1742
|
-
//# sourceMappingURL=chunk-
|
|
1741
|
+
//# sourceMappingURL=chunk-TDMKITMS.js.map
|
|
1742
|
+
//# sourceMappingURL=chunk-TDMKITMS.js.map
|