diff --git a/package.json b/package.json index 87ebca86..3d442fa6 100644 --- a/package.json +++ b/package.json @@ -24,18 +24,18 @@ }, "license": "MIT", "dependencies": { - "@octokit/rest": "^17.1.0", - "@sindresorhus/is": "^2.1.0", + "@octokit/rest": "^18.0.3", + "@sindresorhus/is": "^3.1.0", "any-size": "^1.0.1", "btoa": "^1.2.1", "cors": "^2.8.5", - "ejs": "^3.0.1", + "ejs": "^3.1.3", "escape-goat": "^3.0.0", "express": "^4.17.1", "express-minify": "^1.0.0", - "fs-extra": "^8.1.0", + "fs-extra": "^9.0.1", "html-text": "^1.0.1", - "md5": "^2.2.1", + "md5": "^2.3.0", "postcss-middleware": "^1.1.4", "postcss-preset-env": "^6.7.0", "serve-favicon": "^2.5.0", @@ -43,13 +43,13 @@ "yn": "^4.0.0" }, "devDependencies": { - "css": "^2.2.4", + "css": "^3.0.0", "file-ext": "^1.0.0", "has-flag": "^4.0.0", - "husky": "^4.2.3", - "nodemon": "^2.0.2", + "husky": "^4.2.5", + "nodemon": "^2.0.4", "path-extra": "^4.3.0", - "standard": "^14.3.3" + "standard": "^14.3.4" }, "resolutions": { "postcss-middleware/vinyl-fs/glob-stream/micromatch/braces": "^3.0.2" diff --git a/routes/post.js b/routes/post.js index a8bfe943..14e2f9a6 100644 --- a/routes/post.js +++ b/routes/post.js @@ -90,7 +90,7 @@ module.exports = async (req, res) => { try { const fileContent = JSON.stringify(userData, 0, 2) - await github.repos.createOrUpdateFile({ + await github.repos.createOrUpdateFileContents({ owner: 'remy', repo: 'mit-license', path: `users/${id}.json`, diff --git a/yarn.lock b/yarn.lock index 080e124f..357734c3 100644 Binary files a/yarn.lock and b/yarn.lock differ