splashy 5.1.0-beta.4 → 5.1.2

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 (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +14 -10
  3. package/src/index.js +0 -1
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-beta.4",
5
+ "version": "5.1.2",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "name": "Kiko Beats",
@@ -12,6 +12,10 @@
12
12
  {
13
13
  "name": "Kiko Beats",
14
14
  "email": "josefrancisco.verdu@gmail.com"
15
+ },
16
+ {
17
+ "name": "Daniel Sturm",
18
+ "email": "384815+dsturm@users.noreply.github.com"
15
19
  }
16
20
  ],
17
21
  "repository": {
@@ -38,8 +42,8 @@
38
42
  ],
39
43
  "dependencies": {
40
44
  "debug-logfmt": "~1.0.4",
41
- "node-vibrant": "~3.2.0-alpha",
42
- "sharp": "~0.29.2"
45
+ "node-vibrant": "~3.2.1-alpha.1",
46
+ "sharp": "~0.30.0"
43
47
  },
44
48
  "devDependencies": {
45
49
  "@commitlint/cli": "latest",
@@ -50,7 +54,7 @@
50
54
  "finepack": "latest",
51
55
  "git-authors-cli": "latest",
52
56
  "hexsorter": "latest",
53
- "lint-staged": "latest",
57
+ "nano-staged": "latest",
54
58
  "npm-check-updates": "latest",
55
59
  "nyc": "latest",
56
60
  "prettier-standard": "latest",
@@ -72,7 +76,7 @@
72
76
  "dev": "nodemon --exec \"npm start\" -e \"js\"",
73
77
  "lint": "standard-markdown README.md && standard",
74
78
  "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
75
- "preinstall": "npx bin-version-check-cli convert \">=7\"",
79
+ "preinstall": "npx bin-version-check-cli magick \">=7\"",
76
80
  "prerelease": "npm run update:check && npm run contributors",
77
81
  "pretest": "npm run lint",
78
82
  "release": "standard-version -a",
@@ -89,19 +93,19 @@
89
93
  "@commitlint/config-conventional"
90
94
  ]
91
95
  },
92
- "lint-staged": {
93
- "package.json": [
94
- "finepack"
95
- ],
96
+ "nano-staged": {
96
97
  "*.js,!*.min.js,": [
97
98
  "prettier-standard"
98
99
  ],
99
100
  "*.md": [
100
101
  "standard-markdown"
102
+ ],
103
+ "package.json": [
104
+ "finepack"
101
105
  ]
102
106
  },
103
107
  "simple-git-hooks": {
104
108
  "commit-msg": "npx commitlint --edit",
105
- "pre-commit": "npx lint-staged"
109
+ "pre-commit": "npx nano-staged"
106
110
  }
107
111
  }
package/src/index.js CHANGED
@@ -24,7 +24,6 @@ module.exports = async input => {
24
24
  try {
25
25
  const vibrant = createVibrant(input)
26
26
  swatch = await vibrant.getPalette()
27
- debug({ swatch })
28
27
  } catch (err) {
29
28
  debug.error(err)
30
29
  swatch = {}