@zenaveline/scraper 1.2.2 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenaveline/scraper",
3
- "version": "1.2.2",
3
+ "version": "1.3.2",
4
4
  "description": "Kumpulan scraper yang mudah digunakan!",
5
5
  "keywords": [
6
6
  "@zenaveline/scraper",
@@ -21,6 +21,7 @@
21
21
  "author": "Zenaveline",
22
22
  "license": "ISC",
23
23
  "dependencies": {
24
+ "@zenaveline/scraper": "^1.2.2",
24
25
  "axios": "^1.6.0",
25
26
  "cheerio": "^1.0.0",
26
27
  "crypto": "^1.0.1",
@@ -1,4 +1,3 @@
1
- const sharp = require('sharp')
2
1
  const axios = require('axios')
3
2
 
4
3
  async function loadImageFromURL(url) {
@@ -47,6 +46,7 @@ const escapeXml = (unsafe) => (unsafe || "").replace(/[<>&'"]/g, c => {
47
46
 
48
47
 
49
48
  async function drawCardSpotify({ bg, cover, title, artist }) {
49
+ const sharp = require('sharp')
50
50
  const width = 320;
51
51
  const height = 420;
52
52
  const cardX = 20;