@moonbase.sh/licensing 3.1.1 → 3.2.0
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/README.md +1 -0
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -79,6 +79,7 @@ var ErrorType = /* @__PURE__ */ ((ErrorType2) => {
|
|
|
79
79
|
ErrorType2["LicenseExpired"] = "LicenseExpired";
|
|
80
80
|
ErrorType2["LicenseDeviceMismatch"] = "LicenseDeviceMismatch";
|
|
81
81
|
ErrorType2["DeviceIdentityUnavailable"] = "DeviceIdentityUnavailable";
|
|
82
|
+
ErrorType2["StoreClosed"] = "StoreClosed";
|
|
82
83
|
return ErrorType2;
|
|
83
84
|
})(ErrorType || {});
|
|
84
85
|
var MoonbaseError = class extends Error {
|
|
@@ -275,7 +276,8 @@ var licenseErrorTypes = /* @__PURE__ */ new Set([
|
|
|
275
276
|
"LicenseInvalid" /* LicenseInvalid */,
|
|
276
277
|
"LicenseRevoked" /* LicenseRevoked */,
|
|
277
278
|
"LicenseActivationRevoked" /* LicenseActivationRevoked */,
|
|
278
|
-
"LicenseExpired" /* LicenseExpired
|
|
279
|
+
"LicenseExpired" /* LicenseExpired */,
|
|
280
|
+
"StoreClosed" /* StoreClosed */
|
|
279
281
|
]);
|
|
280
282
|
async function errorFromResponse(response) {
|
|
281
283
|
const fallback = new MoonbaseError(
|
package/dist/index.d.cts
CHANGED
|
@@ -623,7 +623,13 @@ declare enum ErrorType {
|
|
|
623
623
|
/** The license is valid but bound to a different device, or to an older fingerprint version. */
|
|
624
624
|
LicenseDeviceMismatch = "LicenseDeviceMismatch",
|
|
625
625
|
/** No stable hardware identifier could be read, so no device id can be computed. */
|
|
626
|
-
DeviceIdentityUnavailable = "DeviceIdentityUnavailable"
|
|
626
|
+
DeviceIdentityUnavailable = "DeviceIdentityUnavailable",
|
|
627
|
+
/**
|
|
628
|
+
* The store this product is sold through has closed its Moonbase account. Not transient:
|
|
629
|
+
* nothing about the license can be validated, activated or renewed online again. An offline
|
|
630
|
+
* license keeps validating, since that never asks the server.
|
|
631
|
+
*/
|
|
632
|
+
StoreClosed = "StoreClosed"
|
|
627
633
|
}
|
|
628
634
|
declare class MoonbaseError extends Error {
|
|
629
635
|
readonly title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -623,7 +623,13 @@ declare enum ErrorType {
|
|
|
623
623
|
/** The license is valid but bound to a different device, or to an older fingerprint version. */
|
|
624
624
|
LicenseDeviceMismatch = "LicenseDeviceMismatch",
|
|
625
625
|
/** No stable hardware identifier could be read, so no device id can be computed. */
|
|
626
|
-
DeviceIdentityUnavailable = "DeviceIdentityUnavailable"
|
|
626
|
+
DeviceIdentityUnavailable = "DeviceIdentityUnavailable",
|
|
627
|
+
/**
|
|
628
|
+
* The store this product is sold through has closed its Moonbase account. Not transient:
|
|
629
|
+
* nothing about the license can be validated, activated or renewed online again. An offline
|
|
630
|
+
* license keeps validating, since that never asks the server.
|
|
631
|
+
*/
|
|
632
|
+
StoreClosed = "StoreClosed"
|
|
627
633
|
}
|
|
628
634
|
declare class MoonbaseError extends Error {
|
|
629
635
|
readonly title: string;
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var ErrorType = /* @__PURE__ */ ((ErrorType2) => {
|
|
|
16
16
|
ErrorType2["LicenseExpired"] = "LicenseExpired";
|
|
17
17
|
ErrorType2["LicenseDeviceMismatch"] = "LicenseDeviceMismatch";
|
|
18
18
|
ErrorType2["DeviceIdentityUnavailable"] = "DeviceIdentityUnavailable";
|
|
19
|
+
ErrorType2["StoreClosed"] = "StoreClosed";
|
|
19
20
|
return ErrorType2;
|
|
20
21
|
})(ErrorType || {});
|
|
21
22
|
var MoonbaseError = class extends Error {
|
|
@@ -212,7 +213,8 @@ var licenseErrorTypes = /* @__PURE__ */ new Set([
|
|
|
212
213
|
"LicenseInvalid" /* LicenseInvalid */,
|
|
213
214
|
"LicenseRevoked" /* LicenseRevoked */,
|
|
214
215
|
"LicenseActivationRevoked" /* LicenseActivationRevoked */,
|
|
215
|
-
"LicenseExpired" /* LicenseExpired
|
|
216
|
+
"LicenseExpired" /* LicenseExpired */,
|
|
217
|
+
"StoreClosed" /* StoreClosed */
|
|
216
218
|
]);
|
|
217
219
|
async function errorFromResponse(response) {
|
|
218
220
|
const fallback = new MoonbaseError(
|
package/package.json
CHANGED