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

install-vue-canary

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

install-vue-canary - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

23

index.js

@@ -148,7 +148,28 @@ #!/usr/bin/env node

} else if (pm === 'npm') {
// NPM requires exact version (won't work without version or `@latest`)
const { stdout } = await execa('npm', ['info', '@vue/canary@latest', 'version', '--json'], { stdio: 'pipe' })
const latest = JSON.parse(stdout)
const OVERRIDES_WITH_EXACT_VERSIONS = Object.fromEntries(
Object.entries(CANARY_OVERRIDES).map(([k, v]) => [k, `${v}@${latest}`])
)
pkg.overrides = {
...pkg.overrides,
...CANARY_OVERRIDES
...OVERRIDES_WITH_EXACT_VERSIONS
}
log.info(`Updated ${pico.cyan('overrides')} in ${pico.yellow('package.json')}`)
// NPM requires direct dependencies to be rewritten too
let hasDependenciesBeenRewritten = false
const vuePackages = Object.keys(OVERRIDES_WITH_EXACT_VERSIONS)
for (const name of vuePackages) {
for (const depType of ['dependencies', 'devDependencies', 'optionalDependencies']) {
if (pkg[depType]?.[name]) {
pkg[depType][name] = OVERRIDES_WITH_EXACT_VERSIONS[name]
hasDependenciesBeenRewritten = true
}
}
}
if (hasDependenciesBeenRewritten) {
log.info(`Updated dependency versions in ${pico.yellow('package.json')}`)
}
} else if (pm === 'yarn' || pm === 'cnpm') {

@@ -155,0 +176,0 @@ pkg.resolutions = {

2

package.json
{
"name": "install-vue-canary",
"version": "0.0.4",
"version": "0.0.5",
"description": "Install the canary version of Vue in the project",

@@ -5,0 +5,0 @@ "type": "module",

@@ -8,3 +8,3 @@ # install-vue-canary

```sh
npx install-vue-canary
npx install-vue-canary@latest
```

@@ -15,3 +15,3 @@

```sh
npx install-vue-canary --with mynpm
npx install-vue-canary@latest --with mynpm
```
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