Socket
Socket
Sign inDemoInstall

jquery-param

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-param - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

esm/jquery-param.es.js

@@ -50,2 +50,2 @@ /**

export { param };
export default param;
/**
* @preserve jquery-param (c) KNOWLEDGECODE | MIT
*/
var e=function(e){var n=[],r=function(e,r){r=null==(r="function"==typeof r?r():r)?"":r,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(r)},o=function(e,t){var f,i,l;if(e)if(Array.isArray(t))for(f=0,i=t.length;f<i;f++)o(e+"["+("object"==typeof t[f]&&t[f]?f:"")+"]",t[f]);else if("[object Object]"===String(t))for(l in t)o(e+"["+l+"]",t[l]);else r(e,t);else if(Array.isArray(t))for(f=0,i=t.length;f<i;f++)r(t[f].name,t[f].value);else for(l in t)o(l,t[l]);return n};return o("",e).join("&")};export{e as param};
export default function(e){var n=[],o=function(e,o){o=null==(o="function"==typeof o?o():o)?"":o,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(o)},r=function(e,t){var f,i,l;if(e)if(Array.isArray(t))for(f=0,i=t.length;f<i;f++)r(e+"["+("object"==typeof t[f]&&t[f]?f:"")+"]",t[f]);else if("[object Object]"===String(t))for(l in t)r(e+"["+l+"]",t[l]);else o(e,t);else if(Array.isArray(t))for(f=0,i=t.length;f<i;f++)o(t[f].name,t[f].value);else for(l in t)r(l,t[l]);return n};return r("",e).join("&")}
{
"name": "jquery-param",
"version": "1.1.1",
"version": "1.1.2",
"description": "equivalent function to jQuery.param",

@@ -36,5 +36,5 @@ "main": "jquery-param.js",

"phantomjs-prebuilt": "^2.1.16",
"rollup": "^2.18.2",
"rollup": "^2.19.0",
"rollup-plugin-terser": "^6.1.0"
}
}

@@ -48,3 +48,3 @@ # jquery-param

*You will need to add `"esModuleInterop": true` to the `"compilerOptions"` directive in `tsconfig.json`.*
*You will need to add `"esModuleInterop": true` to the `"compilerOptions"` field in `tsconfig.json`.*

@@ -55,3 +55,3 @@ ES Modules:

<script type="module">
import { param } from './esm/jquery-param.es.js';
import param from './esm/jquery-param.es.js';

@@ -58,0 +58,0 @@ const obj = { key1: { value1: [10, 20, 30] }, key2: '?a=b&c=d' };

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