@bhoimayur/testnpm 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +80 -80
- package/package.json +8 -2
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import Pe from "react";
|
|
2
|
-
var
|
|
2
|
+
var V = { exports: {} }, D = {};
|
|
3
3
|
var Te;
|
|
4
4
|
function fr() {
|
|
5
|
-
if (Te) return
|
|
5
|
+
if (Te) return D;
|
|
6
6
|
Te = 1;
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
var p, y = {},
|
|
10
|
-
|
|
11
|
-
for (p in f)
|
|
12
|
-
if (
|
|
13
|
-
return { $$typeof:
|
|
7
|
+
var w = Pe, b = /* @__PURE__ */ Symbol.for("react.element"), U = /* @__PURE__ */ Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, A = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
8
|
+
function j(h, f, O) {
|
|
9
|
+
var p, y = {}, R = null, $ = null;
|
|
10
|
+
O !== void 0 && (R = "" + O), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && ($ = f.ref);
|
|
11
|
+
for (p in f) T.call(f, p) && !I.hasOwnProperty(p) && (y[p] = f[p]);
|
|
12
|
+
if (h && h.defaultProps) for (p in f = h.defaultProps, f) y[p] === void 0 && (y[p] = f[p]);
|
|
13
|
+
return { $$typeof: b, type: h, key: R, ref: $, props: y, _owner: A.current };
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return D.Fragment = U, D.jsx = j, D.jsxs = j, D;
|
|
16
16
|
}
|
|
17
|
-
var
|
|
17
|
+
var F = {};
|
|
18
18
|
var Oe;
|
|
19
19
|
function cr() {
|
|
20
20
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
21
|
-
var
|
|
21
|
+
var w = Pe, b = /* @__PURE__ */ Symbol.for("react.element"), U = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), A = /* @__PURE__ */ Symbol.for("react.strict_mode"), I = /* @__PURE__ */ Symbol.for("react.profiler"), j = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), p = /* @__PURE__ */ Symbol.for("react.suspense_list"), y = /* @__PURE__ */ Symbol.for("react.memo"), R = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.offscreen"), H = Symbol.iterator, Ce = "@@iterator";
|
|
22
22
|
function we(e) {
|
|
23
23
|
if (e === null || typeof e != "object")
|
|
24
24
|
return null;
|
|
25
25
|
var r = H && e[H] || e[Ce];
|
|
26
26
|
return typeof r == "function" ? r : null;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var S = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
29
29
|
function c(e) {
|
|
30
30
|
{
|
|
31
31
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
@@ -35,7 +35,7 @@ function cr() {
|
|
|
35
35
|
}
|
|
36
36
|
function je(e, r, t) {
|
|
37
37
|
{
|
|
38
|
-
var n =
|
|
38
|
+
var n = S.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
39
39
|
o !== "" && (r += "%s", t = t.concat([o]));
|
|
40
40
|
var u = t.map(function(i) {
|
|
41
41
|
return String(i);
|
|
@@ -46,7 +46,7 @@ function cr() {
|
|
|
46
46
|
var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z;
|
|
47
47
|
Z = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
48
48
|
function Ie(e) {
|
|
49
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
49
|
+
return !!(typeof e == "string" || typeof e == "function" || e === T || e === I || Ae || e === A || e === O || e === p || Fe || e === $ || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === y || e.$$typeof === j || e.$$typeof === h || e.$$typeof === f || // This needs to include all possible module reference object
|
|
50
50
|
// types supported by any Flight configuration anywhere since
|
|
51
51
|
// we don't know which Flight build this will end up being used
|
|
52
52
|
// with.
|
|
@@ -70,25 +70,25 @@ function cr() {
|
|
|
70
70
|
if (typeof e == "string")
|
|
71
71
|
return e;
|
|
72
72
|
switch (e) {
|
|
73
|
-
case
|
|
73
|
+
case T:
|
|
74
74
|
return "Fragment";
|
|
75
75
|
case U:
|
|
76
76
|
return "Portal";
|
|
77
|
-
case
|
|
77
|
+
case I:
|
|
78
78
|
return "Profiler";
|
|
79
|
-
case
|
|
79
|
+
case A:
|
|
80
80
|
return "StrictMode";
|
|
81
|
-
case
|
|
81
|
+
case O:
|
|
82
82
|
return "Suspense";
|
|
83
83
|
case p:
|
|
84
84
|
return "SuspenseList";
|
|
85
85
|
}
|
|
86
86
|
if (typeof e == "object")
|
|
87
87
|
switch (e.$$typeof) {
|
|
88
|
-
case
|
|
88
|
+
case h:
|
|
89
89
|
var r = e;
|
|
90
90
|
return Q(r) + ".Consumer";
|
|
91
|
-
case
|
|
91
|
+
case j:
|
|
92
92
|
var t = e;
|
|
93
93
|
return Q(t._context) + ".Provider";
|
|
94
94
|
case f:
|
|
@@ -96,7 +96,7 @@ function cr() {
|
|
|
96
96
|
case y:
|
|
97
97
|
var n = e.displayName || null;
|
|
98
98
|
return n !== null ? n : E(e.type) || "Memo";
|
|
99
|
-
case
|
|
99
|
+
case R: {
|
|
100
100
|
var o = e, u = o._payload, i = o._init;
|
|
101
101
|
try {
|
|
102
102
|
return E(i(u));
|
|
@@ -107,13 +107,13 @@ function cr() {
|
|
|
107
107
|
}
|
|
108
108
|
return null;
|
|
109
109
|
}
|
|
110
|
-
var
|
|
110
|
+
var _ = Object.assign, x = 0, ee, re, te, ne, ae, ie, oe;
|
|
111
111
|
function ue() {
|
|
112
112
|
}
|
|
113
113
|
ue.__reactDisabledLog = !0;
|
|
114
114
|
function We() {
|
|
115
115
|
{
|
|
116
|
-
if (
|
|
116
|
+
if (x === 0) {
|
|
117
117
|
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
|
|
118
118
|
var e = {
|
|
119
119
|
configurable: !0,
|
|
@@ -131,46 +131,46 @@ function cr() {
|
|
|
131
131
|
groupEnd: e
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
x++;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
function Ye() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
139
|
+
if (x--, x === 0) {
|
|
140
140
|
var e = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
143
|
writable: !0
|
|
144
144
|
};
|
|
145
145
|
Object.defineProperties(console, {
|
|
146
|
-
log:
|
|
146
|
+
log: _({}, e, {
|
|
147
147
|
value: ee
|
|
148
148
|
}),
|
|
149
|
-
info:
|
|
149
|
+
info: _({}, e, {
|
|
150
150
|
value: re
|
|
151
151
|
}),
|
|
152
|
-
warn:
|
|
152
|
+
warn: _({}, e, {
|
|
153
153
|
value: te
|
|
154
154
|
}),
|
|
155
|
-
error:
|
|
155
|
+
error: _({}, e, {
|
|
156
156
|
value: ne
|
|
157
157
|
}),
|
|
158
|
-
group:
|
|
158
|
+
group: _({}, e, {
|
|
159
159
|
value: ae
|
|
160
160
|
}),
|
|
161
|
-
groupCollapsed:
|
|
161
|
+
groupCollapsed: _({}, e, {
|
|
162
162
|
value: ie
|
|
163
163
|
}),
|
|
164
|
-
groupEnd:
|
|
164
|
+
groupEnd: _({}, e, {
|
|
165
165
|
value: oe
|
|
166
166
|
})
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
var N =
|
|
173
|
-
function
|
|
172
|
+
var N = S.ReactCurrentDispatcher, J;
|
|
173
|
+
function W(e, r, t) {
|
|
174
174
|
{
|
|
175
175
|
if (J === void 0)
|
|
176
176
|
try {
|
|
@@ -183,16 +183,16 @@ function cr() {
|
|
|
183
183
|
` + J + e;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
var q = !1,
|
|
186
|
+
var q = !1, Y;
|
|
187
187
|
{
|
|
188
188
|
var Le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
189
|
-
|
|
189
|
+
Y = new Le();
|
|
190
190
|
}
|
|
191
191
|
function se(e, r) {
|
|
192
192
|
if (!e || q)
|
|
193
193
|
return "";
|
|
194
194
|
{
|
|
195
|
-
var t =
|
|
195
|
+
var t = Y.get(e);
|
|
196
196
|
if (t !== void 0)
|
|
197
197
|
return t;
|
|
198
198
|
}
|
|
@@ -247,7 +247,7 @@ function cr() {
|
|
|
247
247
|
if (s--, l--, l < 0 || a[s] !== v[l]) {
|
|
248
248
|
var g = `
|
|
249
249
|
` + a[s].replace(" at new ", " at ");
|
|
250
|
-
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
250
|
+
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, g), g;
|
|
251
251
|
}
|
|
252
252
|
while (s >= 1 && l >= 0);
|
|
253
253
|
break;
|
|
@@ -256,8 +256,8 @@ function cr() {
|
|
|
256
256
|
} finally {
|
|
257
257
|
q = !1, N.current = u, Ye(), Error.prepareStackTrace = o;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
return typeof e == "function" &&
|
|
259
|
+
var C = e ? e.displayName || e.name : "", m = C ? W(C) : "";
|
|
260
|
+
return typeof e == "function" && Y.set(e, m), m;
|
|
261
261
|
}
|
|
262
262
|
function Me(e, r, t) {
|
|
263
263
|
return se(e, !1);
|
|
@@ -266,46 +266,46 @@ function cr() {
|
|
|
266
266
|
var r = e.prototype;
|
|
267
267
|
return !!(r && r.isReactComponent);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function L(e, r, t) {
|
|
270
270
|
if (e == null)
|
|
271
271
|
return "";
|
|
272
272
|
if (typeof e == "function")
|
|
273
273
|
return se(e, Ve(e));
|
|
274
274
|
if (typeof e == "string")
|
|
275
|
-
return
|
|
275
|
+
return W(e);
|
|
276
276
|
switch (e) {
|
|
277
|
-
case
|
|
278
|
-
return
|
|
277
|
+
case O:
|
|
278
|
+
return W("Suspense");
|
|
279
279
|
case p:
|
|
280
|
-
return
|
|
280
|
+
return W("SuspenseList");
|
|
281
281
|
}
|
|
282
282
|
if (typeof e == "object")
|
|
283
283
|
switch (e.$$typeof) {
|
|
284
284
|
case f:
|
|
285
285
|
return Me(e.render);
|
|
286
286
|
case y:
|
|
287
|
-
return
|
|
288
|
-
case
|
|
287
|
+
return L(e.type, r, t);
|
|
288
|
+
case R: {
|
|
289
289
|
var n = e, o = n._payload, u = n._init;
|
|
290
290
|
try {
|
|
291
|
-
return
|
|
291
|
+
return L(u(o), r, t);
|
|
292
292
|
} catch {
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
return "";
|
|
297
297
|
}
|
|
298
|
-
var
|
|
299
|
-
function
|
|
298
|
+
var k = Object.prototype.hasOwnProperty, le = {}, fe = S.ReactDebugCurrentFrame;
|
|
299
|
+
function M(e) {
|
|
300
300
|
if (e) {
|
|
301
|
-
var r = e._owner, t =
|
|
301
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
302
302
|
fe.setExtraStackFrame(t);
|
|
303
303
|
} else
|
|
304
304
|
fe.setExtraStackFrame(null);
|
|
305
305
|
}
|
|
306
306
|
function Ue(e, r, t, n, o) {
|
|
307
307
|
{
|
|
308
|
-
var u = Function.call.bind(
|
|
308
|
+
var u = Function.call.bind(k);
|
|
309
309
|
for (var i in e)
|
|
310
310
|
if (u(e, i)) {
|
|
311
311
|
var a = void 0;
|
|
@@ -318,7 +318,7 @@ function cr() {
|
|
|
318
318
|
} catch (s) {
|
|
319
319
|
a = s;
|
|
320
320
|
}
|
|
321
|
-
a && !(a instanceof Error) && (
|
|
321
|
+
a && !(a instanceof Error) && (M(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), M(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, M(o), c("Failed %s type: %s", t, a.message), M(null));
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
@@ -346,14 +346,14 @@ function cr() {
|
|
|
346
346
|
if (qe(e))
|
|
347
347
|
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ce(e);
|
|
348
348
|
}
|
|
349
|
-
var de =
|
|
349
|
+
var de = S.ReactCurrentOwner, Be = {
|
|
350
350
|
key: !0,
|
|
351
351
|
ref: !0,
|
|
352
352
|
__self: !0,
|
|
353
353
|
__source: !0
|
|
354
354
|
}, pe, ge;
|
|
355
355
|
function Ke(e) {
|
|
356
|
-
if (
|
|
356
|
+
if (k.call(e, "ref")) {
|
|
357
357
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
358
358
|
if (r && r.isReactWarning)
|
|
359
359
|
return !1;
|
|
@@ -361,7 +361,7 @@ function cr() {
|
|
|
361
361
|
return e.ref !== void 0;
|
|
362
362
|
}
|
|
363
363
|
function Ge(e) {
|
|
364
|
-
if (
|
|
364
|
+
if (k.call(e, "key")) {
|
|
365
365
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
366
366
|
if (r && r.isReactWarning)
|
|
367
367
|
return !1;
|
|
@@ -396,7 +396,7 @@ function cr() {
|
|
|
396
396
|
var Ze = function(e, r, t, n, o, u, i) {
|
|
397
397
|
var a = {
|
|
398
398
|
// This tag allows us to uniquely identify this as a React Element
|
|
399
|
-
$$typeof:
|
|
399
|
+
$$typeof: b,
|
|
400
400
|
// Built-in properties that belong on the element
|
|
401
401
|
type: e,
|
|
402
402
|
key: r,
|
|
@@ -427,7 +427,7 @@ function cr() {
|
|
|
427
427
|
var u, i = {}, a = null, v = null;
|
|
428
428
|
t !== void 0 && (ve(t), a = "" + t), Ge(r) && (ve(r.key), a = "" + r.key), Ke(r) && (v = r.ref, ze(r, o));
|
|
429
429
|
for (u in r)
|
|
430
|
-
|
|
430
|
+
k.call(r, u) && !Be.hasOwnProperty(u) && (i[u] = r[u]);
|
|
431
431
|
if (e && e.defaultProps) {
|
|
432
432
|
var s = e.defaultProps;
|
|
433
433
|
for (u in s)
|
|
@@ -440,10 +440,10 @@ function cr() {
|
|
|
440
440
|
return Ze(e, a, v, o, n, de.current, i);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
var K =
|
|
444
|
-
function
|
|
443
|
+
var K = S.ReactCurrentOwner, ye = S.ReactDebugCurrentFrame;
|
|
444
|
+
function P(e) {
|
|
445
445
|
if (e) {
|
|
446
|
-
var r = e._owner, t =
|
|
446
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
447
447
|
ye.setExtraStackFrame(t);
|
|
448
448
|
} else
|
|
449
449
|
ye.setExtraStackFrame(null);
|
|
@@ -451,7 +451,7 @@ function cr() {
|
|
|
451
451
|
var G;
|
|
452
452
|
G = !1;
|
|
453
453
|
function z(e) {
|
|
454
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
454
|
+
return typeof e == "object" && e !== null && e.$$typeof === b;
|
|
455
455
|
}
|
|
456
456
|
function Ee() {
|
|
457
457
|
{
|
|
@@ -491,7 +491,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
491
491
|
return;
|
|
492
492
|
be[t] = !0;
|
|
493
493
|
var n = "";
|
|
494
|
-
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."),
|
|
494
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), P(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), P(null);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
function Re(e, r) {
|
|
@@ -543,11 +543,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
543
543
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
544
544
|
var n = r[t];
|
|
545
545
|
if (n !== "children" && n !== "key") {
|
|
546
|
-
|
|
546
|
+
P(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
|
|
547
547
|
break;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
e.ref !== null && (
|
|
550
|
+
e.ref !== null && (P(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
var _e = {};
|
|
@@ -560,7 +560,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
560
560
|
var v = er();
|
|
561
561
|
v ? a += v : a += Ee();
|
|
562
562
|
var s;
|
|
563
|
-
e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof ===
|
|
563
|
+
e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof === b ? (s = "<" + (E(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);
|
|
564
564
|
}
|
|
565
565
|
var l = Qe(e, r, t, o, u);
|
|
566
566
|
if (l == null)
|
|
@@ -570,29 +570,29 @@ Check the top-level render call using <` + t + ">.");
|
|
|
570
570
|
if (g !== void 0)
|
|
571
571
|
if (n)
|
|
572
572
|
if (B(g)) {
|
|
573
|
-
for (var
|
|
574
|
-
Re(g[
|
|
573
|
+
for (var C = 0; C < g.length; C++)
|
|
574
|
+
Re(g[C], e);
|
|
575
575
|
Object.freeze && Object.freeze(g);
|
|
576
576
|
} else
|
|
577
577
|
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
578
578
|
else
|
|
579
579
|
Re(g, e);
|
|
580
580
|
}
|
|
581
|
-
if (
|
|
582
|
-
var
|
|
581
|
+
if (k.call(r, "key")) {
|
|
582
|
+
var m = E(e), d = Object.keys(r).filter(function(lr) {
|
|
583
583
|
return lr !== "key";
|
|
584
584
|
}), X = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
585
|
-
if (!_e[
|
|
585
|
+
if (!_e[m + X]) {
|
|
586
586
|
var sr = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
|
|
587
587
|
c(`A props object containing a "key" prop is being spread into JSX:
|
|
588
588
|
let props = %s;
|
|
589
589
|
<%s {...props} />
|
|
590
590
|
React keys must be passed directly to JSX without using spread:
|
|
591
591
|
let props = %s;
|
|
592
|
-
<%s key={someKey} {...props} />`, X,
|
|
592
|
+
<%s key={someKey} {...props} />`, X, m, sr, m), _e[m + X] = !0;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
return e ===
|
|
595
|
+
return e === T ? nr(l) : tr(l), l;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function ar(e, r, t) {
|
|
@@ -602,16 +602,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
602
602
|
return me(e, r, t, !1);
|
|
603
603
|
}
|
|
604
604
|
var or = ir, ur = ar;
|
|
605
|
-
|
|
606
|
-
})()),
|
|
605
|
+
F.Fragment = T, F.jsx = or, F.jsxs = ur;
|
|
606
|
+
})()), F;
|
|
607
607
|
}
|
|
608
608
|
var Se;
|
|
609
609
|
function vr() {
|
|
610
|
-
return Se || (Se = 1, process.env.NODE_ENV === "production" ?
|
|
610
|
+
return Se || (Se = 1, process.env.NODE_ENV === "production" ? V.exports = fr() : V.exports = cr()), V.exports;
|
|
611
611
|
}
|
|
612
612
|
var dr = vr();
|
|
613
|
-
function gr() {
|
|
614
|
-
return /* @__PURE__ */ dr.jsx("button", { children:
|
|
613
|
+
function gr({ text: w = "Hello from package", ...b }) {
|
|
614
|
+
return /* @__PURE__ */ dr.jsx("button", { ...b, children: w });
|
|
615
615
|
}
|
|
616
616
|
export {
|
|
617
617
|
gr as MyButton
|
package/package.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhoimayur/testnpm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "dist/index.js",
|
|
5
6
|
"module": "dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
6
13
|
"files": [
|
|
7
14
|
"dist"
|
|
8
15
|
],
|
|
9
|
-
"type": "module",
|
|
10
16
|
"scripts": {
|
|
11
17
|
"build": "vite build"
|
|
12
18
|
},
|