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

@mui/x-license

Package Overview
Dependencies
Maintainers
14
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/x-license - npm Package Compare versions

Comparing version 7.17.0 to 7.18.0

12

generateLicense/generateLicense.d.ts
import { PlanScope, PlanVersion } from '../utils/plan';
import { LicenseModel } from '../utils/licenseModel';
export interface LicenseDetails {
expiryDate: Date;
licenseModel?: LicenseModel;
orderNumber: string;
expiryDate: Date;
/**
* @deprecated Use planScope instead.
*/
scope?: PlanScope;
planScope?: PlanScope;
/**
* @deprecated Use licenseModel instead.
*/
licensingModel?: LicenseModel;
licenseModel?: LicenseModel;
planVersion: PlanVersion;
}
export declare function generateLicense(details: LicenseDetails): string;

@@ -7,10 +7,2 @@ import { md5 } from "../encoding/md5.js";

function getClearLicenseString(details) {
// TODO remove
if (details.licensingModel) {
details.licenseModel = details.licensingModel;
}
// TODO remove
if (details.scope) {
details.planScope = details.scope;
}
if (details.planScope && !PLAN_SCOPES.includes(details.planScope)) {

@@ -17,0 +9,0 @@ throw new Error('MUI X: Invalid scope');

2

index.js
/**
* @mui/x-license v7.17.0
* @mui/x-license v7.18.0
*

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

@@ -7,10 +7,2 @@ import { md5 } from "../encoding/md5.js";

function getClearLicenseString(details) {
// TODO remove
if (details.licensingModel) {
details.licenseModel = details.licensingModel;
}
// TODO remove
if (details.scope) {
details.planScope = details.scope;
}
if (details.planScope && !PLAN_SCOPES.includes(details.planScope)) {

@@ -17,0 +9,0 @@ throw new Error('MUI X: Invalid scope');

/**
* @mui/x-license v7.17.0
* @mui/x-license v7.18.0
*

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

@@ -13,4 +13,6 @@ export const LICENSE_MODELS = [

/**
* TODO 2026 remove, legacy name of annual.
* Legacy. The previous name for 'annual'.
* Can be removed once old license keys generated with 'subscription' are no longer supported.
* To support for a while. We need more years of backward support and we sell multi year licenses.
*/
'subscription'];

@@ -13,10 +13,2 @@ "use strict";

function getClearLicenseString(details) {
// TODO remove
if (details.licensingModel) {
details.licenseModel = details.licensingModel;
}
// TODO remove
if (details.scope) {
details.planScope = details.scope;
}
if (details.planScope && !_plan.PLAN_SCOPES.includes(details.planScope)) {

@@ -23,0 +15,0 @@ throw new Error('MUI X: Invalid scope');

/**
* @mui/x-license v7.17.0
* @mui/x-license v7.18.0
*

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

@@ -19,4 +19,6 @@ "use strict";

/**
* TODO 2026 remove, legacy name of annual.
* Legacy. The previous name for 'annual'.
* Can be removed once old license keys generated with 'subscription' are no longer supported.
* To support for a while. We need more years of backward support and we sell multi year licenses.
*/
'subscription'];
{
"name": "@mui/x-license",
"version": "7.17.0",
"version": "7.18.0",
"description": "MUI X License verification",

@@ -23,3 +23,3 @@ "author": "MUI Team",

"type": "git",
"url": "https://github.com/mui/mui-x.git",
"url": "git+https://github.com/mui/mui-x.git",
"directory": "packages/x-license"

@@ -26,0 +26,0 @@ },

@@ -13,4 +13,6 @@ export const LICENSE_MODELS = [

/**
* TODO 2026 remove, legacy name of annual.
* Legacy. The previous name for 'annual'.
* Can be removed once old license keys generated with 'subscription' are no longer supported.
* To support for a while. We need more years of backward support and we sell multi year licenses.
*/
'subscription'];

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