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

vite-lib-test

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-lib-test - npm Package Compare versions

Comparing version 1.1.9 to 1.2.0

243

dist/my-lib.js
import Se, { useState as sr } from "react";
var M = {}, lr = {
var V = {}, fr = {
get exports() {
return M;
return V;
},
set exports(p) {
M = p;
V = p;
}

@@ -19,19 +19,19 @@ }, k = {};

*/
var Te;
function fr() {
if (Te)
var Re;
function lr() {
if (Re)
return k;
Te = 1;
var p = Se, y = Symbol.for("react.element"), U = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, F = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
function w(m, f, C) {
Re = 1;
var p = Se, m = Symbol.for("react.element"), M = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, F = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
function w(y, l, C) {
var v, b = {}, _ = null, I = null;
C !== void 0 && (_ = "" + C), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (I = f.ref);
for (v in f)
T.call(f, v) && !A.hasOwnProperty(v) && (b[v] = f[v]);
if (m && m.defaultProps)
for (v in f = m.defaultProps, f)
b[v] === void 0 && (b[v] = f[v]);
return { $$typeof: y, type: m, key: _, ref: I, props: b, _owner: F.current };
C !== void 0 && (_ = "" + C), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (I = l.ref);
for (v in l)
T.call(l, v) && !A.hasOwnProperty(v) && (b[v] = l[v]);
if (y && y.defaultProps)
for (v in l = y.defaultProps, l)
b[v] === void 0 && (b[v] = l[v]);
return { $$typeof: m, type: y, key: _, ref: I, props: b, _owner: F.current };
}
return k.Fragment = U, k.jsx = w, k.jsxs = w, k;
return k.Fragment = M, k.jsx = w, k.jsxs = w, k;
}

@@ -48,10 +48,10 @@ var D = {};

*/
var Ce;
var Te;
function cr() {
return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
var p = Se, y = Symbol.for("react.element"), U = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), m = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), Z = Symbol.iterator, Pe = "@@iterator";
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
var p = Se, m = Symbol.for("react.element"), M = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), y = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), X = Symbol.iterator, Pe = "@@iterator";
function we(e) {
if (e === null || typeof e != "object")
return null;
var r = Z && e[Z] || e[Pe];
var r = X && e[X] || e[Pe];
return typeof r == "function" ? r : null;

@@ -77,10 +77,10 @@ }

}
var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Q;
Q = Symbol.for("react.module.reference");
var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z;
Z = Symbol.for("react.module.reference");
function Ie(e) {
return !!(typeof e == "string" || typeof e == "function" || e === T || e === A || Ae || e === F || e === C || e === v || Fe || e === I || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === w || e.$$typeof === m || e.$$typeof === f || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === T || e === A || Ae || e === F || e === C || e === v || Fe || e === I || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === w || e.$$typeof === y || e.$$typeof === l || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === Q || e.getModuleId !== void 0));
e.$$typeof === Z || e.getModuleId !== void 0));
}

