Removed all native comp. depdencies + fixes

This commit is contained in:
NGPixel
2017-03-04 11:23:34 -05:00
parent 9414380c9f
commit c955bdcb5b
116 changed files with 327 additions and 232 deletions

View File

@@ -4,7 +4,7 @@ const Promise = require('bluebird')
const path = require('path')
const fs = Promise.promisifyAll(require('fs-extra'))
const _ = require('lodash')
const farmhash = require('farmhash')
const crypto = require('crypto')
/**
* Entries Model
@@ -228,7 +228,7 @@ module.exports = {
* @return {String} The full cache path.
*/
getCachePath (entryPath) {
return path.join(this._cachePath, farmhash.fingerprint32(entryPath) + '.json')
return path.join(this._cachePath, crypto.createHash('md5').update(entryPath).digest('hex') + '.json')
},
/**