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.17 to 0.0.18

3

dist/index.js

@@ -28,3 +28,2 @@ "use strict";

// src/utils/index.ts
var isServer = () => !(typeof window != "undefined" && window.document);
var checkOptions = (options) => {

@@ -54,3 +53,3 @@ let { apiKey, title, artist } = options;

const html = await response.text();
const htmlDocument = isServer() ? new import_happy_dom.Window().document : window.document;
const htmlDocument = import_happy_dom.Window ? new import_happy_dom.Window().document : window.document;
htmlDocument.body.innerHTML = html;

@@ -57,0 +56,0 @@ let lyrics = htmlDocument.querySelector('div[class="lyrics"]')?.textContent?.trim();

{
"name": "genius-lyrics-ts",
"version": "0.0.17",
"version": "0.0.18",
"description": "Get lyrics from genius with Typescript, Javascript, or Node",
"main": "dist/index.js",
"browser": {
"happy-dom": false
"happy-dom": false,
"./dist/index.js": "./dist/index.js"
},

@@ -9,0 +10,0 @@ "module": "dist/index.mjs",

import { Window } from "happy-dom";
import { isServer } from ".";

@@ -12,3 +11,3 @@ /**

const html = await response.text();
const htmlDocument = isServer() ? new Window().document : window.document;
const htmlDocument = Window ? new Window().document : window.document;
htmlDocument.body.innerHTML = html;

@@ -15,0 +14,0 @@

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