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

nyks

Package Overview
Dependencies
Maintainers
3
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nyks - npm Package Compare versions

Comparing version 5.10.1 to 5.10.2

14

fs/patchJSON.js
"use strict";
const path = require('path');
const fs = require('fs');
const mkdirpSync = require('./mkdirpSync');
const writeLazySafeSync = require('./writeLazySafeSync');
function patchJSON(target, cb, src) {
var entry = JSON.parse(fs.readFileSync(src || target));
var entry = {};
try {
entry = JSON.parse(fs.readFileSync(src || target));
} catch(err) { }
let returned = cb(entry);
mkdirpSync(path.dirname(target));
fs.writeFileSync(target, JSON.stringify((returned === undefined) ? entry : returned, null, 2));
returned = JSON.stringify((returned === undefined) ? entry : returned, null, 2);
writeLazySafeSync(target, returned);
}
module.exports = patchJSON;

@@ -59,3 +59,2 @@ "use strict";

var req = transport.request(query, function(res) {

@@ -62,0 +61,0 @@ if(!(res.statusCode >= 200 && res.statusCode < 300))

{
"name": "nyks",
"version": "5.10.1",
"version": "5.10.2",
"description": "nodejs exupery style",

@@ -5,0 +5,0 @@ "keywords": [

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