Skip to content

Commit

Permalink
Remove node-fetch dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Elanis committed Jan 22, 2023
1 parent 2f82fc6 commit d88882a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 152 deletions.
2 changes: 0 additions & 2 deletions YoutubeInternal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import fetch from 'node-fetch';

const iso8601DurationRegex = /(-)?P(?:([.,\d]+)Y)?(?:([.,\d]+)M)?(?:([.,\d]+)W)?(?:([.,\d]+)D)?T(?:([.,\d]+)H)?(?:([.,\d]+)M)?(?:([.,\d]+)S)?/;
function parseISO8601Duration(iso8601Duration) {
const matches = iso8601Duration.match(iso8601DurationRegex);
Expand Down
2 changes: 0 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import fetch from 'node-fetch';

import fs from 'fs';

import YoutubeInternal from './YoutubeInternal.js';
Expand Down
144 changes: 0 additions & 144 deletions package-lock.json

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"node-fetch": "^3.2.10"
}
"license": "ISC"
}

0 comments on commit d88882a

Please sign in to comment.