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
9
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 5.0.0-beta.2 to 5.0.0-beta.3

2

cjs/index.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./generateLicense-c091cf37.js"),t=require("@mui/utils");function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i,n=r(require("react"));t.ponyfillGlobal.__MUI_LICENSE_INFO__=t.ponyfillGlobal.__MUI_LICENSE_INFO__||{key:void 0,releaseInfo:void 0};class s{static getKey(){return t.ponyfillGlobal.__MUI_LICENSE_INFO__.key}static getReleaseInfo(){return t.ponyfillGlobal.__MUI_LICENSE_INFO__.releaseInfo}static setLicenseKey(e){t.ponyfillGlobal.__MUI_LICENSE_INFO__.key=e}static setReleaseInfo(e){t.ponyfillGlobal.__MUI_LICENSE_INFO__.releaseInfo=e}}function o(e){console.error(["************************************************************","*************************************************************","",...e,"","*************************************************************","*************************************************************"].join("\n"))}function a(){o(["Material-UI X: Invalid license.","","Your license for Material-UI X is not valid, please visit","https://material-ui.com/r/x-license to get a valid license."])}function l(){o(["Material-UI X: License key not found.","","This is a trial-only version of Material-UI X.","While all the features are unlocked, it is not licensed for","development use on projects intended for production.","","To purchase a license, please visit","https://material-ui.com/r/x-license to get a valid license."])}function c(){o(["Material-UI X: License key expired.","","Please visit https://material-ui.com/r/x-license to renew","your subscription and get the latest version of Material-UI X."])}exports.LicenseStatus=void 0,(i=exports.LicenseStatus||(exports.LicenseStatus={})).NotFound="NotFound",i.Invalid="Invalid",i.Expired="Expired",i.Valid="Valid";const u=/^.*EXPIRY=([0-9]+),.*$/;function p(t,r){if(!t)throw new Error("Material-UI: The release information is missing. Not able to validate license.");if(!r)return exports.LicenseStatus.NotFound;const i=r.substr(0,32),n=r.substr(32);if(i!==e.md5(n))return exports.LicenseStatus.Invalid;const s=e.base64Decode(n);let o=0;try{if(o=parseInt(s.match(u)[1],10),!o||Number.isNaN(o))return console.error("Error checking license. Expiry timestamp not found or invalid!"),exports.LicenseStatus.Invalid}catch(e){return console.error("Error extracting license expiry timestamp.",e),exports.LicenseStatus.Invalid}const a=parseInt(e.base64Decode(t),10);if(Number.isNaN(a))throw new Error("Material-UI: The release information is invalid. Not able to validate license.");return o<a?exports.LicenseStatus.Expired:exports.LicenseStatus.Valid}exports.generateLicence=e.generateLicence,exports.LicenseInfo=s,exports.generateReleaseInfo=function(){const t=new Date;return t.setHours(0,0,0,0),e.base64Encode(t.getTime().toString())},exports.showExpiredLicenseError=c,exports.showInvalidLicenseError=a,exports.showNotFoundLicenseError=l,exports.useLicenseVerifier=function(){return n.useMemo((()=>{const e=p(s.getReleaseInfo(),s.getKey());return e===exports.LicenseStatus.Invalid?a():e===exports.LicenseStatus.NotFound?l():e===exports.LicenseStatus.Expired&&c(),e}),[])},exports.verifyLicense=p;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./generateLicense-c091cf37.js"),t=require("@mui/utils");function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n,s=r(require("react"));t.ponyfillGlobal.__MUI_LICENSE_INFO__=t.ponyfillGlobal.__MUI_LICENSE_INFO__||{key:void 0,releaseInfo:void 0};class i{static getKey(){return t.ponyfillGlobal.__MUI_LICENSE_INFO__.key}static getReleaseInfo(){return t.ponyfillGlobal.__MUI_LICENSE_INFO__.releaseInfo}static setLicenseKey(e){t.ponyfillGlobal.__MUI_LICENSE_INFO__.key=e}static setReleaseInfo(e){t.ponyfillGlobal.__MUI_LICENSE_INFO__.releaseInfo=e}}function o(e){console.error(["************************************************************","*************************************************************","",...e,"","*************************************************************","*************************************************************"].join("\n"))}function a(){o(["MUI: Invalid license.","","Your license for MUI X is not valid, please visit","https://mui.com/r/x-license to get a valid license."])}function c(){o(["MUI: License key not found.","","This is a trial-only version of MUI X.","While all the features are unlocked, it is not licensed for","development use on projects intended for production.","","To purchase a license, please visit","https://mui.com/r/x-license to get a valid license."])}function l(){o(["MUI: License key expired.","","Please visit https://mui.com/r/x-license to renew","your subscription and get the latest version of MUI X."])}exports.LicenseStatus=void 0,(n=exports.LicenseStatus||(exports.LicenseStatus={})).NotFound="NotFound",n.Invalid="Invalid",n.Expired="Expired",n.Valid="Valid";const u=/^.*EXPIRY=([0-9]+),.*$/;function p(t,r){if(!t)throw new Error("MUI: The release information is missing. Not able to validate license.");if(!r)return exports.LicenseStatus.NotFound;const n=r.substr(0,32),s=r.substr(32);if(n!==e.md5(s))return exports.LicenseStatus.Invalid;const i=e.base64Decode(s);let o=0;try{if(o=parseInt(i.match(u)[1],10),!o||Number.isNaN(o))return console.error("Error checking license. Expiry timestamp not found or invalid!"),exports.LicenseStatus.Invalid}catch(e){return console.error("Error extracting license expiry timestamp.",e),exports.LicenseStatus.Invalid}const a=parseInt(e.base64Decode(t),10);if(Number.isNaN(a))throw new Error("MUI: The release information is invalid. Not able to validate license.");return o<a?exports.LicenseStatus.Expired:exports.LicenseStatus.Valid}exports.generateLicence=e.generateLicence,exports.LicenseInfo=i,exports.generateReleaseInfo=function(){const t=new Date;return t.setHours(0,0,0,0),e.base64Encode(t.getTime().toString())},exports.showExpiredLicenseError=l,exports.showInvalidLicenseError=a,exports.showNotFoundLicenseError=c,exports.useLicenseVerifier=function(){return s.useMemo((()=>{const e=p(i.getReleaseInfo(),i.getKey());return e===exports.LicenseStatus.Invalid?a():e===exports.LicenseStatus.NotFound?c():e===exports.LicenseStatus.Expired&&l(),e}),[])},exports.verifyLicense=p;

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("yargs"),r=require("./generateLicense-c091cf37.js");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(e);exports.licenseGenCli=function(){n.command({command:"$0",describe:"Generates Component.propTypes from TypeScript declarations",builder:e=>e.option("order",{default:"",describe:"Order number id.",type:"string"}).option("expiry",{default:"366",describe:"Number of days from now until expiry date.",type:"string"}),handler:e=>{if(!e.order)throw new Error("Material-UI: You forgot to pass an order number. $ > licensegen -o order_123.");const t={expiryDate:new Date((new Date).getTime()+864e5*parseInt(e.expiry,10)),orderNumber:e.order};console.log(`Generating new license number for order ${t.orderNumber} with expiry date ${t.expiryDate.toLocaleDateString()}`);const n=r.generateLicence(t);console.log(`New license: \n${n}`)}}).help().strict(!0).version(!1).parse()};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("yargs"),r=require("./generateLicense-c091cf37.js");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(e);exports.licenseGenCli=function(){n.command({command:"$0",describe:"Generates Component.propTypes from TypeScript declarations",builder:e=>e.option("order",{default:"",describe:"Order number id.",type:"string"}).option("expiry",{default:"366",describe:"Number of days from now until expiry date.",type:"string"}),handler:e=>{if(!e.order)throw new Error("MUI: You forgot to pass an order number. $ > licensegen -o order_123.");const t={expiryDate:new Date((new Date).getTime()+864e5*parseInt(e.expiry,10)),orderNumber:e.order};console.log(`Generating new license number for order ${t.orderNumber} with expiry date ${t.expiryDate.toLocaleDateString()}`);const n=r.generateLicence(t);console.log(`New license: \n${n}`)}}).help().strict(!0).version(!1).parse()};

