best-unit 0.0.3 → 0.0.5

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(){console.log("npm package test!!!")}function e(){console.log("Current time:",new Date().toISOString())}exports.npmTest=t;exports.printCurrentTime=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(){console.log("npm package test!!!")}function s(){console.log("Current time:",new Date().toISOString())}var u;function a(r){return r.children}u={__e:function(r,t,l,f){for(var e,c,o;t=t.__;)if((e=t.__c)&&!e.__)try{if((c=e.constructor)&&c.getDerivedStateFromError!=null&&(e.setState(c.getDerivedStateFromError(r)),o=e.__d),e.componentDidCatch!=null&&(e.componentDidCatch(r,f||{}),o=e.__d),o)return e.__E=e}catch(n){r=n}throw r}},typeof Promise=="function"&&Promise.prototype.then.bind(Promise.resolve());var m=0;function i(r,t,l,f,e,c){t||(t={});var o,n,_=t;if("ref"in _)for(n in _={},t)n=="ref"?o=t[n]:_[n]=t[n];var p={type:r,props:_,key:l,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--m,__i:-1,__u:0,__source:e,__self:c};if(typeof r=="function"&&(o=r.defaultProps))for(n in o)_[n]===void 0&&(_[n]=o[n]);return u.vnode&&u.vnode(p),p}function v(){return i(a,{children:i("div",{children:i("h1",{children:"Hello World"})})})}exports.App=v;exports.npmTest=d;exports.printCurrentTime=s;
@@ -0,0 +1,6 @@
1
+ export declare function npmTest(): void;
2
+
3
+ export declare function printCurrentTime(): void;
4
+
5
+ import * as Preact from 'preact';
6
+ export declare const App: Preact.FC;
package/dist/best-unit.js CHANGED
@@ -1,10 +1,35 @@
1
- function t() {
1
+ function a() {
2
2
  console.log("npm package test!!!");
3
3
  }
4
- function o() {
4
+ function v() {
5
5
  console.log("Current time:", (/* @__PURE__ */ new Date()).toISOString());
6
6
  }
7
+ var i;
8
+ function p(r) {
9
+ return r.children;
10
+ }
11
+ i = { __e: function(r, o, l, f) {
12
+ for (var e, c, t; o = o.__; ) if ((e = o.__c) && !e.__) try {
13
+ if ((c = e.constructor) && c.getDerivedStateFromError != null && (e.setState(c.getDerivedStateFromError(r)), t = e.__d), e.componentDidCatch != null && (e.componentDidCatch(r, f || {}), t = e.__d), t) return e.__E = e;
14
+ } catch (n) {
15
+ r = n;
16
+ }
17
+ throw r;
18
+ } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
19
+ var s = 0;
20
+ function u(r, o, l, f, e, c) {
21
+ o || (o = {});
22
+ var t, n, _ = o;
23
+ if ("ref" in _) for (n in _ = {}, o) n == "ref" ? t = o[n] : _[n] = o[n];
24
+ var d = { type: r, props: _, key: l, ref: t, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --s, __i: -1, __u: 0, __source: e, __self: c };
25
+ if (typeof r == "function" && (t = r.defaultProps)) for (n in t) _[n] === void 0 && (_[n] = t[n]);
26
+ return i.vnode && i.vnode(d), d;
27
+ }
28
+ function m() {
29
+ return /* @__PURE__ */ u(p, { children: /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u("h1", { children: "Hello World" }) }) });
30
+ }
7
31
  export {
8
- t as npmTest,
9
- o as printCurrentTime
32
+ m as App,
33
+ a as npmTest,
34
+ v as printCurrentTime
10
35
  };
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "best-unit",
3
3
  "private": false,
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "main": "dist/best-unit.cjs",
7
7
  "module": "dist/best-unit.js",
8
+ "types": "dist/best-unit.d.ts",
8
9
  "scripts": {
9
10
  "dev": "vite",
10
11
  "build": "tsc -b && vite build",
package/src/main.ts CHANGED
@@ -1,8 +1,9 @@
1
1
 
2
2
  import { npmTest, printCurrentTime } from './index.ts'
3
-
3
+ import { App } from './app.tsx'
4
4
 
5
5
  export {
6
6
  npmTest,
7
- printCurrentTime
7
+ printCurrentTime,
8
+ App
8
9
  }
package/tsconfig.app.json CHANGED
@@ -24,7 +24,6 @@
24
24
  "strict": true,
25
25
  "noUnusedLocals": true,
26
26
  "noUnusedParameters": true,
27
- "erasableSyntaxOnly": true,
28
27
  "noFallthroughCasesInSwitch": true,
29
28
  "noUncheckedSideEffectImports": true
30
29
  },
package/tsconfig.json CHANGED
@@ -1,4 +1,9 @@
1
1
  {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "declarationDir": "dist",
5
+ "declarationMap": false,
6
+ },
2
7
  "files": [],
3
8
  "references": [
4
9
  { "path": "./tsconfig.app.json" },
@@ -17,7 +17,6 @@
17
17
  "strict": true,
18
18
  "noUnusedLocals": true,
19
19
  "noUnusedParameters": true,
20
- "erasableSyntaxOnly": true,
21
20
  "noFallthroughCasesInSwitch": true,
22
21
  "noUncheckedSideEffectImports": true
23
22
  },