Socket
Socket
Sign inDemoInstall

@vue/component-compiler-utils

Package Overview
Dependencies
16
Maintainers
11
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.1.0

11

CHANGELOG.md

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

# [3.1.0](https://github.com/vuejs/component-compiler-utils/compare/v3.0.2...v3.1.0) (2019-12-08)
### Features
* include filename in `finalCompilerOptions` ([#74](https://github.com/vuejs/component-compiler-utils/issues/74)) ([3dda72d](https://github.com/vuejs/component-compiler-utils/commit/3dda72d))
* support AST for template compile ([#68](https://github.com/vuejs/component-compiler-utils/issues/68)) ([ed44d6f](https://github.com/vuejs/component-compiler-utils/commit/ed44d6f))
* support audio src in `transformAssetUrls` option by default ([#72](https://github.com/vuejs/component-compiler-utils/issues/72)) ([47f1341](https://github.com/vuejs/component-compiler-utils/commit/47f1341))
## [3.0.2](https://github.com/vuejs/component-compiler-utils/compare/v3.0.1...v3.0.2) (2019-11-06)

@@ -2,0 +13,0 @@

1

dist/compileTemplate.d.ts

@@ -18,2 +18,3 @@ import { VueTemplateCompiler, VueTemplateCompilerOptions, ErrorWithRange } from './types';

export interface TemplateCompileResult {
ast: Object | undefined;
code: string;

@@ -20,0 +21,0 @@ source: string;

8

dist/compileTemplate.js

@@ -20,2 +20,3 @@ "use strict";

return {
ast: {},
code: `var render = function () {}\n` + `var staticRenderFns = []\n`,

@@ -67,8 +68,10 @@ source: options.source,

finalCompilerOptions = Object.assign({}, compilerOptions, {
modules: [...builtInModules, ...(compilerOptions.modules || [])]
modules: [...builtInModules, ...(compilerOptions.modules || [])],
filename: options.filename
});
}
const { render, staticRenderFns, tips, errors } = compile(source, finalCompilerOptions);
const { ast, render, staticRenderFns, tips, errors } = compile(source, finalCompilerOptions);
if (errors && errors.length) {
return {
ast,
code: `var render = function () {}\n` + `var staticRenderFns = []\n`,

@@ -114,2 +117,3 @@ source,

return {
ast,
code,

@@ -116,0 +120,0 @@ source,

@@ -6,2 +6,3 @@ "use strict";

const defaultOptions = {
audio: 'src',
video: ['src', 'poster'],

@@ -8,0 +9,0 @@ source: 'src',

@@ -21,2 +21,6 @@ import { SFCDescriptor } from './parse';

outputSourceRange?: boolean;
whitespace?: 'preserve' | 'condense';
directives?: {
[key: string]: Function;
};
}

@@ -32,3 +36,3 @@ export interface VueTemplateCompilerParseOptions {

export interface VueTemplateCompilerResults {
ast: Object | void;
ast: Object | undefined;
render: string;

@@ -35,0 +39,0 @@ staticRenderFns: string[];

@@ -31,2 +31,3 @@ import {

export interface TemplateCompileResult {
ast: Object | undefined
code: string

@@ -51,2 +52,3 @@ source: string

return {
ast: {},
code: `var render = function () {}\n` + `var staticRenderFns = []\n`,

@@ -124,7 +126,8 @@ source: options.source,

finalCompilerOptions = Object.assign({}, compilerOptions, {
modules: [...builtInModules, ...(compilerOptions.modules || [])]
modules: [...builtInModules, ...(compilerOptions.modules || [])],
filename: options.filename
})
}
const { render, staticRenderFns, tips, errors } = compile(
const { ast, render, staticRenderFns, tips, errors } = compile(
source,

@@ -136,2 +139,3 @@ finalCompilerOptions

return {
ast,
code: `var render = function () {}\n` + `var staticRenderFns = []\n`,

@@ -187,2 +191,3 @@ source,

return {
ast,
code,

@@ -189,0 +194,0 @@ source,

@@ -10,2 +10,3 @@ // vue compiler module for transforming `<tag>:<attribute>` to `require`

const defaultOptions: AssetURLOptions = {
audio: 'src',
video: ['src', 'poster'],

@@ -12,0 +13,0 @@ source: 'src',

@@ -36,2 +36,4 @@ import { SFCDescriptor } from './parse'

outputSourceRange?: boolean
whitespace?: 'preserve' | 'condense'
directives?: { [key: string]: Function }
}

@@ -50,3 +52,3 @@

export interface VueTemplateCompilerResults {
ast: Object | void
ast: Object | undefined
render: string

@@ -53,0 +55,0 @@ staticRenderFns: string[]

{
"name": "@vue/component-compiler-utils",
"version": "3.0.2",
"version": "3.1.0",
"description": "Lower level utilities for compiling Vue single file components",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -80,2 +80,3 @@ # @vue/component-compiler-utils [![Build Status](https://circleci.com/gh/vuejs/component-compiler-utils/tree/master.svg?style=shield)](https://circleci.com/gh/vuejs/component-compiler-utils/)

// {
// audio: 'src',
// video: ['src', 'poster'],

@@ -102,2 +103,3 @@ // source: 'src',

interface TemplateCompileResult {
ast: Object | undefined
code: string

@@ -104,0 +106,0 @@ source: string

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc