Skip to content

Commit

Permalink
chore: version (#5092)
Browse files Browse the repository at this point in the history
* chore: version

* fix: lint
  • Loading branch information
ClarkXia authored Dec 30, 2021
1 parent 95fba2b commit 43b9245
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/icejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ice.js",
"version": "2.4.2",
"version": "2.4.3",
"description": "command line interface and builtin plugin for icejs",
"author": "[email protected]",
"homepage": "",
Expand All @@ -24,9 +24,9 @@
"dependencies": {
"@builder/pack": "^0.5.0",
"build-scripts": "^1.1.0",
"build-plugin-app-core": "2.1.0",
"build-plugin-app-core": "2.1.1",
"build-plugin-helmet": "1.0.2",
"build-plugin-ice-auth": "2.0.0",
"build-plugin-ice-auth": "2.0.1",
"build-plugin-ice-config": "2.0.2",
"build-plugin-ice-logger": "2.0.0",
"build-plugin-ice-mpa": "2.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"bugs": {
"url": "https://github.com/alibaba/ice/issues"
}
}
}
8 changes: 4 additions & 4 deletions packages/plugin-auth/src/runtime/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ContextType, AuthType, IAuth } from './types';

const Context = createContext<any>(null);

interface Props {
interface ProviderProps {
value: AuthType;
}

Expand All @@ -13,12 +13,12 @@ interface InjectProps {
useAuth: ContextType[1];
}

const Provider: FC<Props> = ({ value = {}, children }) => {
const Provider: FC<ProviderProps> = ({ value = {}, children }) => {
const [state, setState] = useState<AuthType>(value);
const updateState: InjectProps['useAuth'] = (value = {}) => {
const updateState: InjectProps['useAuth'] = (newState = {}) => {
setState({
...state,
...value,
...newState,
});
};
return <Context.Provider value={[state, updateState]}>{children}</Context.Provider>;
Expand Down

0 comments on commit 43b9245

Please sign in to comment.