New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nyks

Package Overview
Dependencies
Maintainers
2
Versions
253
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 2.15.0 to 2.16.0

collection/reindex.js

4

async/dictLimit.js
"use strict";
var async = require('async');
var mapLimit = require('async/mapLimit');

@@ -7,3 +7,3 @@

var out = {}, errs = [];
async.mapLimit(keys, tasks, function(item, chain) {
mapLimit(keys, tasks, function(item, chain) {
iterator(item, function(err, result) {

@@ -10,0 +10,0 @@ out[item] = err ? null : result;

"use strict";
var sprintf = require('../string/sprintf');
var repeat = require('mout/string/repeat');
var crop = require('mout/string/crop');
var sprintf = require('../string/sprintf');
var repeat = require('mout/string/repeat');
var truncate = require('nyks/string/truncate');

@@ -34,4 +34,5 @@ var LF = "\n";

var box = function(title, msg){
var box = function(/*[title, msg]*/){
var args = [].slice.call(arguments);
var dotrim = true, pad_len = COLS;

@@ -42,8 +43,9 @@

if(typeof msg !== "string")
msg = JSON.stringify(msg);
msg = JSON.stringify(msg, null, 2);
msg = msg.trim().replace(" ", " ").split(/\r?\n/);
msg = msg.trim().replace(" ", " ").split(/\r?\n/);//use 4 tab indent
msg.forEach(function(tmp_line, i) {
if(dotrim)
msg[i] = crop(tmp_line, COLS, "…");
msg[i] = truncate(tmp_line, COLS);
//msg[i] = preg_replace('#&[^;]*?#m','…',);

@@ -50,0 +52,0 @@ pad_len = Math.max(pad_len, msg[i].length + 2); //2 chars enclosure

"use strict";
var fs = require('fs');
var path = require('path');
var async = require('async');
var queue = require('async/queue');
var forEach = require('mout/array/forEach');

@@ -43,3 +43,3 @@ var debounce= require('mout/function/debounce');

module.exports = function(dir_path, taskcb, endcb){
var q = async.queue(function(stat, cb){
var q = queue(function(stat, cb){
if(stat)

@@ -46,0 +46,0 @@ taskcb(stat);

@@ -57,5 +57,9 @@ "use strict";

var req = https.request(query, function(res){
var shouldBuffer = !! query.json;
var transport = query.protocol == 'https:' ? https : http;
var req = transport.request(query, function(res){
var shouldBuffer = query.json || startsWith(res.headers["content-type"], "application/json");
if(!shouldBuffer)

@@ -62,0 +66,0 @@ return chain(null, res);

{
"name": "nyks",
"version": "2.15.0",
"version": "2.16.0",
"description": "nodejs exupery style",

@@ -11,3 +11,3 @@ "keywords": [

"dependencies": {
"async": "^1.5.2",
"async": "^2.0.0-rc.2",
"crc-32": "^0.3.0",

@@ -14,0 +14,0 @@ "mout": "^1.0.0",

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