@dr.pogodin/babel-plugin-react-css-modules
Advanced tools
Comparing version 6.13.1 to 6.13.2
@@ -9,3 +9,3 @@ "use strict"; | ||
var _optionsDefaults = _interopRequireDefault(require("./schemas/optionsDefaults")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const attributeNameExists = (programPath, stats) => { | ||
@@ -12,0 +12,0 @@ let exists = false; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _optionsDefaults = _interopRequireDefault(require("./schemas/optionsDefaults")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } | ||
var isNamespacedStyleName = function isNamespacedStyleName(styleName) { | ||
@@ -11,0 +11,0 @@ return styleName.includes('.'); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _optionsDefaults = _interopRequireDefault(require("./schemas/optionsDefaults")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const createSpreadMapper = (path, stats) => { | ||
@@ -13,0 +13,0 @@ const result = {}; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _optionsDefaults = _interopRequireDefault(require("./schemas/optionsDefaults")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const isNamespacedStyleName = styleName => styleName.includes('.'); | ||
@@ -11,0 +11,0 @@ const handleError = (message, handleMissingStyleName) => { |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _createHash = _interopRequireDefault(require("webpack/lib/util/createHash")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
/** | ||
@@ -14,0 +14,0 @@ * getLocalIdent() function taken from css-loader@5.2.4 |
@@ -22,3 +22,3 @@ "use strict"; | ||
var _optionsSchema = _interopRequireDefault(require("./schemas/optionsSchema.json")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const ajv = new _ajv.default({ | ||
@@ -61,3 +61,3 @@ $data: true | ||
styleMapsForFileByName[filename].styleModuleImportMapIdentifier = programPath.scope.generateUidIdentifier('styleModuleImportMap'); | ||
programPath.unshiftContainer('body', types.importDeclaration([types.importDefaultSpecifier(styleMapsForFileByName[filename].importedHelperIndentifier)], types.stringLiteral('@dr.pogodin/babel-plugin-react-css-modules/dist/browser/getClassName'))); | ||
programPath.unshiftContainer('body', types.importDeclaration([types.importDefaultSpecifier(styleMapsForFileByName[filename].importedHelperIndentifier)], types.stringLiteral('@dr.pogodin/babel-plugin-react-css-modules/dist/browser/getClassName.js'))); | ||
const firstNonImportDeclarationNode = programPath.get('body').find(node => !types.isImportDeclaration(node)); | ||
@@ -64,0 +64,0 @@ firstNonImportDeclarationNode.insertBefore(types.variableDeclaration('const', [types.variableDeclarator(types.cloneNode(styleMapsForFileByName[filename].styleModuleImportMapIdentifier), (0, _createObjectExpression.default)(types, styleMapsForFileByName[filename].styleModuleImportMap))])); |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _optionsDefaults = _interopRequireDefault(require("./schemas/optionsDefaults")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
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); } | ||
@@ -14,0 +14,0 @@ 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 && {}.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; } |
@@ -19,3 +19,3 @@ "use strict"; | ||
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 && {}.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; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
/* eslint-enable flowtype/no-mixed */ | ||
@@ -22,0 +22,0 @@ /* eslint-disable flowtype/no-weak-types */ |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _getClassName = _interopRequireDefault(require("./getClassName")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
/** | ||
@@ -14,0 +14,0 @@ * Updates the className value of a JSX element using a provided |
@@ -11,3 +11,3 @@ "use strict"; | ||
var _loaderUtils = require("loader-utils"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
// This module provides a stable implementation of getLocalIdent(), | ||
@@ -14,0 +14,0 @@ // and generateScopedName() functions, which may be used to override |
# BSD-3-Clause | ||
_Copyright © 2020–2023, Dr. Sergey Pogodin <doc@pogodin.studio> (https://dr.pogodin.studio)_ \ | ||
_Copyright © 2016, Gajus Kuizinas (http://gajus.com/)_ | ||
_Copyright © 2020–2024, Dr. Sergey Pogodin <doc@pogodin.studio> (https://dr.pogodin.studio)_ \ | ||
_Copyright © 2016, Gajus Kuizinas (http://gajus.com)_ | ||
@@ -15,3 +15,3 @@ All rights reserved. | ||
documentation and/or other materials provided with the distribution. | ||
* Neither the name of the Gajus Kuizinas (http://gajus.com/) nor the | ||
* Neither the name of the Gajus Kuizinas (http://gajus.com) nor the | ||
names of its contributors may be used to endorse or promote products | ||
@@ -18,0 +18,0 @@ derived from this software without specific prior written permission. |
{ | ||
"version": "6.13.1", | ||
"version": "6.13.2", | ||
"dependencies": { | ||
"@babel/core": "^7.24.4", | ||
"@babel/plugin-syntax-jsx": "^7.24.1", | ||
"@babel/types": "^7.24.0", | ||
"@babel/core": "^7.24.6", | ||
"@babel/plugin-syntax-jsx": "^7.24.6", | ||
"@babel/types": "^7.24.6", | ||
"@dr.pogodin/postcss-modules-parser": "^1.2.9", | ||
"ajv": "^8.12.0", | ||
"ajv": "^8.16.0", | ||
"ajv-keywords": "^5.0.0", | ||
"cssesc": "^3.0.0", | ||
"loader-utils": "^3.2.1", | ||
"loader-utils": "^3.3.0", | ||
"postcss-modules-extract-imports": "^3.1.0", | ||
@@ -19,14 +19,14 @@ "postcss-modules-local-by-default": "^4.0.5", | ||
"devDependencies": { | ||
"@babel/cli": "^7.24.1", | ||
"@babel/eslint-parser": "^7.24.1", | ||
"@babel/eslint-plugin": "^7.23.5", | ||
"@babel/helper-plugin-test-runner": "^7.24.1", | ||
"@babel/plugin-transform-flow-strip-types": "^7.24.1", | ||
"@babel/plugin-transform-react-jsx": "^7.23.4", | ||
"@babel/preset-env": "^7.24.4", | ||
"@babel/register": "^7.23.7", | ||
"@babel/cli": "^7.24.6", | ||
"@babel/eslint-parser": "^7.24.6", | ||
"@babel/eslint-plugin": "^7.24.6", | ||
"@babel/helper-plugin-test-runner": "^7.24.6", | ||
"@babel/plugin-transform-flow-strip-types": "^7.24.6", | ||
"@babel/plugin-transform-react-jsx": "^7.24.6", | ||
"@babel/preset-env": "^7.24.6", | ||
"@babel/register": "^7.24.6", | ||
"babel-jest": "^29.7.0", | ||
"babel-plugin-module-resolver": "^5.0.0", | ||
"babel-plugin-module-resolver": "^5.0.2", | ||
"babel-plugin-tester": "^11.0.4", | ||
"css-loader": "^7.0.0", | ||
"css-loader": "^7.1.2", | ||
"eslint": "^8.57.0", | ||
@@ -36,5 +36,5 @@ "eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"flow-bin": "^0.233.0", | ||
"flow-bin": "^0.237.2", | ||
"jest": "^29.7.0", | ||
"mini-css-extract-plugin": "^2.8.1", | ||
"mini-css-extract-plugin": "^2.9.0", | ||
"postcss": "^8.4.38", | ||
@@ -41,0 +41,0 @@ "postcss-less": "^6.0.0", |
@@ -15,3 +15,3 @@ # Babel Plugin: React CSS Modules | ||
in React. | ||
- For server-side rendering (SSR) scenarious it can replace named stylesheet | ||
- For server-side rendering (SSR) scenarios it can replace named stylesheet | ||
imports by classname mapping objects, and remove anonymous stylesheet imports. | ||
@@ -549,3 +549,3 @@ | ||
| ------------------------- | ------------------------- | | ||
| `7.0.0` (latest) | `6.13.0` – `6.13.1` (latest) | | ||
| `7.0.0` – `7.1.2` (latest) | `6.13.0` – `6.13.2` (latest) | | ||
| `6.7.1` – `6.11.0` | `6.7.0` – `6.12.0` | | ||
@@ -552,0 +552,0 @@ | `6.5.0` – `6.7.0` | `6.5.1` – `6.6.1` | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
188022
Updated@babel/core@^7.24.6
Updated@babel/types@^7.24.6
Updatedajv@^8.16.0
Updatedloader-utils@^3.3.0