Socket
Socket
Sign inDemoInstall

@vuepress/plugin-theme-data

Package Overview
Dependencies
Maintainers
6
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuepress/plugin-theme-data - npm Package Compare versions

Comparing version 2.0.0-beta.49 to 2.0.0-beta.50

4

lib/client/composables/index.d.ts

@@ -1,2 +0,2 @@

export * from './useThemeData';
export * from './useThemeLocaleData';
export * from './useThemeData.js';
export * from './useThemeLocaleData.js';

@@ -1,2 +0,2 @@

export * from './useThemeData';
export * from './useThemeLocaleData';
export * from './useThemeData.js';
export * from './useThemeLocaleData.js';
import type { Ref } from 'vue';
import type { ThemeData } from '../../shared';
import type { ThemeData } from '../../shared/index.js';
export declare type ThemeDataRef<T extends ThemeData = ThemeData> = Ref<T>;
export declare const themeData: ThemeDataRef;
export declare const useThemeData: <T extends ThemeData<import("@vuepress/shared").LocaleData> = ThemeData<import("@vuepress/shared").LocaleData>>() => ThemeDataRef<T>;
import type { RouteLocale } from '@vuepress/client';
import type { ComputedRef, InjectionKey } from 'vue';
import type { ThemeData } from '../../shared';
import type { ThemeData } from '../../shared/index.js';
export declare type ThemeLocaleDataRef<T extends ThemeData = ThemeData> = ComputedRef<T>;

@@ -5,0 +5,0 @@ export declare const themeLocaleDataSymbol: InjectionKey<ThemeLocaleDataRef>;

import { setupDevtoolsPlugin } from '@vue/devtools-api';
import { defineClientConfig, routeLocaleSymbol } from '@vuepress/client';
import { computed } from 'vue';
import { resolveThemeLocaleData, themeLocaleDataSymbol, useThemeData, } from './composables';
import { resolveThemeLocaleData, themeLocaleDataSymbol, useThemeData, } from './composables/index.js';
export default defineClientConfig({

@@ -6,0 +6,0 @@ enhance({ app }) {

@@ -1,3 +0,2 @@

import type { ThemeData } from '../shared';
export type { ThemeData };
export * from './composables';
export * from '../shared/index.js';
export * from './composables/index.js';

@@ -1,1 +0,2 @@

export * from './composables';
export * from '../shared/index.js';
export * from './composables/index.js';

@@ -1,2 +0,2 @@

import type { ThemeData } from '../shared'
import type { ThemeData } from '../shared/index.js'

@@ -3,0 +3,0 @@ declare module '@internal/themeData' {

@@ -1,5 +0,5 @@

import { themeDataPlugin } from './themeDataPlugin';
export * from '../shared';
export * from './prepareThemeData';
export * from './themeDataPlugin';
import { themeDataPlugin } from './themeDataPlugin.js';
export * from '../shared/index.js';
export * from './prepareThemeData.js';
export * from './themeDataPlugin.js';
export default themeDataPlugin;

@@ -1,21 +0,5 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
const themeDataPlugin_1 = require("./themeDataPlugin");
__exportStar(require("../shared"), exports);
__exportStar(require("./prepareThemeData"), exports);
__exportStar(require("./themeDataPlugin"), exports);
exports.default = themeDataPlugin_1.themeDataPlugin;
import { themeDataPlugin } from './themeDataPlugin.js';
export * from '../shared/index.js';
export * from './prepareThemeData.js';
export * from './themeDataPlugin.js';
export default themeDataPlugin;
import type { App } from '@vuepress/core';
import type { ThemeData } from '../shared';
import type { ThemeData } from '../shared/index.js';
export declare const prepareThemeData: (app: App, themeData: ThemeData) => Promise<void>;

@@ -1,4 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.prepareThemeData = void 0;
const HMR_CODE = `

@@ -18,3 +15,3 @@ if (import.meta.webpackHot) {

`;
const prepareThemeData = async (app, themeData) => {
export const prepareThemeData = async (app, themeData) => {
// theme data file content

@@ -30,2 +27,1 @@ let content = `\

};
exports.prepareThemeData = prepareThemeData;
import type { Plugin } from '@vuepress/core';
import type { ThemeData } from '../shared';
import type { ThemeData } from '../shared/index.js';
/**

@@ -4,0 +4,0 @@ * Options of @vuepress/plugin-theme-data

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.themeDataPlugin = void 0;
const utils_1 = require("@vuepress/utils");
const prepareThemeData_1 = require("./prepareThemeData");
const themeDataPlugin = ({ themeData, }) => ({
import { getDirname, path } from '@vuepress/utils';
import { prepareThemeData } from './prepareThemeData.js';
const __dirname = getDirname(import.meta.url);
export const themeDataPlugin = ({ themeData, }) => ({
name: '@vuepress/plugin-theme-data',
clientConfigFile: utils_1.path.resolve(__dirname, '../client/config.js'),
onPrepared: (app) => (0, prepareThemeData_1.prepareThemeData)(app, themeData),
alias: {
// workaround for https://github.com/vitejs/vite/issues/7621
'@vuepress/plugin-theme-data/client': path.resolve(__dirname, '../client/index.js'),
},
clientConfigFile: path.resolve(__dirname, '../client/config.js'),
onPrepared: (app) => prepareThemeData(app, themeData),
});
exports.themeDataPlugin = themeDataPlugin;

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

export * from './themeData';
export * from './themeData.js';

@@ -1,17 +0,1 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./themeData"), exports);
export * from './themeData.js';

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
{
"name": "@vuepress/plugin-theme-data",
"version": "2.0.0-beta.49",
"version": "2.0.0-beta.50",
"description": "VuePress plugin - theme data",

@@ -21,4 +21,10 @@ "keywords": [

"author": "meteorlxy",
"main": "lib/node/index.js",
"types": "lib/node/index.d.ts",
"type": "module",
"exports": {
".": "./lib/node/index.js",
"./client": "./lib/client/index.js",
"./package.json": "./package.json"
},
"main": "./lib/node/index.js",
"types": "./lib/node/index.d.ts",
"files": [

@@ -28,7 +34,7 @@ "lib"

"dependencies": {
"@vue/devtools-api": "^6.2.0",
"@vuepress/client": "2.0.0-beta.49",
"@vuepress/core": "2.0.0-beta.49",
"@vuepress/shared": "2.0.0-beta.49",
"@vuepress/utils": "2.0.0-beta.49",
"@vue/devtools-api": "^6.2.1",
"@vuepress/client": "2.0.0-beta.50",
"@vuepress/core": "2.0.0-beta.50",
"@vuepress/shared": "2.0.0-beta.50",
"@vuepress/utils": "2.0.0-beta.50",
"vue": "^3.2.37"

@@ -35,0 +41,0 @@ },

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