@websolutespa/test 1.10.0-next.1 → 2.0.1-next.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @websolutespa/test
2
2
 
3
+ ## 2.0.1-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updating: dependencies and build step
8
+
9
+ ## 2.0.1-next.0
10
+
11
+ ### Major Changes
12
+
13
+ - e74b305: Release: Payload 3.7.0
14
+
3
15
  ## 1.10.0-next.1
4
16
 
5
17
  ### Patch Changes
@@ -1,13 +1,44 @@
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
- });
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
- import nextJest from "next/jest";
10
- var createJestConfig = nextJest({
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": __require.resolve("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
- "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);
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
- 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"));
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": require.resolve("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
- // Annotate the CommonJS export names for ESM import in node:
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": "1.10.0-next.1",
3
+ "version": "2.0.1-next.2",
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": ">= 15.3.0",
35
- "uuid": ">= 9.0.1"
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": "1.10.0-next.1",
41
- "npm-run-all": "^4.1.5",
42
- "ts-node": "^10.9.2",
43
- "tsup": "^8.5.0",
44
- "typescript": "5.8.2",
45
- "uuid": "^9.0.1"
43
+ "@websolutespa/eslint-config": "2.0.1-next.2",
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
- "main": "./dist/index.js"
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
- "types": "./index.ts",
57
- "main": "./index.ts"
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
- "main": "./dist/index.js"
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