splashy 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -26,7 +26,7 @@ $ npm install splashy --save
26
26
  const got = require('got')
27
27
 
28
28
  const url = 'https://kikobeats.com/images/avatar.jpg'
29
- const { body } = await got(url, { encoding: null })
29
+ const { body } = await got(url, { responseType: 'buffer' })
30
30
  const palette = await splashy(body)
31
31
 
32
32
  console.log(palette)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "splashy",
3
3
  "description": "Given an image, extract predominant & palette colors",
4
4
  "homepage": "https://nicedoc.io/microlinkhq/splashy",
5
- "version": "5.1.0",
5
+ "version": "5.1.1",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "name": "Kiko Beats",
@@ -54,7 +54,7 @@
54
54
  "finepack": "latest",
55
55
  "git-authors-cli": "latest",
56
56
  "hexsorter": "latest",
57
- "lint-staged": "latest",
57
+ "nano-staged": "latest",
58
58
  "npm-check-updates": "latest",
59
59
  "nyc": "latest",
60
60
  "prettier-standard": "latest",
@@ -76,7 +76,7 @@
76
76
  "dev": "nodemon --exec \"npm start\" -e \"js\"",
77
77
  "lint": "standard-markdown README.md && standard",
78
78
  "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
79
- "preinstall": "npx bin-version-check-cli convert \">=7\"",
79
+ "preinstall": "npx bin-version-check-cli magick \">=7\"",
80
80
  "prerelease": "npm run update:check && npm run contributors",
81
81
  "pretest": "npm run lint",
82
82
  "release": "standard-version -a",
@@ -93,19 +93,19 @@
93
93
  "@commitlint/config-conventional"
94
94
  ]
95
95
  },
96
- "lint-staged": {
97
- "package.json": [
98
- "finepack"
99
- ],
96
+ "nano-staged": {
100
97
  "*.js,!*.min.js,": [
101
98
  "prettier-standard"
102
99
  ],
103
100
  "*.md": [
104
101
  "standard-markdown"
102
+ ],
103
+ "package.json": [
104
+ "finepack"
105
105
  ]
106
106
  },
107
107
  "simple-git-hooks": {
108
108
  "commit-msg": "npx commitlint --edit",
109
- "pre-commit": "npx lint-staged"
109
+ "pre-commit": "npx nano-staged"
110
110
  }
111
111
  }