payload 3.0.0-beta.51 → 3.0.0-beta.52

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDependencies.d.ts","sourceRoot":"","sources":["../../../src/utilities/dependencies/getDependencies.ts"],"names":[],"mappings":"AAsBA,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,EAAE,GAAG,CACX,MAAM,EACN;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;KAChB,CACF,CAAA;CACF,CAAA;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,EAAE,GACzB,OAAO,CAAC,qBAAqB,CAAC,CA6ChC"}
@@ -0,0 +1,54 @@
1
+ /*
2
+ This source code has been taken and modified from https://github.com/vercel/next.js/blob/41a80533f900467e1b788bd2673abe2dca20be6a/packages/next/src/lib/has-necessary-dependencies.ts
3
+
4
+ License:
5
+
6
+ The MIT License (MIT)
7
+
8
+ Copyright (c) 2024 Vercel, Inc.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ */ import { findUp } from 'find-up';
16
+ import { existsSync, promises as fs } from 'fs';
17
+ import { dirname } from 'path';
18
+ import { resolveFrom } from './resolveFrom.js';
19
+ export async function getDependencies(baseDir, requiredPackages) {
20
+ const resolutions = new Map();
21
+ const missingPackages = [];
22
+ await Promise.all(requiredPackages.map(async (pkg)=>{
23
+ try {
24
+ const pkgPath = await fs.realpath(resolveFrom(baseDir, pkg));
25
+ const pkgDir = dirname(pkgPath);
26
+ let packageJsonFilePath = null;
27
+ await findUp('package.json', {
28
+ type: 'file',
29
+ cwd: pkgDir
30
+ }).then((path)=>{
31
+ packageJsonFilePath = path;
32
+ });
33
+ if (packageJsonFilePath && existsSync(packageJsonFilePath)) {
34
+ // parse version
35
+ const packageJson = JSON.parse(await fs.readFile(packageJsonFilePath, 'utf8'));
36
+ const version = packageJson.version;
37
+ resolutions.set(pkg, {
38
+ path: packageJsonFilePath,
39
+ version
40
+ });
41
+ } else {
42
+ return missingPackages.push(pkg);
43
+ }
44
+ } catch (_) {
45
+ return missingPackages.push(pkg);
46
+ }
47
+ }));
48
+ return {
49
+ missing: missingPackages,
50
+ resolved: resolutions
51
+ };
52
+ }
53
+
54
+ //# sourceMappingURL=getDependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/utilities/dependencies/getDependencies.ts"],"sourcesContent":["/*\n This source code has been taken and modified from https://github.com/vercel/next.js/blob/41a80533f900467e1b788bd2673abe2dca20be6a/packages/next/src/lib/has-necessary-dependencies.ts\n\n License:\n\n The MIT License (MIT)\n\n Copyright (c) 2024 Vercel, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nimport { findUp } from 'find-up'\nimport { existsSync, promises as fs } from 'fs'\nimport { dirname } from 'path'\n\nimport { resolveFrom } from './resolveFrom.js'\n\nexport type NecessaryDependencies = {\n missing: string[]\n resolved: Map<\n string,\n {\n path: string\n version: string\n }\n >\n}\n\nexport async function getDependencies(\n baseDir: string,\n requiredPackages: string[],\n): Promise<NecessaryDependencies> {\n const resolutions = new Map<\n string,\n {\n path: string\n version: string\n }\n >()\n const missingPackages: string[] = []\n\n await Promise.all(\n requiredPackages.map(async (pkg) => {\n try {\n const pkgPath = await fs.realpath(resolveFrom(baseDir, pkg))\n\n const pkgDir = dirname(pkgPath)\n\n let packageJsonFilePath = null\n\n await findUp('package.json', { type: 'file', cwd: pkgDir }).then((path) => {\n packageJsonFilePath = path\n })\n\n if (packageJsonFilePath && existsSync(packageJsonFilePath)) {\n // parse version\n const packageJson = JSON.parse(await fs.readFile(packageJsonFilePath, 'utf8'))\n const version = packageJson.version\n\n resolutions.set(pkg, {\n path: packageJsonFilePath,\n version,\n })\n } else {\n return missingPackages.push(pkg)\n }\n } catch (_) {\n return missingPackages.push(pkg)\n }\n }),\n )\n\n return {\n missing: missingPackages,\n resolved: resolutions,\n }\n}\n"],"names":["findUp","existsSync","promises","fs","dirname","resolveFrom","getDependencies","baseDir","requiredPackages","resolutions","Map","missingPackages","Promise","all","map","pkg","pkgPath","realpath","pkgDir","packageJsonFilePath","type","cwd","then","path","packageJson","JSON","parse","readFile","version","set","push","_","missing","resolved"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;;;;;;;;;;;;;;AAcA,GAEA,SAASA,MAAM,QAAQ,UAAS;AAChC,SAASC,UAAU,EAAEC,YAAYC,EAAE,QAAQ,KAAI;AAC/C,SAASC,OAAO,QAAQ,OAAM;AAE9B,SAASC,WAAW,QAAQ,mBAAkB;AAa9C,OAAO,eAAeC,gBACpBC,OAAe,EACfC,gBAA0B;IAE1B,MAAMC,cAAc,IAAIC;IAOxB,MAAMC,kBAA4B,EAAE;IAEpC,MAAMC,QAAQC,GAAG,CACfL,iBAAiBM,GAAG,CAAC,OAAOC;QAC1B,IAAI;YACF,MAAMC,UAAU,MAAMb,GAAGc,QAAQ,CAACZ,YAAYE,SAASQ;YAEvD,MAAMG,SAASd,QAAQY;YAEvB,IAAIG,sBAAsB;YAE1B,MAAMnB,OAAO,gBAAgB;gBAAEoB,MAAM;gBAAQC,KAAKH;YAAO,GAAGI,IAAI,CAAC,CAACC;gBAChEJ,sBAAsBI;YACxB;YAEA,IAAIJ,uBAAuBlB,WAAWkB,sBAAsB;gBAC1D,gBAAgB;gBAChB,MAAMK,cAAcC,KAAKC,KAAK,CAAC,MAAMvB,GAAGwB,QAAQ,CAACR,qBAAqB;gBACtE,MAAMS,UAAUJ,YAAYI,OAAO;gBAEnCnB,YAAYoB,GAAG,CAACd,KAAK;oBACnBQ,MAAMJ;oBACNS;gBACF;YACF,OAAO;gBACL,OAAOjB,gBAAgBmB,IAAI,CAACf;YAC9B;QACF,EAAE,OAAOgB,GAAG;YACV,OAAOpB,gBAAgBmB,IAAI,CAACf;QAC9B;IACF;IAGF,OAAO;QACLiB,SAASrB;QACTsB,UAAUxB;IACZ;AACF"}
@@ -0,0 +1,5 @@
1
+ export interface ErrorWithCode extends Error {
2
+ code?: number | string;
3
+ }
4
+ export declare function isError(err: unknown): err is ErrorWithCode;
5
+ //# sourceMappingURL=isError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isError.d.ts","sourceRoot":"","sources":["../../../src/utilities/dependencies/isError.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,aAAa,CAE1D"}
@@ -0,0 +1,19 @@
1
+ /*
2
+ This source code has been taken and modified from https://github.com/vercel/next.js/blob/be87132327ea28acd4bf7af09a401bac2374cb64/packages/next/src/lib/is-error.ts
3
+
4
+ License:
5
+
6
+ The MIT License (MIT)
7
+
8
+ Copyright (c) 2024 Vercel, Inc.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ */ export function isError(err) {
16
+ return typeof err === 'object' && err !== null && 'name' in err && 'message' in err;
17
+ }
18
+
19
+ //# sourceMappingURL=isError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/utilities/dependencies/isError.ts"],"sourcesContent":["/*\n This source code has been taken and modified from https://github.com/vercel/next.js/blob/be87132327ea28acd4bf7af09a401bac2374cb64/packages/next/src/lib/is-error.ts\n\n License:\n\n The MIT License (MIT)\n\n Copyright (c) 2024 Vercel, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nexport interface ErrorWithCode extends Error {\n code?: number | string\n}\n\nexport function isError(err: unknown): err is ErrorWithCode {\n return typeof err === 'object' && err !== null && 'name' in err && 'message' in err\n}\n"],"names":["isError","err"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA;;;;;;;;;;;;;;AAcA,GAMA,OAAO,SAASA,QAAQC,GAAY;IAClC,OAAO,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,UAAUA,OAAO,aAAaA;AAClF"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import fs from 'fs';
3
+ export declare const realpathSync: typeof fs.realpathSync.native;
4
+ //# sourceMappingURL=realPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realPath.d.ts","sourceRoot":"","sources":["../../../src/utilities/dependencies/realPath.ts"],"names":[],"mappings":";AAeA,OAAO,EAAE,MAAM,IAAI,CAAA;AAQnB,eAAO,MAAM,YAAY,+BAAuD,CAAA"}
@@ -0,0 +1,23 @@
1
+ /*
2
+ This source code has been taken from https://github.com/vercel/next.js/blob/39498d604c3b25d92a483153fe648a7ee456fbda/packages/next/src/lib/realpath.ts
3
+
4
+ License:
5
+
6
+ The MIT License (MIT)
7
+
8
+ Copyright (c) 2024 Vercel, Inc.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ */ import fs from 'fs';
16
+ const isWindows = process.platform === 'win32';
17
+ // Interesting learning from this, that fs.realpathSync is 70x slower than fs.realpathSync.native:
18
+ // https://sun0day.github.io/blog/vite/why-vite4_3-is-faster.html#fs-realpathsync-issue
19
+ // https://github.com/nodejs/node/issues/2680
20
+ // However, we can't use fs.realpathSync.native on Windows due to behavior differences.
21
+ export const realpathSync = isWindows ? fs.realpathSync : fs.realpathSync.native;
22
+
23
+ //# sourceMappingURL=realPath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/utilities/dependencies/realPath.ts"],"sourcesContent":["/*\n This source code has been taken from https://github.com/vercel/next.js/blob/39498d604c3b25d92a483153fe648a7ee456fbda/packages/next/src/lib/realpath.ts\n\n License:\n\n The MIT License (MIT)\n\n Copyright (c) 2024 Vercel, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\nimport fs from 'fs'\n\nconst isWindows = process.platform === 'win32'\n\n// Interesting learning from this, that fs.realpathSync is 70x slower than fs.realpathSync.native:\n// https://sun0day.github.io/blog/vite/why-vite4_3-is-faster.html#fs-realpathsync-issue\n// https://github.com/nodejs/node/issues/2680\n// However, we can't use fs.realpathSync.native on Windows due to behavior differences.\nexport const realpathSync = isWindows ? fs.realpathSync : fs.realpathSync.native\n"],"names":["fs","isWindows","process","platform","realpathSync","native"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;;;;;;;;;;;;;;AAcA,GACA,OAAOA,QAAQ,KAAI;AAEnB,MAAMC,YAAYC,QAAQC,QAAQ,KAAK;AAEvC,kGAAkG;AAClG,uFAAuF;AACvF,6CAA6C;AAC7C,uFAAuF;AACvF,OAAO,MAAMC,eAAeH,YAAYD,GAAGI,YAAY,GAAGJ,GAAGI,YAAY,CAACC,MAAM,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const resolveFrom: (fromDirectory: string, moduleId: string, silent?: boolean) => any;
2
+ //# sourceMappingURL=resolveFrom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveFrom.d.ts","sourceRoot":"","sources":["../../../src/utilities/dependencies/resolveFrom.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,WAAW,kBAAmB,MAAM,YAAY,MAAM,WAAW,OAAO,QAgDpF,CAAA"}
@@ -0,0 +1,58 @@
1
+ /*
2
+ This source code has been taken and modified from https://github.com/vercel/next.js/blob/39498d604c3b25d92a483153fe648a7ee456fbda/packages/next/src/lib/resolve-from.ts
3
+
4
+ License:
5
+
6
+ The MIT License (MIT)
7
+
8
+ Copyright (c) 2024 Vercel, Inc.
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ */ // source: https://github.com/sindresorhus/resolve-from
16
+ import { createRequire } from 'module';
17
+ import path from 'path';
18
+ import { isError } from './isError.js';
19
+ import { realpathSync } from './realPath.js';
20
+ export const resolveFrom = (fromDirectory, moduleId, silent)=>{
21
+ if (typeof fromDirectory !== 'string') {
22
+ throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``);
23
+ }
24
+ if (typeof moduleId !== 'string') {
25
+ throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
26
+ }
27
+ try {
28
+ fromDirectory = realpathSync(fromDirectory);
29
+ } catch (error) {
30
+ if (isError(error) && error.code === 'ENOENT') {
31
+ fromDirectory = path.resolve(fromDirectory);
32
+ } else if (silent) {
33
+ return;
34
+ } else {
35
+ throw error;
36
+ }
37
+ }
38
+ const fromFile = path.join(fromDirectory, 'noop.js');
39
+ const require = createRequire(import.meta.url);
40
+ const Module = require('module');
41
+ const resolveFileName = ()=>{
42
+ return Module._resolveFilename(moduleId, {
43
+ id: fromFile,
44
+ filename: fromFile,
45
+ paths: Module._nodeModulePaths(fromDirectory)
46
+ });
47
+ };
48
+ if (silent) {
49
+ try {
50
+ return resolveFileName();
51
+ } catch (error) {
52
+ return;
53
+ }
54
+ }
55
+ return resolveFileName();
56
+ };
57
+
58
+ //# sourceMappingURL=resolveFrom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/utilities/dependencies/resolveFrom.ts"],"sourcesContent":["/*\n This source code has been taken and modified from https://github.com/vercel/next.js/blob/39498d604c3b25d92a483153fe648a7ee456fbda/packages/next/src/lib/resolve-from.ts\n\n License:\n\n The MIT License (MIT)\n\n Copyright (c) 2024 Vercel, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\n// source: https://github.com/sindresorhus/resolve-from\nimport { createRequire } from 'module'\nimport path from 'path'\n\nimport { isError } from './isError.js'\nimport { realpathSync } from './realPath.js'\n\nexport const resolveFrom = (fromDirectory: string, moduleId: string, silent?: boolean) => {\n if (typeof fromDirectory !== 'string') {\n throw new TypeError(\n `Expected \\`fromDir\\` to be of type \\`string\\`, got \\`${typeof fromDirectory}\\``,\n )\n }\n\n if (typeof moduleId !== 'string') {\n throw new TypeError(\n `Expected \\`moduleId\\` to be of type \\`string\\`, got \\`${typeof moduleId}\\``,\n )\n }\n\n try {\n fromDirectory = realpathSync(fromDirectory)\n } catch (error: unknown) {\n if (isError(error) && error.code === 'ENOENT') {\n fromDirectory = path.resolve(fromDirectory)\n } else if (silent) {\n return\n } else {\n throw error\n }\n }\n\n const fromFile = path.join(fromDirectory, 'noop.js')\n\n const require = createRequire(import.meta.url)\n\n const Module = require('module')\n\n const resolveFileName = () => {\n return Module._resolveFilename(moduleId, {\n id: fromFile,\n filename: fromFile,\n paths: Module._nodeModulePaths(fromDirectory),\n })\n }\n\n if (silent) {\n try {\n return resolveFileName()\n } catch (error) {\n return\n }\n }\n\n return resolveFileName()\n}\n"],"names":["createRequire","path","isError","realpathSync","resolveFrom","fromDirectory","moduleId","silent","TypeError","error","code","resolve","fromFile","join","require","url","Module","resolveFileName","_resolveFilename","id","filename","paths","_nodeModulePaths"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;;;;;;;;;;;;;;AAcA,GAEA,uDAAuD;AACvD,SAASA,aAAa,QAAQ,SAAQ;AACtC,OAAOC,UAAU,OAAM;AAEvB,SAASC,OAAO,QAAQ,eAAc;AACtC,SAASC,YAAY,QAAQ,gBAAe;AAE5C,OAAO,MAAMC,cAAc,CAACC,eAAuBC,UAAkBC;IACnE,IAAI,OAAOF,kBAAkB,UAAU;QACrC,MAAM,IAAIG,UACR,CAAC,qDAAqD,EAAE,OAAOH,cAAc,EAAE,CAAC;IAEpF;IAEA,IAAI,OAAOC,aAAa,UAAU;QAChC,MAAM,IAAIE,UACR,CAAC,sDAAsD,EAAE,OAAOF,SAAS,EAAE,CAAC;IAEhF;IAEA,IAAI;QACFD,gBAAgBF,aAAaE;IAC/B,EAAE,OAAOI,OAAgB;QACvB,IAAIP,QAAQO,UAAUA,MAAMC,IAAI,KAAK,UAAU;YAC7CL,gBAAgBJ,KAAKU,OAAO,CAACN;QAC/B,OAAO,IAAIE,QAAQ;YACjB;QACF,OAAO;YACL,MAAME;QACR;IACF;IAEA,MAAMG,WAAWX,KAAKY,IAAI,CAACR,eAAe;IAE1C,MAAMS,UAAUd,cAAc,YAAYe,GAAG;IAE7C,MAAMC,SAASF,QAAQ;IAEvB,MAAMG,kBAAkB;QACtB,OAAOD,OAAOE,gBAAgB,CAACZ,UAAU;YACvCa,IAAIP;YACJQ,UAAUR;YACVS,OAAOL,OAAOM,gBAAgB,CAACjB;QACjC;IACF;IAEA,IAAIE,QAAQ;QACV,IAAI;YACF,OAAOU;QACT,EAAE,OAAOR,OAAO;YACd;QACF;IACF;IAEA,OAAOQ;AACT,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload",
3
- "version": "3.0.0-beta.51",
3
+ "version": "3.0.0-beta.52",
4
4
  "description": "Node, React, Headless CMS and Application Framework built on Next.js",
