Skip to content

Commit b6bc1c2

Browse files
committed
gut deps some more
1 parent 17e2a55 commit b6bc1c2

File tree

7 files changed

+815
-1675
lines changed

7 files changed

+815
-1675
lines changed

.npmignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/colors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict'
22

33
const fs = require('fs')
4+
const crypto = require('crypto')
45
const colorConvert = require('color-convert')
56
const getImageColors = require('get-image-colors')
67
const mime = require('mime-types')
78
const path = require('path')
89
const pickAGoodColor = require('pick-a-good-color')
9-
const revHash = require('rev-hash')
1010
const stringify = require('json-stable-stringify')
1111

1212
/**
@@ -23,7 +23,7 @@ async function getColors(slugsAndIconPaths, oldColors, root) {
2323
const slug = app.slug
2424
try {
2525
const data = fs.readFileSync(app.iconPath)
26-
const hash = revHash(data)
26+
const hash = crypto.createHash('sha256').update(data).digest('hex')
2727

2828
// if nothing's changed, don't recalculate
2929
let o = oldColors[slug]

lib/github.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)