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

genius-lyrics-ts

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genius-lyrics-ts - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

dist/index.js

@@ -52,3 +52,3 @@ "use strict";

const html = await response.text();
const htmlDocument = typeof window != "undefined" && window.document ? new import_jsdom.JSDOM(html).window.document : new DOMParser().parseFromString(html, "text/html");
const htmlDocument = typeof window != "undefined" && window.document ? new DOMParser().parseFromString(html, "text/html") : new import_jsdom.JSDOM(html).window.document;
let lyrics = htmlDocument.querySelector('div[class="lyrics"]')?.textContent?.trim();

@@ -55,0 +55,0 @@ if (!lyrics) {

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

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

@@ -11,4 +11,4 @@ import { JSDOM } from "jsdom";

typeof window != "undefined" && window.document
? new JSDOM(html).window.document
: new DOMParser().parseFromString(html, "text/html");
? new DOMParser().parseFromString(html, "text/html")
: new JSDOM(html).window.document;

@@ -15,0 +15,0 @@ let lyrics = htmlDocument

Sorry, the diff of this file is not supported yet

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