Skip to content

Commit

Permalink
Merge pull request #53 from twlite/fix-fs-leftover
Browse files Browse the repository at this point in the history
Fix fs leftover
  • Loading branch information
twlite authored Oct 21, 2023
2 parents 5c4dede + 08488f1 commit 0fd5c69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: npm install
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "youtube-sr",
"version": "4.3.5",
"version": "4.3.6",
"description": "Simple package to make YouTube search.",
"files": [
"dist"
Expand Down
2 changes: 0 additions & 2 deletions src/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* SOFTWARE.
*/

import { writeFileSync } from "fs";
import { Formatter } from "./formatter";
import { Channel, Video, Playlist } from "./Structures/exports";

Expand Down Expand Up @@ -515,7 +514,6 @@ class Util {

static getMix(html: string): Playlist {
let data = null;
writeFileSync("test.html", html);

try {
const parsed = JSON.parse(html.split("var ytInitialData = ")[1].split(";</script>")[0]);
Expand Down

0 comments on commit 0fd5c69

Please sign in to comment.