|
5 | 5 | */
|
6 | 6 |
|
7 | 7 | import { injectable, inject, postConstruct } from 'inversify';
|
8 |
| -import { init, Instance, dispose, isEnabled, hasEnoughSeats, canUsePrebuild, inspect, validate } from "./nativemodule"; |
| 8 | +import { init, Instance, dispose, inspect, validate } from "./nativemodule"; |
9 | 9 | import { Feature, LicensePayload } from './api';
|
10 | 10 |
|
11 | 11 | export const LicenseKeySource = Symbol("LicenseKeySource");
|
@@ -38,27 +38,30 @@ export class LicenseEvaluator {
|
38 | 38 |
|
39 | 39 | public async reloadLicense() {
|
40 | 40 | this.dispose()
|
41 |
| - await this.init() |
| 41 | + // await this.init() |
42 | 42 | }
|
43 | 43 |
|
44 | 44 | public validate(): { msg?: string, valid: boolean } {
|
45 |
| - const v = validate(this.instanceID); |
46 |
| - if (v.valid) { |
| 45 | + // const v = validate(this.instanceID); |
| 46 | + // if (v.valid) { |
47 | 47 | return { valid: true };
|
48 |
| - } |
49 |
| - return { msg: v.msg, valid: false }; |
| 48 | + // } |
| 49 | + // return { msg: v.msg, valid: false }; |
50 | 50 | }
|
51 | 51 |
|
52 | 52 | public isEnabled(feature: Feature): boolean {
|
53 |
| - return isEnabled(this.instanceID, feature); |
| 53 | + // return isEnabled(this.instanceID, feature); |
| 54 | + return true; |
54 | 55 | }
|
55 | 56 |
|
56 | 57 | public hasEnoughSeats(seats: number): boolean {
|
57 |
| - return hasEnoughSeats(this.instanceID, seats); |
| 58 | + // return hasEnoughSeats(this.instanceID, seats); |
| 59 | + return true; |
58 | 60 | }
|
59 | 61 |
|
60 | 62 | public canUsePrebuild(totalPrebuildSecondsSpent: number): boolean {
|
61 |
| - return canUsePrebuild(this.instanceID, totalPrebuildSecondsSpent); |
| 63 | + // return canUsePrebuild(this.instanceID, totalPrebuildSecondsSpent); |
| 64 | + return true; |
62 | 65 | }
|
63 | 66 |
|
64 | 67 | public inspect(): LicensePayload {
|
|
0 commit comments