@websolutespa/test 1.10.0-next.0 → 2.0.1-next.0
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/CHANGELOG.md +74 -62
- package/dist/{index.mjs → index.cjs} +43 -11
- package/dist/index.js +11 -43
- package/package.json +67 -27
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,62 +1,74 @@
|
|
|
1
|
-
# @websolutespa/test
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## 1.
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- Updating:
|
|
14
|
-
|
|
15
|
-
## 1.
|
|
16
|
-
|
|
17
|
-
###
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
## 1.7.
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- Updating: dependencies
|
|
26
|
-
|
|
27
|
-
## 1.7.
|
|
28
|
-
|
|
29
|
-
###
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
##
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
## 0.0
|
|
53
|
-
|
|
54
|
-
###
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
## 0.0.
|
|
59
|
-
|
|
60
|
-
### Patch Changes
|
|
61
|
-
|
|
62
|
-
- Added:
|
|
1
|
+
# @websolutespa/test
|
|
2
|
+
|
|
3
|
+
## 2.0.1-next.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- e74b305: Release: Payload 3.7.0
|
|
8
|
+
|
|
9
|
+
## 1.10.0-next.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 64289c4: Updating: React 19.x, Payload 3.x
|
|
14
|
+
|
|
15
|
+
## 1.10.0-next.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- Updating: React 19.x, Payload 3.x
|
|
20
|
+
|
|
21
|
+
## 1.7.3
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updating: jest dependencies
|
|
26
|
+
|
|
27
|
+
## 1.7.2
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Fixing: downgrading eslint to v8.56.0
|
|
32
|
+
|
|
33
|
+
## 1.7.1
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updating: dependencies
|
|
38
|
+
|
|
39
|
+
## 1.7.0
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- 28e86bd: Updating: dependencies
|
|
44
|
+
|
|
45
|
+
## 0.1.1
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 11b63e3b: Fixed test config
|
|
50
|
+
- c7a99a2b: Updated test config
|
|
51
|
+
|
|
52
|
+
## 0.1.0
|
|
53
|
+
|
|
54
|
+
### Minor Changes
|
|
55
|
+
|
|
56
|
+
- Updating: next 13.
|
|
57
|
+
|
|
58
|
+
## 0.0.4
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- Added: js, jsx support.
|
|
63
|
+
|
|
64
|
+
## 0.0.3
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- Fixing: package.json.
|
|
69
|
+
|
|
70
|
+
## 0.0.2
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- Added: first release.
|
|
@@ -1,13 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
7
29
|
|
|
8
30
|
// index.ts
|
|
9
|
-
|
|
10
|
-
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
baseConfig: () => baseConfig,
|
|
34
|
+
getAppConfig: () => getAppConfig,
|
|
35
|
+
getPackageConfig: () => getPackageConfig,
|
|
36
|
+
getPayloadConfig: () => getPayloadConfig,
|
|
37
|
+
getProjectConfig: () => getProjectConfig
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(index_exports);
|
|
40
|
+
var import_jest = __toESM(require("next/jest"), 1);
|
|
41
|
+
var createJestConfig = (0, import_jest.default)({
|
|
11
42
|
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
|
|
12
43
|
dir: "./"
|
|
13
44
|
});
|
|
@@ -198,17 +229,18 @@ function getPayloadConfig() {
|
|
|
198
229
|
transformIgnorePatterns: ["node_modules/(?!swiper)/"],
|
|
199
230
|
moduleNameMapper: {
|
|
200
231
|
// Force module uuid to resolve with the CJS entry point, because Jest does not support package.json.exports. See https://github.com/uuidjs/uuid/issues/451
|
|
201
|
-
"uuid":
|
|
232
|
+
"uuid": require.resolve("uuid"),
|
|
202
233
|
"\\.(css|scss)$": "identity-obj-proxy",
|
|
203
234
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/jest.mock.file.js"
|
|
204
235
|
}
|
|
205
236
|
};
|
|
206
237
|
return config;
|
|
207
238
|
}
|
|
208
|
-
export
|
|
239
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
240
|
+
0 && (module.exports = {
|
|
209
241
|
baseConfig,
|
|
210
242
|
getAppConfig,
|
|
211
243
|
getPackageConfig,
|
|
212
244
|
getPayloadConfig,
|
|
213
245
|
getProjectConfig
|
|
214
|
-
};
|
|
246
|
+
});
|
package/dist/index.js
CHANGED
|
@@ -1,44 +1,13 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
+
});
|
|
29
7
|
|
|
30
8
|
// index.ts
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
baseConfig: () => baseConfig,
|
|
34
|
-
getAppConfig: () => getAppConfig,
|
|
35
|
-
getPackageConfig: () => getPackageConfig,
|
|
36
|
-
getPayloadConfig: () => getPayloadConfig,
|
|
37
|
-
getProjectConfig: () => getProjectConfig
|
|
38
|
-
});
|
|
39
|
-
module.exports = __toCommonJS(index_exports);
|
|
40
|
-
var import_jest = __toESM(require("next/jest"));
|
|
41
|
-
var createJestConfig = (0, import_jest.default)({
|
|
9
|
+
import nextJest from "next/jest";
|
|
10
|
+
var createJestConfig = nextJest({
|
|
42
11
|
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
|
|
43
12
|
dir: "./"
|
|
44
13
|
});
|
|
@@ -229,18 +198,17 @@ function getPayloadConfig() {
|
|
|
229
198
|
transformIgnorePatterns: ["node_modules/(?!swiper)/"],
|
|
230
199
|
moduleNameMapper: {
|
|
231
200
|
// Force module uuid to resolve with the CJS entry point, because Jest does not support package.json.exports. See https://github.com/uuidjs/uuid/issues/451
|
|
232
|
-
"uuid":
|
|
201
|
+
"uuid": __require.resolve("uuid"),
|
|
233
202
|
"\\.(css|scss)$": "identity-obj-proxy",
|
|
234
203
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/jest.mock.file.js"
|
|
235
204
|
}
|
|
236
205
|
};
|
|
237
206
|
return config;
|
|
238
207
|
}
|
|
239
|
-
|
|
240
|
-
0 && (module.exports = {
|
|
208
|
+
export {
|
|
241
209
|
baseConfig,
|
|
242
210
|
getAppConfig,
|
|
243
211
|
getPackageConfig,
|
|
244
212
|
getPayloadConfig,
|
|
245
213
|
getProjectConfig
|
|
246
|
-
}
|
|
214
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websolutespa/test",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1-next.0",
|
|
4
4
|
"description": "Test shared config of the BOM Repository",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bom",
|
|
@@ -15,47 +15,87 @@
|
|
|
15
15
|
"lint": "eslint *.js*",
|
|
16
16
|
"compile": "tsup ./index.ts --format esm,cjs --dts",
|
|
17
17
|
"prepack": "bom prepack",
|
|
18
|
-
"postpack": "bom postpack"
|
|
19
|
-
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@playwright/test": "^1.29.1",
|
|
22
|
-
"@testing-library/dom": "^10.3.2",
|
|
23
|
-
"@testing-library/jest-dom": "^6.4.6",
|
|
24
|
-
"@testing-library/react": "^16.0.0",
|
|
25
|
-
"@testing-library/user-event": "^14.5.2",
|
|
26
|
-
"identity-obj-proxy": "^3.0.0",
|
|
27
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
28
|
-
"jest-fail-on-console": "^3.3.0",
|
|
29
|
-
"jest-matcher-utils": "^29.7.0",
|
|
30
|
-
"jest-styled-components": "^7.1.1",
|
|
31
|
-
"jest": "^29.7.0"
|
|
18
|
+
"postpack": "bom postpack",
|
|
19
|
+
"types": "tsc --noemit"
|
|
32
20
|
},
|
|
33
21
|
"peerDependencies": {
|
|
34
|
-
"next": "
|
|
35
|
-
"
|
|
22
|
+
"next": "15.4.10",
|
|
23
|
+
"payload": "3.70.0",
|
|
24
|
+
"uuid": "9.0.1"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@playwright/test": "1.50.0",
|
|
28
|
+
"@testing-library/dom": "10.4.0",
|
|
29
|
+
"@testing-library/jest-dom": "6.6.3",
|
|
30
|
+
"@testing-library/react": "16.3.0",
|
|
31
|
+
"@testing-library/user-event": "14.6.1",
|
|
32
|
+
"identity-obj-proxy": "3.0.0",
|
|
33
|
+
"jest-environment-jsdom": "30.0.4",
|
|
34
|
+
"jest-fail-on-console": "3.3.1",
|
|
35
|
+
"jest-matcher-utils": "30.0.4",
|
|
36
|
+
"jest-styled-components": "7.2.0",
|
|
37
|
+
"jest": "30.0.4",
|
|
38
|
+
"vitest": "3.2.3"
|
|
36
39
|
},
|
|
37
40
|
"devDependencies": {
|
|
38
41
|
"@types/jest": "^29.5.14",
|
|
39
42
|
"@types/uuid": "^9.0.2",
|
|
40
|
-
"@websolutespa/eslint-config": "
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"tsup": "
|
|
44
|
-
"typescript": "5.8.
|
|
45
|
-
"uuid": "
|
|
43
|
+
"@websolutespa/eslint-config": "2.0.1-next.0",
|
|
44
|
+
"next": "15.4.10",
|
|
45
|
+
"npm-run-all": "4.1.5",
|
|
46
|
+
"tsup": "8.5.0",
|
|
47
|
+
"typescript": "5.8.3",
|
|
48
|
+
"uuid": "9.0.1"
|
|
46
49
|
},
|
|
47
50
|
"publishConfig": {
|
|
48
51
|
"access": "public"
|
|
49
52
|
},
|
|
50
53
|
"sideEffects": false,
|
|
54
|
+
"type": "module",
|
|
51
55
|
"prepack": {
|
|
56
|
+
"main": "./dist/index.js",
|
|
52
57
|
"types": "./dist/index.d.ts",
|
|
53
|
-
"
|
|
58
|
+
"exports": {
|
|
59
|
+
".": {
|
|
60
|
+
"import": "./dist/index.js",
|
|
61
|
+
"types": "./dist/index.d.ts",
|
|
62
|
+
"default": "./dist/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./payload": {
|
|
65
|
+
"import": "./dist/exports/payload.js",
|
|
66
|
+
"types": "./dist/exports/payload.d.ts",
|
|
67
|
+
"default": "./dist/exports/payload.js"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
54
70
|
},
|
|
55
71
|
"postpack": {
|
|
56
|
-
"
|
|
57
|
-
"
|
|
72
|
+
"main": "./src/index.ts",
|
|
73
|
+
"types": "./src/index.ts",
|
|
74
|
+
"exports": {
|
|
75
|
+
".": {
|
|
76
|
+
"import": "./src/index.ts",
|
|
77
|
+
"types": "./src/index.ts",
|
|
78
|
+
"default": "./src/index.ts"
|
|
79
|
+
},
|
|
80
|
+
"./payload": {
|
|
81
|
+
"import": "./src/exports/payload.ts",
|
|
82
|
+
"types": "./src/exports/payload.ts",
|
|
83
|
+
"default": "./src/exports/payload.ts"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
58
86
|
},
|
|
87
|
+
"main": "./dist/index.js",
|
|
59
88
|
"types": "./dist/index.d.ts",
|
|
60
|
-
"
|
|
89
|
+
"exports": {
|
|
90
|
+
".": {
|
|
91
|
+
"import": "./dist/index.js",
|
|
92
|
+
"types": "./dist/index.d.ts",
|
|
93
|
+
"default": "./dist/index.js"
|
|
94
|
+
},
|
|
95
|
+
"./payload": {
|
|
96
|
+
"import": "./dist/exports/payload.js",
|
|
97
|
+
"types": "./dist/exports/payload.d.ts",
|
|
98
|
+
"default": "./dist/exports/payload.js"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
61
101
|
}
|
|
File without changes
|