Socket
Socket
Sign inDemoInstall

@ibm-cloud/cloudant

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ibm-cloud/cloudant - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

2

auth/couchdbSessionAuthenticator.js

@@ -60,3 +60,3 @@ "use strict";

var _this = _super.call(this) || this;
ibm_cloud_sdk_core_1.validateInput(options, _this.requiredOptions);
(0, ibm_cloud_sdk_core_1.validateInput)(options, _this.requiredOptions);
_this.tokenOptions = Object.assign({}, options);

@@ -63,0 +63,0 @@ return _this;

@@ -67,3 +67,3 @@ "use strict";

];
ibm_cloud_sdk_core_1.validateInput(options, _this.requiredOptions);
(0, ibm_cloud_sdk_core_1.validateInput)(options, _this.requiredOptions);
_this.options = options;

@@ -143,5 +143,5 @@ _this.tokenName = 'AuthSession';

else {
this.expireTime = Number(refreshTime[1]) + ibm_cloud_sdk_core_1.getCurrentTime();
this.expireTime = Number(refreshTime[1]) + (0, ibm_cloud_sdk_core_1.getCurrentTime)();
this.refreshTime =
Number(refreshTime[1]) * fractionOfTtl + ibm_cloud_sdk_core_1.getCurrentTime();
Number(refreshTime[1]) * fractionOfTtl + (0, ibm_cloud_sdk_core_1.getCurrentTime)();
}

@@ -153,3 +153,3 @@ }

// Set refresh time from the expire time
var timeToLive = this.expireTime - ibm_cloud_sdk_core_1.getCurrentTime();
var timeToLive = this.expireTime - (0, ibm_cloud_sdk_core_1.getCurrentTime)();
this.refreshTime = this.expireTime - timeToLive * (1.0 - fractionOfTtl);

@@ -156,0 +156,0 @@ }

@@ -156,3 +156,3 @@ "use strict";

var serviceClass = this.constructor;
var newHeaders = common_1.getSdkHeaders(serviceClass.DEFAULT_SERVICE_NAME, 'v1', 'authenticatorPostSession');
var newHeaders = (0, common_1.getSdkHeaders)(serviceClass.DEFAULT_SERVICE_NAME, 'v1', 'authenticatorPostSession');
if (this.baseOptions.headers === undefined) {

@@ -159,0 +159,0 @@ Object.assign(this.baseOptions, { 'headers': newHeaders });

@@ -31,3 +31,3 @@ "use strict";

var auth;
var credentials = ibm_cloud_sdk_core_1.readExternalSources(serviceName);
var credentials = (0, ibm_cloud_sdk_core_1.readExternalSources)(serviceName);
if ((credentials.authType || '').toLowerCase() === COUCHDB_SESSION_AUTH_TYPE) {

@@ -37,3 +37,3 @@ auth = new auth_1.CouchdbSessionAuthenticator(credentials);

else {
auth = ibm_cloud_sdk_core_1.getAuthenticatorFromEnvironment(serviceName);
auth = (0, ibm_cloud_sdk_core_1.getAuthenticatorFromEnvironment)(serviceName);
}

@@ -40,0 +40,0 @@ return auth;

{
"name": "@ibm-cloud/cloudant",
"version": "0.0.18",
"version": "0.0.19",
"description": "IBM Cloudant Node.js SDK",

@@ -36,5 +36,6 @@ "main": "index.js",

"dependencies": {
"@types/node": "^16.0.0",
"extend": "^3.0.2",
"ibm-cloud-sdk-core": "~2.13.0"
"@types/node": "16.9.1",
"extend": "3.0.2",
"ibm-cloud-sdk-core": "2.14.3",
"tough-cookie": "4.0.0"
},

@@ -41,0 +42,0 @@ "jest": {

@@ -5,3 +5,3 @@ [![Build Status](https://travis-ci.com/IBM/cloudant-node-sdk.svg?branch=master)](https://travis-ci.com/IBM/cloudant-node-sdk)

# IBM Cloudant Node.js SDK Version 0.0.18
# IBM Cloudant Node.js SDK Version 0.0.19

@@ -11,4 +11,9 @@ IBM Cloudant Node.js SDK is a client library that interacts with the

Disclaimer: This SDK is being released initially as a **pre-release** version.
Changes might occur which impact applications that use this SDK.
Disclaimer: This library is still a 0.x release. We do consider this
library production-ready and capable, but there are still some
limitations we’re working to resolve, and refinements we want to
deliver. We are working really hard to minimise the disruption from
now until the 1.0 release, but there may still be some changes that
impact applications using this SDK. For now, be sure to pin versions
to avoid surprises.

@@ -40,2 +45,3 @@ <details>

- [Using the SDK](#using-the-sdk)
* [Request timeout configuration](#request-timeout-configuration)
* [Code examples](#code-examples)

@@ -204,5 +210,9 @@ + [1. Retrieve information from an existing database](#1-retrieve-information-from-an-existing-database)

For general IBM Cloud SDK usage information, please see
[IBM Cloud SDK Common](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md).
For fundamental SDK usage information and config options, please see the common [IBM Cloud SDK](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) documentation.
### Request timeout configuration
No request, read or connect timeouts are set by default. Be sure to set a request timeout appropriate to your application usage and environment.
The [request timeout](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) section contains details on how to change the value.
### Code examples

@@ -209,0 +219,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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