Socket
Socket
Sign inDemoInstall

vitepress

Package Overview
Dependencies
Maintainers
2
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitepress - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## [0.7.2](https://github.com/vuejs/vitepress/compare/v0.7.1...v0.7.2) (2020-11-02)
### Bug Fixes
- adapt to vite fix of ssr build asset paths ([6b3fbe3](https://github.com/vuejs/vitepress/commit/6b3fbe31a31adad2a836c45905bde86332e4f1f6))
### Features
- add home page feature ([#108](https://github.com/vuejs/vitepress/issues/108)) ([3a0af0b](https://github.com/vuejs/vitepress/commit/3a0af0b6141ed739aa4a2d72f43d0fa63739c695))
## [0.7.1](https://github.com/vuejs/vitepress/compare/v0.7.0...v0.7.1) (2020-10-30)

@@ -2,0 +12,0 @@

1

dist/client/app/composables/siteData.d.ts
import { Ref } from 'vue';
import { SiteData } from '../../../../types/shared';
export declare type SiteDataRef<T = any> = Ref<SiteData<T>>;
export declare const siteDataRef: Ref<SiteData>;
export declare function useSiteData<T = any>(): Ref<SiteData<T>>;

2

dist/client/app/index.js

@@ -41,3 +41,3 @@ import { createApp as createClientApp, createSSRApp, ref, readonly } from 'vue';

// in browser: native dynamic import
return import(pagePath).then((page) => {
return import(/*@vite-ignore*/ pagePath).then((page) => {
if (page.__pageData) {

@@ -44,0 +44,0 @@ pageDataRef.value = readonly(JSON.parse(page.__pageData));

@@ -13,3 +13,3 @@ "use strict";

result, appChunk, cssChunk, pageToHashMap, hashMapStirng) {
const { createApp } = require(path_1.default.join(config.tempDir, 'app.js'));
const { createApp } = require(path_1.default.join(config.tempDir, `_assets/app.js`));
const { app, router } = createApp();

@@ -29,3 +29,3 @@ const routePath = `/${page.replace(/\.md$/, '')}`;

// resolve page data so we can render head tags
const { __pageData } = require(path_1.default.join(config.tempDir, pageServerJsFileName));
const { __pageData } = require(path_1.default.join(config.tempDir, `_assets`, pageServerJsFileName));
const pageData = JSON.parse(__pageData);

@@ -32,0 +32,0 @@ const assetPath = `${siteData.base}_assets/`;

{
"name": "vitepress",
"version": "0.7.1",
"version": "0.7.2",
"description": "",

@@ -73,3 +73,3 @@ "main": "dist/node/index.js",

"slash": "^3.0.0",
"vite": "^1.0.0-rc.8",
"vite": "^1.0.0-rc.9",
"vue": "^3.0.2"

@@ -76,0 +76,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc