Huge News!Announcing our $40M Series B led by Abstract Ventures.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.3 to 1.1.4

244

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

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

*/
var Re;
function lr() {
if (Re)
var Te;
function fr() {
if (Te)
return k;
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) {
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) {
var v, b = {}, _ = null, I = null;
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 };
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 };
}
return k.Fragment = M, k.jsx = w, k.jsxs = w, k;
return k.Fragment = U, k.jsx = w, k.jsxs = w, k;
}

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

*/
var Te;
var Ce;
function cr() {
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";
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";
function we(e) {
if (e === null || typeof e != "object")
return null;
var r = X && e[X] || e[Pe];
var r = Z && e[Z] || e[Pe];
return typeof r == "function" ? r : null;

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

}
var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z;
Z = Symbol.for("react.module.reference");
var je = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Q;
Q = 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 === y || e.$$typeof === l || // 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 === m || e.$$typeof === f || // 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 === Z || e.getModuleId !== void 0));
e.$$typeof === Q || e.getModuleId !== void 0));
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

`), d = n.stack.split(`
`), 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)
`), 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)
do
if (s--, f--, f < 0 || a[s] !== d[f]) {
if (s--, l--, l < 0 || a[s] !== d[l]) {
var h = `

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}
function ce(e) {
function de(e) {
return "" + e;
}
function de(e) {
function ve(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)), ce(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);
}

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

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

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

var t = g(j.current.type);
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);
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);
}

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

var t = function() {
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));
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));
};

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

var t = function() {
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));
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));
};

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

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

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

var u, o = {}, a = null, d = null;
t !== void 0 && (de(t), a = "" + t), ze(r) && (de(r.key), a = "" + r.key), Ge(r) && (d = r.ref, Ke(r, i));
t !== void 0 && (ve(t), a = "" + t), ze(r) && (ve(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 f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && He(o, f), d && Xe(o, f);
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && He(o, l), d && Xe(o, l);
}

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

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

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

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

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

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

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

var t = rr(r);
if (ge[t])
if (Ee[t])
return;
ge[t] = !0;
Ee[t] = !0;
var n = "";
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);
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);
}

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

return;
if (J(e))
if (G(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
H(n) && Ee(n, r);
X(n) && ye(n, r);
}
else if (H(e))
else if (X(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; )
H(o.value) && Ee(o.value, r);
X(o.value) && ye(o.value, r);
}

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

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
else if (typeof r == "object" && (r.$$typeof === f || // 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 && !K) {
K = !0;
} else if (r.PropTypes !== void 0 && !H) {
H = !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 ye(e, r, t, n, i, u) {
function _e(e, r, t, n, i, u) {
{

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

var d = er(i);
d ? a += d : a += be();
d ? a += d : a += ge();
var s;
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);
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);
}
var f = Qe(e, r, t, i, u);
if (f == null)
return f;
var l = Qe(e, r, t, i, u);
if (l == null)
return l;
if (o) {

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

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

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

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

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

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

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

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

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

{
"name": "vite-lib-test",
"version": "1.1.3",
"version": "1.1.4",
"type": "module",

@@ -5,0 +5,0 @@ "files": [

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