@@ -94,3 +94,3 @@ function $e(e, r, t) {

}
function ee(e) {
function Q(e) {
return e.displayName || "Context";

@@ -108,3 +108,3 @@ }

return "Fragment";
case U:
case M:
return "Portal";

@@ -122,9 +122,9 @@ case A:

switch (e.$$typeof) {
case m:
case y:
var r = e;
return ee(r) + ".Consumer";
return Q(r) + ".Consumer";
case w:
var t = e;
return ee(t._context) + ".Provider";
case f:
return Q(t._context) + ".Provider";
case l:
return $e(e, e.render, "ForwardRef");

@@ -145,14 +145,14 @@ case b:

}
var R = Object.assign, x = 0, re, te, ne, ae, oe, ie, ue;
function se() {
var R = Object.assign, x = 0, ee, re, te, ne, ae, oe, ie;
function ue() {
}
se.__reactDisabledLog = !0;
ue.__reactDisabledLog = !0;
function We() {
{
if (x === 0) {
re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: se,
value: ue,
writable: !0

@@ -183,21 +183,21 @@ };

log: R({}, e, {
value: re
value: ee
}),
info: R({}, e, {
value: te
value: re
}),
warn: R({}, e, {
value: ne
value: te
}),
error: R({}, e, {
value: ae
value: ne
}),
group: R({}, e, {
value: oe
value: ae
}),
groupCollapsed: R({}, e, {
value: ie
value: oe
}),
groupEnd: R({}, e, {
value: ue
value: ie
})

@@ -209,6 +209,6 @@ });

}
var B = O.ReactCurrentDispatcher, q;
var U = O.ReactCurrentDispatcher, B;
function $(e, r, t) {
{
if (q === void 0)
if (B === void 0)
try {

@@ -218,9 +218,9 @@ throw Error();

var n = i.stack.trim().match(/\n( *(at )?)/);
q = n && n[1] || "";
B = n && n[1] || "";
}
return `
` + q + e;
` + B + e;
}
}
var J = !1, W;
var q = !1, W;
{

@@ -230,4 +230,4 @@ var Ne = typeof WeakMap == "function" ? WeakMap : Map;

}
function le(e, r) {
if (!e || J)
function se(e, r) {
if (!e || q)
return "";

@@ -240,7 +240,7 @@ {

var n;
J = !0;
q = !0;
var i = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = B.current, B.current = null, We();
u = U.current, U.current = null, We();
try {

@@ -282,9 +282,9 @@ if (r) {

`), d = n.stack.split(`
`), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
l--;
for (; s >= 1 && l >= 0; s--, l--)
if (a[s] !== d[l]) {
if (s !== 1 || l !== 1)
`), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
f--;
for (; s >= 1 && f >= 0; s--, f--)
if (a[s] !== d[f]) {
if (s !== 1 || f !== 1)
do
if (s--, l--, l < 0 || a[s] !== d[l]) {
if (s--, f--, f < 0 || a[s] !== d[f]) {
var h = `

@@ -294,3 +294,3 @@ ` + a[s].replace(" at new ", " at ");

}
while (s >= 1 && l >= 0);
while (s >= 1 && f >= 0);
break;

@@ -300,9 +300,9 @@ }

} finally {
J = !1, B.current = u, Ye(), Error.prepareStackTrace = i;
q = !1, U.current = u, Ye(), Error.prepareStackTrace = i;
}
var P = e ? e.displayName || e.name : "", Re = P ? $(P) : "";
return typeof e == "function" && W.set(e, Re), Re;
var P = e ? e.displayName || e.name : "", _e = P ? $(P) : "";
return typeof e == "function" && W.set(e, _e), _e;
}
function Le(e, r, t) {
return le(e, !1);
return se(e, !1);
}

@@ -317,3 +317,3 @@ function Ve(e) {

if (typeof e == "function")
return le(e, Ve(e));
return se(e, Ve(e));
if (typeof e == "string")

@@ -329,3 +329,3 @@ return $(e);

switch (e.$$typeof) {
case f:
case l:
return Le(e.render);

@@ -344,9 +344,9 @@ case b:

}
var N = Object.prototype.hasOwnProperty, fe = {}, ce = O.ReactDebugCurrentFrame;
var N = Object.prototype.hasOwnProperty, fe = {}, le = O.ReactDebugCurrentFrame;
function L(e) {
if (e) {
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
ce.setExtraStackFrame(t);
le.setExtraStackFrame(t);
} else
ce.setExtraStackFrame(null);
le.setExtraStackFrame(null);
}

@@ -373,3 +373,3 @@ function Me(e, r, t, n, i) {

var Ue = Array.isArray;
function G(e) {
function J(e) {
return Ue(e);

@@ -385,3 +385,3 @@ }

try {
return de(e), !1;
return ce(e), !1;
} catch {

@@ -391,8 +391,8 @@ return !0;

}
function de(e) {
function ce(e) {
return "" + e;
}
function ve(e) {
function de(e) {
if (qe(e))
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), de(e);
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ce(e);
}

@@ -404,4 +404,4 @@ var j = O.ReactCurrentOwner, Je = {

__source: !0
}, pe, he, z;
z = {};
}, ve, pe, G;
G = {};
function Ge(e) {

@@ -426,3 +426,3 @@ if (N.call(e, "ref")) {

var t = g(j.current.type);
z[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', g(j.current.type), e.ref), z[t] = !0);
G[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', g(j.current.type), e.ref), G[t] = !0);
}

@@ -433,3 +433,3 @@ }

var t = function() {
pe || (pe = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
ve || (ve = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};

@@ -445,3 +445,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", {

var t = function() {
he || (he = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
pe || (pe = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};

@@ -457,3 +457,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", {

// This tag allows us to uniquely identify this as a React Element
$$typeof: y,
$$typeof: m,
// Built-in properties that belong on the element

@@ -487,3 +487,3 @@ type: e,

var u, o = {}, a = null, d = null;
t !== void 0 && (ve(t), a = "" + t), ze(r) && (ve(r.key), a = "" + r.key), Ge(r) && (d = r.ref, Ke(r, i));
t !== void 0 && (de(t), a = "" + t), ze(r) && (de(r.key), a = "" + r.key), Ge(r) && (d = r.ref, Ke(r, i));
for (u in r)

@@ -497,4 +497,4 @@ N.call(r, u) && !Je.hasOwnProperty(u) && (o[u] = r[u]);

if (a || d) {
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && He(o, l), d && Xe(o, l);
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && He(o, f), d && Xe(o, f);
}

@@ -504,19 +504,19 @@ return Ze(e, a, d, i, n, j.current, o);

}
var K = O.ReactCurrentOwner, be = O.ReactDebugCurrentFrame;
var z = O.ReactCurrentOwner, he = O.ReactDebugCurrentFrame;
function S(e) {
if (e) {
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
be.setExtraStackFrame(t);
he.setExtraStackFrame(t);
} else
be.setExtraStackFrame(null);
he.setExtraStackFrame(null);
}
var H;
H = !1;
function X(e) {
return typeof e == "object" && e !== null && e.$$typeof === y;
var K;
K = !1;
function H(e) {
return typeof e == "object" && e !== null && e.$$typeof === m;
}
function ge() {
function be() {
{
if (K.current) {
var e = g(K.current.type);
if (z.current) {
var e = g(z.current.type);
if (e)

@@ -541,6 +541,6 @@ return `

}
var Ee = {};
var ge = {};
function rr(e) {
{
var r = ge();
var r = be();
if (!r) {

@@ -555,3 +555,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name;

}
function ye(e, r) {
function Ee(e, r) {
{

@@ -562,7 +562,7 @@ if (!e._store || e._store.validated || e.key != null)

var t = rr(r);
if (Ee[t])
if (ge[t])
return;
Ee[t] = !0;
ge[t] = !0;
var n = "";
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + g(e._owner.type) + "."), S(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + g(e._owner.type) + "."), S(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
}

@@ -574,8 +574,8 @@ }

return;
if (G(e))
if (J(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
X(n) && ye(n, r);
H(n) && Ee(n, r);
}
else if (X(e))
else if (H(e))
e._store && (e._store.validated = !0);

@@ -586,3 +586,3 @@ else if (e) {

for (var u = i.call(e), o; !(o = u.next()).done; )
X(o.value) && ye(o.value, r);
H(o.value) && Ee(o.value, r);
}

@@ -599,3 +599,3 @@ }

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.

@@ -609,4 +609,4 @@ r.$$typeof === b))

Me(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !H) {
H = !0;
} else if (r.PropTypes !== void 0 && !K) {
K = !0;
var i = g(r);

@@ -630,3 +630,3 @@ c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");

}
function _e(e, r, t, n, i, u) {
function ye(e, r, t, n, i, u) {
{

@@ -638,9 +638,9 @@ var o = Ie(e);

var d = er(i);
d ? a += d : a += ge();
d ? a += d : a += be();
var s;
e === null ? s = "null" : G(e) ? s = "array" : e !== void 0 && e.$$typeof === y ? (s = "<" + (g(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === m ? (s = "<" + (g(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
}
var l = Qe(e, r, t, i, u);
if (l == null)
return l;
var f = Qe(e, r, t, i, u);
if (f == null)
return f;
if (o) {

@@ -650,3 +650,3 @@ var h = r.children;

if (n)
if (G(h)) {
if (J(h)) {
for (var P = 0; P < h.length; P++)

@@ -660,10 +660,10 @@ me(h[P], e);

}
return e === T ? nr(l) : tr(l), l;
return e === T ? nr(f) : tr(f), f;
}
}
function ar(e, r, t) {
return _e(e, r, t, !0);
return ye(e, r, t, !0);
}
function or(e, r, t) {
return _e(e, r, t, !1);
return ye(e, r, t, !1);
}

@@ -675,9 +675,8 @@ var ir = or, ur = ar;

(function(p) {
process.env.NODE_ENV === "production" ? p.exports = fr() : p.exports = cr();
})(lr);
const V = M.jsx, Oe = M.jsxs;
process.env.NODE_ENV === "production" ? p.exports = lr() : p.exports = cr();
})(fr);
const Ce = V.jsx, Oe = V.jsxs;
const vr = () => {
const [p, y] = sr(0);
const [p, m] = sr(0);
return /* @__PURE__ */ Oe("div", { className: "container", children: [
/* @__PURE__ */ V("head", { children: /* @__PURE__ */ V("link", { rel: "stylesheet", href: "/node_modules/vite-lib-test/dist/style.css" }) }),
/* @__PURE__ */ Oe("p", { children: [

@@ -687,4 +686,4 @@ "Currently, the count is ",

] }),
/* @__PURE__ */ V("button", { onClick: () => y(p - 1), children: "Subtract" }),
/* @__PURE__ */ V("button", { onClick: () => y(p + 1), children: "Add" })
/* @__PURE__ */ Ce("button", { onClick: () => m(p - 1), children: "Subtract" }),
/* @__PURE__ */ Ce("button", { onClick: () => m(p + 1), children: "Add" })
] });

@@ -691,0 +690,0 @@ };

{
"name": "vite-lib-test",
"version": "1.1.9",
"version": "1.2.0",
"type": "module",

@@ -14,4 +14,3 @@ "files": [

"require": "./dist/my-lib.umd.cjs"
},
"./dist/style.css": "./dist/style.css"
}
},

@@ -18,0 +17,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