@ibm-cloud/cloudant 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  [![Release](https://img.shields.io/github/v/release/IBM/cloudant-node-sdk?include_prereleases&sort=semver)](https://github.com/IBM/cloudant-node-sdk/releases/latest)
3
3
  [![Docs](https://img.shields.io/static/v1?label=TypeDoc&message=latest&color=blue)](https://ibm.github.io/cloudant-node-sdk/)
4
4
 
5
- # IBM Cloudant Node.js SDK Version 0.0.23
5
+ # IBM Cloudant Node.js SDK Version 0.0.24
6
6
 
7
7
  IBM Cloudant Node.js SDK is a client library that interacts with the
8
8
  [IBM Cloudant APIs](https://cloud.ibm.com/apidocs/cloudant?code=node).
package/cloudant/v1.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * (C) Copyright IBM Corp. 2021.
2
+ * (C) Copyright IBM Corp. 2022.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/cloudant/v1.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * (C) Copyright IBM Corp. 2021.
3
+ * (C) Copyright IBM Corp. 2022.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * © Copyright IBM Corporation 2020. All Rights Reserved.
2
+ * © Copyright IBM Corporation 2020, 2022. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -63,4 +63,5 @@ export default abstract class CloudantBaseService extends BaseService {
63
63
  * Extend createRequest to handle document and attachment validation.
64
64
  */
65
65
  protected createRequest(parameters: any): Promise<any>;
66
+ private static setDefaultAgentsIfUnset;
66
67
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * © Copyright IBM Corporation 2020. All Rights Reserved.
3
+ * © Copyright IBM Corporation 2020, 2022. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -35,6 +35,8 @@ var ibm_cloud_sdk_core_1 = require("ibm-cloud-sdk-core");
35
35
  var tough_cookie_1 = require("tough-cookie");
36
36
  var auth_1 = require("../auth");
37
37
  var common_1 = require("./common");
38
+ var https_1 = require("https");
39
+ var http_1 = require("http");
38
40
  /**
39
41
  * Set default timeout to 2.5 minutes (= 150000ms)
40
42
  */
@@ -115,6 +117,7 @@ var CloudantBaseService = /** @class */ (function (_super) {
115
117
  if (!('timeout' in userOptions)) {
116
118
  userOptions.timeout = READ_TIMEOUT;
117
119
  }
120
+ CloudantBaseService.setDefaultAgentsIfUnset(userOptions);
118
121
  _this = _super.call(this, userOptions) || this;
119
122
  _this.configureSessionAuthenticator();
120
123
  return _this;
@@ -207,6 +210,17 @@ var CloudantBaseService = /** @class */ (function (_super) {
207
210
  }
208
211
  return _super.prototype.createRequest.call(this, parameters);
209
212
  };
213
+ CloudantBaseService.setDefaultAgentsIfUnset = function (options) {
214
+ var cloudantDefaultAgentOptions = {
215
+ keepAlive: true,
216
+ };
217
+ if (!options.httpAgent) {
218
+ options.httpAgent = new http_1.Agent(cloudantDefaultAgentOptions);
219
+ }
220
+ if (!options.httpsAgent) {
221
+ options.httpsAgent = new https_1.Agent(cloudantDefaultAgentOptions);
222
+ }
223
+ };
210
224
  return CloudantBaseService;
211
225
  }(ibm_cloud_sdk_core_1.BaseService));
212
226
  exports.default = CloudantBaseService;
@@ -1 +1 @@
1
- {"version":3,"file":"cloudantBaseService.js","sourceRoot":"","sources":["../../lib/cloudantBaseService.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;AAEH,gDAAgD;AAChD,yDAA6E;AAC7E,6CAAyC;AACzC,gCAAsD;AAC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AAG,IAAI,yBAAyB,CACvC,UAAG,aAAa,CAAC,CAAC,CAAC,CAAC,kBAAkB,cACpC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,0CAChB,CACxC,CAAC;oBACF,GAAG,CAAC,IAAI,GAAG,uBAAuB,CAAC;oBACnC,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;iBAC5B;aACF;SACF;QACD,OAAO,iBAAM,aAAa,YAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IACH,0BAAC;AAAD,CAAC,AA1HD,CAA0D,gCAAW,GA0HpE"}
1
+ {"version":3,"file":"cloudantBaseService.js","sourceRoot":"","sources":["../../lib/cloudantBaseService.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;AAEH,gDAAgD;AAChD,yDAA6E;AAC7E,6CAAyC;AACzC,gCAAsD;AACtD,mCAAyC;AACzC,+BAA4C;AAC5C,6BAA0C;AAE1C;;GAEG;AACH,IAAM,YAAY,GAAG,MAAM,CAAC;AAE5B;;GAEG;AACH,IAAM,kBAAkB,GAAG;IACzB,gBAAgB;IAChB,aAAa;IACb,cAAc;IACd,aAAa;IACb,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,eAAe;CAChB,CAAC;AAEF,IAAM,oBAAoB,GAAG;IAC3B,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,eAAe;CAChB,CAAC;AAEF,IAAM,SAAS,GAAG;IAChB,WAAW,EAAE,QAAQ;IACrB,kBAAkB,EAAE,aAAa;IACjC,YAAY,EAAE,kBAAkB;CACjC,CAAC;AAEF,IAAM,SAAS,GAAG;IAChB,WAAW,EAAE,iBAAiB;IAC9B,kBAAkB,EAAE,iBAAiB;IACrC,YAAY,EAAE,oBAAoB;CACnC,CAAC;AAEF,IAAM,eAAe,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAC/C,I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AAC,CAAC;SAChE;QACD,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,OAAO,CAAC,UAAU,GAAG,IAAI,aAAU,CAAC,2BAA2B,CAAC,CAAC;SAClE;IACH,CAAC;IACH,0BAAC;AAAD,CAAC,AAzID,CAA0D,gCAAW,GAyIpE"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * © Copyright IBM Corporation 2020. All Rights Reserved.
2
+ * © Copyright IBM Corporation 2020, 2021. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * © Copyright IBM Corporation 2020. All Rights Reserved.
3
+ * © Copyright IBM Corporation 2020, 2021. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -28,7 +28,12 @@ var COUCHDB_SESSION_AUTH_TYPE = 'couchdb_session';
28
28
  function getAuthenticatorFromEnvCloudantExtension(serviceName) {
29
29
  var auth;
30
30
  var credentials = (0, ibm_cloud_sdk_core_1.readExternalSources)(serviceName);
31
- if ((credentials.authType || '').toLowerCase() === COUCHDB_SESSION_AUTH_TYPE) {
31
+ var authType = credentials.authType;
32
+ if (!authType) {
33
+ // this is the alternative "AUTHTYPE" config property
34
+ authType = credentials.authtype || '';
35
+ }
36
+ if (authType.toLowerCase() === COUCHDB_SESSION_AUTH_TYPE) {
32
37
  auth = new auth_1.CouchdbSessionAuthenticator(credentials);
33
38
  }
34
39
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthenticatorFromEnvCloudantExtension.js","sourceRoot":"","sources":["../../lib/getAuthenticatorFromEnvCloudantExtension.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,yDAI4B;AAC5B,gCAAsD;AAEtD,IAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAEpD;;;;;;GAMG;AACH,SAAwB,wCAAwC,CAC9D,WAAmB;IAEnB,IAAI,IAAI,CAAC;IACT,IAAM,WAAW,GAAG,IAAA,wCAAmB,EAAC,WAAW,CAAC,CAAC;IACrD,IACE,CAAC,WAAW,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,yBAAyB,EACxE;QACA,IAAI,GAAG,IAAI,kCAA2B,CAAC,WAAW,CAAC,CAAC;KACrD;SAAM;QACL,IAAI,GAAG,IAAA,oDAA+B,EAAC,WAAW,CAAC,CAAC;KACrD;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAbD,2DAaC"}
1
+ {"version":3,"file":"getAuthenticatorFromEnvCloudantExtension.js","sourceRoot":"","sources":["../../lib/getAuthenticatorFromEnvCloudantExtension.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,yDAI4B;AAC5B,gCAAsD;AAEtD,IAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAEpD;;;;;;GAMG;AACH,SAAwB,wCAAwC,CAC9D,WAAmB;IAEnB,IAAI,IAAI,CAAC;IACT,IAAM,WAAW,GAAG,IAAA,wCAAmB,EAAC,WAAW,CAAC,CAAC;IAC/C,IAAA,QAAQ,GAAK,WAAW,SAAhB,CAAiB;IAC/B,IAAI,CAAC,QAAQ,EAAE;QACb,qDAAqD;QACrD,QAAQ,GAAG,WAAW,CAAC,QAAQ,IAAI,EAAE,CAAC;KACvC;IAED,IAAI,QAAQ,CAAC,WAAW,EAAE,KAAK,yBAAyB,EAAE;QACxD,IAAI,GAAG,IAAI,kCAA2B,CAAC,WAAW,CAAC,CAAC;KACrD;SAAM;QACL,IAAI,GAAG,IAAA,oDAA+B,EAAC,WAAW,CAAC,CAAC;KACrD;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAjBD,2DAiBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibm-cloud/cloudant",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "IBM Cloudant Node.js SDK",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -33,9 +33,9 @@
33
33
  "node": "^12 || ^14 || ^16"
34
34
  },
35
35
  "dependencies": {
36
- "@types/node": "17.0.0",
36
+ "@types/node": "17.0.10",
37
37
  "extend": "3.0.2",
38
- "ibm-cloud-sdk-core": "2.17.4",
38
+ "ibm-cloud-sdk-core": "2.17.9",
39
39
  "tough-cookie": "4.0.0"
40
40
  },
41
41
  "jest": {