Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vue/component-compiler-utils

Package Overview
Dependencies
Maintainers
14
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/component-compiler-utils - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

12

CHANGELOG.md

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

## [3.1.2](https://github.com/vuejs/component-compiler-utils/compare/v3.1.1...v3.1.2) (2020-04-08)
### Bug Fixes
* add parse options to cache key ([#78](https://github.com/vuejs/component-compiler-utils/issues/78)) ([f7b1f87](https://github.com/vuejs/component-compiler-utils/commit/f7b1f876540a4a933627df323a1d5cbeab245b28))
* LRUCache v5 has to be invoked with new ([#83](https://github.com/vuejs/component-compiler-utils/issues/83)) ([b541fef](https://github.com/vuejs/component-compiler-utils/commit/b541feff8312f71f8966d6788490510331460023)), closes [#79](https://github.com/vuejs/component-compiler-utils/issues/79)
## [3.1.1](https://github.com/vuejs/component-compiler-utils/compare/v3.1.0...v3.1.1) (2020-01-06)
### Bug Fixes
* upgrade postcss-selector-parser to ^6.0.2 ([#76](https://github.com/vuejs/component-compiler-utils/pull/76)) ([e566a19](https://github.com/vuejs/component-compiler-utils/commit/e566a19))

@@ -5,0 +17,0 @@ # [3.1.0](https://github.com/vuejs/component-compiler-utils/compare/v3.0.2...v3.1.0) (2019-12-08)

4

dist/compileTemplate.js

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

catch (e) {
if (e.code === 'MODULE_NOT_FOUND') {
tips.push('The `prettify` option is on, but the dependency `prettier` is not found.\n' +
'Please either turn off `prettify` or manually install `prettier`.');
}
tips.push(`Failed to prettify component ${options.filename} template source after compilation.`);

@@ -112,0 +116,0 @@ }

4

dist/parse.js

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

const hash = require('hash-sum');
const cache = require('lru-cache')(100);
const cache = new (require('lru-cache'))(100);
const splitRE = /\r?\n/g;

@@ -11,3 +11,3 @@ const emptyRE = /^(?:\/\/)?\s*$/;

const { source, filename = '', compiler, compilerParseOptions = { pad: 'line' }, sourceRoot = '', needMap = true } = options;
const cacheKey = hash(filename + source);
const cacheKey = hash(filename + source + JSON.stringify(compilerParseOptions));
let output = cache.get(cacheKey);

@@ -14,0 +14,0 @@ if (output)

@@ -179,2 +179,8 @@ import {

} catch (e) {
if (e.code === 'MODULE_NOT_FOUND') {
tips.push(
'The `prettify` option is on, but the dependency `prettier` is not found.\n' +
'Please either turn off `prettify` or manually install `prettier`.'
)
}
tips.push(

@@ -181,0 +187,0 @@ `Failed to prettify component ${options.filename} template source after compilation.`

@@ -9,3 +9,3 @@ import { SourceMapGenerator } from 'source-map'

const hash = require('hash-sum')
const cache = require('lru-cache')(100)
const cache = new (require('lru-cache'))(100)

@@ -56,3 +56,5 @@ const splitRE = /\r?\n/g

} = options
const cacheKey = hash(filename + source)
const cacheKey = hash(
filename + source + JSON.stringify(compilerParseOptions)
)
let output: SFCDescriptor = cache.get(cacheKey)

@@ -59,0 +61,0 @@ if (output) return output

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

@@ -65,6 +65,8 @@ "main": "dist/index.js",

"postcss-selector-parser": "^6.0.2",
"prettier": "^1.18.2",
"source-map": "~0.6.1",
"vue-template-es2015-compiler": "^1.9.0"
},
"optionalDependencies": {
"prettier": "^1.18.2"
}
}
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