Skip to content

Commit

Permalink
chore(deps): upgrade deps lib
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Feb 15, 2023
1 parent 7ecf352 commit 9d85daa
Show file tree
Hide file tree
Showing 3 changed files with 633 additions and 451 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,36 @@
"@types/react-redux": "^7.1.24",
"@types/react-router": "^5.1.18",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.35.1",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"chalk": "^3.0.0",
"commitizen": "^4.3.0",
"cross-env": "^7.0.3",
"eslint": "^8.23.0",
"eslint": "^8.34.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.1",
"eslint-plugin-react-hooks": "^4.6.0",
"fs-extra": "^8.1.0",
"glob-parent": "^5.1.0",
"jest": "^29.0.3",
"jest": "^29.4.3",
"jest-environment-jsdom": "^29.0.3",
"jsdoc-tests": "^1.1.0",
"lerna": "^5.5.1",
"mobx": "^5.15.4",
"prettier": "^2.1.0",
"prettier": "^2.8.4",
"rimraf": "^3.0.2",
"rollup": "^1.28.0",
"rollup-plugin-terser": "^7.0.0",
"ts-jest": "^29.0.1",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"tslib": "^2.3.1",
"typedoc": "^0.23.11",
"typedoc-plugin-markdown": "^3.13.4",
"typescript": "^4.8.3",
"tslib": "^2.5.0",
"typedoc": "^0.23.25",
"typedoc-plugin-markdown": "^3.14.0",
"typescript": "^4.9.5",
"yargs": "^15.1.0"
},
"resolutions": {
Expand Down
9 changes: 4 additions & 5 deletions packages/reactant/src/createApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ import {
} from 'reactant-module';
import { Config, App, Renderer } from './interfaces';

export const ContainerContext: Context<Container | null> = React.createContext<Container | null>(
null
);
export const ContainerContext: Context<Container | null> =
React.createContext<Container | null>(null);

/**
* ## Description
Expand Down Expand Up @@ -170,12 +169,12 @@ function createApp<T, S extends any[], R extends Renderer<S>>({
/**
* all modules collection
*/
modules: ((instance as any) as Service)[modulesKey]!,
modules: (instance as any as Service)[modulesKey]!,
/**
* destroy all subscriptions
*/
destroy: () => {
const modulesMap = ((instance as any) as Service)[modulesKey]!;
const modulesMap = (instance as any as Service)[modulesKey]!;
Object.keys(modulesMap).forEach((key) => {
const module = modulesMap[key] as Service | null | undefined;
const unsubscriptions = module?.[unsubscriptionsKey];
Expand Down
Loading

0 comments on commit 9d85daa

Please sign in to comment.