Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mui/x-license-pro

Package Overview
Dependencies
Maintainers
10
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/x-license-pro - npm Package Compare versions

Comparing version 7.0.0-alpha.1 to 7.0.0-alpha.8

3

encoding/md5.js

@@ -9,3 +9,2 @@ /* eslint-disable */

}
export function md5(s) {

@@ -39,3 +38,2 @@ const words = [];

}
for (s = ''; j < 32;) {

@@ -45,4 +43,3 @@ s += (h[j >> 3] >> (1 ^ j++) * 4 & 15).toString(16);

}
return s;
}

4

generateLicense/generateLicense.js

@@ -8,6 +8,6 @@ import { md5 } from '../encoding/md5';

if (details.scope && !LICENSE_SCOPES.includes(details.scope)) {
throw new Error('MUI: Invalid scope');
throw new Error('MUI X: Invalid scope');
}
if (details.licensingModel && !LICENSING_MODELS.includes(details.licensingModel)) {
throw new Error('MUI: Invalid licensing model');
throw new Error('MUI X: Invalid licensing model');
}

@@ -14,0 +14,0 @@ return `O=${details.orderNumber},E=${details.expiryDate.getTime()},S=${details.scope},LM=${details.licensingModel},KV=${licenseVersion}`;

/**
* @mui/x-license-pro v7.0.0-alpha.1
* @mui/x-license-pro v7.0.0-alpha.8
*

@@ -4,0 +4,0 @@ * @license MUI X Commercial

@@ -9,3 +9,2 @@ /* eslint-disable */

}
export function md5(s) {

@@ -39,3 +38,2 @@ var words = [];

}
for (s = ''; j < 32;) {

@@ -45,4 +43,3 @@ s += (h[j >> 3] >> (1 ^ j++) * 4 & 15).toString(16);

}
return s;
}

@@ -8,6 +8,6 @@ import { md5 } from '../encoding/md5';

if (details.scope && !LICENSE_SCOPES.includes(details.scope)) {
throw new Error('MUI: Invalid scope');
throw new Error('MUI X: Invalid scope');
}
if (details.licensingModel && !LICENSING_MODELS.includes(details.licensingModel)) {
throw new Error('MUI: Invalid licensing model');
throw new Error('MUI X: Invalid licensing model');
}

@@ -14,0 +14,0 @@ return "O=".concat(details.orderNumber, ",E=").concat(details.expiryDate.getTime(), ",S=").concat(details.scope, ",LM=").concat(details.licensingModel, ",KV=").concat(licenseVersion);

