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

@micmac/youtube

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@micmac/youtube - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

16

main.js

@@ -75,4 +75,5 @@ // fonction searchVideos retourne les 10 dernières videos de la chaine beerus

var description = res.data.items[0].snippet.description;
res.data.items[0].snippet.description = description.slice(0,200);
res.data.items[0].snippet.description2 = description.slice(200);
var descriptionSplit = splitTxt(description);
res.data.items[0].snippet.description = descriptionSplit.chaine1;
res.data.items[0].snippet.description2 = descriptionSplit.chaine2;
this.params = {

@@ -106,1 +107,12 @@ css: cssFile,

//};
function splitTxt(_chaine) {
let lgTxt = _chaine.length();
let chaine1 = _chaine.slice(0,Math.max(Math.floor(lgTxt/2),200));
let chaine2 = _chaine.slice(Math.max(Math.floor(lgTxt/2),200));
let lastSpacePos = chaine1.lastIndexOf(' ');
let pieceOfChaine = chaine1.slice(lastSpacePos);
chaine1 = chaine1.slice(0, lastSpacePos);
chaine2 = pieceOfChaine + chaine2;
return {chaine1:'',chaine2:''};
};

2

package.json
{
"name": "@micmac/youtube",
"version": "2.0.1",
"version": "2.0.2",
"description": "utilisation api youtube data",

@@ -5,0 +5,0 @@ "main": "main.js",

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