hexo-swpp 1.1.0 → 1.1.1

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 (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -98,7 +98,7 @@ const buildNewJson = path => {
98
98
  else endIndex = path.length
99
99
  const url = new URL(root + path.substring(7, endIndex))
100
100
  if (findCache(url) && !isExclude(url.pathname)) {
101
- const content = fs.readFileSync(path)
101
+ const content = fs.readFileSync(path, 'utf-8')
102
102
  const key = decodeURIComponent(url.pathname)
103
103
  result[key] = crypto.createHash('md5').update(content).digest('hex')
104
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-swpp",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.2.0",