react-cosmos
Advanced tools
Comparing version 6.1.1 to 6.1.2-canary.4cc91ba.0
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, |
@@ -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" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
107218
137
2128
2
5
- Removedjs-base64@3.7.7(transitive)
- Removedreact-cosmos-core@6.2.0(transitive)
- Removedreact-cosmos-renderer@6.2.0(transitive)
- Removedreact-cosmos-ui@6.2.0(transitive)
- Removedreact-is@18.3.1(transitive)