leaner 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/package.json +14 -5
  2. package/types/web.d.ts +5 -5
package/package.json CHANGED
@@ -1,20 +1,29 @@
1
1
  {
2
2
  "name": "leaner",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Thin, reactive wrapper for DOM",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
8
8
  "types"
9
9
  ],
10
+ "module": "./dist/core.js",
11
+ "types": "./types/core.d.ts",
12
+ "typesVersions": {
13
+ "*": {
14
+ "web": [
15
+ "./types/web.d.ts"
16
+ ]
17
+ }
18
+ },
10
19
  "exports": {
11
20
  ".": {
12
- "types": "./types/core.d.ts",
13
- "default": "./dist/core.js"
21
+ "import": "./dist/core.js",
22
+ "types": "./types/core.d.ts"
14
23
  },
15
24
  "./web": {
16
- "types": "./types/web.d.ts",
17
- "default": "./dist/web.js"
25
+ "import": "./dist/web.js",
26
+ "types": "./types/web.d.ts"
18
27
  },
19
28
  "./dist/*": "./dist/*",
20
29
  "./package.json": "./package.json"
package/types/web.d.ts CHANGED
@@ -5,12 +5,12 @@ interface App {
5
5
  use( callback: () => void ): void;
6
6
  }
7
7
 
8
- export declare function createApp( component: ( props: object, children: any[] ) => any ) : App;
8
+ export declare function createApp( component: ( props: object, children: any[] ) => any ): App;
9
9
 
10
- export declare function inject( key: string | symbol ) : any;
10
+ export declare function inject( key: string | symbol ): any;
11
11
 
12
- export declare function provide( key: string | symbol, value: any );
12
+ export declare function provide( key: string | symbol, value: any ): void;
13
13
 
14
- export declare function onMount( callback: () => void );
14
+ export declare function onMount( callback: () => void ): void;
15
15
 
16
- export declare function onDestroy( callback: () => void );
16
+ export declare function onDestroy( callback: () => void ): void;