Socket
Socket
Sign inDemoInstall

genius-lyrics-ts

Package Overview
Dependencies
18
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.27 to 0.0.28

3

dist/index.js

@@ -58,4 +58,5 @@ "use strict";

if (elem && elem.textContent?.length !== 0) {
let snippet = elem.innerHTML?.replace(/<br>/g, "\n").replace(/<(?!\s*br\s*\/?)[^>]+>/gi, "");
let snippet = elem.innerHTML?.replace(/<br>/g, "\n");
lyrics += snippet;
htmlDocument.querySelector("textarea")?.textContent + "\n\n";
}

@@ -62,0 +63,0 @@ });

{
"name": "genius-lyrics-ts",
"version": "0.0.27",
"version": "0.0.28",
"description": "Get lyrics from genius with Typescript, Javascript, or Node",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -22,7 +22,6 @@ import { parse } from "node-html-parser";

if (elem && elem.textContent?.length !== 0) {
let snippet = elem.innerHTML
?.replace(/<br>/g, "\n")
.replace(/<(?!\s*br\s*\/?)[^>]+>/gi, "");
let snippet = elem.innerHTML?.replace(/<br>/g, "\n");
lyrics += snippet;
htmlDocument.querySelector("textarea")?.textContent + "\n\n";
}

@@ -29,0 +28,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc