@ikonintegration/mod-license-client 3.0.0-alpha1 → 3.0.0-alpha3

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.
@@ -18,7 +18,7 @@ export default class APIRequest {
18
18
  // Build URL
19
19
  let reqURL = null;
20
20
  if (Object.keys(this.queryParameters).length > 0)
21
- reqURL = URLQuery(this.baseURL + this.path, { set: this.queryParameters });
21
+ reqURL = URLQuery.qsm(this.baseURL + this.path, { set: this.queryParameters });
22
22
  else reqURL = this.baseURL + this.path;
23
23
  // Make request
24
24
  const respObj = await fetch(reqURL, this._buildRequest());
@@ -5,7 +5,7 @@ export default class Key {
5
5
  async getAvailableKeys(externalID, licensesCount, productID) {
6
6
  const req = await this.api.newBaseRequest('GET');
7
7
  req.path = '/keys/' + externalID;
8
- req.appendQueryParam('numberOfLicenses', licensesCount);
8
+ if (licensesCount) req.appendQueryParam('numberOfLicenses', licensesCount);
9
9
  if (productID) req.appendQueryParam('productID', productID);
10
10
  return await req.exec();
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/mod-license-client",
3
- "version": "3.0.0-alpha1",
3
+ "version": "3.0.0-alpha3",
4
4
  "description": "Shared module license API client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "author": "Ikon Integration",
12
12
  "dependencies": {
13
- "@ikonintegration/idmclient": "^6.1.3-alpha4",
13
+ "@ikonintegration/idmclient": "^6.1.3-alpha4",
14
14
  "abind": "^1.0.5",
15
15
  "query-string-manipulator": "^1.2.2"
16
16
  }