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

vue-sfc-rollup

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-sfc-rollup - npm Package Compare versions

Comparing version 2.2.2 to 2.3.0

14

CHANGELOG.md

@@ -7,2 +7,16 @@ # Changelog

## [2.3.0] - 2020-01-15
### Added
- Add `browser` field to package.json for bundlers which prefer it to `module` field (eg. codesandbox - see [discussion here](https://github.com/codesandbox/codesandbox-client/issues/3305))
- Notify users of new releases
- **NEW** chalk 3.0.0
- **NEW** update-check 1.5.3
- Update template dependencies
- @rollup/plugin-commonjs 11.0.1
### Changed
- Update template dependency
- rollup-plugin-vue 5.1.5 ([breaking change from 5.1.2 has been resolved](https://github.com/vuejs/rollup-plugin-vue/issues/303))
## [2.2.2] - 2020-01-08

@@ -9,0 +23,0 @@

6

package.json

@@ -6,3 +6,3 @@ {

"license": "ISC",
"version": "2.2.2",
"version": "2.3.0",
"bin": {

@@ -36,4 +36,6 @@ "sfc-init": "./sfc-init.js"

"dependencies": {
"chalk": "^3.0.0",
"ejs": "^2.7.1",
"prompts": "^2.2.1"
"prompts": "^2.2.1",
"update-check": "^1.5.3"
},

@@ -40,0 +42,0 @@ "devDependencies": {

@@ -7,14 +7,11 @@ #! /usr/bin/env node

const ejs = require('ejs');
const chalk = require('chalk');
const updateCheck = require('update-check');
const pkg = require('./package');
const helpers = require('./lib/helpers');
// Create cancel function to exit the process
function onCancel() {
// eslint-disable-next-line no-console
console.log('User canceled. Goodbye!');
process.exit();
}
// Prepare container for response data
const responses = {
update: false,
mode: '',

@@ -27,3 +24,36 @@ npmName: '',

// Create function to display update notification at script completion
function displayUpdateMessage() {
/* eslint-disable no-console */
if (responses.update) {
const { latest } = responses.update;
if (latest) console.log(`\r\n${chalk.black.bgRed(' UPDATE AVAILABLE ')}${chalk.red('-->')} The latest version of ${pkg.name} is ${chalk.yellow(latest)}\r\n`);
}
/* eslint-enable no-console */
}
// Create cancel function to exit the process
function onCancel() {
// eslint-disable-next-line no-console
console.log('User canceled. Goodbye!');
displayUpdateMessage();
process.exit();
}
// Create async prompt functions
async function checkForUpdates() {
let update = null;
try {
update = await updateCheck(pkg);
} catch (err) {
const errIntro = ` ${pkg.name} failed to check for updates `;
// eslint-disable-next-line no-console
console.error(`\r\n${chalk.black.bgRed(errIntro)}${chalk.red('-->')} ${err}\r\n`);
update = null;
}
if (update) {
responses.update = update;
}
}
async function getMode() {

@@ -234,3 +264,4 @@ const question = {

// Begin asking for input, then scaffold
getMode()
checkForUpdates()
.then(getMode)
.then(getName)

@@ -241,2 +272,3 @@ .then(getLanguage)

scaffold(responses);
displayUpdateMessage();
});

@@ -6,3 +6,3 @@ // rollup.config.js

import alias from '@rollup/plugin-alias';
import commonjs from 'rollup-plugin-commonjs';
import commonjs from '@rollup/plugin-commonjs';
import replace from '@rollup/plugin-replace';

@@ -9,0 +9,0 @@ import babel from 'rollup-plugin-babel';

@@ -7,2 +7,3 @@ {

"main": "dist/<%-componentName%>.ssr.js",
"browser": "dist/<%-componentName%>.esm.js",
"module": "dist/<%-componentName%>.esm.js",

@@ -43,2 +44,3 @@ "unpkg": "dist/<%-componentName%>.min.js",

"@rollup/plugin-alias": "^2.2.0",
"@rollup/plugin-commonjs": "^11.0.1",
"@rollup/plugin-replace": "^2.2.1",

@@ -53,6 +55,5 @@ "@vue/cli-plugin-babel": "^4.1.0",

"rollup": "^1.27.13",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-terser": "^5.1.3",
"rollup-plugin-vue": "5.1.1",
"rollup-plugin-vue": "^5.1.5",
<% if (ts) { -%>

@@ -59,0 +60,0 @@ "typescript": "^3.7.3",

@@ -18,5 +18,5 @@ <% if (ts) { -%>

<% if (ts) { -%>
const install: InstallFunction = function(Vue: typeof _Vue) {
const install: InstallFunction = function install<%-componentNamePascal%>(Vue: typeof _Vue) {
<% } else { -%>
const install = function(Vue) {
const install = function install<%-componentNamePascal%>(Vue) {
<% } -%>

@@ -23,0 +23,0 @@ if (install.installed) return;

@@ -6,3 +6,3 @@ // rollup.config.js

import alias from '@rollup/plugin-alias';
import commonjs from 'rollup-plugin-commonjs';
import commonjs from '@rollup/plugin-commonjs';
import replace from '@rollup/plugin-replace';

@@ -9,0 +9,0 @@ import babel from 'rollup-plugin-babel';

@@ -7,2 +7,3 @@ {

"main": "dist/<%-componentName%>.ssr.js",
"browser": "dist/<%-componentName%>.esm.js",
"module": "dist/<%-componentName%>.esm.js",

@@ -43,2 +44,3 @@ "unpkg": "dist/<%-componentName%>.min.js",

"@rollup/plugin-alias": "^2.2.0",
"@rollup/plugin-commonjs": "^11.0.1",
"@rollup/plugin-replace": "^2.2.1",

@@ -53,6 +55,5 @@ "@vue/cli-plugin-babel": "^4.1.0",

"rollup": "^1.27.13",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-terser": "^5.1.3",
"rollup-plugin-vue": "5.1.1",
"rollup-plugin-vue": "^5.1.5",
<% if (ts) { -%>

@@ -59,0 +60,0 @@ "typescript": "^3.7.3",

@@ -21,5 +21,5 @@ <% if (ts) { -%>

<% if (ts) { -%>
const install: InstallFunction = function(Vue: typeof _Vue) {
const install: InstallFunction = function install<%-componentNamePascal%>(Vue: typeof _Vue) {
<% } else { -%>
const install = function(Vue) {
const install = function install<%-componentNamePascal%>(Vue) {
<% } -%>

@@ -26,0 +26,0 @@ if (install.installed) return;

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