counterfact 0.40.1 → 0.40.2
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.
|
@@ -22,16 +22,14 @@ export class Script {
|
|
|
22
22
|
}
|
|
23
23
|
firstUniqueName(coder) {
|
|
24
24
|
for (const name of coder.names()) {
|
|
25
|
-
if (!this.imports.has(name)
|
|
25
|
+
if (!this.imports.has(name)) {
|
|
26
26
|
return name;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
throw new Error(`could not find a unique name for ${coder.id}`);
|
|
30
30
|
}
|
|
31
31
|
export(coder, isType = false, isDefault = false) {
|
|
32
|
-
const cacheKey = isDefault
|
|
33
|
-
? "default"
|
|
34
|
-
: `${coder.id}@${nodePath}:${isType}`;
|
|
32
|
+
const cacheKey = isDefault ? "default" : `${coder.id}:${isType}`;
|
|
35
33
|
if (this.cache.has(cacheKey)) {
|
|
36
34
|
return this.cache.get(cacheKey);
|
|
37
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "counterfact",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.2",
|
|
4
4
|
"description": "a library for building a fake REST API for testing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/server/counterfact.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@stryker-mutator/typescript-checker": "8.2.6",
|
|
51
51
|
"@swc/core": "1.5.0",
|
|
52
52
|
"@swc/jest": "0.2.36",
|
|
53
|
-
"@testing-library/dom": "10.
|
|
53
|
+
"@testing-library/dom": "10.1.0",
|
|
54
54
|
"@types/jest": "29.5.12",
|
|
55
55
|
"@types/js-yaml": "4.0.9",
|
|
56
56
|
"@types/koa": "2.15.0",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"eslint-plugin-etc": "2.0.3",
|
|
66
66
|
"eslint-plugin-file-progress": "1.3.0",
|
|
67
67
|
"eslint-plugin-import": "2.29.1",
|
|
68
|
-
"eslint-plugin-jest": "28.
|
|
68
|
+
"eslint-plugin-jest": "28.4.0",
|
|
69
69
|
"eslint-plugin-jest-dom": "5.4.0",
|
|
70
70
|
"eslint-plugin-no-explicit-type-exports": "0.12.1",
|
|
71
|
-
"eslint-plugin-unused-imports": "3.
|
|
71
|
+
"eslint-plugin-unused-imports": "3.2.0",
|
|
72
72
|
"husky": "9.0.11",
|
|
73
73
|
"jest": "29.7.0",
|
|
74
74
|
"node-mocks-http": "1.14.1",
|