@@ -1,1 +0,1 @@

import{b as e,m as t,a as i}from"./generateLicense-4c697767.js";export{g as generateLicence}from"./generateLicense-4c697767.js";import{ponyfillGlobal as r}from"@mui/utils";import*as n from"react";r.__MUI_LICENSE_INFO__=r.__MUI_LICENSE_INFO__||{key:void 0,releaseInfo:void 0};class o{static getKey(){return r.__MUI_LICENSE_INFO__.key}static getReleaseInfo(){return r.__MUI_LICENSE_INFO__.releaseInfo}static setLicenseKey(e){r.__MUI_LICENSE_INFO__.key=e}static setReleaseInfo(e){r.__MUI_LICENSE_INFO__.releaseInfo=e}}var a;function s(e){console.error(["************************************************************","*************************************************************","",...e,"","*************************************************************","*************************************************************"].join("\n"))}function l(){s(["Material-UI X: Invalid license.","","Your license for Material-UI X is not valid, please visit","https://material-ui.com/r/x-license to get a valid license."])}function c(){s(["Material-UI X: License key not found.","","This is a trial-only version of Material-UI X.","While all the features are unlocked, it is not licensed for","development use on projects intended for production.","","To purchase a license, please visit","https://material-ui.com/r/x-license to get a valid license."])}function u(){s(["Material-UI X: License key expired.","","Please visit https://material-ui.com/r/x-license to renew","your subscription and get the latest version of Material-UI X."])}function I(){const t=new Date;return t.setHours(0,0,0,0),e(t.getTime().toString())}!function(e){e.NotFound="NotFound",e.Invalid="Invalid",e.Expired="Expired",e.Valid="Valid"}(a||(a={}));const d=/^.*EXPIRY=([0-9]+),.*$/;function _(e,r){if(!e)throw new Error("Material-UI: The release information is missing. Not able to validate license.");if(!r)return a.NotFound;const n=r.substr(0,32),o=r.substr(32);if(n!==t(o))return a.Invalid;const s=i(o);let l=0;try{if(l=parseInt(s.match(d)[1],10),!l||Number.isNaN(l))return console.error("Error checking license. Expiry timestamp not found or invalid!"),a.Invalid}catch(e){return console.error("Error extracting license expiry timestamp.",e),a.Invalid}const c=parseInt(i(e),10);if(Number.isNaN(c))throw new Error("Material-UI: The release information is invalid. Not able to validate license.");return l<c?a.Expired:a.Valid}function f(){return n.useMemo((()=>{const e=_(o.getReleaseInfo(),o.getKey());return e===a.Invalid?l():e===a.NotFound?c():e===a.Expired&&u(),e}),[])}export{o as LicenseInfo,a as LicenseStatus,I as generateReleaseInfo,u as showExpiredLicenseError,l as showInvalidLicenseError,c as showNotFoundLicenseError,f as useLicenseVerifier,_ as verifyLicense};
import{b as e,m as t,a as n}from"./generateLicense-4c697767.js";export{g as generateLicence}from"./generateLicense-4c697767.js";import{ponyfillGlobal as i}from"@mui/utils";import*as r from"react";i.__MUI_LICENSE_INFO__=i.__MUI_LICENSE_INFO__||{key:void 0,releaseInfo:void 0};class o{static getKey(){return i.__MUI_LICENSE_INFO__.key}static getReleaseInfo(){return i.__MUI_LICENSE_INFO__.releaseInfo}static setLicenseKey(e){i.__MUI_LICENSE_INFO__.key=e}static setReleaseInfo(e){i.__MUI_LICENSE_INFO__.releaseInfo=e}}var s;function a(e){console.error(["************************************************************","*************************************************************","",...e,"","*************************************************************","*************************************************************"].join("\n"))}function c(){a(["MUI: Invalid license.","","Your license for MUI X is not valid, please visit","https://mui.com/r/x-license to get a valid license."])}function l(){a(["MUI: License key not found.","","This is a trial-only version of MUI X.","While all the features are unlocked, it is not licensed for","development use on projects intended for production.","","To purchase a license, please visit","https://mui.com/r/x-license to get a valid license."])}function u(){a(["MUI: License key expired.","","Please visit https://mui.com/r/x-license to renew","your subscription and get the latest version of MUI X."])}function I(){const t=new Date;return t.setHours(0,0,0,0),e(t.getTime().toString())}!function(e){e.NotFound="NotFound",e.Invalid="Invalid",e.Expired="Expired",e.Valid="Valid"}(s||(s={}));const d=/^.*EXPIRY=([0-9]+),.*$/;function _(e,i){if(!e)throw new Error("MUI: The release information is missing. Not able to validate license.");if(!i)return s.NotFound;const r=i.substr(0,32),o=i.substr(32);if(r!==t(o))return s.Invalid;const a=n(o);let c=0;try{if(c=parseInt(a.match(d)[1],10),!c||Number.isNaN(c))return console.error("Error checking license. Expiry timestamp not found or invalid!"),s.Invalid}catch(e){return console.error("Error extracting license expiry timestamp.",e),s.Invalid}const l=parseInt(n(e),10);if(Number.isNaN(l))throw new Error("MUI: The release information is invalid. Not able to validate license.");return c<l?s.Expired:s.Valid}function f(){return r.useMemo((()=>{const e=_(o.getReleaseInfo(),o.getKey());return e===s.Invalid?c():e===s.NotFound?l():e===s.Expired&&u(),e}),[])}export{o as LicenseInfo,s as LicenseStatus,I as generateReleaseInfo,u as showExpiredLicenseError,c as showInvalidLicenseError,l as showNotFoundLicenseError,f as useLicenseVerifier,_ as verifyLicense};

