youtube-transcript
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -16,3 +16,3 @@ export declare class YoutubeTranscriptError extends Error { | ||
*/ | ||
export default class YoutubeTranscript { | ||
export declare class YoutubeTranscript { | ||
/** | ||
@@ -19,0 +19,0 @@ * Fetch transcript from YTB Video |
@@ -241,3 +241,3 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var p=require('phin');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var p__default=/*#__PURE__*/_interopDefaultLegacy(p);/*! ***************************************************************************** | ||
} | ||
var matchId = RE_YOUTUBE.exec(videoId); | ||
var matchId = videoId.match(RE_YOUTUBE); | ||
if (matchId && matchId.length) { | ||
@@ -249,2 +249,2 @@ return matchId[1]; | ||
return YoutubeTranscript; | ||
}());exports.YoutubeTranscriptError=YoutubeTranscriptError;exports.default=YoutubeTranscript; | ||
}());exports.YoutubeTranscript=YoutubeTranscript;exports.YoutubeTranscriptError=YoutubeTranscriptError; |
@@ -245,3 +245,3 @@ import p from 'phin'; | ||
} | ||
var matchId = RE_YOUTUBE.exec(videoId); | ||
var matchId = videoId.match(RE_YOUTUBE); | ||
if (matchId && matchId.length) { | ||
@@ -255,3 +255,2 @@ return matchId[1]; | ||
export default YoutubeTranscript; | ||
export { YoutubeTranscriptError }; | ||
export { YoutubeTranscript, YoutubeTranscriptError }; |
{ | ||
"name": "youtube-transcript", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Fetch transcript from a youtube video", | ||
@@ -31,3 +31,7 @@ "main": "dist/youtube-transcript.common.js", | ||
], | ||
"repository": "https://github.com/Kakulukian/youtube-transcript.git", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"homepage": "https://github.com/Kakulukian/youtube-transcript" | ||
} |
@@ -23,3 +23,3 @@ # youtube-transcript | ||
```js | ||
import YoutubeTranscript from 'youtube-transcript'; | ||
import { YoutubeTranscript } from 'youtube-transcript'; | ||
@@ -26,0 +26,0 @@ YoutubeTranscript.fetchTranscript('videoId or URL').then(console.log); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
26493
525