Skip to content

Commit ced0c4a

Browse files
committed
chore: upgrade deps
1 parent a238ab0 commit ced0c4a

File tree

3 files changed

+39
-41
lines changed

3 files changed

+39
-41
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
lint-staged
4+
npx lint-staged

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
Switch ui component for react.
66

77
[![NPM version][npm-image]][npm-url]
8-
[![build status][travis-image]][travis-url]
9-
[![Test coverage][coveralls-image]][coveralls-url]
108
[![npm download][download-image]][download-url]
9+
[![build status][github-actions-image]][github-actions-url]
10+
[![Test coverage][codecov-image]][codecov-url]
1111
[![bundle size][bundlephobia-image]][bundlephobia-url]
1212

1313
[npm-image]: http://img.shields.io/npm/v/rc-switch.svg?style=flat-square
1414
[npm-url]: http://npmjs.org/package/rc-switch
15-
[travis-image]: https://img.shields.io/travis/react-component/switch/master?style=flat-square
16-
[travis-url]: https://travis-ci.org/react-component/switch
17-
[circleci-image]: https://img.shields.io/circleci/react-component/switch/master?style=flat-square
18-
[circleci-url]: https://circleci.com/gh/react-component/switch
19-
[coveralls-image]: https://img.shields.io/coveralls/react-component/switch.svg?style=flat-square
20-
[coveralls-url]: https://coveralls.io/r/react-component/switch?branch=master
21-
[david-url]: https://david-dm.org/react-component/switch
22-
[david-image]: https://david-dm.org/react-component/switch/status.svg?style=flat-square
23-
[david-dev-url]: https://david-dm.org/react-component/switch?type=dev
24-
[david-dev-image]: https://david-dm.org/react-component/switch/dev-status.svg?style=flat-square
15+
[travis-image]: https://img.shields.io/travis/react-component/select/master?style=flat-square
16+
[travis-url]: https://travis-ci.com/react-component/select
17+
[github-actions-image]: https://github.com/react-component/select/workflows/CI/badge.svg
18+
[github-actions-url]: https://github.com/react-component/select/actions
19+
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/select/master.svg?style=flat-square
20+
[codecov-url]: https://app.codecov.io/gh/react-component/select
21+
[david-url]: https://david-dm.org/react-component/select
22+
[david-image]: https://david-dm.org/react-component/select/status.svg?style=flat-square
23+
[david-dev-url]: https://david-dm.org/react-component/select?type=dev
24+
[david-dev-image]: https://david-dm.org/react-component/select/dev-status.svg?style=flat-square
2525
[download-image]: https://img.shields.io/npm/dm/rc-switch.svg?style=flat-square
2626
[download-url]: https://npmjs.org/package/rc-switch
27-
[bundlephobia-url]: https://bundlephobia.com/result?p=rc-switch
27+
[bundlephobia-url]: https://bundlephobia.com/package/rc-switch
2828
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-switch
2929

3030
## Install
@@ -42,8 +42,8 @@ export default () => <Switch />;
4242
## Compatibility
4343

4444
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Electron |
45-
| --- | --- | --- | --- | --- |
46-
| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
45+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
46+
| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
4747

4848
## API
4949

package.json

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,50 @@
88
"react-switch",
99
"switch"
1010
],
11+
"homepage": "http://github.com/react-component/switch",
12+
"bugs": {
13+
"url": "http://github.com/react-component/switch/issues"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "git@github.com:react-component/switch.git"
18+
},
19+
"license": "MIT",
1120
"main": "lib/index",
1221
"module": "./es/index",
1322
"files": [
1423
"assets/*.css",
1524
"es",
1625
"lib"
1726
],
18-
"homepage": "http://github.com/react-component/switch",
19-
"repository": {
20-
"type": "git",
21-
"url": "git@github.com:react-component/switch.git"
22-
},
23-
"bugs": {
24-
"url": "http://github.com/react-component/switch/issues"
25-
},
26-
"license": "MIT",
2727
"scripts": {
28-
"start": "dumi dev",
28+
"compile": "father build && lessc assets/index.less assets/index.css",
2929
"docs:build": "dumi build",
3030
"docs:deploy": "gh-pages -d .doc",
31-
"compile": "father build && lessc assets/index.less assets/index.css",
3231
"gh-pages": "npm run docs:build && npm run docs:deploy",
33-
"prepublishOnly": "npm run compile && np --yolo --no-publish",
34-
"postpublish": "npm run gh-pages",
3532
"lint": "eslint .",
3633
"lint-staged": "lint-staged",
37-
"test": "umi-test",
38-
"coverage": "father test --coverage",
39-
"prepare": "husky install"
34+
"prepare": "husky install",
35+
"prepublishOnly": "npm run compile && np --yolo --no-publish",
36+
"postpublish": "npm run gh-pages",
37+
"start": "dumi dev",
38+
"test": "umi-test"
4039
},
4140
"lint-staged": {
4241
"**/*.{js,jsx,tsx,ts,md,json}": [
43-
"prettier --write",
44-
"git add"
42+
"prettier --write"
4543
]
4644
},
45+
"dependencies": {
46+
"@babel/runtime": "^7.21.0",
47+
"classnames": "^2.2.1",
48+
"rc-util": "^5.30.0"
49+
},
4750
"devDependencies": {
4851
"@rc-component/father-plugin": "^1.0.0",
4952
"@types/classnames": "^2.2.10",
5053
"@types/jest": "^26.0.4",
5154
"@umijs/fabric": "^3.0.0",
52-
"coveralls": "^3.0.6",
5355
"dumi": "^1.1.0",
5456
"enzyme": "^3.0.0",
5557
"enzyme-adapter-react-16": "^1.0.1",
@@ -59,8 +61,9 @@
5961
"gh-pages": "^4.0.0",
6062
"husky": "^8.0.1",
6163
"less": "^3.11.1",
62-
"lint-staged": "^13.0.3",
64+
"lint-staged": "^13.2.1",
6365
"np": "^7.1.0",
66+
"prettier": "^2.8.8",
6467
"react": "^16.0.0",
6568
"react-dom": "^16.0.0",
6669
"react-test-renderer": "^16.0.0",
@@ -69,10 +72,5 @@
6972
"peerDependencies": {
7073
"react": ">=16.9.0",
7174
"react-dom": ">=16.9.0"
72-
},
73-
"dependencies": {
74-
"@babel/runtime": "^7.10.1",
75-
"classnames": "^2.2.1",
76-
"rc-util": "^5.0.1"
7775
}
7876
}

0 commit comments

Comments
 (0)