Socket
Socket
Sign inDemoInstall

form-urlencoded

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

form-urlencoded - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

14

form-urlencoded.js

@@ -1,5 +0,13 @@

var isArray = require('util').isArray;
// Filename: formurlencoded.js
// Timestamp: 2013.10.06-21:36:29 (last modified)
// Author(s): Bumblehead (www.bumblehead.com)
var formUrlencoded = module.exports = {
if (!Array.isArray) {
Array.isArray = function (vArg) {
return Object.prototype.toString.call(vArg) === "[object Array]";
};
}
var formurlencoded = ((typeof module === 'object') ? module : {}).exports = {
// input: {one:1,two:2} return: '[one]=1&[two]-2'

@@ -42,3 +50,3 @@ encode : function (data) {

f = encodeURIComponent(name) + '=' + value;
} else if (isArray(value)) {
} else if (Array.isArray(value)) {
f = getArrNestVals(name, value);

@@ -45,0 +53,0 @@ } else if (type === 'object') {

{
"name": "form-urlencoded",
"version": "0.0.1",
"version": "0.0.2",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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