@@ -1,1 +0,1 @@

import*as e from"yargs";import{g as r}from"./generateLicense-4c697767.js";function o(){e.command({command:"$0",describe:"Generates Component.propTypes from TypeScript declarations",builder:e=>e.option("order",{default:"",describe:"Order number id.",type:"string"}).option("expiry",{default:"366",describe:"Number of days from now until expiry date.",type:"string"}),handler:e=>{if(!e.order)throw new Error("Material-UI: You forgot to pass an order number. $ > licensegen -o order_123.");const o={expiryDate:new Date((new Date).getTime()+864e5*parseInt(e.expiry,10)),orderNumber:e.order};console.log(`Generating new license number for order ${o.orderNumber} with expiry date ${o.expiryDate.toLocaleDateString()}`);const n=r(o);console.log(`New license: \n${n}`)}}).help().strict(!0).version(!1).parse()}export{o as licenseGenCli};
import*as e from"yargs";import{g as r}from"./generateLicense-4c697767.js";function o(){e.command({command:"$0",describe:"Generates Component.propTypes from TypeScript declarations",builder:e=>e.option("order",{default:"",describe:"Order number id.",type:"string"}).option("expiry",{default:"366",describe:"Number of days from now until expiry date.",type:"string"}),handler:e=>{if(!e.order)throw new Error("MUI: You forgot to pass an order number. $ > licensegen -o order_123.");const o={expiryDate:new Date((new Date).getTime()+864e5*parseInt(e.expiry,10)),orderNumber:e.order};console.log(`Generating new license number for order ${o.orderNumber} with expiry date ${o.expiryDate.toLocaleDateString()}`);const n=r(o);console.log(`New license: \n${n}`)}}).help().strict(!0).version(!1).parse()}export{o as licenseGenCli};

@@ -1,7 +0,7 @@

# [Material-UI X Pro](https://material-ui.com/pricing/)
# [MUI X Pro](https://mui.com/pricing/)
This is commercial software.
To use it, you need to agree to the [**End User License Agreement for Material-UI X Pro**](https://material-ui.com/x/license/).
To use it, you need to agree to the [**End User License Agreement for MUI X Pro**](https://mui.com/x/license/).
If you do not own a commercial license, this file shall be governed by the trial license terms.
All available Material-UI commercial licenses may be obtained at https://material-ui.com/store/items/material-ui-pro/.
All available MUI commercial licenses may be obtained at https://mui.com/store/items/material-ui-pro/.
{
"name": "@mui/x-license-pro",
"version": "5.0.0-beta.2",
"description": "Material-UI X License verification",
"version": "5.0.0-beta.3",
"description": "MUI X License verification",
"author": "MUI Team",

@@ -21,3 +21,3 @@ "main": "cjs/index.js",

},
"homepage": "https://material-ui.com/components/data-grid/",
"homepage": "https://mui.com/components/data-grid/",
"license": "See LICENSE file",

@@ -32,5 +32,5 @@ "sideEffects": false,

"dependencies": {
"@mui/utils": "^5.0.0",
"@mui/utils": "^5.0.1",
"esm": "^3.2.25",
"yargs": "^17.0.1"
"yargs": "^17.2.1"
},

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

@@ -1,3 +0,3 @@

# Material-ui-x/license
# @mui/x-license-pro
Package used by all Material-UI X to validate license.
Package used by all MUI X to validate license.

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