ytdl-core
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -143,6 +143,6 @@ const miniget = require('miniget'); | ||
// Check for updates. | ||
const package = require('../package.json'); | ||
const pkg = require('../package.json'); | ||
exports.lastUpdateCheck = 0; | ||
exports.checkForUpdates = () => { | ||
if (!process.env.YTDL_NO_UPDATE && !package.version.startsWith('0.0.0-') && | ||
if (!process.env.YTDL_NO_UPDATE && !pkg.version.startsWith('0.0.0-') && | ||
Date.now() - exports.lastUpdateCheck >= 1000 * 60 * 60 * 12) { | ||
@@ -153,3 +153,3 @@ exports.lastUpdateCheck = Date.now(); | ||
}).text().then(response => { | ||
if (JSON.parse(response).tag_name !== `v${package.version}`) { | ||
if (JSON.parse(response).tag_name !== `v${pkg.version}`) { | ||
console.warn('\x1b[33mWARNING:\x1B[0m ytdl-core is out of date! Update with "npm install ytdl-core@latest".'); | ||
@@ -156,0 +156,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87552