@stylable/jest
Advanced tools
Comparing version 5.16.1 to 6.0.0-rc.1
@@ -6,3 +6,3 @@ import type { StylableConfig } from '@stylable/core'; | ||
export interface StylableJestConfig { | ||
stylable?: Partial<StylableConfig>; | ||
stylable?: Partial<Omit<StylableConfig, 'fileSystem'>>; | ||
configPath?: string; | ||
@@ -9,0 +9,0 @@ } |
@@ -7,6 +7,6 @@ "use strict"; | ||
exports.createTransformer = void 0; | ||
const fs_1 = __importDefault(require("fs")); | ||
const node_1 = __importDefault(require("@file-services/node")); | ||
const index_internal_1 = require("@stylable/core/dist/index-internal"); | ||
const module_utils_1 = require("@stylable/module-utils"); | ||
const node_1 = require("@stylable/node"); | ||
const node_2 = require("@stylable/node"); | ||
const stylableRuntimePath = require.resolve('@stylable/runtime'); | ||
@@ -33,3 +33,3 @@ const stylableCorePath = require.resolve('@stylable/core'); | ||
const { defaultConfig } = require(options.configPath); | ||
const defaultConfigObj = defaultConfig(fs_1.default); | ||
const defaultConfigObj = defaultConfig(node_1.default); | ||
(0, index_internal_1.validateDefaultConfig)(defaultConfigObj); | ||
@@ -43,6 +43,6 @@ config = { ...defaultConfigObj, ...options.stylable }; | ||
const moduleFactory = (0, module_utils_1.stylableModuleFactory)({ | ||
fileSystem: fs_1.default, | ||
fileSystem: node_1.default, | ||
requireModule: require, | ||
projectRoot: '', | ||
resolveNamespace: node_1.resolveNamespace, | ||
resolveNamespace: node_2.resolveNamespace, | ||
...config, | ||
@@ -49,0 +49,0 @@ }, |
{ | ||
"name": "@stylable/jest", | ||
"version": "5.16.1", | ||
"version": "6.0.0-rc.1", | ||
"description": "Test your Stylable React components using Jest", | ||
@@ -10,6 +10,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^5.16.1", | ||
"@stylable/module-utils": "^5.16.1", | ||
"@stylable/node": "^5.16.1", | ||
"@stylable/runtime": "^5.16.1" | ||
"@file-services/node": "^8.3.2", | ||
"@stylable/core": "^5.16.0", | ||
"@stylable/module-utils": "^5.16.0", | ||
"@stylable/node": "^5.16.0", | ||
"@stylable/runtime": "^5.16.0" | ||
}, | ||
@@ -23,3 +24,3 @@ "files": [ | ||
"engines": { | ||
"node": ">=14.14.0" | ||
"node": ">=18.12.0" | ||
}, | ||
@@ -26,0 +27,0 @@ "publishConfig": { |
@@ -1,2 +0,2 @@ | ||
import fs from 'fs'; | ||
import fs from '@file-services/node'; | ||
import type { StylableConfig } from '@stylable/core'; | ||
@@ -33,3 +33,3 @@ import { validateDefaultConfig } from '@stylable/core/dist/index-internal'; | ||
export interface StylableJestConfig { | ||
stylable?: Partial<StylableConfig>; | ||
stylable?: Partial<Omit<StylableConfig, 'fileSystem'>>; | ||
configPath?: string; | ||
@@ -39,3 +39,3 @@ } | ||
export const createTransformer = (options?: StylableJestConfig) => { | ||
let config: Partial<StylableConfig> = { | ||
let config = { | ||
...options?.stylable, | ||
@@ -42,0 +42,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
12336
3
5
2
1
+ Added@file-services/node@^8.3.2
+ Added@file-services/node@8.3.3(transitive)
+ Added@file-services/types@8.3.3(transitive)
+ Added@file-services/utils@8.3.3(transitive)
Updated@stylable/core@^5.16.0
Updated@stylable/node@^5.16.0
Updated@stylable/runtime@^5.16.0