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

react-cosmos-core

Package Overview
Dependencies
Maintainers
0
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos-core - npm Package Compare versions

Comparing version 6.1.2-canary.5da46eb.0 to 6.1.2-canary.71267f3.0

8

dist/userModules/isMultiFixture.js

@@ -5,3 +5,9 @@ import { isElement } from 'react-is';

typeof fixtureExport === 'object' &&
!isElement(fixtureExport));
!isElement(fixtureExport) &&
// With React Server Components, fixture exports of Client fixtures are
// wrapped in a Promise. The React ComponentType union does include
// PromiseLikeOfReactNode but for some reason it's impossible do type
// narrowing or use a type predicate function.
// @ts-ignore Sadly, we resort to the "cause I said so" type assertion
typeof fixtureExport.then !== 'function');
}

4

dist/userModules/userModuleTypes.d.ts

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

import { ComponentType, FunctionComponent, ReactNode } from 'react';
import { ComponentType, ReactNode } from 'react';
type FixtureMap<FixtureType> = {

@@ -15,3 +15,3 @@ [fixtureName: string]: FixtureType;

};
export type ReactFixture = ReactNode | FunctionComponent;
export type ReactFixture = ReactNode | ComponentType;
export type ReactFixtureMap = FixtureMap<ReactFixture>;

@@ -18,0 +18,0 @@ export type ReactFixtureExport = FixtureExport<ReactFixture>;

{
"name": "react-cosmos-core",
"version": "6.1.2-canary.5da46eb.0+5da46eb",
"version": "6.1.2-canary.71267f3.0+71267f3",
"description": "React Cosmos Core",

@@ -15,3 +15,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-core",

},
"gitHead": "5da46eb86dab5ebfb0d2b6a8273ca10a32deda2d"
"gitHead": "71267f34230c703f89e58b12a87a25572c9cd5d8"
}
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