payload 3.68.4 → 3.68.5

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.
@@ -1,9 +1,24 @@
1
1
  import type { Config } from '../config/types.js';
2
- /** Will read the `routes.admin` config and appropriately handle `"/"` admin paths */
2
+ /**
3
+ * This function builds correct URLs for admin panel routing.
4
+ * Its primary responsibilities are:
5
+ * 1. Read from your `routes.admin` config and appropriately handle `"/"` admin paths
6
+ * 2. Prepend the `basePath` from your Next.js config, if specified
7
+ * 3. Return relative or absolute URLs, as needed
8
+ */
3
9
  export declare const formatAdminURL: (args: {
4
10
  adminRoute: NonNullable<Config["routes"]>["admin"];
11
+ /**
12
+ * The subpath of your application, if specified.
13
+ * @see https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath
14
+ * @example '/docs'
15
+ */
5
16
  basePath?: string;
6
- path: "" | `/${string}` | null | undefined;
7
- serverURL?: Config["serverURL"];
8
- }) => string;
17
+ path?: "" | `/${string}` | null;
18
+ /**
19
+ * Return a relative URL, e.g. ignore `serverURL`.
20
+ * Useful for route-matching, etc.
21
+ */
22
+ relative?: boolean;
23
+ } & Pick<Config, "serverURL">) => string;
9
24
  //# sourceMappingURL=formatAdminURL.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatAdminURL.d.ts","sourceRoot":"","sources":["../../src/utilities/formatAdminURL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,qFAAqF;AACrF,eAAO,MAAM,cAAc,SAAU;IACnC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,CAAA;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,CAAA;CAChC,KAAG,MAeH,CAAA"}
