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

@cnamts/vue-cli-plugin-proxy

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cnamts/vue-cli-plugin-proxy - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## [v2.1.0](https://github.com/assurance-maladie-digital/vue-cli-plugin-proxy/compare/v2.0.0...v2.1.0) (02-10-2018)
* 🐛 Fix API
## [v2.0.0](https://github.com/assurance-maladie-digital/vue-cli-plugin-proxy/compare/v1.0.0...v2.0.0) (02-10-2018)

@@ -2,0 +6,0 @@

2

index.js

@@ -5,4 +5,4 @@ var proxy = require('http-proxy-middleware');

api.configureDevServer((app) => {
app.use(proxy(projectOptions.pluginOptions.proxy));
app.use(proxy(projectOptions.pluginOptions.proxy.context, projectOptions.pluginOptions.proxy.options));
});
};
{
"name": "@cnamts/vue-cli-plugin-proxy",
"version": "2.0.0",
"version": "2.1.0",
"description": "Provide all http-proxy-middleware options to vue-cli",

@@ -5,0 +5,0 @@ "keywords": [

@@ -60,2 +60,3 @@ <p align="center">

proxy: {
context: '',
options: {

@@ -71,6 +72,41 @@ // ...

See [http-proxy-middleware](https://www.npmjs.com/package/http-proxy-middleware#example) for `options` object to pass to the plugin.
See [http-proxy-middleware](https://www.npmjs.com/package/http-proxy-middleware#tldr) for `options` object to pass to the plugin.
#### Object examples
* First example of the docs:
``` js
// vue.config.js
module.exports = {
pluginOptions: {
proxy: {
context: '/api',
options: {
target: 'http://www.example.org',
changeOrigin: true
}
}
}
}
```
* v1.0.0 default:
``` js
// vue.config.js
module.exports = {
pluginOptions: {
proxy: {
context: ['/**', '!/dist/**'],
options: {
target: 'http://127.0.0.1:8000',
}
}
}
}
```
## License
Vue CLI plugin proxy is licensed under a [MIT License](./LICENSE).
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