New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-press

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-press - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

25

client.d.ts
declare module 'virtual:press' {
// eslint-disable-next-line
const M: VideoGroups
const M: VirtualPress
export type Component = any
export type VideoGroups = { [key: string]: Video[] }
export type Posts = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } }
export type VideoComponents = { [key: string]: { [group: string]: () => Promise<Component> } }
export type PostComponents = { [key: string]: () => Promise<Component> }
export type Blog = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } }
export type VideoGroups = { [group: string]: Video[] }
export type WhatsNewReleases = { [release: string]: WhatsNew[] }
export type PostComponents = { [slug: string]: () => Promise<Component> }
export type VideoComponents = { [group: string]: { [slug: string]: () => Promise<Component> } }
export type WhatsNewComponents = { [release: string]: { [slug: string]: () => Promise<Component> } }
export type VirtualPress = {
blog: Blog
videos: VideoGroups
posts: Posts
whatsNew: WhatsNewReleases
components: {
blog: PostComponents
videos: VideoComponents
posts: PostComponents
whatsNew: WhatsNewComponents
}

@@ -45,2 +49,7 @@ }

export type WhatsNew = Doc & {
url: string
image: string
}
export type Author = {

@@ -56,4 +65,4 @@ name: string

}
export default M
}

@@ -35,2 +35,8 @@ import { Plugin } from 'vite';

/**
* Where to look for What's New Features
* @default './src/_whatsnew'
*/
whatsNewPath?: string
/**
* Fallback Author profile url

@@ -54,12 +60,16 @@ */

type Component = any
type VideoGroups = { [key: string]: Video[] }
type Posts = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } }
type VideoComponents = { [key: string]: { [group: string]: () => Promise<Component> } }
type PostComponents = { [key: string]: () => Promise<Component> }
type Blog = { config: any, authors: Author[], posts: Post[], authorSlugs: { [name: string]: Author }, tagSlugs: { [name: string]: string } }
type VideoGroups = { [group: string]: Video[] }
type WhatsNewReleases = { [release: string]: WhatsNew[] }
type PostComponents = { [slug: string]: () => Promise<Component> }
type VideoComponents = { [group: string]: { [slug: string]: () => Promise<Component> } }
type WhatsNewComponents = { [release: string]: { [slug: string]: () => Promise<Component> } }
type VirtualPress = {
blog: Blog
videos: VideoGroups
posts: Posts
whatsNew: WhatsNewReleases
components: {
blog: PostComponents
videos: VideoComponents
posts: PostComponents
whatsNew: WhatsNewComponents
}

@@ -82,2 +92,3 @@ }

draft?: boolean
group?: string
}

@@ -95,2 +106,7 @@

type WhatsNew = Doc & {
url: string
image: string
}
type Author = {

@@ -114,2 +130,2 @@ name: string

export { type Author, type Doc, type Post, type Posts, type Video, type VideoGroups, type VirtualPress, export_default as default, extractor as matter };
export { type Author, type Blog, type Doc, type Post, type Video, type VideoGroups, type VirtualPress, type WhatsNew, type WhatsNewReleases, export_default as default, extractor as matter };
{
"name": "vite-plugin-press",
"version": "1.0.5",
"version": "1.0.6",
"description": "Static markdown content for creating blogs, videos",

@@ -44,2 +44,5 @@ "repository": {

},
"dependencies": {
"js-yaml": "^4.1.0"
},
"devDependencies": {

@@ -49,3 +52,2 @@ "@types/node": "^20.11.17",

"eslint-plugin-jest": "^27.6.3",
"js-yaml": "^4.1.0",
"tsup": "^8.0.2",

@@ -52,0 +54,0 @@ "vite": "^5.1.1"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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