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

react-cosmos

Package Overview
Dependencies
Maintainers
1
Versions
509
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos - npm Package Compare versions

Comparing version 6.1.1 to 6.1.2-canary.4cc91ba.0

dist/corePlugins/fixturesJsonPlugin.d.ts

2

dist/corePlugins/index.js
import { fixtureWatcherPlugin } from './fixtureWatcherPlugin.js';
import { fixturesJsonPlugin } from './fixturesJsonPlugin.js';
import { httpProxyPlugin } from './httpProxyPlugin.js';

@@ -8,2 +9,3 @@ import { openFilePlugin } from './openFilePlugin.js';

portRetryPlugin,
fixturesJsonPlugin,
httpProxyPlugin,

@@ -10,0 +12,0 @@ openFilePlugin,

6

dist/cosmosConfig/types.d.ts

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

import { CosmosRendererUrl } from 'react-cosmos-core';
interface HttpsOptions {

@@ -26,6 +27,3 @@ keyPath: string;

publicUrl: string;
rendererUrl: null | string | {
dev: string;
export: string;
};
rendererUrl: CosmosRendererUrl;
rootDir: string;

@@ -32,0 +30,0 @@ staticPath: null | string;

@@ -1,4 +0,3 @@

import path from 'path';
import { findUserModulePaths } from '../userModules/findUserModulePaths.js';
import { slash } from '../utils/slash.js';
import { importKeyPath } from '../userModules/shared.js';
export function importUserModules({ rootDir, fixturesDir, fixtureFileSuffix, ignore, }) {

@@ -18,6 +17,3 @@ const { fixturePaths, decoratorPaths } = findUserModulePaths({

const modules = paths.map(p => {
// Converting to forward slashes on Windows is important because the
// slashes are used for generating a sorted list of fixtures and
// decorators.
const relPath = slash(path.relative(rootDir, p));
const relPath = importKeyPath(p, rootDir);
return { relPath, module: require(p) };

@@ -24,0 +20,0 @@ });

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

export { CosmosFixtureJson, CosmosFixturesJson, } from './corePlugins/fixturesJsonPlugin.js';
export * from './cosmosConfig/createCosmosConfig.js';

@@ -2,0 +3,0 @@ export * from './cosmosConfig/detectCosmosConfig.js';

@@ -26,2 +26,5 @@ import path from 'path';

export function importKeyPath(filePath, rootDir) {
// Converting to forward slashes on Windows is important because the
// slashes are used for generating a sorted list of fixtures and
// decorators.
return slash(path.relative(rootDir, filePath));

@@ -28,0 +31,0 @@ }

{
"name": "react-cosmos",
"version": "6.1.1",
"version": "6.1.2-canary.4cc91ba.0+4cc91ba",
"description": "Sandbox for developing and testing UI components in isolation",

@@ -19,5 +19,5 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos",

"pem": "1.14.8",
"react-cosmos-core": "^6.1.1",
"react-cosmos-renderer": "^6.1.1",
"react-cosmos-ui": "^6.1.1",
"react-cosmos-core": "6.1.2-canary.4cc91ba.0+4cc91ba",
"react-cosmos-renderer": "6.1.2-canary.4cc91ba.0+4cc91ba",
"react-cosmos-ui": "6.1.2-canary.4cc91ba.0+4cc91ba",
"ws": "8.16.0",

@@ -31,3 +31,3 @@ "yargs": "17.7.2"

},
"gitHead": "f83799a26584a3f34914ce4ebf5c427df1df3c25"
"gitHead": "4cc91ba199e81a366a8bf8100c26a60d630f2a4e"
}
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