hexo-swpp 1.4.6 → 1.4.7

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 (3) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
  3. package/sw-dom.js +1 -1
package/index.js CHANGED
@@ -369,7 +369,10 @@ const buildUpdateJson = (name, dif, oldUpdate) => {
369
369
  !(tidied.archives || tidied.categories || tidied.tags || tidied.index)
370
370
  ) return writeJson(oldUpdate ?? {
371
371
  global: 0,
372
- info: [{flag: 'all'}]
372
+ info: [{
373
+ version: 0,
374
+ change: {}
375
+ }]
373
376
  })
374
377
  pushUpdateToInfo(newInfo, tidied)
375
378
  const result = mergeUpdateWithOld(newInfo, oldUpdate, tidied)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-swpp",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "hexo-log": "^3.0.0",
package/sw-dom.js CHANGED
@@ -44,7 +44,7 @@
44
44
  if (!list) break
45
45
  sessionStorage.setItem('updated', '1')
46
46
  // noinspection JSUnresolvedVariable,JSUnresolvedFunction
47
- if (Pjax?.isSupported()) {
47
+ if (window.Pjax.isSupported()) {
48
48
  Promise.all(list.map(url => {
49
49
  if (url.endsWith('.js'))
50
50
  return pjaxUpdate(url)