1
+ {"version":3,"file":"formatAdminURL.d.ts","sourceRoot":"","sources":["../../src/utilities/formatAdminURL.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,SACnB;IACJ,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAClD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,KAC5B,MAoBF,CAAA"}
@@ -1,16 +1,25 @@
1
- /** Will read the `routes.admin` config and appropriately handle `"/"` admin paths */ export const formatAdminURL = (args)=>{
2
- const { adminRoute, basePath = '', path: pathFromArgs, serverURL } = args;
3
- const path = pathFromArgs || '';
4
- if (adminRoute) {
5
- if (adminRoute === '/') {
6
- if (!path) {
7
- return `${serverURL || ''}${basePath}${adminRoute}`;
8
- }
9
- } else {
10
- return `${serverURL || ''}${basePath}${adminRoute}${path}`;
11
- }
1
+ /**
2
+ * This function builds correct URLs for admin panel routing.
3
+ * Its primary responsibilities are:
4
+ * 1. Read from your `routes.admin` config and appropriately handle `"/"` admin paths
5
+ * 2. Prepend the `basePath` from your Next.js config, if specified
6
+ * 3. Return relative or absolute URLs, as needed
7
+ */ export const formatAdminURL = (args)=>{
8
+ const { adminRoute, basePath = '', path = '', relative = false, serverURL } = args;
9
+ const pathSegments = [
10
+ basePath
11
+ ];
12
+ if (adminRoute && adminRoute !== '/') {
13
+ pathSegments.push(adminRoute);
12
14
  }
13
- return `${serverURL || ''}${basePath}${path}`;
15
+ if (path && !(adminRoute === '/' && !path)) {
16
+ pathSegments.push(path);
17
+ }
18
+ const pathname = pathSegments.join('') || '/';
19
+ if (relative || !serverURL) {
20
+ return pathname;
21
+ }
22
+ return new URL(pathname, serverURL).toString();
14
23
  };
15
24
 
16
25
  //# sourceMappingURL=formatAdminURL.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utilities/formatAdminURL.ts"],"sourcesContent":["import type { Config } from '../config/types.js'\n\n/** Will read the `routes.admin` config and appropriately handle `\"/\"` admin paths */\nexport const formatAdminURL = (args: {\n adminRoute: NonNullable<Config['routes']>['admin']\n basePath?: string\n path: '' | `/${string}` | null | undefined\n serverURL?: Config['serverURL']\n}): string => {\n const { adminRoute, basePath = '', path: pathFromArgs, serverURL } = args\n const path = pathFromArgs || ''\n\n if (adminRoute) {\n if (adminRoute === '/') {\n if (!path) {\n return `${serverURL || ''}${basePath}${adminRoute}`\n }\n } else {\n return `${serverURL || ''}${basePath}${adminRoute}${path}`\n }\n }\n\n return `${serverURL || ''}${basePath}${path}`\n}\n"],"names":["formatAdminURL","args","adminRoute","basePath","path","pathFromArgs","serverURL"],"mappings":"AAEA,mFAAmF,GACnF,OAAO,MAAMA,iBAAiB,CAACC;IAM7B,MAAM,EAAEC,UAAU,EAAEC,WAAW,EAAE,EAAEC,MAAMC,YAAY,EAAEC,SAAS,EAAE,GAAGL;IACrE,MAAMG,OAAOC,gBAAgB;IAE7B,IAAIH,YAAY;QACd,IAAIA,eAAe,KAAK;YACtB,IAAI,CAACE,MAAM;gBACT,OAAO,GAAGE,aAAa,KAAKH,WAAWD,YAAY;YACrD;QACF,OAAO;YACL,OAAO,GAAGI,aAAa,KAAKH,WAAWD,aAAaE,MAAM;QAC5D;IACF;IAEA,OAAO,GAAGE,aAAa,KAAKH,WAAWC,MAAM;AAC/C,EAAC"}
1
+ {"version":3,"sources":["../../src/utilities/formatAdminURL.ts"],"sourcesContent":["import type { Config } from '../config/types.js'\n\n/**\n * This function builds correct URLs for admin panel routing.\n * Its primary responsibilities are:\n * 1. Read from your `routes.admin` config and appropriately handle `\"/\"` admin paths\n * 2. Prepend the `basePath` from your Next.js config, if specified\n * 3. Return relative or absolute URLs, as needed\n */\nexport const formatAdminURL = (\n args: {\n adminRoute: NonNullable<Config['routes']>['admin']\n /**\n * The subpath of your application, if specified.\n * @see https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath\n * @example '/docs'\n */\n basePath?: string\n path?: '' | `/${string}` | null\n /**\n * Return a relative URL, e.g. ignore `serverURL`.\n * Useful for route-matching, etc.\n */\n relative?: boolean\n } & Pick<Config, 'serverURL'>,\n): string => {\n const { adminRoute, basePath = '', path = '', relative = false, serverURL } = args\n\n const pathSegments = [basePath]\n\n if (adminRoute && adminRoute !== '/') {\n pathSegments.push(adminRoute)\n }\n\n if (path && !(adminRoute === '/' && !path)) {\n pathSegments.push(path)\n }\n\n const pathname = pathSegments.join('') || '/'\n\n if (relative || !serverURL) {\n return pathname\n }\n\n return new URL(pathname, serverURL).toString()\n}\n"],"names":["formatAdminURL","args","adminRoute","basePath","path","relative","serverURL","pathSegments","push","pathname","join","URL","toString"],"mappings":"AAEA;;;;;;CAMC,GACD,OAAO,MAAMA,iBAAiB,CAC5BC;IAgBA,MAAM,EAAEC,UAAU,EAAEC,WAAW,EAAE,EAAEC,OAAO,EAAE,EAAEC,WAAW,KAAK,EAAEC,SAAS,EAAE,GAAGL;IAE9E,MAAMM,eAAe;QAACJ;KAAS;IAE/B,IAAID,cAAcA,eAAe,KAAK;QACpCK,aAAaC,IAAI,CAACN;IACpB;IAEA,IAAIE,QAAQ,CAAEF,CAAAA,eAAe,OAAO,CAACE,IAAG,GAAI;QAC1CG,aAAaC,IAAI,CAACJ;IACpB;IAEA,MAAMK,WAAWF,aAAaG,IAAI,CAAC,OAAO;IAE1C,IAAIL,YAAY,CAACC,WAAW;QAC1B,OAAOG;IACT;IAEA,OAAO,IAAIE,IAAIF,UAAUH,WAAWM,QAAQ;AAC9C,EAAC"}
@@ -0,0 +1,169 @@
1
+ import { formatAdminURL } from './formatAdminURL.js';
2
+ describe('formatAdminURL', ()=>{
3
+ const serverURL = 'https://example.com';
4
+ const defaultAdminRoute = '/admin';
5
+ const rootAdminRoute = '/';
6
+ const dummyPath = '/collections/posts';
7
+ describe('relative URLs', ()=>{
8
+ it('should ignore `serverURL` when relative=true', ()=>{
9
+ const result = formatAdminURL({
10
+ adminRoute: defaultAdminRoute,
11
+ path: dummyPath,
12
+ serverURL,
13
+ relative: true
14
+ });
15
+ expect(result).toBe(`${defaultAdminRoute}${dummyPath}`);
16
+ });
17
+ it('should force relative URL when `serverURL` is omitted', ()=>{
18
+ const result = formatAdminURL({
19
+ adminRoute: defaultAdminRoute,
20
+ path: dummyPath,
21
+ relative: false
22
+ });
23
+ expect(result).toBe(`${defaultAdminRoute}${dummyPath}`);
24
+ });
25
+ });
26
+ describe('absolute URLs', ()=>{
27
+ it('should return absolute URL with serverURL', ()=>{
28
+ const result = formatAdminURL({
29
+ adminRoute: defaultAdminRoute,
30
+ path: dummyPath,
31
+ serverURL
32
+ });
33
+ expect(result).toBe(`${serverURL}${defaultAdminRoute}${dummyPath}`);
34
+ });
35
+ it('should handle serverURL with trailing slash', ()=>{
36
+ const result = formatAdminURL({
37
+ adminRoute: defaultAdminRoute,
38
+ path: '/collections/posts',
39
+ serverURL: 'https://example.com/'
40
+ });
41
+ expect(result).toBe('https://example.com/admin/collections/posts');
42
+ });
43
+ it('should handle serverURL with subdirectory', ()=>{
44
+ const result = formatAdminURL({
45
+ adminRoute: defaultAdminRoute,
46
+ path: '/collections/posts',
47
+ serverURL: 'https://example.com/api/v1'
48
+ });
49
+ expect(result).toBe('https://example.com/admin/collections/posts');
50
+ });
51
+ });
52
+ describe('admin route handling', ()=>{
53
+ it('should return relative URL for adminRoute="/", no path, no `serverURL`', ()=>{
54
+ const result = formatAdminURL({
55
+ adminRoute: rootAdminRoute,
56
+ relative: true
57
+ });
58
+ expect(result).toBe('/');
59
+ });
60
+ it('should handle relative URL for adminRoute="/", with path, no `serverURL`', ()=>{
61
+ const result = formatAdminURL({
62
+ adminRoute: rootAdminRoute,
63
+ path: dummyPath,
64
+ relative: true
65
+ });
66
+ expect(result).toBe(dummyPath);
67
+ });
68
+ it('should return absolute URL for adminRoute="/", no path, with `serverURL`', ()=>{
69
+ const result = formatAdminURL({
70
+ adminRoute: rootAdminRoute,
71
+ serverURL
72
+ });
73
+ expect(result).toBe('https://example.com/');
74
+ });
75
+ it('should handle absolute URL for adminRoute="/", with path and `serverURL`', ()=>{
76
+ const result = formatAdminURL({
77
+ adminRoute: rootAdminRoute,
78
+ serverURL,
79
+ path: dummyPath
80
+ });
81
+ expect(result).toBe(`${serverURL}${dummyPath}`);
82
+ });
83
+ });
84
+ describe('base path handling', ()=>{
85
+ it('should include basePath in URL', ()=>{
86
+ const result = formatAdminURL({
87
+ adminRoute: defaultAdminRoute,
88
+ basePath: '/v1',
89
+ path: dummyPath,
90
+ serverURL
91
+ });
92
+ expect(result).toBe(`${serverURL}/v1${defaultAdminRoute}${dummyPath}`);
93
+ });
94
+ it('should handle basePath with adminRoute="/"', ()=>{
95
+ const result = formatAdminURL({
96
+ adminRoute: rootAdminRoute,
97
+ basePath: '/v1',
98
+ serverURL
99
+ });
100
+ expect(result).toBe(`${serverURL}/v1`);
101
+ });
102
+ it('should handle basePath with no adminRoute', ()=>{
103
+ const result = formatAdminURL({
104
+ adminRoute: undefined,
105
+ basePath: '/v1',
106
+ path: dummyPath,
107
+ serverURL
108
+ });
109
+ expect(result).toBe(`${serverURL}/v1${dummyPath}`);
110
+ });
111
+ it('should handle empty basePath', ()=>{
112
+ const result = formatAdminURL({
113
+ adminRoute: defaultAdminRoute,
114
+ basePath: '',
115
+ path: dummyPath,
116
+ serverURL
117
+ });
118
+ expect(result).toBe(`${serverURL}${defaultAdminRoute}${dummyPath}`);
119
+ });
120
+ });
121
+ describe('path handling', ()=>{
122
+ it('should handle empty string path', ()=>{
123
+ const result = formatAdminURL({
124
+ adminRoute: defaultAdminRoute,
125
+ path: '',
126
+ serverURL
127
+ });
128
+ expect(result).toBe(`${serverURL}${defaultAdminRoute}`);
129
+ });
130
+ it('should handle null path', ()=>{
131
+ const result = formatAdminURL({
132
+ adminRoute: defaultAdminRoute,
133
+ path: null,
134
+ serverURL
135
+ });
136
+ expect(result).toBe(`${serverURL}${defaultAdminRoute}`);
137
+ });
138
+ it('should handle undefined path', ()=>{
139
+ const result = formatAdminURL({
140
+ adminRoute: defaultAdminRoute,
141
+ path: undefined,
142
+ serverURL
143
+ });
144
+ expect(result).toBe(`${serverURL}${defaultAdminRoute}`);
145
+ });
146
+ it('should handle path with query parameters', ()=>{
147
+ const path = `${dummyPath}?page=2`;
148
+ const result = formatAdminURL({
149
+ adminRoute: defaultAdminRoute,
150
+ path,
151
+ serverURL
152
+ });
153
+ expect(result).toBe(`${serverURL}${defaultAdminRoute}${path}`);
154
+ });
155
+ });
156
+ describe('edge cases', ()=>{
157
+ it('should return "/" when given minimal args', ()=>{
158
+ const result = formatAdminURL({
159
+ adminRoute: undefined,
160
+ basePath: '',
161
+ path: '',
162
+ relative: true
163
+ });
164
+ expect(result).toBe('/');
165
+ });
166
+ });
167
+ });
168
+
169
+ //# sourceMappingURL=formatAdminURL.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utilities/formatAdminURL.spec.ts"],"sourcesContent":["import { formatAdminURL } from './formatAdminURL.js'\n\ndescribe('formatAdminURL', () => {\n const serverURL = 'https://example.com'\n\n const defaultAdminRoute = '/admin'\n const rootAdminRoute = '/'\n\n const dummyPath = '/collections/posts'\n\n describe('relative URLs', () => {\n it('should ignore `serverURL` when relative=true', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path: dummyPath,\n serverURL,\n relative: true,\n })\n\n expect(result).toBe(`${defaultAdminRoute}${dummyPath}`)\n })\n\n it('should force relative URL when `serverURL` is omitted', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path: dummyPath,\n relative: false,\n })\n\n expect(result).toBe(`${defaultAdminRoute}${dummyPath}`)\n })\n })\n\n describe('absolute URLs', () => {\n it('should return absolute URL with serverURL', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path: dummyPath,\n serverURL,\n })\n\n expect(result).toBe(`${serverURL}${defaultAdminRoute}${dummyPath}`)\n })\n\n it('should handle serverURL with trailing slash', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path: '/collections/posts',\n serverURL: 'https://example.com/',\n })\n\n expect(result).toBe('https://example.com/admin/collections/posts')\n })\n\n it('should handle serverURL with subdirectory', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path: '/collections/posts',\n serverURL: 'https://example.com/api/v1',\n })\n\n expect(result).toBe('https://example.com/admin/collections/posts')\n })\n })\n\n describe('admin route handling', () => {\n it('should return relative URL for adminRoute=\"/\", no path, no `serverURL`', () => {\n const result = formatAdminURL({\n adminRoute: rootAdminRoute,\n relative: true,\n })\n\n expect(result).toBe('/')\n })\n\n it('should handle relative URL for adminRoute=\"/\", with path, no `serverURL`', () => {\n const result = formatAdminURL({\n adminRoute: rootAdminRoute,\n path: dummyPath,\n relative: true,\n })\n\n expect(result).toBe(dummyPath)\n })\n\n it('should return absolute URL for adminRoute=\"/\", no path, with `serverURL`', () => {\n const result = formatAdminURL({\n adminRoute: rootAdminRoute,\n serverURL,\n })\n\n expect(result).toBe('https://example.com/')\n })\n\n it('should handle absolute URL for adminRoute=\"/\", with path and `serverURL`', () => {\n const result = formatAdminURL({\n adminRoute: rootAdminRoute,\n serverURL,\n path: dummyPath,\n })\n\n expect(result).toBe(`${serverURL}${dummyPath}`)\n })\n })\n\n describe('base path handling', () => {\n it('should include basePath in URL', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n basePath: '/v1',\n path: dummyPath,\n serverURL,\n })\n\n expect(result).toBe(`${serverURL}/v1${defaultAdminRoute}${dummyPath}`)\n })\n\n it('should handle basePath with adminRoute=\"/\"', () => {\n const result = formatAdminURL({\n adminRoute: rootAdminRoute,\n basePath: '/v1',\n serverURL,\n })\n\n expect(result).toBe(`${serverURL}/v1`)\n })\n\n it('should handle basePath with no adminRoute', () => {\n const result = formatAdminURL({\n adminRoute: undefined,\n basePath: '/v1',\n path: dummyPath,\n serverURL,\n })\n\n expect(result).toBe(`${serverURL}/v1${dummyPath}`)\n })\n\n it('should handle empty basePath', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n basePath: '',\n path: dummyPath,\n serverURL,\n })\n\n expect(result).toBe(`${serverURL}${defaultAdminRoute}${dummyPath}`)\n })\n })\n\n describe('path handling', () => {\n it('should handle empty string path', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path: '',\n serverURL,\n })\n\n expect(result).toBe(`${serverURL}${defaultAdminRoute}`)\n })\n\n it('should handle null path', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path: null,\n serverURL,\n })\n expect(result).toBe(`${serverURL}${defaultAdminRoute}`)\n })\n\n it('should handle undefined path', () => {\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path: undefined,\n serverURL,\n })\n\n expect(result).toBe(`${serverURL}${defaultAdminRoute}`)\n })\n\n it('should handle path with query parameters', () => {\n const path = `${dummyPath}?page=2`\n\n const result = formatAdminURL({\n adminRoute: defaultAdminRoute,\n path,\n serverURL,\n })\n\n expect(result).toBe(`${serverURL}${defaultAdminRoute}${path}`)\n })\n })\n\n describe('edge cases', () => {\n it('should return \"/\" when given minimal args', () => {\n const result = formatAdminURL({\n adminRoute: undefined,\n basePath: '',\n path: '',\n relative: true,\n })\n\n expect(result).toBe('/')\n })\n })\n})\n"],"names":["formatAdminURL","describe","serverURL","defaultAdminRoute","rootAdminRoute","dummyPath","it","result","adminRoute","path","relative","expect","toBe","basePath","undefined"],"mappings":"AAAA,SAASA,cAAc,QAAQ,sBAAqB;AAEpDC,SAAS,kBAAkB;IACzB,MAAMC,YAAY;IAElB,MAAMC,oBAAoB;IAC1B,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QAAQK,IAAI,CAAC,GAAGV,YAAYC,mBAAmB;QACxD;QAEAG,GAAG,gCAAgC;YACjC,MAAMC,SAASP,eAAe;gBAC5BQ,YAAYL;gBACZM,MAAMK;gBACNZ;YACF;YAEAS,OAAOJ,QAAQK,IAAI,CAAC,GAAGV,YAAYC,mBAAmB;QACxD;QAEAG,GAAG,4CAA4C;YAC7C,MAAMG,OAAO,GAAGJ,UAAU,OAAO,CAAC;YAElC,MAAME,SAASP,eAAe;gBAC5BQ,YAAYL;gBACZM;gBACAP;YACF;YAEAS,OAAOJ,QAAQK,IAAI,CAAC,GAAGV,YAAYC,oBAAoBM,MAAM;QAC/D;IACF;IAEAR,SAAS,cAAc;QACrBK,GAAG,6CAA6C;YAC9C,MAAMC,SAASP,eAAe;gBAC5BQ,YAAYM;gBACZD,UAAU;gBACVJ,MAAM;gBACNC,UAAU;YACZ;YAEAC,OAAOJ,QAAQK,IAAI,CAAC;QACtB;IACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload",
3
- "version": "3.68.4",
3
+ "version": "3.68.5",
4
4
  "description": "Node, React, Headless CMS and Application Framework built on Next.js",
5
5
  "keywords": [
6
6
  "admin panel",
@@ -106,7 +106,7 @@
106
106
  "undici": "7.10.0",
107
107
  "uuid": "10.0.0",
108
108
  "ws": "^8.16.0",
109
- "@payloadcms/translations": "3.68.4"
109
+ "@payloadcms/translations": "3.68.5"
110
110
  },
111
111
  "devDependencies": {
112
112
  "@hyrious/esbuild-plugin-commonjs": "0.2.6",