@ikonintegration/mod-license-client 2.0.8 → 3.0.0-alpha2
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/index.js +2 -8
- package/lib/Client.js +8 -8
- package/lib/core/Request.js +1 -1
- package/lib/operations/Key.js +1 -1
- package/package.json +3 -4
package/index.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line no-global-assign
|
|
4
|
-
if (isBrowser() == false) {
|
|
5
|
-
require = require("esm")(module/* , options */);
|
|
6
|
-
}
|
|
7
|
-
//
|
|
8
|
-
module.exports = require("./lib/Client").default;
|
|
1
|
+
import Client from './lib/Client.js';
|
|
2
|
+
export default Client;
|
package/lib/Client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AppID } from '@ikonintegration/idmclient';
|
|
2
2
|
//
|
|
3
|
-
import APIRequest from './core/Request';
|
|
3
|
+
import APIRequest from './core/Request.js';
|
|
4
4
|
// API Compoenents
|
|
5
|
-
import OperationProduct from './operations/Product';
|
|
6
|
-
import OperationLicense from './operations/License';
|
|
7
|
-
import OperationLicenseConsumption from './operations/LicenseConsumption';
|
|
8
|
-
import OperationOrder from './operations/Order';
|
|
9
|
-
import OperationVoucher from './operations/Voucher';
|
|
10
|
-
import OperationKey from './operations/Key';
|
|
11
|
-
import OperationVault from './operations/Vault';
|
|
5
|
+
import OperationProduct from './operations/Product.js';
|
|
6
|
+
import OperationLicense from './operations/License.js';
|
|
7
|
+
import OperationLicenseConsumption from './operations/LicenseConsumption.js';
|
|
8
|
+
import OperationOrder from './operations/Order.js';
|
|
9
|
+
import OperationVoucher from './operations/Voucher.js';
|
|
10
|
+
import OperationKey from './operations/Key.js';
|
|
11
|
+
import OperationVault from './operations/Vault.js';
|
|
12
12
|
//
|
|
13
13
|
export default class Client {
|
|
14
14
|
/* config structure
|
package/lib/core/Request.js
CHANGED
package/lib/operations/Key.js
CHANGED
|
@@ -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,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikonintegration/mod-license-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha2",
|
|
4
4
|
"description": "Shared module license API client",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
9
|
"pre-publish": "npm i -production && curl -sf https://gobinaries.com/tj/node-prune | sh && node-prune"
|
|
9
10
|
},
|
|
10
11
|
"author": "Ikon Integration",
|
|
11
12
|
"dependencies": {
|
|
12
|
-
|
|
13
|
+
"@ikonintegration/idmclient": "^6.1.3-alpha4",
|
|
13
14
|
"abind": "^1.0.5",
|
|
14
|
-
"esm": "^3.2.25",
|
|
15
|
-
"node-fetch": "^2.6.1",
|
|
16
15
|
"query-string-manipulator": "^1.2.2"
|
|
17
16
|
}
|
|
18
17
|
}
|