5
5
  "keywords": [
6
6
  "admin panel",
@@ -41,9 +41,9 @@
41
41
  "type": "module",
42
42
  "exports": {
43
43
  ".": {
44
- "import": "./dist/exports/index.js",
45
- "require": "./dist/exports/index.js",
46
- "types": "./dist/exports/index.d.ts"
44
+ "import": "./dist/index.js",
45
+ "require": "./dist/index.js",
46
+ "types": "./dist/index.d.ts"
47
47
  },
48
48
  "./node": {
49
49
  "import": "./dist/exports/node.js",
@@ -61,8 +61,8 @@
61
61
  "types": "./dist/exports/i18n/*.d.ts"
62
62
  }
63
63
  },
64
- "main": "./dist/exports/index.js",
65
- "types": "./dist/exports/index.d.ts",
64
+ "main": "./dist/index.js",
65
+ "types": "./dist/index.d.ts",
66
66
  "bin": {
67
67
  "payload": "bin.js"
68
68
  },
@@ -104,7 +104,7 @@
104
104
  "scmp": "2.1.0",
105
105
  "ts-essentials": "7.0.3",
106
106
  "uuid": "10.0.0",
107
- "@payloadcms/translations": "3.0.0-beta.51"
107
+ "@payloadcms/translations": "3.0.0-beta.52"
108
108
  },
