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

@dr.pogodin/babel-plugin-react-css-modules

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dr.pogodin/babel-plugin-react-css-modules - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

20

dist/index.js

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

var _ajvKeywords = _interopRequireDefault(require("ajv-keywords"));
var _ajv = _interopRequireDefault(require("ajv"));
var _optionsSchema = _interopRequireDefault(require("./schemas/optionsSchema.json"));
var _ajvKeywords = _interopRequireDefault(require("ajv-keywords"));
var _optionsDefaults = _interopRequireDefault(require("./schemas/optionsDefaults"));
var _attributeNameExists = _interopRequireDefault(require("./attributeNameExists"));
var _createObjectExpression = _interopRequireDefault(require("./createObjectExpression"));
var _requireCssModule = _interopRequireDefault(require("./requireCssModule"));
var _createSpreadMapper = _interopRequireDefault(require("./createSpreadMapper"));
var _resolveStringLiteral = _interopRequireDefault(require("./resolveStringLiteral"));
var _handleSpreadClassName = _interopRequireDefault(require("./handleSpreadClassName"));
var _replaceJsxExpressionContainer = _interopRequireDefault(require("./replaceJsxExpressionContainer"));
var _attributeNameExists = _interopRequireDefault(require("./attributeNameExists"));
var _requireCssModule = _interopRequireDefault(require("./requireCssModule"));
var _createSpreadMapper = _interopRequireDefault(require("./createSpreadMapper"));
var _resolveStringLiteral = _interopRequireDefault(require("./resolveStringLiteral"));
var _handleSpreadClassName = _interopRequireDefault(require("./handleSpreadClassName"));
var _optionsDefaults = _interopRequireDefault(require("./schemas/optionsDefaults"));
var _optionsSchema = _interopRequireDefault(require("./schemas/optionsSchema.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -89,3 +89,3 @@

filenameMap[filename].styleModuleImportMapIdentifier = programPath.scope.generateUidIdentifier('styleModuleImportMap');
programPath.unshiftContainer('body', types.importDeclaration([types.importDefaultSpecifier(filenameMap[filename].importedHelperIndentifier)], types.stringLiteral('babel-plugin-react-css-modules/dist/browser/getClassName')));
programPath.unshiftContainer('body', types.importDeclaration([types.importDefaultSpecifier(filenameMap[filename].importedHelperIndentifier)], types.stringLiteral('@dr.pogodin/babel-plugin-react-css-modules/dist/browser/getClassName')));
const firstNonImportDeclarationNode = programPath.get('body').find(node => {

@@ -92,0 +92,0 @@ return !types.isImportDeclaration(node);

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

var _fs = require("fs");
var _path = require("path");
var _fs = require("fs");
var _utils = require("css-loader/dist/utils");

@@ -14,0 +14,0 @@

@@ -25,9 +25,9 @@ {

"@babel/register": "^7.0.0",
"babel-jest": "^26.2.2",
"babel-jest": "^26.3.0",
"babel-plugin-module-resolver": "^4.0.0",
"babel-plugin-tester": "^9.2.0",
"eslint": "^7.6.0",
"eslint-config-canonical": "^22.0.0",
"eslint-config-canonical": "^23.0.0",
"flow-bin": "^0.131.0",
"jest": "^26.2.2",
"jest": "^26.3.0",
"postcss-less": "^3.1.4",

@@ -65,3 +65,3 @@ "postcss-nested": "^4.2.3",

},
"version": "6.0.1"
"version": "6.0.2"
}

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

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