@stylexswc/jest 0.13.1 → 0.14.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const rs_compiler_1 = require("@stylexswc/rs-compiler");
|
|
4
|
-
const
|
|
4
|
+
const node_crypto_1 = require("node:crypto");
|
|
5
5
|
const process = function process(sourceText, sourcePath, options) {
|
|
6
6
|
const rsOptions = options.transformerConfig.rsOptions ?? {};
|
|
7
7
|
// Check if file should be transformed based on include/exclude patterns
|
|
@@ -20,7 +20,7 @@ const processAsync = async function processAsync(sourceText, sourcePath, options
|
|
|
20
20
|
return process(sourceText, sourcePath, options);
|
|
21
21
|
};
|
|
22
22
|
const getCacheKey = function getCacheKey(sourceText, sourcePath, options) {
|
|
23
|
-
return (0,
|
|
23
|
+
return (0, node_crypto_1.createHash)('sha256')
|
|
24
24
|
.update(sourceText)
|
|
25
25
|
.update(sourcePath)
|
|
26
26
|
.update(JSON.stringify(options.transformerConfig))
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/jest",
|
|
3
3
|
"description": "Jest transformer for Stylex SWC",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0-rc.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -18,14 +18,15 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@stylexswc/rs-compiler": "0.
|
|
21
|
+
"@stylexswc/rs-compiler": "0.14.0-rc.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@babel/types": "^7.28.5",
|
|
25
25
|
"@jest/transform": "^30.0.5",
|
|
26
|
-
"@jest/types": "^
|
|
27
|
-
"@stylexswc/eslint-config": "0.
|
|
28
|
-
"@stylexswc/typescript-config": "0.
|
|
26
|
+
"@jest/types": "^30.2.0",
|
|
27
|
+
"@stylexswc/eslint-config": "0.14.0-rc.1",
|
|
28
|
+
"@stylexswc/typescript-config": "0.14.0-rc.1",
|
|
29
|
+
"@types/node": "^24.10.1"
|
|
29
30
|
},
|
|
30
31
|
"keywords": [
|
|
31
32
|
"jest",
|