Skip to content

Commit

Permalink
Merge pull request #70 from huchenme/upgrade
Browse files Browse the repository at this point in the history
chore: Upgrade dependency versions
  • Loading branch information
huchenme authored Oct 2, 2019
2 parents 3f7db36 + 5185a23 commit cded894
Show file tree
Hide file tree
Showing 14 changed files with 19,521 additions and 16,245 deletions.
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--install.ignore-engines true
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
- [languages](#languages)
- [fetchRepositories(params)](#fetchrepositoriesparams)
- [fetchDevelopers(params)](#fetchdevelopersparams)
- [Contributors](#contributors)
- [Code Contributors](#code-contributors)
- [Financial Contributors](#financial-contributors)
- [Individuals](#individuals)
- [Organizations](#organizations)
- [License](#license)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
Expand Down Expand Up @@ -101,7 +106,7 @@ https://github-trending-api.now.sh/repositories?language=javascript&since=weekly

**Parameters:**

- `language`: **optional**, list trending repositories of certain programming languages, possible values are listed [here](languages.json).
- `language`: **optional**, list trending repositories of certain programming languages, possible values are listed [here](./src/languages.json).
- `since`: **optional**, default to `daily`, possible values: `daily`, `weekly` and `monthly`.

**Response:**
Expand Down
68 changes: 36 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"module": "dist/github-trending.esm.js",
"types": "dist/index.d.ts",
"engines": {
"node": ">=8.0.0"
"node": "10.x"
},
"repository": {
"type": "git",
Expand All @@ -27,51 +27,52 @@
},
"homepage": "https://github.com/huchenme/github-trending-api#readme",
"dependencies": {
"@babel/runtime": "^7.4.5",
"@babel/runtime": "^7.6.2",
"cheerio": "^1.0.0-rc.3",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-cache-controller": "^1.1.0",
"lodash": "^4.17.11",
"lodash": "^4.17.15",
"memory-cache": "^0.2.0",
"node-fetch": "^2.6.0",
"opencollective-postinstall": "^2.0.2"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/node": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-typescript": "^7.3.3",
"@types/cors": "^2.8.5",
"@types/express": "^4.17.0",
"@types/jest": "^24.0.13",
"@types/lodash": "^4.14.134",
"@babel/core": "^7.6.2",
"@babel/node": "^7.6.2",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"@babel/preset-typescript": "^7.6.0",
"@types/cors": "^2.8.6",
"@types/express": "^4.17.1",
"@types/jest": "^24.0.18",
"@types/lodash": "^4.14.141",
"@types/memory-cache": "^0.2.0",
"@types/node-fetch": "^2.3.5",
"@typescript-eslint/eslint-plugin": "^1.10.2",
"@typescript-eslint/parser": "^1.10.2",
"babel-jest": "^24.8.0",
"@types/node-fetch": "^2.5.2",
"@typescript-eslint/eslint-plugin": "^2.3.2",
"@typescript-eslint/parser": "^2.3.2",
"babel-jest": "^24.9.0",
"babel-plugin-lodash": "^3.3.4",
"doctoc": "^1.4.0",
"eslint": "^5.16.0",
"eslint-config-kentcdodds": "14.3.4",
"husky": "^2.4.0",
"jest": "^24.8.0",
"lint-staged": "^9.0.0",
"nodemon": "^1.19.1",
"eslint": "^6.5.1",
"eslint-config-kentcdodds": "14.4.1",
"husky": "^3.0.8",
"jest": "^24.9.0",
"lint-staged": "^9.4.1",
"nodemon": "^1.19.3",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"rimraf": "^2.6.3",
"rollup": "^1.14.6",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-node-resolve": "^5.0.1",
"rollup-plugin-terser": "^5.0.0",
"semantic-release": "^15.13.12",
"rimraf": "^3.0.0",
"rollup": "^1.22.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.2",
"semantic-release": "^15.13.24",
"travis-deploy-once": "^5.0.11",
"typescript": "^3.5.1"
"typescript": "^3.6.3"
},
"scripts": {
"dev": "nodemon --exec babel-node --extensions .ts ./src/server.ts",
Expand Down Expand Up @@ -112,5 +113,8 @@
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/github-trending-api"
},
"resolutions": {
"@types/node": "^9.6.7"
}
}
}
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from 'path';
import babel from 'rollup-plugin-babel';
import { terser } from 'rollup-plugin-terser';
import resolve from 'rollup-plugin-node-resolve';
import json from 'rollup-plugin-json';
import pkg from './package.json';

const external = id => !id.startsWith('.') && !path.isAbsolute(id);
Expand All @@ -27,6 +28,7 @@ export default [
{ file: pkg.module, format: 'es' },
],
plugins: [
json(),
resolvePlugin,
babelPlugin,
process.env.NODE_ENV === 'production' && terser(),
Expand All @@ -36,6 +38,6 @@ export default [
input: 'src/server.ts',
external,
output: [{ file: 'dist/server.cjs.js', format: 'cjs' }],
plugins: [resolvePlugin, babelPlugin],
plugins: [json(), resolvePlugin, babelPlugin],
},
];
Loading

0 comments on commit cded894

Please sign in to comment.