Skip to content

Commit

Permalink
chore: remove extra hash-sum dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 5, 2019
1 parent e87a5aa commit 622f8ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/manifest/module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const hash = require('hash-sum')
const hash = require('hasha')

const { joinUrl, getRouteParams, find } = require('../utils')

Expand Down
4 changes: 2 additions & 2 deletions lib/onesignal/module.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path')
const { writeFileSync, readFileSync } = require('fs')
const hashSum = require('hash-sum')
const hasha = require('hasha')
const defu = require('defu')
const { getRouteParams, joinUrl } = require('../utils')

Expand Down Expand Up @@ -52,7 +52,7 @@ function addOneSignal (oneSignalOptions) {
} else {
// Use OneSignalSDK.js from Dist
const OneSignalSDKJS = readFileSync(path.resolve(__dirname, 'dist/OneSignalSDK.js'))
const OneSignalSDKHash = hashSum(OneSignalSDKJS)
const OneSignalSDKHash = hasha(OneSignalSDKJS)
const OneSignalSDKFile = `ons.${OneSignalSDKHash}.js`

options.OneSignalSDK = joinUrl(publicPath, OneSignalSDKFile)
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"defu": "^0.0.3",
"execa": "^1.0.0",
"fs-extra": "^8.1.0",
"hash-sum": "^2.0.0",
"hasha": "^5.0.0",
"jimp-compact": "^0.6.8",
"lodash.template": "^4.5.0",
Expand Down

0 comments on commit 622f8ce

Please sign in to comment.