Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sorocraft/js-utils

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sorocraft/js-utils - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

dist/url.d.ts

1

dist/index.d.ts

@@ -6,1 +6,2 @@ export { default as isObject } from "./isObject";

export * from "./styling";
export * from "./url";

2

dist/index.esm.js

@@ -1,2 +0,2 @@

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};
function n(n){const t=typeof n;return null!=n&&("object"===t||"function"===t)}const t=n=>null==n||("object"==typeof n?Array.isArray(n)?0===n.length:n instanceof Set||n instanceof Map?0===n.size:0===Object.keys(n).length:"string"==typeof n&&0===n.length),e=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i,o=n=>!!n&&e.test(n),c=n=>!!n&&n.length>=6,i=(n,t,e=[])=>{let o=[];for(const e in t)t[e]&&o.push(n[e]);return(null==e?void 0:e.length)>0&&(o=o.concat(e)),o.join(" ")},s=n=>{if("undefined"==typeof window)return"";const t=window.location.search.slice(1),e=new Map;t.split("&").forEach((n=>{const[t,o]=n.split("=");e.set(decodeURIComponent(t),decodeURIComponent(o))}));return e.get(n)||""};export{o as checkIsValidEmail,c as checkIsValidPassword,i as classNames,s as getQueryParam,t as isEmpty,n as isObject};
//# sourceMappingURL=index.esm.js.map

@@ -1,2 +0,2 @@

"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)};
"use strict";const e=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i;exports.checkIsValidEmail=t=>!!t&&e.test(t),exports.checkIsValidPassword=e=>!!e&&e.length>=6,exports.classNames=(e,t,n=[])=>{let o=[];for(const n in t)t[n]&&o.push(e[n]);return(null==n?void 0:n.length)>0&&(o=o.concat(n)),o.join(" ")},exports.getQueryParam=e=>{if("undefined"==typeof window)return"";const t=window.location.search.slice(1),n=new Map;t.split("&").forEach((e=>{const[t,o]=e.split("=");n.set(decodeURIComponent(t),decodeURIComponent(o))}));return n.get(e)||""},exports.isEmpty=e=>null==e||("object"==typeof e?Array.isArray(e)?0===e.length:e instanceof Set||e instanceof Map?0===e.size:0===Object.keys(e).length:"string"==typeof e&&0===e.length),exports.isObject=function(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)};
//# sourceMappingURL=index.js.map
{
"name": "@sorocraft/js-utils",
"version": "1.0.6",
"version": "1.0.7",
"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

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