Socket
Socket
Sign inDemoInstall

application-config

Package Overview
Dependencies
3
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2 to 1.0.0

12

index.js

@@ -36,3 +36,13 @@ var fs = require('fs')

fs.writeFile(self.filePath, JSON.stringify(data, null, 2), cb)
var tempFilePath =
self.filePath + '-' +
Math.random().toString().substr(2) +
Date.now().toString() +
path.extname(self.filePath)
fs.writeFile(tempFilePath, JSON.stringify(data, null, 2), function (err) {
if (err) { return cb(err) }
fs.rename(tempFilePath, self.filePath, cb)
})
})

@@ -39,0 +49,0 @@ }

4

package.json
{
"name": "application-config",
"version": "0.2.2",
"version": "1.0.0",
"license": "MIT",

@@ -17,3 +17,3 @@ "author": "Linus Unnebäck <linus@folkdatorn.se>",

"mocha": "^2.1.0",
"standard": "^5.0.1-0"
"standard": "^7.1.2"
},

@@ -20,0 +20,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc