@mui/x-license
Advanced tools
Comparing version 7.0.0-beta.2 to 7.0.0-beta.6
/** | ||
* @mui/x-license v7.0.0-beta.2 | ||
* @mui/x-license v7.0.0-beta.6 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MUI X Commercial |
/** | ||
* @mui/x-license v7.0.0-beta.2 | ||
* @mui/x-license v7.0.0-beta.6 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MUI X Commercial |
import * as React from 'react'; | ||
import LicenseInfoContext from './LicenseInfoContext'; | ||
import MuiLicenseInfoContext from './MuiLicenseInfoContext'; | ||
@@ -15,3 +15,3 @@ /** | ||
}) { | ||
return /*#__PURE__*/_jsx(LicenseInfoContext.Provider, { | ||
return /*#__PURE__*/_jsx(MuiLicenseInfoContext.Provider, { | ||
value: info, | ||
@@ -18,0 +18,0 @@ children: children |
@@ -7,3 +7,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import { LICENSE_STATUS } from '../utils/licenseStatus'; | ||
import LicenseInfoContext from '../Unstable_LicenseInfoProvider/LicenseInfoContext'; | ||
import MuiLicenseInfoContext from '../Unstable_LicenseInfoProvider/MuiLicenseInfoContext'; | ||
export const sharedLicenseStatuses = {}; | ||
@@ -13,3 +13,3 @@ export function useLicenseVerifier(packageName, releaseInfo) { | ||
key: contextKey | ||
} = React.useContext(LicenseInfoContext); | ||
} = React.useContext(MuiLicenseInfoContext); | ||
return React.useMemo(() => { | ||
@@ -16,0 +16,0 @@ const licenseKey = contextKey ?? LicenseInfo.getLicenseKey(); |
/** | ||
* @mui/x-license v7.0.0-beta.2 | ||
* @mui/x-license v7.0.0-beta.6 | ||
* | ||
@@ -4,0 +4,0 @@ * @license MUI X Commercial |
@@ -9,3 +9,3 @@ "use strict"; | ||
var React = _interopRequireWildcard(require("react")); | ||
var _LicenseInfoContext = _interopRequireDefault(require("./LicenseInfoContext")); | ||
var _MuiLicenseInfoContext = _interopRequireDefault(require("./MuiLicenseInfoContext")); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
@@ -25,3 +25,3 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
}) { | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LicenseInfoContext.default.Provider, { | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MuiLicenseInfoContext.default.Provider, { | ||
value: info, | ||
@@ -28,0 +28,0 @@ children: children |
@@ -15,3 +15,3 @@ "use strict"; | ||
var _licenseStatus = require("../utils/licenseStatus"); | ||
var _LicenseInfoContext = _interopRequireDefault(require("../Unstable_LicenseInfoProvider/LicenseInfoContext")); | ||
var _MuiLicenseInfoContext = _interopRequireDefault(require("../Unstable_LicenseInfoProvider/MuiLicenseInfoContext")); | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
@@ -23,3 +23,3 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
key: contextKey | ||
} = React.useContext(_LicenseInfoContext.default); | ||
} = React.useContext(_MuiLicenseInfoContext.default); | ||
return React.useMemo(() => { | ||
@@ -26,0 +26,0 @@ const licenseKey = contextKey ?? _licenseInfo.LicenseInfo.getLicenseKey(); |
{ | ||
"name": "@mui/x-license", | ||
"version": "7.0.0-beta.2", | ||
"version": "7.0.0-beta.6", | ||
"description": "MUI X License verification", | ||
@@ -14,3 +14,2 @@ "author": "MUI Team", | ||
"./utils/licenseInfo.js", | ||
"./legacy/utils/licenseInfo.js", | ||
"./modern/utils/licenseInfo.js", | ||
@@ -28,4 +27,4 @@ "./node/utils/licenseInfo.js" | ||
"dependencies": { | ||
"@babel/runtime": "^7.23.9", | ||
"@mui/utils": "^5.15.7" | ||
"@babel/runtime": "^7.24.0", | ||
"@mui/utils": "^5.15.9" | ||
}, | ||
@@ -32,0 +31,0 @@ "peerDependencies": { |
import * as React from 'react'; | ||
import LicenseInfoContext from './LicenseInfoContext'; | ||
import MuiLicenseInfoContext from './MuiLicenseInfoContext'; | ||
@@ -15,3 +15,3 @@ /** | ||
}) { | ||
return /*#__PURE__*/_jsx(LicenseInfoContext.Provider, { | ||
return /*#__PURE__*/_jsx(MuiLicenseInfoContext.Provider, { | ||
value: info, | ||
@@ -18,0 +18,0 @@ children: children |
@@ -7,3 +7,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import { LICENSE_STATUS } from '../utils/licenseStatus'; | ||
import LicenseInfoContext from '../Unstable_LicenseInfoProvider/LicenseInfoContext'; | ||
import MuiLicenseInfoContext from '../Unstable_LicenseInfoProvider/MuiLicenseInfoContext'; | ||
export const sharedLicenseStatuses = {}; | ||
@@ -13,3 +13,3 @@ export function useLicenseVerifier(packageName, releaseInfo) { | ||
key: contextKey | ||
} = React.useContext(LicenseInfoContext); | ||
} = React.useContext(MuiLicenseInfoContext); | ||
return React.useMemo(() => { | ||
@@ -16,0 +16,0 @@ const licenseKey = contextKey != null ? contextKey : LicenseInfo.getLicenseKey(); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
401927
90
1865
1
Updated@babel/runtime@^7.24.0
Updated@mui/utils@^5.15.9