Comparing version 1.0.0 to 1.0.1
@@ -54,10 +54,16 @@ const fs = require('fs'), os = require('os'), path = require('path'), https = require('https') | ||
// if(creatingNewFile) { | ||
// try { | ||
// let oldPath = path.join(os.homedir(), 'pet.json') | ||
// let oldFile = require(oldPath) | ||
// if(oldFile.$ === 0 || oldFile.v === 0) _.$('old-data-file', oldPath) | ||
// } catch(e) {} | ||
// } | ||
if(creatingNewFile) { | ||
try { | ||
let oldPath = path.join(os.homedir(), '.petpet.json') | ||
let oldFile = require(oldPath) | ||
if(oldFile.$ === 0) _.$('old-data-file', oldPath) | ||
} catch(e) {} | ||
try { | ||
let oldPath = path.join(os.homedir(), 'petpet.json') | ||
let oldFile = require(oldPath) | ||
if(oldFile.$ === 0 || oldFile.v === 0) _.$('old-data-file', oldPath) | ||
} catch(e) {} | ||
} | ||
if(updateAvailable) _.$('update-available', currentVersion, updateAvailable, _.nbspify(`npm i ${_._.name} -g`)) | ||
@@ -64,0 +70,0 @@ return $ |
{ | ||
"name": "pet", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "catgirl petting cli", | ||
@@ -5,0 +5,0 @@ "preferGlobal": true, |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12353
300
1
5