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

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 CHANGED
@@ -1,8 +1,2 @@
1
- const isBrowser = new Function("try {return this===window;}catch(e){ return false;}");
2
- // Set options as a parameter, environment variable, or rc file.
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
@@ -1,6 +1,6 @@
1
1
  import URLQuery from 'query-string-manipulator'; //so lazy.. TODO: replace me
2
2
  //
3
- const fetch = require("node-fetch");
3
+ //import fetch from 'node-fetch';
4
4
  //
5
5
  export default class APIRequest {
6
6
  constructor(method) {
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@ikonintegration/mod-license-client",
3
- "version": "2.0.8",
3
+ "version": "3.0.0-alpha1",
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
- "@ikonintegration/idmclient": "^4.4.6",
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
  }