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

ovh

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ovh - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

lib/endpoints.js

8

CHANGELOG.md
# Changelog
## 1.1.1
* Add Kimsufi and SoYouStart APIs
## 1.1

@@ -25,5 +29,5 @@ * Now official Node.js wrapper

* WS are not supported anymore
* The usage of the Harmony proxies usage is optionnal
* The usage of the Harmony proxies usage is optional
* Callbacks are designed "errors first"
* Optionnal check of the existance of a method in the APIs schemas and its status (PRODUCTION, DEPRECATED, etc.)
* Optional check of the existence of a method in the APIs schemas and its status (PRODUCTION, DEPRECATED, etc.)
* Debug mode

@@ -30,0 +34,0 @@ * New documentation

@@ -33,3 +33,4 @@ /**

async = require('async'),
handlerMaker = require('./handler-maker');
handlerMaker = require('./handler-maker'),
endpoints = require('./endpoints');

@@ -49,9 +50,9 @@ (function () {

if (this.endpoint) {
if (typeof(this.endpoints[this.endpoint]) === 'undefined') {
if (typeof(endpoints[this.endpoint]) === 'undefined') {
throw new Error('[OVH] Unknown API ' + this.endpoint);
}
for (var key in this.endpoints[this.endpoint]) {
if (this.endpoints[this.endpoint].hasOwnProperty(key)) {
params[key] = this.endpoints[this.endpoint][key];
for (var key in endpoints[this.endpoint]) {
if (endpoints[this.endpoint].hasOwnProperty(key)) {
params[key] = endpoints[this.endpoint][key];
}

@@ -658,21 +659,2 @@ }

/**
* Preconfigured API endpoints
*
* ovh-eu: OVH Europe
* ovh-ca: OVH North America
* runabove-ca: RunAbove
*/
Ovh.prototype.endpoints = {
'ovh-eu': {
'host': 'eu.api.ovh.com'
},
'ovh-ca': {
'host': 'ca.api.ovh.com'
},
'runabove-ca': {
'host': 'api.runabove.com'
}
};
module.exports = function (params) {

@@ -679,0 +661,0 @@ return new Ovh(params || {});

{
"name": "ovh",
"version": "1.1.0",
"version": "1.1.1",
"description": "Official Node.js wrapper for the OVH APIs",

@@ -5,0 +5,0 @@ "homepage": "http://ovh.github.io/node-ovh",

@@ -49,2 +49,6 @@ [![Node.js Wrapper for OVH APIs](http://ovh.github.io/node-ovh/img/logo.png)](http://ovh.github.io/node-ovh)

* [RunAbove](https://api.runabove.com/createApp/)
* [SoYouStart Europe](https://eu.api.soyoustart.com/createApp/)
* [SoYouStart North-America](https://ca.api.soyoustart.com/createApp/)
* [Kimsufi Europe](https://eu.api.kimsufi.com/createApp/)
* [Kimsufi North-America](https://ca.api.kimsufi.com/createApp/)

@@ -67,2 +71,6 @@ Once created, you will obtain an **application key (AK)** and an **application

* RunAbove: ```runabove-ca```
* SoYouStart Europe: ```sys-eu```
* SoYouStart North-America: ```sys-ca```
* Kimsufi Europe: ```ks-eu```
* Kimsufi North-America: ```ks-ca```

@@ -121,2 +129,6 @@ ```js

* [RunAbove](https://api.runabove.com/console/)
* [SoYouStart Europe](https://eu.api.soyoustart.com/console/)
* [SoYouStart North-America](https://ca.api.soyoustart.com/console/)
* [Kimsufi Europe](https://eu.api.kimsufi.com/console/)
* [Kimsufi North-America](https://ca.api.kimsufi.com/console/)

@@ -176,2 +188,3 @@ ## Full documentation and examples

- **Create application credentials**: https://eu.api.ovh.com/createApp/
- **Create script credentials** (all keys at once): https://eu.api.ovh.com/createToken/

@@ -184,2 +197,3 @@ ### OVH North America

- **Create application credentials**: https://ca.api.ovh.com/createApp/
- **Create script credentials** (all keys at once): https://ca.api.ovh.com/createToken/

@@ -191,2 +205,35 @@ ### Runabove

### SoYouStart Europe
- **Documentation**: https://eu.api.soyoustart.com/
- **Community support**: api-subscribe@ml.ovh.net
- **Console**: https://eu.api.soyoustart.com/console/
- **Create application credentials**: https://eu.api.soyoustart.com/createApp/
- **Create script credentials** (all keys at once): https://eu.api.soyoustart.com/createToken/
### SoYouStart North America
- **Documentation**: https://ca.api.soyoustart.com/
- **Community support**: api-subscribe@ml.ovh.net
- **Console**: https://ca.api.soyoustart.com/console/
- **Create application credentials**: https://ca.api.soyoustart.com/createApp/
- **Create script credentials** (all keys at once): https://ca.api.soyoustart.com/createToken/
#### Kimsufi Europe
- **Documentation**: https://eu.api.kimsufi.com/
- **Community support**: api-subscribe@ml.ovh.net
- **Console**: https://eu.api.kimsufi.com/console/
- **Create application credentials**: https://eu.api.kimsufi.com/createApp/
- **Create script credentials** (all keys at once): https://eu.api.kimsufi.com/createToken/
#### Kimsufi North America
- **Documentation**: https://ca.api.kimsufi.com/
- **Community support**: api-subscribe@ml.ovh.net
- **Console**: https://ca.api.kimsufi.com/console/
- **Create application credentials**: https://ca.api.kimsufi.com/createApp/
- **Create script credentials** (all keys at once): https://ca.api.kimsufi.com/createToken/
### Related links

@@ -193,0 +240,0 @@

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