/**
* @mui/x-license-pro v7.0.0-alpha.1
* @mui/x-license-pro v7.0.0-alpha.8
*

@@ -4,0 +4,0 @@ * @license MUI X Commercial

@@ -6,6 +6,6 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";

export function showInvalidLicenseKeyError() {
showError(['MUI: Invalid license key.', '', "Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);
showError(['MUI X: Invalid license key.', '', "Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);
}
export function showLicenseKeyPlanMismatchError() {
showError(['MUI: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', "Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]);
showError(['MUI X: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', "Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]);
}

@@ -15,7 +15,7 @@ export function showMissingLicenseKeyError(_ref) {

packageName = _ref.packageName;
showError(['MUI: Missing license key.', '', "The license key is missing. You might not be allowed to use `".concat(packageName, "` which is part of MUI X ").concat(plan, "."), '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);
showError(['MUI X: Missing license key.', '', "The license key is missing. You might not be allowed to use `".concat(packageName, "` which is part of MUI X ").concat(plan, "."), '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);
}
export function showExpiredPackageVersionError(_ref2) {
var packageName = _ref2.packageName;
showError(['MUI: Expired package version.', '', "You have installed a version of `".concat(packageName, "` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase."), '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);
showError(['MUI X: Expired package version.', '', "You have installed a version of `".concat(packageName, "` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase."), '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);
}

@@ -26,3 +26,3 @@ export function showExpiredAnnualGraceLicenseKeyError(_ref3) {

expiryTimestamp = _ref3.expiryTimestamp;
showError(['MUI: Expired license key.', '', "Your annual license key to use MUI X ".concat(plan, "'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ").concat(plan, " component (more details in https://mui.com/r/x-license-annual)."), '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', "- Stop making changes to code depending directly or indirectly on MUI X ".concat(plan, "'s APIs"), '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', "- License key expiry timestamp: ".concat(new Date(expiryTimestamp)), "- Installed license key: ".concat(licenseKey), '']);
showError(['MUI X: Expired license key.', '', "Your annual license key to use MUI X ".concat(plan, "'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ").concat(plan, " component (more details in https://mui.com/r/x-license-annual)."), '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', "- Stop making changes to code depending directly or indirectly on MUI X ".concat(plan, "'s APIs"), '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', "- License key expiry timestamp: ".concat(new Date(expiryTimestamp)), "- Installed license key: ".concat(licenseKey), '']);
}

@@ -33,3 +33,3 @@ export function showExpiredAnnualLicenseKeyError(_ref4) {

expiryTimestamp = _ref4.expiryTimestamp;
throw new Error(['MUI: Expired license key.', '', "Your annual license key to use MUI X ".concat(plan, "'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ").concat(plan, " component (more details in https://mui.com/r/x-license-annual)."), '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', "- Stop making changes to code depending directly or indirectly on MUI X ".concat(plan, "'s APIs"), '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', "- License key expiry timestamp: ".concat(new Date(expiryTimestamp)), "- Installed license key: ".concat(licenseKey), ''].join('\n'));
throw new Error(['MUI X: Expired license key.', '', "Your annual license key to use MUI X ".concat(plan, "'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ").concat(plan, " component (more details in https://mui.com/r/x-license-annual)."), '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', "- Stop making changes to code depending directly or indirectly on MUI X ".concat(plan, "'s APIs"), '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', "- License key expiry timestamp: ".concat(new Date(expiryTimestamp)), "- Installed license key: ".concat(licenseKey), ''].join('\n'));
}

@@ -88,3 +88,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

if (!releaseInfo) {
throw new Error('MUI: The release information is missing. Not able to validate license.');
throw new Error('MUI X: The release information is missing. Not able to validate license.');
}

@@ -105,3 +105,3 @@ if (!licenseKey) {

if (license == null) {
console.error('Error checking license. Key version not found!');
console.error('MUI X: Error checking license. Key version not found!');
return {

@@ -112,3 +112,3 @@ status: LICENSE_STATUS.Invalid

if (license.licensingModel == null || !LICENSING_MODELS.includes(license.licensingModel)) {
console.error('Error checking license. Licensing model not found or invalid!');
console.error('MUI X: Error checking license. Licensing model not found or invalid!');
return {

@@ -119,3 +119,3 @@ status: LICENSE_STATUS.Invalid

if (license.expiryTimestamp == null) {
console.error('Error checking license. Expiry timestamp not found or invalid!');
console.error('MUI X: Error checking license. Expiry timestamp not found or invalid!');
return {

@@ -128,3 +128,3 @@ status: LICENSE_STATUS.Invalid

if (Number.isNaN(pkgTimestamp)) {
throw new Error('MUI: The release information is invalid. Not able to validate license.');
throw new Error('MUI X: The release information is invalid. Not able to validate license.');
}

@@ -131,0 +131,0 @@ if (license.expiryTimestamp < pkgTimestamp) {

@@ -19,3 +19,3 @@ import * as React from 'react';

default:
throw new Error('MUI: Unhandled MUI X license status.');
throw new Error('Unhandled MUI X license status.');
}

@@ -22,0 +22,0 @@ }

@@ -9,3 +9,2 @@ /* eslint-disable */

}
export function md5(s) {

@@ -39,3 +38,2 @@ const words = [];

}
for (s = ''; j < 32;) {

@@ -45,4 +43,3 @@ s += (h[j >> 3] >> (1 ^ j++) * 4 & 15).toString(16);

}
return s;
}

@@ -8,6 +8,6 @@ import { md5 } from '../encoding/md5';

