Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@vue-macros/named-template

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue-macros/named-template - npm Package Compare versions

Comparing version
0.5.1
to
0.5.2
+17
dist/index.d-W6eQ-3Iq.d.ts
import { BaseOptions, MarkRequired } from '@vue-macros/common';
import { UnpluginInstance } from 'unplugin';
declare const QUERY_NAMED_TEMPLATE = "?vue&type=named-template";
declare const QUERY_TEMPLATE = "type=template&namedTemplate";
declare const QUERY_TEMPLATE_MAIN: "type=template&namedTemplate&mainTemplate";
declare const MAIN_TEMPLATE: unique symbol;
type Options = BaseOptions;
type OptionsResolved = MarkRequired<Options, "include" | "version">;
type TemplateContent = Record<string, Record<string, string> & { [MAIN_TEMPLATE]?: string }>;
declare const PrePlugin: UnpluginInstance<Options | undefined, false>;
type CustomBlocks = Record<string, Record<string, string>>;
declare const PostPlugin: UnpluginInstance<Options | undefined, false>;
declare const plugin: UnpluginInstance<Options | undefined, true>;
export { type CustomBlocks as C, MAIN_TEMPLATE as M, type Options as O, PrePlugin as P, QUERY_NAMED_TEMPLATE as Q, type TemplateContent as T, QUERY_TEMPLATE as a, QUERY_TEMPLATE_MAIN as b, type OptionsResolved as c, PostPlugin as d, plugin as p };
+20
-20
import { MagicStringAST, CodeTransform } from '@vue-macros/common';
import { ElementNode, NodeTransform, RootNode } from '@vue/compiler-dom';
import { T as TemplateContent, C as CustomBlocks } from './index.d-Ccebqmdc.js';
export { M as MAIN_TEMPLATE, Q as QUERY_NAMED_TEMPLATE, a as QUERY_TEMPLATE, b as QUERY_TEMPLATE_MAIN } from './index.d-Ccebqmdc.js';
import { T as TemplateContent, C as CustomBlocks } from './index.d-W6eQ-3Iq.js';
export { M as MAIN_TEMPLATE, Q as QUERY_NAMED_TEMPLATE, a as QUERY_TEMPLATE, b as QUERY_TEMPLATE_MAIN } from './index.d-W6eQ-3Iq.js';
import { Program } from '@babel/types';

@@ -10,17 +10,17 @@ import 'unplugin';

interface VueQuery {
vue?: boolean;
src?: string;
type?: 'script' | 'template' | 'style' | 'custom';
index?: number;
lang?: string;
raw?: boolean;
url?: boolean;
scoped?: boolean;
vue?: boolean;
src?: string;
type?: "script" | "template" | "style" | "custom";
index?: number;
lang?: string;
raw?: boolean;
url?: boolean;
scoped?: boolean;
}
/**
* Copy from https://github.com/vitejs/vite-plugin-vue/blob/797e424e46600c93fa76a4ef8befc08ef6b5abdb/packages/plugin-vue/src/utils/query.ts#L12
*/
* Copy from https://github.com/vitejs/vite-plugin-vue/blob/797e424e46600c93fa76a4ef8befc08ef6b5abdb/packages/plugin-vue/src/utils/query.ts#L12
*/
declare function parseVueRequest(id: string): {
filename: string;
query: VueQuery;
filename: string;
query: VueQuery;
};

@@ -30,8 +30,8 @@

