@sorocraft/js-utils
Advanced tools
Comparing version 1.0.5 to 1.0.6
export { default as isObject } from "./isObject"; | ||
export { default as isEmpty } from "./isEmpty"; | ||
export * from "./email"; | ||
export * from "./password"; | ||
export * from "./styling"; |
@@ -1,2 +0,2 @@ | ||
function n(n){const t=typeof n;return null!=n&&("object"===t||"function"===t)}export{n as isObject}; | ||
function t(t){const n=typeof t;return null!=t&&("object"===n||"function"===n)}const n=t=>null==t||("object"==typeof t?Array.isArray(t)?0===t.length:t instanceof Set||t instanceof Map?0===t.size:0===Object.keys(t).length:"string"==typeof t&&0===t.length),e=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i,o=t=>!!t&&e.test(t),c=t=>!!t&&t.length>=6,l=(t,n,e=[])=>{let o=[];for(const e in n)n[e]&&o.push(t[e]);return(null==e?void 0:e.length)>0&&(o=o.concat(e)),o.join(" ")};export{o as checkIsValidEmail,c as checkIsValidPassword,l as classNames,n as isEmpty,t as isObject}; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";exports.isObject=function(t){const n=typeof t;return null!=t&&("object"===n||"function"===n)}; | ||
"use strict";const t=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i;exports.checkIsValidEmail=e=>!!e&&t.test(e),exports.checkIsValidPassword=t=>!!t&&t.length>=6,exports.classNames=(t,e,s=[])=>{let n=[];for(const s in e)e[s]&&n.push(t[s]);return(null==s?void 0:s.length)>0&&(n=n.concat(s)),n.join(" ")},exports.isEmpty=t=>null==t||("object"==typeof t?Array.isArray(t)?0===t.length:t instanceof Set||t instanceof Map?0===t.size:0===Object.keys(t).length:"string"==typeof t&&0===t.length),exports.isObject=function(t){const e=typeof t;return null!=t&&("object"===e||"function"===e)}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sorocraft/js-utils", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.esm.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
8494
13
28
0