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
0
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.5 to 1.0.6

dist/constants/email.d.ts

4

dist/index.d.ts
export { default as isObject } from "./isObject";
export { default as isEmpty } from "./isEmpty";
export * from "./email";
export * from "./password";
export * from "./styling";

2

dist/index.esm.js

@@ -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

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