Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

youtube-transcript

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-transcript - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

dist/index.d.ts

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc