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

ovh

Package Overview
Dependencies
Maintainers
1
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 0.3.2 to 0.3.3

14

ovh.js

@@ -24,4 +24,3 @@ //

this.apiKeys = { appKey: apiKeys.appKey, appSecret: apiKeys.appSecret,
consumerKey: apiKeys.consumerKey || null,
credentialToken: apiKeys.credentialToken || null };
consumerKey: apiKeys.consumerKey || null };
this.wsList = {};

@@ -265,4 +264,3 @@ this.wsMetas = {};

OVHWS.prototype.setClientCredentials = function (consumerKey, credentialToken) {
this.credentialToken = credentialToken;
OVHWS.prototype.setClientCredentials = function (consumerKey) {
this.consumerKey = consumerKey;

@@ -273,5 +271,4 @@ };

OVHWS.prototype.callREST = function (apiName, httpMethod, path, params, callback, refer) {
if (apiName !== 'auth' && (typeof(this.apiKeys.credentialToken) !== 'string' ||
typeof(this.apiKeys.consumerKey) !== 'string')) {
throw new Error('OVH API: No consumerKey / credentialToken defined.');
if (apiName !== 'auth' && typeof(this.apiKeys.consumerKey) !== 'string') {
throw new Error('OVH API: No consumerKey defined.');
}

@@ -372,3 +369,4 @@

var s = [
this.apiKeys.credentialToken,
this.apiKeys.appSecret,
this.apiKeys.consumerKey,
httpMethod,

@@ -375,0 +373,0 @@ url,

{
"name": "ovh",
"version": "0.3.2",
"version": "0.3.3",
"description": "An helper library to use OVH web services and REST APIs",

@@ -13,3 +13,3 @@ "homepage": "https://github.com/gierschv/node-ovh",

"engines": {
"node": ">= 0.8.0 <= 0.10"
"node": ">= 0.8.0 <= 0.11"
},

@@ -16,0 +16,0 @@ "repository": {

@@ -15,3 +15,3 @@ node-ovh

```javascript
```bash
$ npm install ovh

@@ -85,3 +85,3 @@ ```

To allow your application to use your account, you just need to go to the `validationUrl` and to authorize the application.
After that, you will be able to use this `credentialToken` and `consumerKey`. For more information, read the examples below.
After that, you will be able to use this `consumerKey`. For more information, read the examples below.

@@ -98,3 +98,3 @@ #### Usage

}, {
appKey: 'X', appSecret: 'Y', consumerKey: 'B', credentialToken: 'A'
appKey: 'X', appSecret: 'Y', consumerKey: 'B'
});

@@ -128,3 +128,3 @@

}, {
appKey: 'X', appSecret: 'Y', consumerKey: 'B', credentialToken: 'A'
appKey: 'X', appSecret: 'Y', consumerKey: 'B'
});

@@ -131,0 +131,0 @@

Sorry, the diff of this file is not supported yet

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