Socket
Socket
Sign inDemoInstall

vitepress

Package Overview
Dependencies
Maintainers
4
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.22.3 to 0.22.4

dist/node/serve-3035f99b.js

10

dist/client/app/index.js

@@ -36,6 +36,2 @@ import { createApp as createClientApp, createSSRApp, defineAsyncComponent, h, onMounted, watch } from 'vue';

app.provide(dataSymbol, data);
if (inBrowser) {
// dynamically update head tags
useUpdateHead(router.route, data.site);
}
// install global components

@@ -60,3 +56,3 @@ app.component('Content', Content);

}
return { app, router };
return { app, router, data };
}

@@ -109,7 +105,9 @@ function newApp() {

if (inBrowser) {
const { app, router } = createApp();
const { app, router, data } = createApp();
// wait until page component is fetched before mounting
router.go().then(() => {
// dynamically update head tags
useUpdateHead(router.route, data.site);
app.mount('#app');
});
}

11

dist/node/cli.js
'use strict';
var serve = require('./serve-777539c0.js');
var serve = require('./serve-3035f99b.js');
require('fs');

@@ -97,3 +97,3 @@ require('path');

var key = keys[i];
if (key === '__proto__') return;
if (isConstructorOrProto(o, key)) return;
if (o[key] === undefined) o[key] = {};

@@ -107,3 +107,3 @@ if (o[key] === Object.prototype || o[key] === Number.prototype

var key = keys[keys.length - 1];
if (key === '__proto__') return;
if (isConstructorOrProto(o, key)) return;
if (o === Object.prototype || o === Number.prototype

@@ -272,2 +272,7 @@ || o === String.prototype) o = {};

function isConstructorOrProto (obj, key) {
return key === 'constructor' && typeof obj[key] === 'function' || key === '__proto__';
}
const argv = minimist(process.argv.slice(2));

@@ -274,0 +279,0 @@ console.log(serve.source.cyan(`vitepress v${require("../../package.json").version}`));

@@ -141,3 +141,3 @@ import { AliasOptions } from 'vite';

export interface AlgoliaSearchOptions {
appId?: string
appId: string
apiKey: string

@@ -144,0 +144,0 @@ indexName: string

@@ -5,3 +5,3 @@ 'use strict';

var serve = require('./serve-777539c0.js');
var serve = require('./serve-3035f99b.js');
require('vite');

@@ -8,0 +8,0 @@ require('readline');

{
"name": "vitepress",
"version": "0.22.3",
"version": "0.22.4",
"description": "Vite & Vue powered static site generator",

@@ -47,11 +47,11 @@ "main": "dist/node/index.js",

"dependencies": {
"@docsearch/css": "^3.0.0-alpha.41",
"@docsearch/js": "^3.0.0-alpha.41",
"@vitejs/plugin-vue": "^2.2.0",
"@docsearch/css": "^3.0.0",
"@docsearch/js": "^3.0.0",
"@vitejs/plugin-vue": "^2.3.2",
"prismjs": "^1.25.0",
"vite": "^2.8.1",
"vue": "^3.2.31"
"vite": "^2.9.7",
"vue": "^3.2.33"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.18.9",
"@microsoft/api-extractor": "^7.23.1",
"@rollup/plugin-alias": "^3.1.5",

@@ -106,4 +106,4 @@ "@rollup/plugin-commonjs": "^20.0.0",

"sirv": "^1.0.12",
"typescript": "^4.3.2",
"vitest": "^0.1.19",
"typescript": "^4.6.4",
"vitest": "^0.10.4",
"yorkie": "^2.0.0"

@@ -128,3 +128,3 @@ },

"lint:ts": "prettier --check --write --parser typescript \"{__tests__,src,docs,types}/**/*.ts\"",
"test": "vitest run __tests__ -c __tests__/vitest.config.js --global",
"test": "vitest run __tests__ -c __tests__/vitest.config.js --globals",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",

@@ -135,3 +135,3 @@ "release": "node scripts/release.js",

"docs-debug": "node --inspect-brk ./bin/vitepress dev docs",
"docs-build": "npm run build && node ./bin/vitepress build docs",
"docs-build": "run-s build docs-build-only",
"docs-build-only": "node ./bin/vitepress build docs",

@@ -138,0 +138,0 @@ "docs-serve": "node ./bin/vitepress serve docs",

@@ -124,3 +124,3 @@ export namespace DefaultTheme {

export interface AlgoliaSearchOptions {
appId?: string
appId: string
apiKey: string

@@ -127,0 +127,0 @@ indexName: string

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