Skip to content

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
akameco committed Mar 31, 2020
1 parent 38d244f commit f8f9799
Show file tree
Hide file tree
Showing 9 changed files with 691 additions and 660 deletions.
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ English/日本語(日本語で入力して大丈夫です。日本語の方が
- [ ] Documentation
- [ ] Tests
- [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->

<!-- feel free to add additional comments. -->
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ node_js:
cache:
yarn: true
directories:
- ".eslintcache"
- "node_modules"
- '.eslintcache'
- 'node_modules'
script:
- yarn lint
- yarn run tsc --noEmit
Expand Down
2 changes: 1 addition & 1 deletion examples/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const pixivImg = require('pixiv-img')
const Pixiv = require('../dist')

const wait = () => new Promise(resolve => setTimeout(() => resolve(), 100))
const wait = () => new Promise((resolve) => setTimeout(() => resolve(), 100))

async function dl(json) {
// eslint-disable-next-line no-unused-vars
Expand Down
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module.exports = {
preset: 'ts-jest',
globals: {
'ts-jest': {
diagnostics: false
}
diagnostics: false,
},
},
testPathIgnorePatterns: ['/node_modules/', 'dist']
testPathIgnorePatterns: ['/node_modules/', 'dist'],
}
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"add-contributor": "all-contributors add",
"fmt": "prettier --write '**/*.{ts,js,json,md}'",
"fmt": "prettier --write .",
"build": "tsc",
"lint": "eslint --fix src/*.ts",
"test": "jest",
Expand Down Expand Up @@ -53,18 +52,17 @@
"@types/is-plain-obj": "^2.0.2",
"@types/jest": "^25.1.4",
"@types/lodash.isequal": "^4.5.5",
"@types/node": "^13.9.2",
"all-contributors-cli": "^6.14.0",
"@types/node": "^13.9.8",
"eslint": "^6.8.0",
"eslint-config-precure": "^5.3.1",
"husky": "^4.2.3",
"is-plain-obj": "^2.1.0",
"jest": "^25.1.0",
"lint-staged": "^10.0.8",
"jest": "^25.2.4",
"lint-staged": "^10.1.0",
"lodash.isequal": "^4.4.0",
"pixiv-img": "^1.0.0",
"prettier": "^1.19.1",
"ts-jest": "^25.2.1",
"prettier": "^2.0.2",
"ts-jest": "^25.3.0",
"typescript": "^3.8.3"
},
"husky": {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $ npm install --save pixiv-app-api
import PixivAppApi from 'pixiv-app-api' //const PixivAppApi = require("pixiv-app-api")
import pixivImg from 'pixiv-img' //const pixivImg = require("pixiv-img")
const pixiv = new PixivAppApi(process.env.NAME, process.env.PASSWORD, {
camelcaseKeys: true
camelcaseKeys: true,
})

;(async () => {
Expand Down Expand Up @@ -827,7 +827,7 @@ pixiv
.searchIllust(word)
.then(() => pixiv.next())
.then(() => pixiv.next())
.then(json => {
.then((json) => {
console.log(json)
})
```
Expand Down
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test('userBookmarksIllust', async () => {
test('userBookmarksIllust private', async () => {
expect.assertions(1)
const json = await pixiv.userBookmarksIllust(auth.user.id, {
restrict: 'private'
restrict: 'private',
})

expect(isPlainObj(json)).toBe(true)
Expand Down
Loading

0 comments on commit f8f9799

Please sign in to comment.