@nice2dev/licensing 1.0.11 → 1.0.12
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/dist/FeatureGate-9rvyns7j.cjs +1405 -0
- package/dist/FeatureGate-9rvyns7j.cjs.map +1 -0
- package/dist/FeatureGate-cIgJ8Gq2.js +1406 -0
- package/dist/FeatureGate-cIgJ8Gq2.js.map +1 -0
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +4 -4
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.mjs +4 -4
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as generateMachineId, a as generateFingerprint, v as validateKeyFormat$1, e as extractKeyMetadata, t as tierMeetsRequirement } from "./FeatureGate-
|
|
2
|
-
import { L, c, b, d, f, h, i, j, k, l, m, n, o, p, q, r, s, u, w, x, y, z, A, B, C, D, E, F, G, H, I, J } from "./FeatureGate-
|
|
1
|
+
import { g as generateMachineId, a as generateFingerprint, v as validateKeyFormat$1, e as extractKeyMetadata, t as tierMeetsRequirement } from "./FeatureGate-cIgJ8Gq2.js";
|
|
2
|
+
import { L, c, b, d, f, h, i, j, k, l, m, n, o, p, q, r, s, u, w, x, y, z, A, B, C, D, E, F, G, H, I, J } from "./FeatureGate-cIgJ8Gq2.js";
|
|
3
3
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
4
4
|
import React, { useState, useCallback, useEffect, useMemo } from "react";
|
|
5
5
|
const HEARTBEAT_INTERVAL_MS = 5 * 60 * 1e3;
|
|
@@ -214,7 +214,7 @@ class FloatingLicenseManager {
|
|
|
214
214
|
leaseId: data.leaseId,
|
|
215
215
|
expiresAt: data.expiresAt
|
|
216
216
|
};
|
|
217
|
-
} catch (
|
|
217
|
+
} catch (_error) {
|
|
218
218
|
return {
|
|
219
219
|
success: false,
|
|
220
220
|
error: "Network error"
|
|
@@ -3828,7 +3828,7 @@ class Nice2DevLicenseWebpackPlugin {
|
|
|
3828
3828
|
throw new Error("License validation failed");
|
|
3829
3829
|
}
|
|
3830
3830
|
});
|
|
3831
|
-
compiler.hooks.compilation.tap("Nice2DevLicensePlugin", (
|
|
3831
|
+
compiler.hooks.compilation.tap("Nice2DevLicensePlugin", (_compilation) => {
|
|
3832
3832
|
var _a, _b;
|
|
3833
3833
|
const DefinePlugin = ((_a = compiler.webpack) == null ? void 0 : _a.DefinePlugin) || require("webpack").DefinePlugin;
|
|
3834
3834
|
const license = this.validator.getLicenseInfo();
|
|
@@ -3995,7 +3995,7 @@ class CIOutputFormatter {
|
|
|
3995
3995
|
}
|
|
3996
3996
|
setOutput(name, value) {
|
|
3997
3997
|
switch (this.platform) {
|
|
3998
|
-
case "github-actions":
|
|
3998
|
+
case "github-actions": {
|
|
3999
3999
|
const fs = require("fs");
|
|
4000
4000
|
const outputFile = process.env.GITHUB_OUTPUT;
|
|
4001
4001
|
if (outputFile) {
|
|
@@ -4003,6 +4003,7 @@ class CIOutputFormatter {
|
|
|
4003
4003
|
`);
|
|
4004
4004
|
}
|
|
4005
4005
|
break;
|
|
4006
|
+
}
|
|
4006
4007
|
case "azure-devops":
|
|
4007
4008
|
console.log(`##vso[task.setvariable variable=${name}]${value}`);
|
|
4008
4009
|
break;
|
|
@@ -4010,7 +4011,7 @@ class CIOutputFormatter {
|
|
|
4010
4011
|
}
|
|
4011
4012
|
setEnvVar(name, value) {
|
|
4012
4013
|
switch (this.platform) {
|
|
4013
|
-
case "github-actions":
|
|
4014
|
+
case "github-actions": {
|
|
4014
4015
|
const fs = require("fs");
|
|
4015
4016
|
const envFile = process.env.GITHUB_ENV;
|
|
4016
4017
|
if (envFile) {
|
|
@@ -4018,6 +4019,7 @@ class CIOutputFormatter {
|
|
|
4018
4019
|
`);
|
|
4019
4020
|
}
|
|
4020
4021
|
break;
|
|
4022
|
+
}
|
|
4021
4023
|
case "azure-devops":
|
|
4022
4024
|
console.log(`##vso[task.setvariable variable=${name}]${value}`);
|
|
4023
4025
|
break;
|