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

@compiled/react

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compiled/react - npm Package Compare versions

Comparing version 0.6.4-e740add2625d2bf5577c20e4849a9a1c23f58002.0 to 0.6.6

4

dist/browser/codemods/codemods-helpers.js

@@ -146,3 +146,5 @@ import { COMPILED_IMPORT_PATH, REACT_IMPORT_PATH, REACT_IMPORT_NAME } from './constants';

var hasNoNamespaceReactImportDeclaration = importNamespaceSpecifierCollection.length === 0;
if (hasNoDefaultReactImportDeclaration && hasNoNamespaceReactImportDeclaration) {
if (hasNoDefaultReactImportDeclaration &&
hasNoNamespaceReactImportDeclaration &&
importDeclarationPath.node.specifiers) {
importDeclarationPath.node.specifiers.unshift(j.importDefaultSpecifier(j.identifier(REACT_IMPORT_NAME)));

@@ -149,0 +151,0 @@ }

@@ -159,3 +159,5 @@ "use strict";

var hasNoNamespaceReactImportDeclaration = importNamespaceSpecifierCollection.length === 0;
if (hasNoDefaultReactImportDeclaration && hasNoNamespaceReactImportDeclaration) {
if (hasNoDefaultReactImportDeclaration &&
hasNoNamespaceReactImportDeclaration &&
importDeclarationPath.node.specifiers) {
importDeclarationPath.node.specifiers.unshift(j.importDefaultSpecifier(j.identifier(constants_1.REACT_IMPORT_NAME)));

@@ -162,0 +164,0 @@ }

@@ -146,3 +146,5 @@ import { COMPILED_IMPORT_PATH, REACT_IMPORT_PATH, REACT_IMPORT_NAME } from './constants';

var hasNoNamespaceReactImportDeclaration = importNamespaceSpecifierCollection.length === 0;
if (hasNoDefaultReactImportDeclaration && hasNoNamespaceReactImportDeclaration) {
if (hasNoDefaultReactImportDeclaration &&
hasNoNamespaceReactImportDeclaration &&
importDeclarationPath.node.specifiers) {
importDeclarationPath.node.specifiers.unshift(j.importDefaultSpecifier(j.identifier(REACT_IMPORT_NAME)));

@@ -149,0 +151,0 @@ }

{
"name": "@compiled/react",
"version": "0.6.4-e740add2625d2bf5577c20e4849a9a1c23f58002.0",
"version": "0.6.6",
"description": "Build time atomic CSS-in-JS. Baked and ready to serve.",

@@ -55,3 +55,3 @@ "author": "Michael Dougall",

"@testing-library/react": "^11.2.5",
"@types/jscodeshift": "^0.7.2",
"@types/jscodeshift": "^0.11.0",
"jscodeshift": "^0.11.0",

@@ -58,0 +58,0 @@ "react": "^17.0.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

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