Socket
Socket
Sign inDemoInstall

@emqx/shared-ui-utils

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.7

dist/jsonUtils.d.ts

2

dist/index.d.ts

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

export declare function testUtils(word?: string): string;
export * from './objectUtils';

@@ -1,6 +0,27 @@

function e(t) {
return console.log("test ------> utils"), `Hello ${t}`;
}
const o = (e, c = [], t = {}) => {
if (typeof e == "object" && !Array.isArray(e) && e !== null)
for (const r of Object.keys(e))
o(e[r], c.concat(r), t);
else
t[c.join(".")] = e;
return t;
}, a = (e) => {
if (Object(e) !== e && !Array.isArray(e))
return e;
const c = /\.?([^.[\]]+)|\[(\d+)\]/g, t = {};
try {
for (const r in e) {
let n = t, l = "", s;
for (; s = c.exec(r); )
n = n[l] || (n[l] = s[2] ? [] : {}), l = s[2] || s[1];
n[l] = e[r];
}
} catch (r) {
console.error(r);
}
return t[""] || t;
};
export {
e as testUtils
o as flattenObject,
a as unflattenObject
};
{
"name": "@emqx/shared-ui-utils",
"version": "0.0.5",
"version": "0.0.7",
"homepage": "https://emqx.io",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc