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

@evervault/react

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evervault/react - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

48

dist/evervault-react.main.js

@@ -58,10 +58,10 @@ "use client";

children: o,
...s
...u
}) => {
if (typeof window > "u")
return /* @__PURE__ */ i.createElement(c.Provider, { value: null }, o);
const u = i.useMemo(
() => new w((a, r) => {
y(t.jsSdkUrl).then((l) => {
l !== void 0 ? a(new l(n, e, t)) : (console.error("Evervault.js not available"), r("Evervault.js not available"));
const a = i.useMemo(
() => new w((l, r) => {
y(t == null ? void 0 : t.jsSdkUrl).then((s) => {
s !== void 0 ? l(new s(n, e, t)) : (console.error("Evervault.js not available"), r("Evervault.js not available"));
});

@@ -71,3 +71,3 @@ }),

);
return /* @__PURE__ */ i.createElement(c.Provider, { ...s, value: u }, o);
return /* @__PURE__ */ i.createElement(c.Provider, { ...u, value: a }, o);
}, b = ({

@@ -81,17 +81,17 @@ onChange: n,

return /* @__PURE__ */ i.createElement("div", { id: o });
const s = f();
let u = e;
return u ? u.height || (u = {
const u = f();
let a = e;
return a ? a.height || (a = {
height: "auto",
...u
}) : u = {
...a
}) : a = {
height: "auto"
}, i.useEffect(() => {
s == null || s.then((a) => {
const r = a.inputs(o, u);
r == null || r.on("change", async (l) => {
typeof n == "function" && n(l);
u == null || u.then((l) => {
const r = l.inputs(o, a);
r == null || r.on("change", async (s) => {
typeof n == "function" && n(s);
}), t && (r == null ? void 0 : r.isInputsLoaded) != null && r.isInputsLoaded instanceof Promise && r.isInputsLoaded.then(() => t());
});
}, [s]), /* @__PURE__ */ i.createElement("div", { id: o });
}, [u]), /* @__PURE__ */ i.createElement("div", { id: o });
}, L = ({

@@ -102,8 +102,8 @@ request: n,

onRevealLoad: o,
onRevealError: s
onRevealError: u
}) => {
const u = i.useId();
const a = i.useId();
if (typeof window > "u")
return /* @__PURE__ */ i.createElement("div", { id: u });
const a = f();
return /* @__PURE__ */ i.createElement("div", { id: a });
const l = f();
let r = e;

@@ -116,11 +116,11 @@ return r ? r.height || (r = {

}, i.useEffect(() => {
a == null || a.then((l) => {
const d = l.reveal(u, n, r, t);
l == null || l.then((s) => {
const d = s.reveal(a, n, r, t);
(d == null ? void 0 : d.isRevealLoaded) != null && d.isRevealLoaded instanceof Promise && d.isRevealLoaded.then(() => {
o && o();
}).catch((E) => {
s && s(E);
u && u(E);
});
});
}, [a]), /* @__PURE__ */ i.createElement("div", { id: u });
}, [l]), /* @__PURE__ */ i.createElement("div", { id: a });
};

@@ -127,0 +127,0 @@ function f() {

{
"private": false,
"name": "@evervault/react",
"version": "2.2.0",
"version": "2.2.1",
"description": "React package for the Evervault SDK",

@@ -29,3 +29,3 @@ "license": "MIT",

"devDependencies": {
"@evervault/browser": "^2.13.0"
"@evervault/browser": "^2.14.1"
},

@@ -32,0 +32,0 @@ "scripts": {

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