splashy 5.1.0 → 5.1.3
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.
- package/README.md +1 -1
- package/package.json +12 -17
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, {
|
|
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.
|
|
5
|
+
"version": "5.1.3",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Kiko Beats",
|
|
@@ -12,10 +12,6 @@
|
|
|
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"
|
|
19
15
|
}
|
|
20
16
|
],
|
|
21
17
|
"repository": {
|
|
@@ -42,21 +38,21 @@
|
|
|
42
38
|
],
|
|
43
39
|
"dependencies": {
|
|
44
40
|
"debug-logfmt": "~1.0.4",
|
|
45
|
-
"node-vibrant": "~3.2.
|
|
46
|
-
"sharp": "~0.
|
|
41
|
+
"node-vibrant": "~3.2.1-alpha.1",
|
|
42
|
+
"sharp": "~0.30.0"
|
|
47
43
|
},
|
|
48
44
|
"devDependencies": {
|
|
49
45
|
"@commitlint/cli": "latest",
|
|
50
46
|
"@commitlint/config-conventional": "latest",
|
|
51
47
|
"ava": "latest",
|
|
48
|
+
"c8": "latest",
|
|
52
49
|
"ci-publish": "latest",
|
|
53
50
|
"conventional-github-releaser": "latest",
|
|
54
51
|
"finepack": "latest",
|
|
55
52
|
"git-authors-cli": "latest",
|
|
56
53
|
"hexsorter": "latest",
|
|
57
|
-
"
|
|
54
|
+
"nano-staged": "latest",
|
|
58
55
|
"npm-check-updates": "latest",
|
|
59
|
-
"nyc": "latest",
|
|
60
56
|
"prettier-standard": "latest",
|
|
61
57
|
"simple-git-hooks": "latest",
|
|
62
58
|
"standard": "latest",
|
|
@@ -72,18 +68,17 @@
|
|
|
72
68
|
"scripts": {
|
|
73
69
|
"clean": "rm -rf node_modules",
|
|
74
70
|
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
75
|
-
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
|
76
71
|
"dev": "nodemon --exec \"npm start\" -e \"js\"",
|
|
77
72
|
"lint": "standard-markdown README.md && standard",
|
|
78
73
|
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
79
|
-
"preinstall": "npx bin-version-check-cli
|
|
74
|
+
"preinstall": "npx bin-version-check-cli magick \">=7\"",
|
|
80
75
|
"prerelease": "npm run update:check && npm run contributors",
|
|
81
76
|
"pretest": "npm run lint",
|
|
82
77
|
"release": "standard-version -a",
|
|
83
78
|
"release:github": "conventional-github-releaser -p angular",
|
|
84
79
|
"release:tags": "git push --follow-tags origin HEAD:master",
|
|
85
80
|
"start": "node index.js",
|
|
86
|
-
"test": "
|
|
81
|
+
"test": "c8 ava",
|
|
87
82
|
"update": "ncu -u",
|
|
88
83
|
"update:check": "ncu -- --error-level 2"
|
|
89
84
|
},
|
|
@@ -93,19 +88,19 @@
|
|
|
93
88
|
"@commitlint/config-conventional"
|
|
94
89
|
]
|
|
95
90
|
},
|
|
96
|
-
"
|
|
97
|
-
"package.json": [
|
|
98
|
-
"finepack"
|
|
99
|
-
],
|
|
91
|
+
"nano-staged": {
|
|
100
92
|
"*.js,!*.min.js,": [
|
|
101
93
|
"prettier-standard"
|
|
102
94
|
],
|
|
103
95
|
"*.md": [
|
|
104
96
|
"standard-markdown"
|
|
97
|
+
],
|
|
98
|
+
"package.json": [
|
|
99
|
+
"finepack"
|
|
105
100
|
]
|
|
106
101
|
},
|
|
107
102
|
"simple-git-hooks": {
|
|
108
103
|
"commit-msg": "npx commitlint --edit",
|
|
109
|
-
"pre-commit": "npx
|
|
104
|
+
"pre-commit": "npx nano-staged"
|
|
110
105
|
}
|
|
111
106
|
}
|