declare function preTransform(code: string, id: string, templateContent: TemplateContent): CodeTransform | undefined;
declare function preTransformMainTemplate({ s, root, node, id, templateContent, }: {
s: MagicStringAST;
root: RootNode;
node: ElementNode;
id: string;
templateContent: TemplateContent;
declare function preTransformMainTemplate({ s, root, node, id, templateContent }: {
s: MagicStringAST;
root: RootNode;
node: ElementNode;
id: string;
templateContent: TemplateContent;
}): void;

@@ -38,0 +38,0 @@ declare function postTransform(code: string, id: string, customBlocks: CustomBlocks): CodeTransform | undefined;

import { MagicStringAST, CodeTransform } from '@vue-macros/common';
import { ElementNode, NodeTransform, RootNode } from '@vue/compiler-dom';
import { T as TemplateContent, C as CustomBlocks } from './index.d-Ccebqmdc.js';
export { M as MAIN_TEMPLATE, Q as QUERY_NAMED_TEMPLATE, a as QUERY_TEMPLATE, b as QUERY_TEMPLATE_MAIN } from './index.d-Ccebqmdc.js';
import { T as TemplateContent, C as CustomBlocks } from './index.d-W6eQ-3Iq.js';
export { M as MAIN_TEMPLATE, Q as QUERY_NAMED_TEMPLATE, a as QUERY_TEMPLATE, b as QUERY_TEMPLATE_MAIN } from './index.d-W6eQ-3Iq.js';
import { Program } from '@babel/types';

@@ -10,17 +10,17 @@ import 'unplugin';

interface VueQuery {
vue?: boolean;
src?: string;
type?: 'script' | 'template' | 'style' | 'custom';
index?: number;
lang?: string;
raw?: boolean;
url?: boolean;
scoped?: boolean;
vue?: boolean;
src?: string;
type?: "script" | "template" | "style" | "custom";
index?: number;
lang?: string;
raw?: boolean;
url?: boolean;
scoped?: boolean;
}
/**
* Copy from https://github.com/vitejs/vite-plugin-vue/blob/797e424e46600c93fa76a4ef8befc08ef6b5abdb/packages/plugin-vue/src/utils/query.ts#L12
*/
* Copy from https://github.com/vitejs/vite-plugin-vue/blob/797e424e46600c93fa76a4ef8befc08ef6b5abdb/packages/plugin-vue/src/utils/query.ts#L12
*/
declare function parseVueRequest(id: string): {
filename: string;
query: VueQuery;
filename: string;
query: VueQuery;
};

@@ -30,8 +30,8 @@

declare function preTransform(code: string, id: string, templateContent: TemplateContent): CodeTransform | undefined;
declare function preTransformMainTemplate({ s, root, node, id, templateContent, }: {
s: MagicStringAST;
root: RootNode;
node: ElementNode;
id: string;
templateContent: TemplateContent;
declare function preTransformMainTemplate({ s, root, node, id, templateContent }: {
s: MagicStringAST;
root: RootNode;
node: ElementNode;
id: string;
templateContent: TemplateContent;
}): void;

@@ -38,0 +38,0 @@ declare function postTransform(code: string, id: string, customBlocks: CustomBlocks): CodeTransform | undefined;

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

import '@vue-macros/common';
import 'unplugin';
export { C as CustomBlocks, O as Options, c as OptionsResolved, d as PostPlugin, P as PrePlugin, T as TemplateContent, p as default } from './index.d-Ccebqmdc.js';
export { C as CustomBlocks, O as Options, c as OptionsResolved, d as PostPlugin, P as PrePlugin, T as TemplateContent, p as default } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';
import 'unplugin';
export { C as CustomBlocks, O as Options, c as OptionsResolved, d as PostPlugin, P as PrePlugin, T as TemplateContent, p as default } from './index.d-Ccebqmdc.js';
export { C as CustomBlocks, O as Options, c as OptionsResolved, d as PostPlugin, P as PrePlugin, T as TemplateContent, p as default } from './index.d-W6eQ-3Iq.js';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

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

import { p as plugin } from './index.d-Ccebqmdc.js';
import { p as plugin } from './index.d-W6eQ-3Iq.js';
import '@vue-macros/common';

@@ -3,0 +3,0 @@ import 'unplugin';

{
"name": "@vue-macros/named-template",
"version": "0.5.1",
"description": "named-template feature from Vue Macros.",
"version": "0.5.2",
"description": "namedTemplate feature from Vue Macros.",
"type": "module",

@@ -80,8 +80,8 @@ "keywords": [

"dependencies": {
"@vue/compiler-dom": "^3.5.4",
"@vue/compiler-dom": "^3.5.12",
"unplugin": "^1.14.1",
"@vue-macros/common": "1.14.0"
"@vue-macros/common": "1.15.0"
},
"devDependencies": {
"vue": "^3.5.4"
"vue": "^3.5.12"
},

@@ -88,0 +88,0 @@ "engines": {

import { BaseOptions, MarkRequired } from '@vue-macros/common';
import { UnpluginInstance } from 'unplugin';
declare const QUERY_NAMED_TEMPLATE = "?vue&type=named-template";
declare const QUERY_TEMPLATE = "type=template&namedTemplate";
declare const QUERY_TEMPLATE_MAIN: 'type=template&namedTemplate&mainTemplate';
declare const MAIN_TEMPLATE: unique symbol;
type Options = BaseOptions;
type OptionsResolved = MarkRequired<Options, 'include' | 'version'>;
type TemplateContent = Record<string, Record<string, string> & {
[MAIN_TEMPLATE]?: string;
}>;
declare const PrePlugin: UnpluginInstance<Options | undefined, false>;
type CustomBlocks = Record<string, Record<string, string>>;
declare const PostPlugin: UnpluginInstance<Options | undefined, false>;
declare const plugin: UnpluginInstance<Options | undefined, true>;
export { type CustomBlocks as C, MAIN_TEMPLATE as M, type Options as O, PrePlugin as P, QUERY_NAMED_TEMPLATE as Q, type TemplateContent as T, QUERY_TEMPLATE as a, QUERY_TEMPLATE_MAIN as b, type OptionsResolved as c, PostPlugin as d, plugin as p };