if (details.scope && !LICENSE_SCOPES.includes(details.scope)) {
throw new Error('MUI: Invalid scope');
throw new Error('MUI X: Invalid scope');
}
if (details.licensingModel && !LICENSING_MODELS.includes(details.licensingModel)) {
throw new Error('MUI: Invalid licensing model');
throw new Error('MUI X: Invalid licensing model');
}

@@ -14,0 +14,0 @@ return `O=${details.orderNumber},E=${details.expiryDate.getTime()},S=${details.scope},LM=${details.licensingModel},KV=${licenseVersion}`;

/**
* @mui/x-license-pro v7.0.0-alpha.1
* @mui/x-license-pro v7.0.0-alpha.8
*

@@ -4,0 +4,0 @@ * @license MUI X Commercial

@@ -5,6 +5,6 @@ function showError(message) {

export function showInvalidLicenseKeyError() {
showError(['MUI: Invalid license key.', '', "Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);
showError(['MUI X: Invalid license key.', '', "Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);
}
export function showLicenseKeyPlanMismatchError() {
showError(['MUI: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', "Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]);
showError(['MUI X: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', "Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]);
}

@@ -15,3 +15,3 @@ export function showMissingLicenseKeyError({

}) {
showError(['MUI: Missing license key.', '', `The license key is missing. You might not be allowed to use \`${packageName}\` which is part of MUI X ${plan}.`, '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);
showError(['MUI X: Missing license key.', '', `The license key is missing. You might not be allowed to use \`${packageName}\` which is part of MUI X ${plan}.`, '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);
}

@@ -21,3 +21,3 @@ export function showExpiredPackageVersionError({

}) {
showError(['MUI: Expired package version.', '', `You have installed a version of \`${packageName}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`, '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);
showError(['MUI X: Expired package version.', '', `You have installed a version of \`${packageName}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`, '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);
}

@@ -29,3 +29,3 @@ export function showExpiredAnnualGraceLicenseKeyError({

}) {
showError(['MUI: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, '']);
showError(['MUI X: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, '']);
}

@@ -37,3 +37,3 @@ export function showExpiredAnnualLicenseKeyError({

}) {
throw new Error(['MUI: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, ''].join('\n'));
throw new Error(['MUI X: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, ''].join('\n'));
}

@@ -80,3 +80,3 @@ import { base64Decode, base64Encode } from '../encoding/base64';

if (!releaseInfo) {
throw new Error('MUI: The release information is missing. Not able to validate license.');
throw new Error('MUI X: The release information is missing. Not able to validate license.');
}

@@ -97,3 +97,3 @@ if (!licenseKey) {

if (license == null) {
console.error('Error checking license. Key version not found!');
console.error('MUI X: Error checking license. Key version not found!');
return {

@@ -104,3 +104,3 @@ status: LICENSE_STATUS.Invalid

if (license.licensingModel == null || !LICENSING_MODELS.includes(license.licensingModel)) {
console.error('Error checking license. Licensing model not found or invalid!');
console.error('MUI X: Error checking license. Licensing model not found or invalid!');
return {

@@ -111,3 +111,3 @@ status: LICENSE_STATUS.Invalid

if (license.expiryTimestamp == null) {
console.error('Error checking license. Expiry timestamp not found or invalid!');
console.error('MUI X: Error checking license. Expiry timestamp not found or invalid!');
return {

@@ -120,3 +120,3 @@ status: LICENSE_STATUS.Invalid

if (Number.isNaN(pkgTimestamp)) {
throw new Error('MUI: The release information is invalid. Not able to validate license.');
throw new Error('MUI X: The release information is invalid. Not able to validate license.');
}

@@ -123,0 +123,0 @@ if (license.expiryTimestamp < pkgTimestamp) {

@@ -19,3 +19,3 @@ import * as React from 'react';

default:
throw new Error('MUI: Unhandled MUI X license status.');
throw new Error('Unhandled MUI X license status.');
}

@@ -22,0 +22,0 @@ }

@@ -15,3 +15,2 @@ "use strict";

}
function md5(s) {

@@ -45,3 +44,2 @@ const words = [];

}
for (s = ''; j < 32;) {

@@ -51,4 +49,3 @@ s += (h[j >> 3] >> (1 ^ j++) * 4 & 15).toString(16);

}
return s;
}

@@ -14,6 +14,6 @@ "use strict";

if (details.scope && !_licenseScope.LICENSE_SCOPES.includes(details.scope)) {
throw new Error('MUI: Invalid scope');
throw new Error('MUI X: Invalid scope');
}
if (details.licensingModel && !_licensingModel.LICENSING_MODELS.includes(details.licensingModel)) {
throw new Error('MUI: Invalid licensing model');
throw new Error('MUI X: Invalid licensing model');
}

@@ -20,0 +20,0 @@ return `O=${details.orderNumber},E=${details.expiryDate.getTime()},S=${details.scope},LM=${details.licensingModel},KV=${licenseVersion}`;

/**
* @mui/x-license-pro v7.0.0-alpha.1
* @mui/x-license-pro v7.0.0-alpha.8
*

@@ -4,0 +4,0 @@ * @license MUI X Commercial

@@ -16,6 +16,6 @@ "use strict";

function showInvalidLicenseKeyError() {
showError(['MUI: Invalid license key.', '', "Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);
showError(['MUI X: Invalid license key.', '', "Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);
}
function showLicenseKeyPlanMismatchError() {
showError(['MUI: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', "Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]);
showError(['MUI X: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', "Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]);
}

@@ -26,3 +26,3 @@ function showMissingLicenseKeyError({

}) {
showError(['MUI: Missing license key.', '', `The license key is missing. You might not be allowed to use \`${packageName}\` which is part of MUI X ${plan}.`, '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);
showError(['MUI X: Missing license key.', '', `The license key is missing. You might not be allowed to use \`${packageName}\` which is part of MUI X ${plan}.`, '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);
}

@@ -32,3 +32,3 @@ function showExpiredPackageVersionError({

}) {
showError(['MUI: Expired package version.', '', `You have installed a version of \`${packageName}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`, '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);
showError(['MUI X: Expired package version.', '', `You have installed a version of \`${packageName}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`, '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);
}

@@ -40,3 +40,3 @@ function showExpiredAnnualGraceLicenseKeyError({

}) {
showError(['MUI: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, '']);
showError(['MUI X: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, '']);
}

@@ -48,3 +48,3 @@ function showExpiredAnnualLicenseKeyError({

}) {
throw new Error(['MUI: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, ''].join('\n'));
throw new Error(['MUI X: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, ''].join('\n'));
}

@@ -87,3 +87,3 @@ "use strict";

if (!releaseInfo) {
throw new Error('MUI: The release information is missing. Not able to validate license.');
throw new Error('MUI X: The release information is missing. Not able to validate license.');
}

@@ -104,3 +104,3 @@ if (!licenseKey) {

if (license == null) {
console.error('Error checking license. Key version not found!');
console.error('MUI X: Error checking license. Key version not found!');
return {

@@ -111,3 +111,3 @@ status: _licenseStatus.LICENSE_STATUS.Invalid

if (license.licensingModel == null || !_licensingModel.LICENSING_MODELS.includes(license.licensingModel)) {
console.error('Error checking license. Licensing model not found or invalid!');
console.error('MUI X: Error checking license. Licensing model not found or invalid!');
return {

@@ -118,3 +118,3 @@ status: _licenseStatus.LICENSE_STATUS.Invalid

if (license.expiryTimestamp == null) {
console.error('Error checking license. Expiry timestamp not found or invalid!');
console.error('MUI X: Error checking license. Expiry timestamp not found or invalid!');
return {

@@ -127,3 +127,3 @@ status: _licenseStatus.LICENSE_STATUS.Invalid

if (Number.isNaN(pkgTimestamp)) {
throw new Error('MUI: The release information is invalid. Not able to validate license.');
throw new Error('MUI X: The release information is invalid. Not able to validate license.');
}

@@ -130,0 +130,0 @@ if (license.expiryTimestamp < pkgTimestamp) {

@@ -27,3 +27,3 @@ "use strict";

default:
throw new Error('MUI: Unhandled MUI X license status.');
throw new Error('Unhandled MUI X license status.');
}

@@ -30,0 +30,0 @@ }

{
"name": "@mui/x-license-pro",
"version": "7.0.0-alpha.1",
"version": "7.0.0-alpha.8",
"description": "MUI X License verification",

@@ -27,4 +27,4 @@ "author": "MUI Team",

"dependencies": {
"@babel/runtime": "^7.23.2",
"@mui/utils": "^5.14.16"
"@babel/runtime": "^7.23.7",
"@mui/utils": "^5.15.2"
},

@@ -31,0 +31,0 @@ "peerDependencies": {

@@ -5,6 +5,6 @@ function showError(message) {

export function showInvalidLicenseKeyError() {
showError(['MUI: Invalid license key.', '', "Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);
showError(['MUI X: Invalid license key.', '', "Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);
}
export function showLicenseKeyPlanMismatchError() {
showError(['MUI: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', "Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]);
showError(['MUI X: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', "Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`."]);
}

@@ -15,3 +15,3 @@ export function showMissingLicenseKeyError({

}) {
showError(['MUI: Missing license key.', '', `The license key is missing. You might not be allowed to use \`${packageName}\` which is part of MUI X ${plan}.`, '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);
showError(['MUI X: Missing license key.', '', `The license key is missing. You might not be allowed to use \`${packageName}\` which is part of MUI X ${plan}.`, '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);
}

@@ -21,3 +21,3 @@ export function showExpiredPackageVersionError({

}) {
showError(['MUI: Expired package version.', '', `You have installed a version of \`${packageName}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`, '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);
showError(['MUI X: Expired package version.', '', `You have installed a version of \`${packageName}\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`, '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);
}

@@ -29,3 +29,3 @@ export function showExpiredAnnualGraceLicenseKeyError({

}) {
showError(['MUI: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, '']);
showError(['MUI X: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, '']);
}

@@ -37,3 +37,3 @@ export function showExpiredAnnualLicenseKeyError({

}) {
throw new Error(['MUI: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, ''].join('\n'));
throw new Error(['MUI X: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, ''].join('\n'));
}

@@ -80,3 +80,3 @@ import { base64Decode, base64Encode } from '../encoding/base64';

if (!releaseInfo) {
throw new Error('MUI: The release information is missing. Not able to validate license.');
throw new Error('MUI X: The release information is missing. Not able to validate license.');
}

@@ -97,3 +97,3 @@ if (!licenseKey) {

if (license == null) {
console.error('Error checking license. Key version not found!');
console.error('MUI X: Error checking license. Key version not found!');
return {

@@ -104,3 +104,3 @@ status: LICENSE_STATUS.Invalid

if (license.licensingModel == null || !LICENSING_MODELS.includes(license.licensingModel)) {
console.error('Error checking license. Licensing model not found or invalid!');
console.error('MUI X: Error checking license. Licensing model not found or invalid!');
return {

@@ -111,3 +111,3 @@ status: LICENSE_STATUS.Invalid

if (license.expiryTimestamp == null) {
console.error('Error checking license. Expiry timestamp not found or invalid!');
console.error('MUI X: Error checking license. Expiry timestamp not found or invalid!');
return {

@@ -120,3 +120,3 @@ status: LICENSE_STATUS.Invalid

if (Number.isNaN(pkgTimestamp)) {
throw new Error('MUI: The release information is invalid. Not able to validate license.');
throw new Error('MUI X: The release information is invalid. Not able to validate license.');
}

@@ -123,0 +123,0 @@ if (license.expiryTimestamp < pkgTimestamp) {

@@ -19,3 +19,3 @@ import * as React from 'react';

default:
throw new Error('MUI: Unhandled MUI X license status.');
throw new Error('Unhandled MUI X license status.');
}

@@ -22,0 +22,0 @@ }

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc