New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sorocraft/js-utils

Package Overview
Dependencies
Maintainers
1
Versions
19
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.8 to 1.0.9

dist/currency.d.ts

1

dist/index.d.ts

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

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

2

dist/index.esm.js

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

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);function e(n,t){return n.reduce(((n,e)=>{const o=e[t];if(!o)return n;const c=String(o);return n[c]||(n[c]=[]),n[c].push(e),n}),{})}const o=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i,c=n=>!!n&&o.test(n),r=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{c as checkIsValidEmail,r as checkIsValidPassword,i as classNames,s as getQueryParam,e as groupBy,t as isEmpty,n 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);function e(n,t){return n.reduce(((n,e)=>{const o=e[t];if(!o)return n;const r=String(o);return n[r]||(n[r]=[]),n[r].push(e),n}),{})}const o=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i,r=n=>!!n&&o.test(n),c=n=>!!n&&n.length>=6,s=(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(" ")},i=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)||""},u=n=>{switch(n){case"azn":return"₼";case"usd":return"$";default:return"€"}};export{r as checkIsValidEmail,c as checkIsValidPassword,s as classNames,u as getCurrencySymbol,i as getQueryParam,e as groupBy,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,n=[])=>{let o=[];for(const n in e)e[n]&&o.push(t[n]);return(null==n?void 0:n.length)>0&&(o=o.concat(n)),o.join(" ")},exports.getQueryParam=t=>{if("undefined"==typeof window)return"";const e=window.location.search.slice(1),n=new Map;e.split("&").forEach((t=>{const[e,o]=t.split("=");n.set(decodeURIComponent(e),decodeURIComponent(o))}));return n.get(t)||""},exports.groupBy=function(t,e){return t.reduce(((t,n)=>{const o=n[e];if(!o)return t;const s=String(o);return t[s]||(t[s]=[]),t[s].push(n),t}),{})},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 r=[];for(const n in t)t[n]&&r.push(e[n]);return(null==n?void 0:n.length)>0&&(r=r.concat(n)),r.join(" ")},exports.getCurrencySymbol=e=>{switch(e){case"azn":return"₼";case"usd":return"$";default:return"€"}},exports.getQueryParam=e=>{if("undefined"==typeof window)return"";const t=window.location.search.slice(1),n=new Map;t.split("&").forEach((e=>{const[t,r]=e.split("=");n.set(decodeURIComponent(t),decodeURIComponent(r))}));return n.get(e)||""},exports.groupBy=function(e,t){return e.reduce(((e,n)=>{const r=n[t];if(!r)return e;const o=String(r);return e[o]||(e[o]=[]),e[o].push(n),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.8",
"version": "1.0.9",
"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