jquery-param
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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' }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8344