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

pet

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pet - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

20

lib/updater.js

@@ -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,

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