109
109
  "devDependencies": {
110
110
  "@hyrious/esbuild-plugin-commonjs": "^0.2.4",
@@ -1,122 +0,0 @@
1
- export * from './../types/index.js';
2
- export type * from '../admin/types.js';
3
- export type * from '../uploads/types.js';
4
- export type { MeOperationResult } from '../auth/operations/me.js';
5
- export { createDataloaderCacheKey, getDataLoader } from '../collections/dataloader.js';
6
- export { buildConfig } from '../config/build.js';
7
- export type { EmailAdapter as PayloadEmailAdapter, SendEmailOptions } from '../email/types.js';
8
- export { APIError, AuthenticationError, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, ValidationError, } from '../errors/index.js';
9
- export { traverseFields as afterChangeTraverseFields } from '../fields/hooks/afterChange/traverseFields.js';
10
- export { promise as afterReadPromise } from '../fields/hooks/afterRead/promise.js';
11
- export { traverseFields as afterReadTraverseFields } from '../fields/hooks/afterRead/traverseFields.js';
12
- export { traverseFields as beforeChangeTraverseFields } from '../fields/hooks/beforeChange/traverseFields.js';
13
- export { traverseFields as beforeValidateTraverseFields } from '../fields/hooks/beforeValidate/traverseFields.js';
14
- export type { CollapsedPreferences, DocumentPreferences, FieldsPreferences, InsideFieldsPreferences, PreferenceRequest, PreferenceUpdateRequest, TabsPreferences, } from '../preferences/types.js';
15
- export { getLocalI18n } from '../translations/getLocalI18n.js';
16
- export { combineMerge } from '../utilities/combineMerge.js';
17
- export { configToJSONSchema, entityToJSONSchema, fieldsToJSONSchema, withNullableJSONSchemaType, } from '../utilities/configToJSONSchema.js';
18
- export { createArrayFromCommaDelineated } from '../utilities/createArrayFromCommaDelineated.js';
19
- export { createLocalReq } from '../utilities/createLocalReq.js';
20
- export { default as flattenTopLevelFields } from '../utilities/flattenTopLevelFields.js';
21
- export { formatLabels, formatNames, toWords } from '../utilities/formatLabels.js';
22
- export { getCollectionIDFieldTypes } from '../utilities/getCollectionIDFieldTypes.js';
23
- export { getObjectDotNotation } from '../utilities/getObjectDotNotation.js';
24
- export { isEntityHidden } from '../utilities/isEntityHidden.js';
25
- export { isPlainObject } from '../utilities/isPlainObject.js';
26
- export { isValidID } from '../utilities/isValidID.js';
27
- export { default as isolateObjectProperty } from '../utilities/isolateObjectProperty.js';
28
- export { mapAsync } from '../utilities/mapAsync.js';
29
- export { mergeListSearchAndWhere } from '../utilities/mergeListSearchAndWhere.js';
30
- export { buildVersionCollectionFields } from '../versions/buildCollectionFields.js';
31
- export { buildVersionGlobalFields } from '../versions/buildGlobalFields.js';
32
- export { versionDefaults } from '../versions/defaults.js';
33
- export { deleteCollectionVersions } from '../versions/deleteCollectionVersions.js';
34
- export { enforceMaxVersions } from '../versions/enforceMaxVersions.js';
35
- export { getLatestCollectionVersion } from '../versions/getLatestCollectionVersion.js';
36
- export { getLatestGlobalVersion } from '../versions/getLatestGlobalVersion.js';
37
- export { saveVersion } from '../versions/saveVersion.js';
38
- export type { TypeWithVersion } from '../versions/types.js';
39
- export type { ClientCollectionConfig } from './../collections/config/client.js';
40
- export type { AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, Collection, CollectionConfig, SanitizedCollectionConfig, TypeWithID, TypeWithTimestamps, } from './../collections/config/types.js';
41
- export type { ClientConfig } from './../config/client.js';
42
- export type { Access, AccessArgs, EditViewComponent, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, SanitizedConfig, } from './../config/types.js';
43
- export type { ClientFieldConfig } from './../fields/config/client.js';
44
- export type { ArrayField, Block, BlockField, CheckboxField, ClientValidate, CodeField, CollapsibleField, Condition, DateField, EmailField, Field, FieldAccess, FieldAffectingData, FieldBase, FieldHook, FieldHookArgs, FieldPresentationalOnly, FieldWithMany, FieldWithMaxDepth, FieldWithPath, FieldWithSubFields, FilterOptions, FilterOptionsProps, GroupField, HookName, JSONField, Labels, NamedTab, NonPresentationalField, NumberField, Option, OptionObject, PointField, PolymorphicRelationshipField, RadioField, RelationshipField, RelationshipValue, RichTextField, RowAdmin, RowField, SelectField, SingleRelationshipField, Tab, TabAsField, TabsAdmin, TabsField, TextField, TextareaField, UIField, UnnamedTab, UploadField, Validate, ValidateOptions, ValueWithRelation, } from './../fields/config/types.js';
45
- export type { ClientGlobalConfig } from './../globals/config/client.js';
46
- export type { AfterChangeHook as GlobalAfterChangeHook, AfterReadHook as GlobalAfterReadHook, BeforeChangeHook as GlobalBeforeChangeHook, BeforeReadHook as GlobalBeforeReadHook, BeforeValidateHook as GlobalBeforeValidateHook, GlobalConfig, SanitizedGlobalConfig, } from './../globals/config/types.js';
47
- export * from '../config/types.js';
48
- export type { FieldTypes } from '../admin/forms/FieldTypes.js';
49
- export type { AuthStrategyFunction, AuthStrategyFunctionArgs, CollectionPermission, DocumentPermissions, FieldPermissions, GlobalPermission, IncomingAuthType, Permission, Permissions, User, VerifyConfig, } from '../auth/types.js';
50
- export { createClientCollectionConfig } from '../collections/config/client.js';
51
- export { createClientConfig } from '../config/client.js';
52
- export { defaults } from '../config/defaults.js';
53
- export type { BaseDatabaseAdapter, BeginTransaction, CommitTransaction, Connect, Count, CountArgs, Create, CreateArgs, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateVersion, CreateVersionArgs, DBIdentifierName, DatabaseAdapterResult as DatabaseAdapterObj, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Destroy, Find, FindArgs, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindVersions, FindVersionsArgs, Init, Migration, MigrationData, MigrationTemplateArgs, PaginatedDocs, QueryDrafts, QueryDraftsArgs, RollbackTransaction, Transaction, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, } from '../database/types.js';
54
- export { baseBlockFields } from '../fields/baseFields/baseBlockFields.js';
55
- export { baseIDField } from '../fields/baseFields/baseIDField.js';
56
- export { createClientFieldConfig } from '../fields/config/client.js';
57
- export { sanitizeFields } from '../fields/config/sanitize.js';
58
- export { createClientGlobalConfig } from '../globals/config/client.js';
59
- export type * from '../database/queryValidation/types.js';
60
- export { accessOperation } from '../auth/operations/access.js';
61
- export { forgotPasswordOperation } from '../auth/operations/forgotPassword.js';
62
- export { initOperation } from '../auth/operations/init.js';
63
- export { loginOperation } from '../auth/operations/login.js';
64
- export { logoutOperation } from '../auth/operations/logout.js';
65
- export { meOperation } from '../auth/operations/me.js';
66
- export { refreshOperation } from '../auth/operations/refresh.js';
67
- export { registerFirstUserOperation } from '../auth/operations/registerFirstUser.js';
68
- export { resetPasswordOperation } from '../auth/operations/resetPassword.js';
69
- export { unlockOperation } from '../auth/operations/unlock.js';
70
- export { verifyEmailOperation } from '../auth/operations/verifyEmail.js';
71
- export { countOperation } from '../collections/operations/count.js';
72
- export { createOperation } from '../collections/operations/create.js';
73
- export { deleteOperation } from '../collections/operations/delete.js';
74
- export { deleteByIDOperation } from '../collections/operations/deleteByID.js';
75
- export { docAccessOperation } from '../collections/operations/docAccess.js';
76
- export { duplicateOperation } from '../collections/operations/duplicate.js';
77
- export { findOperation } from '../collections/operations/find.js';
78
- export { findByIDOperation } from '../collections/operations/findByID.js';
79
- export { findVersionByIDOperation } from '../collections/operations/findVersionByID.js';
80
- export { findVersionsOperation } from '../collections/operations/findVersions.js';
81
- export { restoreVersionOperation } from '../collections/operations/restoreVersion.js';
82
- export { updateOperation } from '../collections/operations/update.js';
83
- export { updateByIDOperation } from '../collections/operations/updateByID.js';
84
- export { sanitizeConfig } from '../config/sanitize.js';
85
- export type { EntityPolicies, PathToQuery } from '../database/queryValidation/types.js';
86
- export { default as getDefaultValue } from '../fields/getDefaultValue.js';
87
- export { default as sortableFieldTypes } from '../fields/sortableFieldTypes.js';
88
- export { docAccessOperation as docAccessOperationGlobal } from '../globals/operations/docAccess.js';
89
- export { findOneOperation } from '../globals/operations/findOne.js';
90
- export { findVersionByIDOperation as findVersionByIDOperationGlobal } from '../globals/operations/findVersionByID.js';
91
- export { findVersionsOperation as findVersionsOperationGlobal } from '../globals/operations/findVersions.js';
92
- export { restoreVersionOperation as restoreVersionOperationGlobal } from '../globals/operations/restoreVersion.js';
93
- export { updateOperation as updateOperationGlobal } from '../globals/operations/update.js';
94
- export type { DatabaseAdapter, GeneratedTypes, Payload, RequestContext } from '../index.js';
95
- export * from '../auth/index.js';
96
- export { default as executeAccess } from '../auth/executeAccess.js';
97
- export { executeAuthStrategies } from '../auth/executeAuthStrategies.js';
98
- export { getAccessResults } from '../auth/getAccessResults.js';
99
- export { getFieldsToSign } from '../auth/getFieldsToSign.js';
100
- export { combineQueries } from '../database/combineQueries.js';
101
- export { createDatabaseAdapter } from '../database/createDatabaseAdapter.js';
102
- export { default as flattenWhereToOperators } from '../database/flattenWhereToOperators.js';
103
- export { getLocalizedPaths } from '../database/getLocalizedPaths.js';
104
- export { createMigration } from '../database/migrations/createMigration.js';
105
- export { getMigrations } from '../database/migrations/getMigrations.js';
106
- export { getPredefinedMigration } from '../database/migrations/getPredefinedMigration.js';
107
- export { migrate } from '../database/migrations/migrate.js';
108
- export { migrateDown } from '../database/migrations/migrateDown.js';
109
- export { migrateRefresh } from '../database/migrations/migrateRefresh.js';
110
- export { migrateReset } from '../database/migrations/migrateReset.js';
111
- export { migrateStatus } from '../database/migrations/migrateStatus.js';
112
- export { migrationTemplate } from '../database/migrations/migrationTemplate.js';
113
- export { migrationsCollection } from '../database/migrations/migrationsCollection.js';
114
- export { readMigrationFiles } from '../database/migrations/readMigrationFiles.js';
115
- export { validateQueryPaths } from '../database/queryValidation/validateQueryPaths.js';
116
- export { validateSearchParam } from '../database/queryValidation/validateSearchParams.js';
117
- export { BasePayload, default, getPayload } from '../index.js';
118
- export { getFileByPath } from '../uploads/getFileByPath.js';
119
- export { commitTransaction } from '../utilities/commitTransaction.js';
120
- export { initTransaction } from '../utilities/initTransaction.js';
121
- export { killTransaction } from '../utilities/killTransaction.js';
122
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","s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F,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAA;AAEzF,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA"}
@@ -1,103 +0,0 @@
1
- export * from './../types/index.js';
2
- export { createDataloaderCacheKey, getDataLoader } from '../collections/dataloader.js';
3
- export { buildConfig } from '../config/build.js';
4
- export { APIError, AuthenticationError, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, ValidationError } from '../errors/index.js';
5
- export { traverseFields as afterChangeTraverseFields } from '../fields/hooks/afterChange/traverseFields.js';
6
- export { promise as afterReadPromise } from '../fields/hooks/afterRead/promise.js';
7
- export { traverseFields as afterReadTraverseFields } from '../fields/hooks/afterRead/traverseFields.js';
8
- export { traverseFields as beforeChangeTraverseFields } from '../fields/hooks/beforeChange/traverseFields.js';
9
- export { traverseFields as beforeValidateTraverseFields } from '../fields/hooks/beforeValidate/traverseFields.js';
10
- export { getLocalI18n } from '../translations/getLocalI18n.js';
11
- export { combineMerge } from '../utilities/combineMerge.js';
12
- export { configToJSONSchema, entityToJSONSchema, fieldsToJSONSchema, withNullableJSONSchemaType } from '../utilities/configToJSONSchema.js';
13
- export { createArrayFromCommaDelineated } from '../utilities/createArrayFromCommaDelineated.js';
14
- export { createLocalReq } from '../utilities/createLocalReq.js';
15
- export { default as flattenTopLevelFields } from '../utilities/flattenTopLevelFields.js';
16
- export { formatLabels, formatNames, toWords } from '../utilities/formatLabels.js';
17
- export { getCollectionIDFieldTypes } from '../utilities/getCollectionIDFieldTypes.js';
18
- export { getObjectDotNotation } from '../utilities/getObjectDotNotation.js';
19
- export { isEntityHidden } from '../utilities/isEntityHidden.js';
20
- export { isPlainObject } from '../utilities/isPlainObject.js';
21
- export { isValidID } from '../utilities/isValidID.js';
22
- export { default as isolateObjectProperty } from '../utilities/isolateObjectProperty.js';
23
- export { mapAsync } from '../utilities/mapAsync.js';
24
- export { mergeListSearchAndWhere } from '../utilities/mergeListSearchAndWhere.js';
25
- export { buildVersionCollectionFields } from '../versions/buildCollectionFields.js';
26
- export { buildVersionGlobalFields } from '../versions/buildGlobalFields.js';
27
- export { versionDefaults } from '../versions/defaults.js';
28
- export { deleteCollectionVersions } from '../versions/deleteCollectionVersions.js';
29
- export { enforceMaxVersions } from '../versions/enforceMaxVersions.js';
30
- export { getLatestCollectionVersion } from '../versions/getLatestCollectionVersion.js';
31
- export { getLatestGlobalVersion } from '../versions/getLatestGlobalVersion.js';
32
- export { saveVersion } from '../versions/saveVersion.js';
33
- export * from '../config/types.js';
34
- export { createClientCollectionConfig } from '../collections/config/client.js';
35
- export { createClientConfig } from '../config/client.js';
36
- export { defaults } from '../config/defaults.js';
37
- export { baseBlockFields } from '../fields/baseFields/baseBlockFields.js';
38
- export { baseIDField } from '../fields/baseFields/baseIDField.js';
39
- export { createClientFieldConfig } from '../fields/config/client.js';
40
- export { sanitizeFields } from '../fields/config/sanitize.js';
41
- export { createClientGlobalConfig } from '../globals/config/client.js';
42
- export { accessOperation } from '../auth/operations/access.js';
43
- export { forgotPasswordOperation } from '../auth/operations/forgotPassword.js';
44
- export { initOperation } from '../auth/operations/init.js';
45
- export { loginOperation } from '../auth/operations/login.js';
46
- export { logoutOperation } from '../auth/operations/logout.js';
47
- export { meOperation } from '../auth/operations/me.js';
48
- export { refreshOperation } from '../auth/operations/refresh.js';
49
- export { registerFirstUserOperation } from '../auth/operations/registerFirstUser.js';
50
- export { resetPasswordOperation } from '../auth/operations/resetPassword.js';
51
- export { unlockOperation } from '../auth/operations/unlock.js';
52
- export { verifyEmailOperation } from '../auth/operations/verifyEmail.js';
53
- export { countOperation } from '../collections/operations/count.js';
54
- export { createOperation } from '../collections/operations/create.js';
55
- export { deleteOperation } from '../collections/operations/delete.js';
56
- export { deleteByIDOperation } from '../collections/operations/deleteByID.js';
57
- export { docAccessOperation } from '../collections/operations/docAccess.js';
58
- export { duplicateOperation } from '../collections/operations/duplicate.js';
59
- export { findOperation } from '../collections/operations/find.js';
60
- export { findByIDOperation } from '../collections/operations/findByID.js';
61
- export { findVersionByIDOperation } from '../collections/operations/findVersionByID.js';
62
- export { findVersionsOperation } from '../collections/operations/findVersions.js';
63
- export { restoreVersionOperation } from '../collections/operations/restoreVersion.js';
64
- export { updateOperation } from '../collections/operations/update.js';
65
- export { updateByIDOperation } from '../collections/operations/updateByID.js';
66
- export { sanitizeConfig } from '../config/sanitize.js';
67
- export { default as getDefaultValue } from '../fields/getDefaultValue.js';
68
- export { default as sortableFieldTypes } from '../fields/sortableFieldTypes.js';
69
- export { docAccessOperation as docAccessOperationGlobal } from '../globals/operations/docAccess.js';
70
- export { findOneOperation } from '../globals/operations/findOne.js';
71
- export { findVersionByIDOperation as findVersionByIDOperationGlobal } from '../globals/operations/findVersionByID.js';
72
- export { findVersionsOperation as findVersionsOperationGlobal } from '../globals/operations/findVersions.js';
73
- export { restoreVersionOperation as restoreVersionOperationGlobal } from '../globals/operations/restoreVersion.js';
74
- export { updateOperation as updateOperationGlobal } from '../globals/operations/update.js';
75
- export * from '../auth/index.js';
76
- export { default as executeAccess } from '../auth/executeAccess.js';
77
- export { executeAuthStrategies } from '../auth/executeAuthStrategies.js';
78
- export { getAccessResults } from '../auth/getAccessResults.js';
79
- export { getFieldsToSign } from '../auth/getFieldsToSign.js';
80
- export { combineQueries } from '../database/combineQueries.js';
81
- export { createDatabaseAdapter } from '../database/createDatabaseAdapter.js';
82
- export { default as flattenWhereToOperators } from '../database/flattenWhereToOperators.js';
83
- export { getLocalizedPaths } from '../database/getLocalizedPaths.js';
84
- export { createMigration } from '../database/migrations/createMigration.js';
85
- export { getMigrations } from '../database/migrations/getMigrations.js';
86
- export { getPredefinedMigration } from '../database/migrations/getPredefinedMigration.js';
87
- export { migrate } from '../database/migrations/migrate.js';
88
- export { migrateDown } from '../database/migrations/migrateDown.js';
89
- export { migrateRefresh } from '../database/migrations/migrateRefresh.js';
90
- export { migrateReset } from '../database/migrations/migrateReset.js';
91
- export { migrateStatus } from '../database/migrations/migrateStatus.js';
92
- export { migrationTemplate } from '../database/migrations/migrationTemplate.js';
93
- export { migrationsCollection } from '../database/migrations/migrationsCollection.js';
94
- export { readMigrationFiles } from '../database/migrations/readMigrationFiles.js';
95
- export { validateQueryPaths } from '../database/queryValidation/validateQueryPaths.js';
96
- export { validateSearchParam } from '../database/queryValidation/validateSearchParams.js';
97
- export { BasePayload, default, getPayload } from '../index.js';
98
- export { getFileByPath } from '../uploads/getFileByPath.js';
99
- export { commitTransaction } from '../utilities/commitTransaction.js';
100
- export { initTransaction } from '../utilities/initTransaction.js';
101
- export { killTransaction } from '../utilities/killTransaction.js';
102
-
103
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/exports/index.ts"],"sourcesContent":["export * from './../types/index.js'\nexport type * from '../admin/types.js'\nexport type * from '../uploads/types.js'\n\nexport type { MeOperationResult } from '../auth/operations/me.js'\n\nexport { createDataloaderCacheKey, getDataLoader } from '../collections/dataloader.js'\n\nexport { buildConfig } from '../config/build.js'\n\nexport type { EmailAdapter as PayloadEmailAdapter, SendEmailOptions } from '../email/types.js'\n\nexport {\n APIError,\n AuthenticationError,\n DuplicateCollection,\n DuplicateFieldName,\n DuplicateGlobal,\n ErrorDeletingFile,\n FileRetrievalError,\n FileUploadError,\n Forbidden,\n InvalidConfiguration,\n InvalidFieldName,\n InvalidFieldRelationship,\n LockedAuth,\n MissingCollectionLabel,\n MissingEditorProp,\n MissingFieldInputOptions,\n MissingFieldType,\n MissingFile,\n NotFound,\n QueryError,\n ValidationError,\n} from '../errors/index.js'\nexport { traverseFields as afterChangeTraverseFields } from '../fields/hooks/afterChange/traverseFields.js'\nexport { promise as afterReadPromise } from '../fields/hooks/afterRead/promise.js'\n\nexport { traverseFields as afterReadTraverseFields } from '../fields/hooks/afterRead/traverseFields.js'\n\nexport { traverseFields as beforeChangeTraverseFields } from '../fields/hooks/beforeChange/traverseFields.js'\n\nexport { traverseFields as beforeValidateTraverseFields } from '../fields/hooks/beforeValidate/traverseFields.js'\n\nexport type {\n CollapsedPreferences,\n DocumentPreferences,\n FieldsPreferences,\n InsideFieldsPreferences,\n PreferenceRequest,\n PreferenceUpdateRequest,\n TabsPreferences,\n} from '../preferences/types.js'\nexport { getLocalI18n } from '../translations/getLocalI18n.js'\n\nexport { combineMerge } from '../utilities/combineMerge.js'\nexport {\n configToJSONSchema,\n entityToJSONSchema,\n fieldsToJSONSchema,\n withNullableJSONSchemaType,\n} from '../utilities/configToJSONSchema.js'\nexport { createArrayFromCommaDelineated } from '../utilities/createArrayFromCommaDelineated.js'\nexport { createLocalReq } from '../utilities/createLocalReq.js'\n\nexport { default as flattenTopLevelFields } from '../utilities/flattenTopLevelFields.js'\nexport { formatLabels, formatNames, toWords } from '../utilities/formatLabels.js'\n\nexport { getCollectionIDFieldTypes } from '../utilities/getCollectionIDFieldTypes.js'\nexport { getObjectDotNotation } from '../utilities/getObjectDotNotation.js'\n\nexport { isEntityHidden } from '../utilities/isEntityHidden.js'\n\nexport { isPlainObject } from '../utilities/isPlainObject.js'\n\nexport { isValidID } from '../utilities/isValidID.js'\nexport { default as isolateObjectProperty } from '../utilities/isolateObjectProperty.js'\n\nexport { mapAsync } from '../utilities/mapAsync.js'\n\nexport { mergeListSearchAndWhere } from '../utilities/mergeListSearchAndWhere.js'\n\nexport { buildVersionCollectionFields } from '../versions/buildCollectionFields.js'\nexport { buildVersionGlobalFields } from '../versions/buildGlobalFields.js'\nexport { versionDefaults } from '../versions/defaults.js'\nexport { deleteCollectionVersions } from '../versions/deleteCollectionVersions.js'\nexport { enforceMaxVersions } from '../versions/enforceMaxVersions.js'\nexport { getLatestCollectionVersion } from '../versions/getLatestCollectionVersion.js'\nexport { getLatestGlobalVersion } from '../versions/getLatestGlobalVersion.js'\n\nexport { saveVersion } from '../versions/saveVersion.js'\nexport type { TypeWithVersion } from '../versions/types.js'\nexport type { ClientCollectionConfig } from './../collections/config/client.js'\nexport type {\n AfterChangeHook as CollectionAfterChangeHook,\n AfterDeleteHook as CollectionAfterDeleteHook,\n AfterErrorHook as CollectionAfterErrorHook,\n AfterForgotPasswordHook as CollectionAfterForgotPasswordHook,\n AfterLoginHook as CollectionAfterLoginHook,\n AfterOperationHook as CollectionAfterOperationHook,\n AfterReadHook as CollectionAfterReadHook,\n BeforeChangeHook as CollectionBeforeChangeHook,\n BeforeDeleteHook as CollectionBeforeDeleteHook,\n BeforeLoginHook as CollectionBeforeLoginHook,\n BeforeOperationHook as CollectionBeforeOperationHook,\n BeforeReadHook as CollectionBeforeReadHook,\n BeforeValidateHook as CollectionBeforeValidateHook,\n Collection,\n CollectionConfig,\n SanitizedCollectionConfig,\n TypeWithID,\n TypeWithTimestamps,\n} from './../collections/config/types.js'\nexport type { ClientConfig } from './../config/client.js'\nexport type {\n Access,\n AccessArgs,\n EditViewComponent,\n EntityDescription,\n EntityDescriptionComponent,\n EntityDescriptionFunction,\n SanitizedConfig,\n} from './../config/types.js'\nexport type { ClientFieldConfig } from './../fields/config/client.js'\nexport type {\n ArrayField,\n Block,\n BlockField,\n CheckboxField,\n ClientValidate,\n CodeField,\n CollapsibleField,\n Condition,\n DateField,\n EmailField,\n Field,\n FieldAccess,\n FieldAffectingData,\n FieldBase,\n FieldHook,\n FieldHookArgs,\n FieldPresentationalOnly,\n FieldWithMany,\n FieldWithMaxDepth,\n FieldWithPath,\n FieldWithSubFields,\n FilterOptions,\n FilterOptionsProps,\n GroupField,\n HookName,\n JSONField,\n Labels,\n NamedTab,\n NonPresentationalField,\n NumberField,\n Option,\n OptionObject,\n PointField,\n PolymorphicRelationshipField,\n RadioField,\n RelationshipField,\n RelationshipValue,\n RichTextField,\n RowAdmin,\n RowField,\n SelectField,\n SingleRelationshipField,\n Tab,\n TabAsField,\n TabsAdmin,\n TabsField,\n TextField,\n TextareaField,\n UIField,\n UnnamedTab,\n UploadField,\n Validate,\n ValidateOptions,\n ValueWithRelation,\n} from './../fields/config/types.js'\n\nexport type { ClientGlobalConfig } from './../globals/config/client.js'\nexport type {\n AfterChangeHook as GlobalAfterChangeHook,\n AfterReadHook as GlobalAfterReadHook,\n BeforeChangeHook as GlobalBeforeChangeHook,\n BeforeReadHook as GlobalBeforeReadHook,\n BeforeValidateHook as GlobalBeforeValidateHook,\n GlobalConfig,\n SanitizedGlobalConfig,\n} from './../globals/config/types.js'\nexport * from '../config/types.js'\n\nexport type { FieldTypes } from '../admin/forms/FieldTypes.js'\nexport type {\n AuthStrategyFunction,\n AuthStrategyFunctionArgs,\n CollectionPermission,\n DocumentPermissions,\n FieldPermissions,\n GlobalPermission,\n IncomingAuthType,\n Permission,\n Permissions,\n User,\n VerifyConfig,\n} from '../auth/types.js'\nexport { createClientCollectionConfig } from '../collections/config/client.js'\nexport { createClientConfig } from '../config/client.js'\n\nexport { defaults } from '../config/defaults.js'\nexport type {\n BaseDatabaseAdapter,\n BeginTransaction,\n CommitTransaction,\n Connect,\n Count,\n CountArgs,\n Create,\n CreateArgs,\n CreateGlobal,\n CreateGlobalArgs,\n CreateGlobalVersion,\n CreateGlobalVersionArgs,\n CreateMigration,\n CreateVersion,\n CreateVersionArgs,\n DBIdentifierName,\n DatabaseAdapterResult as DatabaseAdapterObj,\n DeleteMany,\n DeleteManyArgs,\n DeleteOne,\n DeleteOneArgs,\n DeleteVersions,\n DeleteVersionsArgs,\n Destroy,\n Find,\n FindArgs,\n FindGlobal,\n FindGlobalArgs,\n FindGlobalVersions,\n FindGlobalVersionsArgs,\n FindOne,\n FindOneArgs,\n FindVersions,\n FindVersionsArgs,\n Init,\n Migration,\n MigrationData,\n MigrationTemplateArgs,\n PaginatedDocs,\n QueryDrafts,\n QueryDraftsArgs,\n RollbackTransaction,\n Transaction,\n UpdateGlobal,\n UpdateGlobalArgs,\n UpdateGlobalVersion,\n UpdateGlobalVersionArgs,\n UpdateOne,\n UpdateOneArgs,\n UpdateVersion,\n UpdateVersionArgs,\n} from '../database/types.js'\nexport { baseBlockFields } from '../fields/baseFields/baseBlockFields.js'\nexport { baseIDField } from '../fields/baseFields/baseIDField.js'\nexport { createClientFieldConfig } from '../fields/config/client.js'\nexport { sanitizeFields } from '../fields/config/sanitize.js'\n\nexport { createClientGlobalConfig } from '../globals/config/client.js'\n\nexport type * from '../database/queryValidation/types.js'\n\nexport { accessOperation } from '../auth/operations/access.js'\nexport { forgotPasswordOperation } from '../auth/operations/forgotPassword.js'\nexport { initOperation } from '../auth/operations/init.js'\nexport { loginOperation } from '../auth/operations/login.js'\n\nexport { logoutOperation } from '../auth/operations/logout.js'\nexport { meOperation } from '../auth/operations/me.js'\nexport { refreshOperation } from '../auth/operations/refresh.js'\nexport { registerFirstUserOperation } from '../auth/operations/registerFirstUser.js'\nexport { resetPasswordOperation } from '../auth/operations/resetPassword.js'\nexport { unlockOperation } from '../auth/operations/unlock.js'\nexport { verifyEmailOperation } from '../auth/operations/verifyEmail.js'\nexport { countOperation } from '../collections/operations/count.js'\nexport { createOperation } from '../collections/operations/create.js'\nexport { deleteOperation } from '../collections/operations/delete.js'\nexport { deleteByIDOperation } from '../collections/operations/deleteByID.js'\nexport { docAccessOperation } from '../collections/operations/docAccess.js'\n\nexport { duplicateOperation } from '../collections/operations/duplicate.js'\nexport { findOperation } from '../collections/operations/find.js'\nexport { findByIDOperation } from '../collections/operations/findByID.js'\nexport { findVersionByIDOperation } from '../collections/operations/findVersionByID.js'\nexport { findVersionsOperation } from '../collections/operations/findVersions.js'\nexport { restoreVersionOperation } from '../collections/operations/restoreVersion.js'\nexport { updateOperation } from '../collections/operations/update.js'\nexport { updateByIDOperation } from '../collections/operations/updateByID.js'\nexport { sanitizeConfig } from '../config/sanitize.js'\nexport type { EntityPolicies, PathToQuery } from '../database/queryValidation/types.js'\nexport { default as getDefaultValue } from '../fields/getDefaultValue.js'\nexport { default as sortableFieldTypes } from '../fields/sortableFieldTypes.js'\n\nexport { docAccessOperation as docAccessOperationGlobal } from '../globals/operations/docAccess.js'\nexport { findOneOperation } from '../globals/operations/findOne.js'\nexport { findVersionByIDOperation as findVersionByIDOperationGlobal } from '../globals/operations/findVersionByID.js'\nexport { findVersionsOperation as findVersionsOperationGlobal } from '../globals/operations/findVersions.js'\nexport { restoreVersionOperation as restoreVersionOperationGlobal } from '../globals/operations/restoreVersion.js'\nexport { updateOperation as updateOperationGlobal } from '../globals/operations/update.js'\nexport type { DatabaseAdapter, GeneratedTypes, Payload, RequestContext } from '../index.js'\n\nexport * from '../auth/index.js'\nexport { default as executeAccess } from '../auth/executeAccess.js'\nexport { executeAuthStrategies } from '../auth/executeAuthStrategies.js'\nexport { getAccessResults } from '../auth/getAccessResults.js'\nexport { getFieldsToSign } from '../auth/getFieldsToSign.js'\nexport { combineQueries } from '../database/combineQueries.js'\n\nexport { createDatabaseAdapter } from '../database/createDatabaseAdapter.js'\n\nexport { default as flattenWhereToOperators } from '../database/flattenWhereToOperators.js'\n\nexport { getLocalizedPaths } from '../database/getLocalizedPaths.js'\n\nexport { createMigration } from '../database/migrations/createMigration.js'\n\nexport { getMigrations } from '../database/migrations/getMigrations.js'\n\nexport { getPredefinedMigration } from '../database/migrations/getPredefinedMigration.js'\n\nexport { migrate } from '../database/migrations/migrate.js'\n\nexport { migrateDown } from '../database/migrations/migrateDown.js'\n\nexport { migrateRefresh } from '../database/migrations/migrateRefresh.js'\n\nexport { migrateReset } from '../database/migrations/migrateReset.js'\n\nexport { migrateStatus } from '../database/migrations/migrateStatus.js'\n\nexport { migrationTemplate } from '../database/migrations/migrationTemplate.js'\n\nexport { migrationsCollection } from '../database/migrations/migrationsCollection.js'\n\nexport { readMigrationFiles } from '../database/migrations/readMigrationFiles.js'\n\nexport { validateQueryPaths } from '../database/queryValidation/validateQueryPaths.js'\n\nexport { validateSearchParam } from '../database/queryValidation/validateSearchParams.js'\n\nexport { BasePayload, default, getPayload } from '../index.js'\nexport { getFileByPath } from '../uploads/getFileByPath.js'\n\nexport { commitTransaction } from '../utilities/commitTransaction.js'\n\nexport { initTransaction } from '../utilities/initTransaction.js'\n\nexport { killTransaction } from '../utilities/killTransaction.js'\n"],"names":["createDataloaderCacheKey","getDataLoader","buildConfig","APIError","AuthenticationError","DuplicateCollection","DuplicateFieldName","DuplicateGlobal","ErrorDeletingFile","FileRetrievalError","FileUploadError","Forbidden","InvalidConfiguration","InvalidFieldName","InvalidFieldRelationship","LockedAuth","MissingCollectionLabel","MissingEditorProp","MissingFieldInputOptions","MissingFieldType","MissingFile","NotFound","QueryError","ValidationError","traverseFields","afterChangeTraverseFields","promise","afterReadPromise","afterReadTraverseFields","beforeChangeTraverseFields","beforeValidateTraverseFields","getLocalI18n","combineMerge","configToJSONSchema","entityToJSONSchema","fieldsToJSONSchema","withNullableJSONSchemaType","createArrayFromCommaDelineated","createLocalReq","default","flattenTopLevelFields","formatLabels","formatNames","toWords","getCollectionIDFieldTypes","getObjectDotNotation","isEntityHidden","isPlainObject","isValidID","isolateObjectProperty","mapAsync","mergeListSearchAndWhere","buildVersionCollectionFields","buildVersionGlobalFields","versionDefaults","deleteCollectionVersions","enforceMaxVersions","getLatestCollectionVersion","getLatestGlobalVersion","saveVersion","createClientCollectionConfig","createClientConfig","defaults","baseBlockFields","baseIDField","createClientFieldConfig","sanitizeFields","createClientGlobalConfig","accessOperation","forgotPasswordOperation","initOperation","loginOperation","logoutOperation","meOperation","refreshOperation","registerFirstUserOperation","resetPasswordOperation","unlockOperation","verifyEmailOperation","countOperation","createOperation","deleteOperation","deleteByIDOperation","docAccessOperation","duplicateOperation","findOperation","findByIDOperation","findVersionByIDOperation","findVersionsOperation","restoreVersionOperation","updateOperation","updateByIDOperation","sanitizeConfig","getDefaultValue","sortableFieldTypes","docAccessOperationGlobal","findOneOperation","findVersionByIDOperationGlobal","findVersionsOperationGlobal","restoreVersionOperationGlobal","updateOperationGlobal","executeAccess","executeAuthStrategies","getAccessResults","getFieldsToSign","combineQueries","createDatabaseAdapter","flattenWhereToOperators","getLocalizedPaths","createMigration","getMigrations","getPredefinedMigration","migrate","migrateDown","migrateRefresh","migrateReset","migrateStatus","migrationTemplate","migrationsCollection","readMigrationFiles","validateQueryPaths","validateSearchParam","BasePayload","getPayload","getFileByPath","commitTransaction","initTransaction","killTransaction"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,cAAc,sBAAqB;AAMnC,SAASA,wBAAwB,EAAEC,aAAa,QAAQ,+BAA8B;AAEtF,SAASC,WAAW,QAAQ,qBAAoB;AAIhD,SACEC,QAAQ,EACRC,mBAAmB,EACnBC,mBAAmB,EACnBC,kBAAkB,EAClBC,eAAe,EACfC,iBAAiB,EACjBC,kBAAkB,EAClBC,eAAe,EACfC,SAAS,EACTC,oBAAoB,EACpBC,gBAAgB,EAChBC,wBAAwB,EACxBC,UAAU,EACVC,sBAAsB,EACtBC,iBAAiB,EACjBC,wBAAwB,EACxBC,gBAAgB,EAChBC,WAAW,EACXC,QAAQ,EACRC,UAAU,EACVC,eAAe,QACV,qBAAoB;AAC3B,SAASC,kBAAkBC,yBAAyB,QAAQ,gDAA+C;AAC3G,SAASC,WAAWC,gBAAgB,QAAQ,uCAAsC;AAElF,SAASH,kBAAkBI,uBAAuB,QAAQ,8CAA6C;AAEvG,SAASJ,kBAAkBK,0BAA0B,QAAQ,iDAAgD;A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