@vuepress/core 2.0.0-beta.51 → 2.0.0-beta.52

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/dist/index.js +5 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -205,6 +205,7 @@ var renderPageContent = async ({
205
205
  template: null,
206
206
  script: null,
207
207
  scriptSetup: null,
208
+ scripts: [],
208
209
  styles: [],
209
210
  customBlocks: []
210
211
  },
@@ -722,6 +723,7 @@ var createPluginApiRegisterHooks = (plugins, hooks) => () => {
722
723
  plugins.forEach(
723
724
  ({
724
725
  name: pluginName,
726
+ multiple,
725
727
  alias,
726
728
  define,
727
729
  clientConfigFile,
@@ -745,11 +747,11 @@ var createPluginApiRegisterHooks = (plugins, hooks) => () => {
745
747
  hook: normalizeClientConfigFileHook(clientConfigFile)
746
748
  });
747
749
  }
748
- Object.entries(commonHooks).forEach(([key, hook]) => {
749
- if (hooks[key] && hook) {
750
+ Object.keys(commonHooks).forEach((key) => {
751
+ if (hooks[key] && commonHooks[key]) {
750
752
  hooks[key].add({
751
753
  pluginName,
752
- hook
754
+ hook: commonHooks[key]
753
755
  });
754
756
  }
755
757
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-beta.51",
3
+ "version": "2.0.0-beta.52",
4
4
  "description": "Core package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -27,11 +27,11 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@vuepress/client": "2.0.0-beta.51",
31
- "@vuepress/markdown": "2.0.0-beta.51",
32
- "@vuepress/shared": "2.0.0-beta.51",
33
- "@vuepress/utils": "2.0.0-beta.51",
34
- "vue": "^3.2.37"
30
+ "@vuepress/client": "2.0.0-beta.52",
31
+ "@vuepress/markdown": "2.0.0-beta.52",
32
+ "@vuepress/shared": "2.0.0-beta.52",
33
+ "@vuepress/utils": "2.0.0-beta.52",
34
+ "vue": "^3.2.41"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"