Socket
Socket
Sign inDemoInstall

wodge

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wodge - npm Package Compare versions

Comparing version 0.5.2 to 0.6.0

26

lib/wodge.js

@@ -29,3 +29,11 @@ "use strict";

exports.commonSequence = commonSequence;
exports.escapeForJSON = escapeForJSON;
/**
Merge a list of objects, left to right, into one.
@method
@example
w.extend({}, { one: 1, three: 3 }, { one: "one", two: 2 }, { four: 4 });
// { one: "one", two: 2, three: 3, four: 4 }
*/
function extend(){

@@ -178,5 +186,11 @@ var args = arrayify(arguments);

}
/**
Cross-platform home directory retriever
@method
*/
function getHomeDir() {
return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
}
function fill(fillWith, len){

@@ -279,1 +293,13 @@ var buffer = new Buffer(len);

}
function escapeForJSON (str) {
return str
.replace(/[\\]/g, '\\\\')
.replace(/[\/]/g, '\\/')
.replace(/[\b]/g, '\\b')
.replace(/[\f]/g, '\\f')
.replace(/[\n]/g, '\\n')
.replace(/[\r]/g, '\\r')
.replace(/[\"]/g, '\\"')
.replace(/[\t]/g, '\\t');
}

2

package.json
{
"name": "wodge",
"version": "0.5.2",
"version": "0.6.0",
"description": "a wodge of functional dough",

@@ -5,0 +5,0 @@ "main": "lib/wodge.js",

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