earnshark-sdk
Advanced tools
Comparing version 0.0.4 to 0.0.5
13
index.js
var http = require('http'), | ||
https = require('https'), | ||
request = require('request'); | ||
request = require('request'), | ||
BbPromise = require('bluebird'); | ||
@@ -19,2 +20,12 @@ exports.addNewSubscription = function (product_id, key, body) { | ||
return new BbPromise(function (resolve) { | ||
request(options, function (error, response, body) { | ||
if (error) { | ||
console.log(error); | ||
} else { | ||
console.log("Subscription Added : " + response); | ||
} | ||
}); | ||
}); | ||
request(options, function (error, response, body) { | ||
@@ -21,0 +32,0 @@ console.log(response); |
{ | ||
"name": "earnshark-sdk", | ||
"version": "0.0.4", | ||
"engines": { | ||
"node": ">=4.0" | ||
}, | ||
"description": "Earnshark client SDK for JavaScript", | ||
"author": "99xtechnology.com", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/99xt/earnshark-sdk-js" | ||
}, | ||
"keywords": [ | ||
"name": "earnshark-sdk", | ||
"version": "0.0.5", | ||
"engines": { | ||
"node": ">=4.0" | ||
}, | ||
"description": "Earnshark client SDK for JavaScript", | ||
"author": "99xtechnology.com", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/99xt/earnshark-sdk-js" | ||
}, | ||
"keywords": [ | ||
"earnshark", | ||
@@ -27,10 +27,12 @@ "license", | ||
], | ||
"main": "index.js", | ||
"bin": {}, | ||
"scripts": { | ||
"test": "echo \"Warning: no test specified\" && exit 0" | ||
}, | ||
"dependencies": { | ||
"request": "^2.72.0" | ||
} | ||
"main": "index.js", | ||
"bin": {}, | ||
"scripts": { | ||
"test": "echo \"Warning: no test specified\" && exit 0" | ||
}, | ||
"dependencies": { | ||
"bluebird": "^3.4.1", | ||
"moment": "^2.13.0", | ||
"request": "^2.72.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5031
53
3
+ Addedbluebird@^3.4.1
+ Addedmoment@^2.13.0
+ Addedbluebird@3.7.2(transitive)
+ Addedmoment@2.30.1(transitive)