| /*! | ||
| * nosh.js v0.0.3 | ||
| * nosh.js v0.0.4 | ||
| * https://github.com/lmk123/noshjs | ||
@@ -104,9 +104,9 @@ * Released under the MIT License. | ||
| var obj2qs = function (obj) { | ||
| var qs = ''; | ||
| var qs = []; | ||
| for (var key in obj) { | ||
| if (hasOwnProperty.call(obj, key)) { | ||
| qs += key + '=' + encodeURIComponent(obj[key]); | ||
| qs.push(key + '=' + encodeURIComponent(obj[key])); | ||
| } | ||
| } | ||
| return qs | ||
| return qs.join('&') | ||
| }; | ||
@@ -113,0 +113,0 @@ |
+4
-4
| /*! | ||
| * nosh.js v0.0.3 | ||
| * nosh.js v0.0.4 | ||
| * https://github.com/lmk123/noshjs | ||
@@ -100,9 +100,9 @@ * Released under the MIT License. | ||
| var obj2qs = function (obj) { | ||
| var qs = ''; | ||
| var qs = []; | ||
| for (var key in obj) { | ||
| if (hasOwnProperty.call(obj, key)) { | ||
| qs += key + '=' + encodeURIComponent(obj[key]); | ||
| qs.push(key + '=' + encodeURIComponent(obj[key])); | ||
| } | ||
| } | ||
| return qs | ||
| return qs.join('&') | ||
| }; | ||
@@ -109,0 +109,0 @@ |
+4
-4
| /*! | ||
| * nosh.js v0.0.3 | ||
| * nosh.js v0.0.4 | ||
| * https://github.com/lmk123/noshjs | ||
@@ -106,9 +106,9 @@ * Released under the MIT License. | ||
| var obj2qs = function (obj) { | ||
| var qs = ''; | ||
| var qs = []; | ||
| for (var key in obj) { | ||
| if (hasOwnProperty.call(obj, key)) { | ||
| qs += key + '=' + encodeURIComponent(obj[key]); | ||
| qs.push(key + '=' + encodeURIComponent(obj[key])); | ||
| } | ||
| } | ||
| return qs | ||
| return qs.join('&') | ||
| }; | ||
@@ -115,0 +115,0 @@ |
+1
-6
@@ -1,6 +0,1 @@ | ||
| /*! | ||
| * nosh.js v0.0.3 | ||
| * https://github.com/lmk123/noshjs | ||
| * Released under the MIT License. | ||
| */ | ||
| !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.nosh=e.nosh||{})}(this,function(e){"use strict";var n=function(e){return null==e?e:JSON.parse(JSON.stringify(e))},t=function(e,n,t){return e.filter(function(e){return e[n]===t})},r=function(e){return"number"==typeof e&&!isNaN(e)},i=function(e){if(e=Number(e),!r(e))return null;var n=!1,t=String(e);"-"===t[0]&&(n=!0,t=t.slice(1));var i=t.indexOf(".");return{minus:n,integer:i>0?t.slice(0,i):t,decimal:i>0?t.slice(i):""}},o=["","K","M","B","T","P","E"],u=o.length,f=Math.pow(10,3),c=function(e,n){void 0===n&&(n=2);var t=i(e);if(!t)return"";var r=Math.min(Math.ceil(t.integer.length/3),u)-1;return Number((e/Math.pow(f,r)).toFixed(n))+o[r]},s=function(e){var n=i(e);if(!n)return"";for(var t=n.minus,r=n.integer,o=n.decimal,u=r.length,f=Math.ceil(u/3),c=[],s=0;s<f;s++)c.unshift(r.slice(-3*(s+1),u-3*s));return(t?"-":"")+c.join(",")+o},a=Object.prototype,l=a.hasOwnProperty,d=function(e){var n="";for(var t in e)l.call(e,t)&&(n+=t+"="+encodeURIComponent(e[t]));return n},p=function(e,n){var t=e.indexOf(n);return t>=0&&e.splice(t,1),t};e.copy=n,e.filterBy=t,e.isNumber=r,e.kmbt=c,e.thousands=s,e.obj2qs=d,e.remove=p,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
| undefined |
+3
-3
@@ -9,9 +9,9 @@ const { hasOwnProperty } = Object.prototype | ||
| export default function (obj) { | ||
| let qs = '' | ||
| const qs = [] | ||
| for (let key in obj) { | ||
| if (hasOwnProperty.call(obj, key)) { | ||
| qs += key + '=' + encodeURIComponent(obj[key]) | ||
| qs.push(key + '=' + encodeURIComponent(obj[key])) | ||
| } | ||
| } | ||
| return qs | ||
| return qs.join('&') | ||
| } |
+4
-4
| { | ||
| "name": "noshjs", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "main": "dist/nosh.common.js", | ||
@@ -20,3 +20,3 @@ "module": "dist/nosh.esm.js", | ||
| "devDependencies": { | ||
| "coveralls": "^2.12.0", | ||
| "coveralls": "^2.13.1", | ||
| "eslint": "^3.17.0", | ||
@@ -28,3 +28,3 @@ "eslint-config-standard": "^10.2.1", | ||
| "eslint-plugin-standard": "^3.0.1", | ||
| "fs-extra": "^2.1.2", | ||
| "fs-extra": "^3.0.1", | ||
| "istanbul": "^0.4.5", | ||
@@ -34,3 +34,3 @@ "jasmine": "^2.5.3", | ||
| "rollup-plugin-buble": "^0.15.0", | ||
| "uglify-js": "^2.8.19" | ||
| "uglify-js": "^3.0.5" | ||
| }, | ||
@@ -37,0 +37,0 @@ "author": "Mingkai Li (https://github.com/lmk123)", |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
2
-33.33%14988
-8.22%470
-1.05%