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

wso2-apimgr

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wso2-apimgr - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

29

js/store.js

@@ -218,2 +218,31 @@

/**
* refreshToken token
* (undocumented API)
*
* @param {application: 'MyApplication', keytype: 'PRODUCTION', callbackUrl: 'http://kanzi.co.uk/callback', authorizedDomains: 'ALL', validityTime: 3600} data to be passed
* @param {function (err, resp)} callback to be invoked
* The resp (assuming err is null) will contain an array of applications, for example:
*/
Store.prototype.refreshToken = function(data, callback) {
var request = {
url: this.proxy.buildUrl(config.store.base, config.store.subscribe),
data: {
action: 'refreshToken',
application: data.application,
keytype: data.keytype || 'PRODUCTION',
callbackUrl: data.callbackUrl || '',
authorizedDomains: data.authorizedDomains || '',
validityTime: data.validityTime || 3600
}
};
this.proxy.ajax(request, function(err, resp){
if (err === null && resp.error === false) {
callback(err, resp.data.key);
} else {
callback(err, resp);
}
});
};

2

package.json
{
"name": "wso2-apimgr",
"version": "0.0.3",
"version": "0.0.4",
"description": "A lightweight JS SDK to work with the WSO2 API Manager",

@@ -5,0 +5,0 @@ "main": "js/index.js",

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