mobx-react-use-autorun 2.0.5 → 2.0.6

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.
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../dist/",
5
+ "noEmit": false,
6
+ "sourceMap": true,
7
+ },
8
+ "include": [
9
+ "**/*"
10
+ ]
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx-react-use-autorun",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "React Hook for mobx",
5
5
  "scripts": {
6
6
  "build": "npm install -g typescript@4.6.3 @types/node@17.0.23 ts-node@10.7.0 cross-env@7.0.3 && cross-env TS_NODE_SKIP_PROJECT=true ts-node bin/mobx_react_build.ts",
@@ -18,27 +18,25 @@
18
18
  "react": ">=16.8.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@babel/core": "7.17.10",
22
- "@babel/preset-env": "7.17.10",
23
- "@babel/preset-typescript": "7.16.7",
24
- "@testing-library/react-hooks": "8.0.0",
25
- "@types/jest": "27.5.0",
26
21
  "@types/node": "17.0.31",
27
22
  "@types/react": "17.0.44",
28
- "babel-jest": "28.0.3",
29
- "jest": "28.0.3",
30
- "jest-environment-jsdom": "28.0.2",
23
+ "typescript": "4.6.4",
24
+ "@testing-library/jest-dom": "5.16.4",
25
+ "@testing-library/react": "12.1.5",
26
+ "@testing-library/user-event": "13.5.0",
27
+ "@types/jest": "27.5.0",
28
+ "@types/react-dom": "18.0.3",
31
29
  "react": "17.0.2",
32
30
  "react-dom": "17.0.2",
33
- "ts-node": "10.7.0",
34
- "typescript": "4.6.4"
31
+ "react-scripts": "5.0.1"
35
32
  },
36
33
  "license": "MIT",
37
34
  "main": "./dist/index.js",
38
35
  "types": "./dist/index.d.ts",
39
36
  "eslintConfig": {
40
37
  "extends": [
41
- "react-app"
38
+ "react-app",
39
+ "react-app/jest"
42
40
  ]
43
41
  },
44
42
  "homepage": "https://github.com/zdu-strong/mobx-react-use-autorun#readme",
@@ -56,4 +54,4 @@
56
54
  "publishConfig": {
57
55
  "registry": "https://registry.npmjs.org/"
58
56
  }
59
- }
57
+ }
package/dist/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import './lib/mobx_config';
2
- import { toJS, observable } from 'mobx';
3
- import { useLocalObservable, observer } from 'mobx-react-lite';
4
- import { timeout } from './lib/timeout';
5
- import { useAsLocalSource } from './lib/useAsLocalSource';
6
- import { useAutorun } from './lib/useAutorun';
7
- import { useAsyncExhaust } from './lib/useAsyncExhaust';
8
- export { toJS, observable, observer, useLocalObservable };
9
- export { timeout };
10
- export { useAsLocalSource };
11
- export { useAutorun };
12
- export { useAsyncExhaust };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export declare function timeout(due: number | Date): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function useAsLocalSource<T extends object>(data: T): T;
@@ -1 +0,0 @@
1
- export declare function useAsyncExhaust<T>(callback: T): T;
@@ -1 +0,0 @@
1
- export declare const useAutorun: (callback: () => void, dependencyList: any[]) => void;