@indra.ai/deva.license 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -215,13 +215,14 @@ const LICENSE = new Deva({
215
215
  },
216
216
  },
217
217
  async onInit(data, resolve) {
218
- const {concerns, global, personal} = this.license(); // get the license config
218
+ // check license
219
+ const {personal} = this.license(); // get the license config
219
220
  this.vars.license = await this.methods.license_check(personal, pkg.VLA);
220
221
  if (this.vars.license) {
221
- return this.start(data, resolve);
222
+ return this.start(data, resolve); // start load if license valid
222
223
  }
223
224
  else {
224
- return this.stop(data, resolve);
225
+ return this.stop(data, resolve); // stop load if license is invalid.
225
226
  }
226
227
  },
227
228
  async onReady(data, resolve) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "41840925813499570000",
3
3
  "name": "@indra.ai/deva.license",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "license": "VLA:20758568792947085964 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": 20758568792947085000,