Skip to content

Commit

Permalink
fix exports path, bump version for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
mchangrh committed Jun 29, 2022
1 parent 5857ea3 commit 94d7af6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ Non-Minified (Console): [sb.js](docs/sb.js)
UserScript Loader: [sb-loader.user.js](docs/sb-loader.user.js)

Loader Taget: [sb-nosettings.min.js](docs/sb-nosettings.min.js)

## CDNs
GitHub: `https://raw.githubusercontent.com/mchangrh/sb.js/main/docs/sb.min.js`
GitHub Pages: `https://mchangrh.github.io/sb.js/sb.min.js`
CloudFlare Pages: `https://sbjs.pages.dev/sb.min.js`
JSDelivr: `https://cdn.jsdelivr.net/npm/@mchangrh/sb.js/docs/sb.min.js`
unpkg: `https://unpkg.com/@mchangrh/sb.js/docs/sb.min.js`
2 changes: 2 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ <h1 id="sb-js">sb.js</h1>
<a href="https://github.com/mchangrh/sb.js">GitHub</a>
<a href="https://mchangrh.github.io/sb.js">GitHub Pages</a>
<a href="https://sbjs.pages.dev">Cloudflare Pages</a>
<a href="https://cdn.jsdelivr.net/npm/@mchangrh/sb.js/docs/">JSDelivr</a>
<a href="https://unpkg.com/browse/@mchangrh/sb.js/docs/">unpkg</a>
</pre></body>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@mchangrh/sb.js",
"version": "1.0.0",
"version": "1.0.1",
"description": "SponsorBlock userscript/bookmarklet clients",
"main": "dist/sb.min.js",
"main": "docs/sb.min.js",
"scripts": {
"build": "node build.js",
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion src/sb.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ https://github.com/mchangrh/sb.js
Uses SponsorBlock data licensed used under CC BY-NC-SA 4.0 from https://sponsor.ajay.app/
LICENCED UNDER LGPL-3.0-or-later */
const VERSION = "1.0.0"; // version constant
const VERSION = "1.0.1"; // version constant

// initial setup
let video, videoID, skipSegments, muteSegments, muteEndTime;
Expand Down

0 comments on commit 94d7af6

Please sign in to comment.