@baseplate-dev/plugin-auth 0.6.14 → 0.6.16
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 +42 -0
- package/dist/auth/core/components/auth-definition-editor.js +3 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.js +2 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -14
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -14
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -14
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -14
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +9 -2
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +6 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +16 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +8 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +8 -1
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +5 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js +4 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/templates/src/prisma/seed-initial-user.ts +3 -2
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +7 -14
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +42 -84
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +7 -14
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +70 -140
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +14 -28
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +7 -14
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +7 -14
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +7 -14
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -14
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -14
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -14
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -14
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +6 -3
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +6 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +8 -5
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +8 -8
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +10 -2
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +27 -3
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +9 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +20 -3
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +18 -16
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +18 -16
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +6 -6
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +6 -6
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +7 -14
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +42 -84
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +7 -14
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +63 -126
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +14 -28
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +7 -14
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +14 -28
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +7 -14
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +4 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +2 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +3 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.js +3 -1
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-3sV-KVGF.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-04_7KkB1.js} +15 -15
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js} +5 -4
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-QrOyqu9V.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js} +1 -1
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-BTSgZGcl.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js} +10053 -3750
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CJ027_El.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js} +3823 -2545
- package/dist/web/assets/arduino-BP2nYunF.js +21 -0
- package/dist/web/assets/auth-8qJtXAgU.js +1 -0
- package/dist/web/assets/bash-Zh_IyzBN.js +192 -0
- package/dist/web/assets/basic-3mvohyEL.js +28 -0
- package/dist/web/assets/c-C7Ey31hW.js +74 -0
- package/dist/web/assets/clike-D9YNFwtw.js +41 -0
- package/dist/web/assets/{common-Aq-HXybV.js → common-23-wvKrM.js} +5 -5
- package/dist/web/assets/{common-7-ZtKO5B.js → common-B-NI9TR-.js} +2 -2
- package/dist/web/assets/{common-CDrUdhRf.js → common-BBriDRRy.js} +3 -3
- package/dist/web/assets/{common-BPbNs2A1.js → common-BvU-7KsV.js} +5 -5
- package/dist/web/assets/{common-B_XZ3l9w.js → common-DBBUvtGu.js} +2 -2
- package/dist/web/assets/{common-B8N9gx2s.js → common-eFh2vwGb.js} +3 -3
- package/dist/web/assets/cpp-_RjA_yNA.js +82 -0
- package/dist/web/assets/csharp-0LZzOc6Q.js +301 -0
- package/dist/web/assets/css-D7TbgetL.js +70 -0
- package/dist/web/assets/diff-CtSa_15w.js +54 -0
- package/dist/web/assets/{dist-D3CkiDKT.js → dist-BjxypexQ.js} +1672 -992
- package/dist/web/assets/{get-auth-plugin-definition-D3ocnNxw.js → get-auth-plugin-definition-x8oAsN1R.js} +2 -2
- package/dist/web/assets/go-CzER04EZ.js +36 -0
- package/dist/web/assets/{hostInit-D3RxwboF.js → hostInit-Bay0Y9UX.js} +1 -1
- package/dist/web/assets/{index-CozZxQl1.js → index-qso1IsKy.js} +2 -2
- package/dist/web/assets/ini-CU-wHLTy.js +51 -0
- package/dist/web/assets/java-HAvRESj1.js +116 -0
- package/dist/web/assets/javascript-BVAr0eZH.js +124 -0
- package/dist/web/assets/json-DN8T4yFI.js +38 -0
- package/dist/web/assets/kotlin-DkCMjTKK.js +83 -0
- package/dist/web/assets/less-ZXX1tgaG.js +42 -0
- package/dist/web/assets/lua-D9bD4wrb.js +28 -0
- package/dist/web/assets/makefile-CKoRpler.js +40 -0
- package/dist/web/assets/markdown-_2_uVr2L.js +278 -0
- package/dist/web/assets/markup-BVZ8HhdW.js +176 -0
- package/dist/web/assets/markup-templating-BDIRuVJH.js +94 -0
- package/dist/web/assets/{mf-entry-bootstrap-0-069a3ab2.js → mf-entry-bootstrap-0-659c976f.js} +2 -2
- package/dist/web/assets/{model-utils-CYaLYwoX.js → model-utils-dNFTOjqi.js} +305 -27
- package/dist/web/assets/{models-BX4xFiEn.js → models-BpslIbU7.js} +2 -2
- package/dist/web/assets/{models-k-iaCft-.js → models-CKab4MTC.js} +2 -2
- package/dist/web/assets/objectivec-DPgB68It.js +25 -0
- package/dist/web/assets/perl-Cul_ma_h.js +92 -0
- package/dist/web/assets/php-JTON0zp9.js +298 -0
- package/dist/web/assets/{plugin-definition-CI1aEVGv.js → plugin-definition-8Exesd6T.js} +2 -2
- package/dist/web/assets/{plugin-definition-BI565qFo.js → plugin-definition-ChBrbazJ.js} +2 -2
- package/dist/web/assets/python-CURlmZ7M.js +73 -0
- package/dist/web/assets/r-8lr7pbGm.js +30 -0
- package/dist/web/assets/regex-CxQ7DXCx.js +96 -0
- package/dist/web/assets/ruby-BoFHz67P.js +175 -0
- package/dist/web/assets/rust-CpZXpaj0.js +107 -0
- package/dist/web/assets/sass-DG0YAnL7.js +65 -0
- package/dist/web/assets/scss-BDRIqhak.js +70 -0
- package/dist/web/assets/sql-C-bL8_gT.js +40 -0
- package/dist/web/assets/{styles-f4jHVv0S.js → styles-Cuq4wgvD.js} +7 -7
- package/dist/web/assets/swift-rQ52kfab.js +107 -0
- package/dist/web/assets/typescript-CDkIWcT8.js +57 -0
- package/dist/web/assets/vbnet-_PL7-T9d.js +32 -0
- package/dist/web/assets/{virtualExposes-BHQhgLE-.js → virtualExposes-BwIds34r.js} +1 -1
- package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-aH8n-Nbe.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BBt5f0I7.js} +3 -3
- package/dist/web/assets/{virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-I_SxfvGj.js → virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js} +13 -13
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-BQ0UMKSv.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js} +13 -13
- package/dist/web/assets/{web-DCK_tLVa.js → web-BZd3bM0n.js} +6 -6
- package/dist/web/assets/{web-CkbTu31Q.js → web-BgWG7dYl.js} +10 -10
- package/dist/web/assets/{web-Dh6pUTrF.js → web-CXHw8SK7.js} +13 -13
- package/dist/web/assets/{web-Cn3uvuFs.js → web-CnB-sqCR.js} +20 -18
- package/dist/web/assets/{web-BRvS0HRS.js → web-DHv2aVpi.js} +10 -10
- package/dist/web/assets/{web-YXVJWeXy.js → web-DNrWXjpS.js} +3 -3
- package/dist/web/assets/{web-nLSlkJy_.js → web-D_H-MoGI.js} +3 -3
- package/dist/web/assets/workerBundle-GFUata9j.js +10 -0
- package/dist/web/assets/yaml-C9m3vuV5.js +90 -0
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +1 -1
- package/dist/web/remoteEntry.ssr.js +1 -1
- package/package.json +18 -17
- package/dist/web/assets/auth-D8BnFQKk.js +0 -1
|
@@ -34,14 +34,61 @@ function createPluginSpec(name, options) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
38
|
-
function
|
|
39
|
-
if (
|
|
40
|
-
if (
|
|
37
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/_internal/compareValues.mjs
|
|
38
|
+
function nullishRank(value) {
|
|
39
|
+
if (value === null) return 1;
|
|
40
|
+
if (value === void 0) return 2;
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
function compareAscending(a, b) {
|
|
44
|
+
const aRank = nullishRank(a);
|
|
45
|
+
const bRank = nullishRank(b);
|
|
46
|
+
if (aRank < bRank) return -1;
|
|
47
|
+
if (aRank > bRank) return 1;
|
|
48
|
+
if (aRank !== 0) return 0;
|
|
49
|
+
if (a < b) return -1;
|
|
50
|
+
if (a > b) return 1;
|
|
41
51
|
return 0;
|
|
42
52
|
}
|
|
53
|
+
function compareValues(a, b, order) {
|
|
54
|
+
return order === "asc" ? compareAscending(a, b) : compareAscending(b, a);
|
|
55
|
+
}
|
|
43
56
|
//#endregion
|
|
44
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
57
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/array/orderBy.mjs
|
|
58
|
+
/**
|
|
59
|
+
* Sorts an array of objects based on the given `criteria` and their corresponding order directions.
|
|
60
|
+
*
|
|
61
|
+
* - If you provide keys, it sorts the objects by the values of those keys.
|
|
62
|
+
* - If you provide functions, it sorts based on the values returned by those functions.
|
|
63
|
+
*
|
|
64
|
+
* The function returns the array of objects sorted in corresponding order directions.
|
|
65
|
+
* If two objects have the same value for the current criterion, it uses the next criterion to determine their order.
|
|
66
|
+
* If the number of orders is less than the number of criteria, it uses the last order for the rest of the criteria.
|
|
67
|
+
*
|
|
68
|
+
* @template T - The type of elements in the array.
|
|
69
|
+
* @param arr - The array of objects to be sorted.
|
|
70
|
+
* @param criteria - The criteria for sorting. This can be an array of object keys or functions that return values used for sorting.
|
|
71
|
+
* @param orders - An array of order directions ('asc' for ascending or 'desc' for descending).
|
|
72
|
+
* @returns The sorted array.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* // Sort an array of objects by 'user' in ascending order and 'age' in descending order.
|
|
76
|
+
* const users = [
|
|
77
|
+
* { user: 'fred', age: 48 },
|
|
78
|
+
* { user: 'barney', age: 34 },
|
|
79
|
+
* { user: 'fred', age: 40 },
|
|
80
|
+
* { user: 'barney', age: 36 },
|
|
81
|
+
* ];
|
|
82
|
+
*
|
|
83
|
+
* const result = orderBy(users, [obj => obj.user, 'age'], ['asc', 'desc']);
|
|
84
|
+
* // result will be:
|
|
85
|
+
* // [
|
|
86
|
+
* // { user: 'barney', age: 36 },
|
|
87
|
+
* // { user: 'barney', age: 34 },
|
|
88
|
+
* // { user: 'fred', age: 48 },
|
|
89
|
+
* // { user: 'fred', age: 40 },
|
|
90
|
+
* // ]
|
|
91
|
+
*/
|
|
45
92
|
function orderBy(arr, criteria, orders) {
|
|
46
93
|
return arr.slice().sort((a, b) => {
|
|
47
94
|
const ordersLength = orders.length;
|
|
@@ -56,26 +103,102 @@ function orderBy(arr, criteria, orders) {
|
|
|
56
103
|
});
|
|
57
104
|
}
|
|
58
105
|
//#endregion
|
|
59
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
106
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/array/sortBy.mjs
|
|
107
|
+
/**
|
|
108
|
+
* Sorts an array of objects based on the given `criteria`.
|
|
109
|
+
*
|
|
110
|
+
* - If you provide keys, it sorts the objects by the values of those keys.
|
|
111
|
+
* - If you provide functions, it sorts based on the values returned by those functions.
|
|
112
|
+
*
|
|
113
|
+
* The function returns the array of objects sorted in ascending order.
|
|
114
|
+
* If two objects have the same value for the current criterion, it uses the next criterion to determine their order.
|
|
115
|
+
*
|
|
116
|
+
* @template T - The type of the objects in the array.
|
|
117
|
+
* @param arr - The array of objects to be sorted.
|
|
118
|
+
* @param criteria - The criteria for sorting. This can be an array of object keys or functions that return values used for sorting.
|
|
119
|
+
* @returns The sorted array.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* const users = [
|
|
123
|
+
* { user: 'foo', age: 24 },
|
|
124
|
+
* { user: 'bar', age: 7 },
|
|
125
|
+
* { user: 'foo', age: 8 },
|
|
126
|
+
* { user: 'bar', age: 29 },
|
|
127
|
+
* ];
|
|
128
|
+
*
|
|
129
|
+
* sortBy(users, ['user', 'age']);
|
|
130
|
+
* sortBy(users, [obj => obj.user, 'age']);
|
|
131
|
+
* // results will be:
|
|
132
|
+
* // [
|
|
133
|
+
* // { user : 'bar', age: 7 },
|
|
134
|
+
* // { user : 'bar', age: 29 },
|
|
135
|
+
* // { user : 'foo', age: 8 },
|
|
136
|
+
* // { user : 'foo', age: 24 },
|
|
137
|
+
* // ]
|
|
138
|
+
*/
|
|
60
139
|
function sortBy(arr, criteria) {
|
|
61
140
|
return orderBy(arr, criteria, ["asc"]);
|
|
62
141
|
}
|
|
63
142
|
//#endregion
|
|
64
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
143
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/_internal/globalThis.mjs
|
|
144
|
+
var globalThis_ = typeof globalThis === "object" && globalThis || typeof window === "object" && window || typeof self === "object" && self || typeof global === "object" && global || (function() {
|
|
145
|
+
return this;
|
|
146
|
+
})();
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/function/noop.mjs
|
|
149
|
+
/**
|
|
150
|
+
* A no-operation function that does nothing.
|
|
151
|
+
* This can be used as a placeholder or default function.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* noop(); // Does nothing
|
|
155
|
+
*
|
|
156
|
+
* @returns This function does not return anything.
|
|
157
|
+
*/
|
|
65
158
|
function noop() {}
|
|
66
159
|
//#endregion
|
|
67
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
160
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/predicate/isBuffer.mjs
|
|
161
|
+
/**
|
|
162
|
+
* Checks if the given value is a Buffer instance.
|
|
163
|
+
*
|
|
164
|
+
* This function tests whether the provided value is an instance of Buffer.
|
|
165
|
+
* It returns `true` if the value is a Buffer, and `false` otherwise.
|
|
166
|
+
*
|
|
167
|
+
* This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
|
|
168
|
+
*
|
|
169
|
+
* @param x - The value to check if it is a Buffer.
|
|
170
|
+
* @returns Returns `true` if `x` is a Buffer, else `false`.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* const buffer = Buffer.from("test");
|
|
174
|
+
* console.log(isBuffer(buffer)); // true
|
|
175
|
+
*
|
|
176
|
+
* const notBuffer = "not a buffer";
|
|
177
|
+
* console.log(isBuffer(notBuffer)); // false
|
|
178
|
+
*/
|
|
179
|
+
function isBuffer(x) {
|
|
180
|
+
return typeof globalThis_.Buffer !== "undefined" && globalThis_.Buffer.isBuffer(x);
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
68
184
|
function getSymbols(object) {
|
|
69
185
|
return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
|
|
70
186
|
}
|
|
71
187
|
//#endregion
|
|
72
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
188
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
189
|
+
/**
|
|
190
|
+
* Gets the `toStringTag` of `value`.
|
|
191
|
+
*
|
|
192
|
+
* @private
|
|
193
|
+
* @param {T} value The value to query.
|
|
194
|
+
* @returns {string} Returns the `Object.prototype.toString.call` result.
|
|
195
|
+
*/
|
|
73
196
|
function getTag(value) {
|
|
74
197
|
if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
|
|
75
198
|
return Object.prototype.toString.call(value);
|
|
76
199
|
}
|
|
77
200
|
//#endregion
|
|
78
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
201
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
79
202
|
var regexpTag = "[object RegExp]";
|
|
80
203
|
var stringTag = "[object String]";
|
|
81
204
|
var numberTag = "[object Number]";
|
|
@@ -103,7 +226,49 @@ var bigInt64ArrayTag = "[object BigInt64Array]";
|
|
|
103
226
|
var float32ArrayTag = "[object Float32Array]";
|
|
104
227
|
var float64ArrayTag = "[object Float64Array]";
|
|
105
228
|
//#endregion
|
|
106
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
229
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
230
|
+
/**
|
|
231
|
+
* Checks if a given value is a plain object.
|
|
232
|
+
*
|
|
233
|
+
* @param value - The value to check.
|
|
234
|
+
* @returns True if the value is a plain object, otherwise false.
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* ```typescript
|
|
238
|
+
* // ✅👇 True
|
|
239
|
+
*
|
|
240
|
+
* isPlainObject({ }); // ✅
|
|
241
|
+
* isPlainObject({ key: 'value' }); // ✅
|
|
242
|
+
* isPlainObject({ key: new Date() }); // ✅
|
|
243
|
+
* isPlainObject(new Object()); // ✅
|
|
244
|
+
* isPlainObject(Object.create(null)); // ✅
|
|
245
|
+
* isPlainObject({ nested: { key: true} }); // ✅
|
|
246
|
+
* isPlainObject(new Proxy({}, {})); // ✅
|
|
247
|
+
* isPlainObject({ [Symbol('tag')]: 'A' }); // ✅
|
|
248
|
+
*
|
|
249
|
+
* // ✅👇 (cross-realms, node context, workers, ...)
|
|
250
|
+
* const runInNewContext = await import('node:vm').then(
|
|
251
|
+
* (mod) => mod.runInNewContext
|
|
252
|
+
* );
|
|
253
|
+
* isPlainObject(runInNewContext('({})')); // ✅
|
|
254
|
+
*
|
|
255
|
+
* // ❌👇 False
|
|
256
|
+
*
|
|
257
|
+
* class Test { };
|
|
258
|
+
* isPlainObject(new Test()) // ❌
|
|
259
|
+
* isPlainObject(10); // ❌
|
|
260
|
+
* isPlainObject(null); // ❌
|
|
261
|
+
* isPlainObject('hello'); // ❌
|
|
262
|
+
* isPlainObject([]); // ❌
|
|
263
|
+
* isPlainObject(new Date()); // ❌
|
|
264
|
+
* isPlainObject(new Uint8Array([1])); // ❌
|
|
265
|
+
* isPlainObject(Buffer.from('ABC')); // ❌
|
|
266
|
+
* isPlainObject(Promise.resolve({})); // ❌
|
|
267
|
+
* isPlainObject(Object.create({})); // ❌
|
|
268
|
+
* isPlainObject(new (class Cls {})); // ❌
|
|
269
|
+
* isPlainObject(globalThis); // ❌,
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
107
272
|
function isPlainObject(value) {
|
|
108
273
|
if (!value || typeof value !== "object") return false;
|
|
109
274
|
const proto = Object.getPrototypeOf(value);
|
|
@@ -111,12 +276,60 @@ function isPlainObject(value) {
|
|
|
111
276
|
return Object.prototype.toString.call(value) === "[object Object]";
|
|
112
277
|
}
|
|
113
278
|
//#endregion
|
|
114
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
115
|
-
|
|
279
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/compat/util/eq.mjs
|
|
280
|
+
/**
|
|
281
|
+
* Performs a `SameValueZero` comparison between two values to determine if they are equivalent.
|
|
282
|
+
*
|
|
283
|
+
* @param value The value to compare.
|
|
284
|
+
* @param other The other value to compare.
|
|
285
|
+
* @returns Returns `true` if the values are equivalent, else `false`.
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* eq(1, 1); // true
|
|
289
|
+
* eq(0, -0); // true
|
|
290
|
+
* eq(NaN, NaN); // true
|
|
291
|
+
* eq('a', Object('a')); // false
|
|
292
|
+
*/
|
|
293
|
+
function eq(value, other) {
|
|
116
294
|
return value === other || Number.isNaN(value) && Number.isNaN(other);
|
|
117
295
|
}
|
|
118
296
|
//#endregion
|
|
119
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
297
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
|
|
298
|
+
/**
|
|
299
|
+
* Compares two values for equality using a custom comparison function.
|
|
300
|
+
*
|
|
301
|
+
* The custom function allows for fine-tuned control over the comparison process. If it returns a boolean, that result determines the equality. If it returns undefined, the function falls back to the default equality comparison.
|
|
302
|
+
*
|
|
303
|
+
* This function also uses the custom equality function to compare values inside objects,
|
|
304
|
+
* arrays, maps, sets, and other complex structures, ensuring a deep comparison.
|
|
305
|
+
*
|
|
306
|
+
* This approach provides flexibility in handling complex comparisons while maintaining efficient default behavior for simpler cases.
|
|
307
|
+
*
|
|
308
|
+
* The custom comparison function can take up to six parameters:
|
|
309
|
+
* - `x`: The value from the first object `a`.
|
|
310
|
+
* - `y`: The value from the second object `b`.
|
|
311
|
+
* - `property`: The property key used to get `x` and `y`.
|
|
312
|
+
* - `xParent`: The parent of the first value `x`.
|
|
313
|
+
* - `yParent`: The parent of the second value `y`.
|
|
314
|
+
* - `stack`: An internal stack (Map) to handle circular references.
|
|
315
|
+
*
|
|
316
|
+
* @param a - The first value to compare.
|
|
317
|
+
* @param b - The second value to compare.
|
|
318
|
+
* @param areValuesEqual - A function to customize the comparison.
|
|
319
|
+
* If it returns a boolean, that result will be used. If it returns undefined,
|
|
320
|
+
* the default equality comparison will be used.
|
|
321
|
+
* @returns `true` if the values are equal according to the customizer, otherwise `false`.
|
|
322
|
+
*
|
|
323
|
+
* @example
|
|
324
|
+
* const customizer = (a, b) => {
|
|
325
|
+
* if (typeof a === 'string' && typeof b === 'string') {
|
|
326
|
+
* return a.toLowerCase() === b.toLowerCase();
|
|
327
|
+
* }
|
|
328
|
+
* };
|
|
329
|
+
* isEqualWith('Hello', 'hello', customizer); // true
|
|
330
|
+
* isEqualWith({ a: 'Hello' }, { a: 'hello' }, customizer); // true
|
|
331
|
+
* isEqualWith([1, 2, 3], [1, 2, 3], customizer); // true
|
|
332
|
+
*/
|
|
120
333
|
function isEqualWith(a, b, areValuesEqual) {
|
|
121
334
|
return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
|
|
122
335
|
}
|
|
@@ -144,7 +357,7 @@ function areObjectsEqual(a, b, stack, areValuesEqual) {
|
|
|
144
357
|
if (aTag !== bTag) return false;
|
|
145
358
|
switch (aTag) {
|
|
146
359
|
case stringTag: return a.toString() === b.toString();
|
|
147
|
-
case numberTag: return
|
|
360
|
+
case numberTag: return eq(a.valueOf(), b.valueOf());
|
|
148
361
|
case booleanTag:
|
|
149
362
|
case dateTag:
|
|
150
363
|
case symbolTag: return Object.is(a.valueOf(), b.valueOf());
|
|
@@ -189,7 +402,7 @@ function areObjectsEqual(a, b, stack, areValuesEqual) {
|
|
|
189
402
|
case bigInt64ArrayTag:
|
|
190
403
|
case float32ArrayTag:
|
|
191
404
|
case float64ArrayTag:
|
|
192
|
-
if (
|
|
405
|
+
if (isBuffer(a) !== isBuffer(b)) return false;
|
|
193
406
|
if (a.length !== b.length) return false;
|
|
194
407
|
for (let i = 0; i < a.length; i++) if (!isEqualWithImpl(a[i], b[i], i, a, b, stack, areValuesEqual)) return false;
|
|
195
408
|
return true;
|
|
@@ -222,7 +435,21 @@ function areObjectsEqual(a, b, stack, areValuesEqual) {
|
|
|
222
435
|
}
|
|
223
436
|
}
|
|
224
437
|
//#endregion
|
|
225
|
-
//#region ../../node_modules/.pnpm/es-toolkit@1.
|
|
438
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.50.0/node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
439
|
+
/**
|
|
440
|
+
* Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.
|
|
441
|
+
*
|
|
442
|
+
* @param a - The first value to compare.
|
|
443
|
+
* @param b - The second value to compare.
|
|
444
|
+
* @returns `true` if the values are equal, otherwise `false`.
|
|
445
|
+
*
|
|
446
|
+
* @example
|
|
447
|
+
* isEqual(1, 1); // true
|
|
448
|
+
* isEqual({ a: 1 }, { a: 1 }); // true
|
|
449
|
+
* isEqual(/abc/g, /abc/g); // true
|
|
450
|
+
* isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true
|
|
451
|
+
* isEqual([1, 2, 3], [1, 2, 3]); // true
|
|
452
|
+
*/
|
|
226
453
|
function isEqual(a, b) {
|
|
227
454
|
return isEqualWith(a, b, noop);
|
|
228
455
|
}
|
|
@@ -479,24 +706,40 @@ function createFieldMap(schemaBuilder, options) {
|
|
|
479
706
|
...schema,
|
|
480
707
|
getValues: () => {
|
|
481
708
|
const values = {};
|
|
482
|
-
for (const key of Object.
|
|
709
|
+
for (const [key, container] of Object.entries(schema)) values[key] = container.getValue();
|
|
483
710
|
return values;
|
|
484
711
|
}
|
|
485
712
|
};
|
|
486
713
|
}
|
|
487
714
|
//#endregion
|
|
488
|
-
//#region ../../node_modules/.pnpm/nanoid@
|
|
715
|
+
//#region ../../node_modules/.pnpm/nanoid@6.0.0/node_modules/nanoid/index.browser.js
|
|
489
716
|
var random = (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
|
|
490
717
|
var customRandom = (alphabet, defaultSize, getRandom) => {
|
|
491
|
-
let
|
|
492
|
-
|
|
718
|
+
let safeByteCutoff = 256 - 256 % alphabet.length;
|
|
719
|
+
if (safeByteCutoff === 256) {
|
|
720
|
+
let mask = alphabet.length - 1;
|
|
721
|
+
return (size = defaultSize) => {
|
|
722
|
+
if (!size) return "";
|
|
723
|
+
let id = "";
|
|
724
|
+
while (true) {
|
|
725
|
+
let bytes = getRandom(size);
|
|
726
|
+
let j = size;
|
|
727
|
+
while (j--) {
|
|
728
|
+
id += alphabet[bytes[j] & mask];
|
|
729
|
+
if (id.length >= size) return id;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
let step = Math.ceil(1.6 * 256 * defaultSize / safeByteCutoff);
|
|
493
735
|
return (size = defaultSize) => {
|
|
736
|
+
if (!size) return "";
|
|
494
737
|
let id = "";
|
|
495
738
|
while (true) {
|
|
496
739
|
let bytes = getRandom(step);
|
|
497
|
-
let j = step
|
|
498
|
-
while (j--) {
|
|
499
|
-
id += alphabet[bytes[j]
|
|
740
|
+
let j = step;
|
|
741
|
+
while (j--) if (bytes[j] < safeByteCutoff) {
|
|
742
|
+
id += alphabet[bytes[j] % alphabet.length];
|
|
500
743
|
if (id.length >= size) return id;
|
|
501
744
|
}
|
|
502
745
|
}
|
|
@@ -1101,7 +1344,9 @@ var DefinitionEntityType = class {
|
|
|
1101
1344
|
return `${this.prefix}:${key}`;
|
|
1102
1345
|
}
|
|
1103
1346
|
keyFromId(id) {
|
|
1104
|
-
|
|
1347
|
+
const key = id.split(":")[1];
|
|
1348
|
+
if (key === void 0) throw new Error(`Invalid ${this.prefix} id: ${id}`);
|
|
1349
|
+
return key;
|
|
1105
1350
|
}
|
|
1106
1351
|
isId(id) {
|
|
1107
1352
|
return id.startsWith(`${this.prefix}:`);
|
|
@@ -1300,13 +1545,46 @@ function isFieldSafeToFilter(field, query) {
|
|
|
1300
1545
|
const isSubset = (subset, superset) => subset.every((role) => superset.includes(role));
|
|
1301
1546
|
return isSubset(query.globalRoles, field.globalRoles) && isSubset(query.instanceRoles, field.instanceRoles);
|
|
1302
1547
|
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Returns the IDs of models that need an `OrderByInput` GraphQL type because
|
|
1550
|
+
* some *other* model exposes a list relation to them marked `orderable`.
|
|
1551
|
+
*
|
|
1552
|
+
* The `orderable` flag lives on the *referenced* model's foreign relation
|
|
1553
|
+
* entry (e.g. `User.todoLists`), but the input type belongs to the model the
|
|
1554
|
+
* relation is declared on (`TodoList`, whose `owner` relation carries the
|
|
1555
|
+
* matching globally-unique `foreignId`) — that is the model whose rows are
|
|
1556
|
+
* being sorted.
|
|
1557
|
+
*
|
|
1558
|
+
* @param projectDefinition - The project definition.
|
|
1559
|
+
* @returns The set of model IDs requiring an `OrderByInput` type.
|
|
1560
|
+
*/
|
|
1561
|
+
function getModelIdsRequiringOrderByInput(projectDefinition) {
|
|
1562
|
+
const orderableForeignIds = new Set(projectDefinition.models.filter((m) => m.graphql.objectType.enabled).flatMap((m) => m.graphql.objectType.foreignRelations.filter((entry) => entry.orderable).map((entry) => entry.ref)));
|
|
1563
|
+
return new Set(projectDefinition.models.filter((m) => m.model.relations.some((relation) => orderableForeignIds.has(relation.foreignId))).map((m) => m.id));
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Whether the model exposes any root query returning a list of its rows.
|
|
1567
|
+
*
|
|
1568
|
+
* Offset and cursor pagination are independent surfaces, but both read through
|
|
1569
|
+
* the same object type, `where`/`orderBy` inputs, and role checks — so either
|
|
1570
|
+
* one alone requires all of them. Gate shared generation on this rather than on
|
|
1571
|
+
* a single surface's flag.
|
|
1572
|
+
*
|
|
1573
|
+
* @param queries - The model's `graphql.queries` config.
|
|
1574
|
+
* @returns Whether a list-returning root query is enabled.
|
|
1575
|
+
*/
|
|
1576
|
+
function hasListSurface(queries) {
|
|
1577
|
+
return queries.list.enabled || queries.connection.enabled;
|
|
1578
|
+
}
|
|
1303
1579
|
var ModelUtils = {
|
|
1304
1580
|
byId,
|
|
1581
|
+
hasListSurface,
|
|
1305
1582
|
byIdOrThrow,
|
|
1306
1583
|
byName,
|
|
1307
1584
|
byNameOrThrow,
|
|
1308
1585
|
getScalarFieldById,
|
|
1309
1586
|
getRelationsToModel,
|
|
1587
|
+
getModelIdsRequiringOrderByInput,
|
|
1310
1588
|
getModelsForFeature,
|
|
1311
1589
|
getModelIdFields,
|
|
1312
1590
|
hasService,
|
|
@@ -1316,6 +1594,6 @@ var ModelUtils = {
|
|
|
1316
1594
|
isFieldSafeToFilter
|
|
1317
1595
|
};
|
|
1318
1596
|
//#endregion
|
|
1319
|
-
export { getTag as $, isPlainObject as A, int32ArrayTag as B, createPluginFieldMap as C, validationHintRegistry as D, CASE_VALIDATORS as E, dataViewTag as F, regexpTag as G, mapTag as H, dateTag as I, symbolTag as J, setTag as K, float32ArrayTag as L, arrayBufferTag as M, arrayTag as N, isEqual as O, booleanTag as P, uint8ClampedArrayTag as Q, float64ArrayTag as R, createFieldMapSpec as S, runInPluginContext as T, numberTag as U, int8ArrayTag as V, objectTag as W, uint32ArrayTag as X, uint16ArrayTag as Y, uint8ArrayTag as Z, createRefContextSlot as _, featureEntityType as a, expressionParserSpec as b, createEntityType as c, definitionSchemaWithSlots as d, getSymbols as et, withPlaceholderSlots as f, withRef as g, withEnt as h, createFeaturesSchema as i, argumentsTag as j,
|
|
1597
|
+
export { getTag as $, isPlainObject as A, int32ArrayTag as B, createPluginFieldMap as C, validationHintRegistry as D, CASE_VALIDATORS as E, dataViewTag as F, regexpTag as G, mapTag as H, dateTag as I, symbolTag as J, setTag as K, float32ArrayTag as L, arrayBufferTag as M, arrayTag as N, isEqual as O, booleanTag as P, uint8ClampedArrayTag as Q, float64ArrayTag as R, createFieldMapSpec as S, runInPluginContext as T, numberTag as U, int8ArrayTag as V, objectTag as W, uint32ArrayTag as X, uint16ArrayTag as Y, uint8ArrayTag as Z, createRefContextSlot as _, featureEntityType as a, expressionParserSpec as b, createEntityType as c, definitionSchemaWithSlots as d, getSymbols as et, withPlaceholderSlots as f, withRef as g, withEnt as h, createFeaturesSchema as i, argumentsTag as j, eq as k, createDefinitionSchemaParserContext as l, definitionDefaultRegistry as m, FeatureUtils as n, sortBy as nt, featureNameSchema as o, withDefault as p, stringTag as q, createFeatureSchema as r, createPluginSpec as rt, DefinitionEntityType as s, ModelUtils as t, isBuffer as tt, definitionSchema as u, createRefContextSlotMap as v, getPluginContext as w, definitionRefRegistry as x, RefExpressionParser as y, int16ArrayTag as z };
|
|
1320
1598
|
|
|
1321
|
-
//# sourceMappingURL=model-utils-
|
|
1599
|
+
//# sourceMappingURL=model-utils-dNFTOjqi.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
|
|
2
|
-
import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-
|
|
2
|
+
import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js";
|
|
3
3
|
import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
|
|
4
4
|
//#region src/better-auth/core/schema/plugin-definition.ts
|
|
5
5
|
var createBetterAuthPluginDefinitionSchema = __mf_163((ctx) => __mf_0.object({ additionalUserAdminRoles: ctx.withDefault(__mf_0.array(ctx.withRef({
|
|
@@ -301,4 +301,4 @@ function createBetterAuthPartialDefinition(authFeatureName, accountsFeatureName)
|
|
|
301
301
|
//#endregion
|
|
302
302
|
export { createBetterAuthPluginDefinitionSchema as n, createBetterAuthPartialDefinition as t };
|
|
303
303
|
|
|
304
|
-
//# sourceMappingURL=models-
|
|
304
|
+
//# sourceMappingURL=models-BpslIbU7.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
|
|
2
|
-
import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-
|
|
2
|
+
import { i as __mf_163, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js";
|
|
3
3
|
import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
|
|
4
4
|
//#region src/local-auth/core/schema/plugin-definition.ts
|
|
5
5
|
var createLocalAuthPluginDefinitionSchema = __mf_163((ctx) => __mf_0.object({
|
|
@@ -282,4 +282,4 @@ function createLocalAuthPartialDefinition(authFeatureName, accountsFeatureName)
|
|
|
282
282
|
//#endregion
|
|
283
283
|
export { createLocalAuthPluginDefinitionSchema as n, createLocalAuthPartialDefinition as t };
|
|
284
284
|
|
|
285
|
-
//# sourceMappingURL=models-
|
|
285
|
+
//# sourceMappingURL=models-CKab4MTC.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as c } from "./c-C7Ey31hW.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Refractor} from '../lib/core.js'
|
|
5
|
+
*/
|
|
6
|
+
objectivec.displayName = "objectivec";
|
|
7
|
+
objectivec.aliases = ["objc"];
|
|
8
|
+
/** @param {Refractor} Prism */
|
|
9
|
+
function objectivec(Prism) {
|
|
10
|
+
Prism.register(c);
|
|
11
|
+
Prism.languages.objectivec = Prism.languages.extend("c", {
|
|
12
|
+
string: {
|
|
13
|
+
pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
|
|
14
|
+
greedy: true
|
|
15
|
+
},
|
|
16
|
+
keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,
|
|
17
|
+
operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/
|
|
18
|
+
});
|
|
19
|
+
delete Prism.languages.objectivec["class-name"];
|
|
20
|
+
Prism.languages.objc = Prism.languages.objectivec;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { objectivec as default };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=objectivec-DPgB68It.js.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Refractor} from '../lib/core.js'
|
|
4
|
+
*/
|
|
5
|
+
perl.displayName = "perl";
|
|
6
|
+
perl.aliases = [];
|
|
7
|
+
/** @param {Refractor} Prism */
|
|
8
|
+
function perl(Prism) {
|
|
9
|
+
(function(Prism) {
|
|
10
|
+
var brackets = /(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;
|
|
11
|
+
Prism.languages.perl = {
|
|
12
|
+
comment: [{
|
|
13
|
+
pattern: /(^\s*)=\w[\s\S]*?=cut.*/m,
|
|
14
|
+
lookbehind: true,
|
|
15
|
+
greedy: true
|
|
16
|
+
}, {
|
|
17
|
+
pattern: /(^|[^\\$])#.*/,
|
|
18
|
+
lookbehind: true,
|
|
19
|
+
greedy: true
|
|
20
|
+
}],
|
|
21
|
+
string: [
|
|
22
|
+
{
|
|
23
|
+
pattern: RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source + "(?:" + [
|
|
24
|
+
/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
|
|
25
|
+
/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,
|
|
26
|
+
brackets
|
|
27
|
+
].join("|") + ")"),
|
|
28
|
+
greedy: true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
pattern: /("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,
|
|
32
|
+
greedy: true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
pattern: /'(?:[^'\\\r\n]|\\.)*'/,
|
|
36
|
+
greedy: true
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
regex: [
|
|
40
|
+
{
|
|
41
|
+
pattern: RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source + "(?:" + [
|
|
42
|
+
/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
|
|
43
|
+
/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,
|
|
44
|
+
brackets
|
|
45
|
+
].join("|") + ")" + /[msixpodualngc]*/.source),
|
|
46
|
+
greedy: true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
pattern: RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source + "(?:" + [
|
|
50
|
+
/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,
|
|
51
|
+
/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,
|
|
52
|
+
brackets + /\s*/.source + brackets
|
|
53
|
+
].join("|") + ")" + /[msixpodualngcer]*/.source),
|
|
54
|
+
lookbehind: true,
|
|
55
|
+
greedy: true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
pattern: /\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,
|
|
59
|
+
greedy: true
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
variable: [
|
|
63
|
+
/[&*$@%]\{\^[A-Z]+\}/,
|
|
64
|
+
/[&*$@%]\^[A-Z_]/,
|
|
65
|
+
/[&*$@%]#?(?=\{)/,
|
|
66
|
+
/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,
|
|
67
|
+
/[&*$@%]\d+/,
|
|
68
|
+
/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/
|
|
69
|
+
],
|
|
70
|
+
filehandle: {
|
|
71
|
+
pattern: /<(?![<=])\S*?>|\b_\b/,
|
|
72
|
+
alias: "symbol"
|
|
73
|
+
},
|
|
74
|
+
"v-string": {
|
|
75
|
+
pattern: /v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,
|
|
76
|
+
alias: "string"
|
|
77
|
+
},
|
|
78
|
+
function: {
|
|
79
|
+
pattern: /(\bsub[ \t]+)\w+/,
|
|
80
|
+
lookbehind: true
|
|
81
|
+
},
|
|
82
|
+
keyword: /\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,
|
|
83
|
+
number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,
|
|
84
|
+
operator: /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,
|
|
85
|
+
punctuation: /[{}[\];(),:]/
|
|
86
|
+
};
|
|
87
|
+
})(Prism);
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
export { perl as default };
|
|
91
|
+
|
|
92
|
+
//# sourceMappingURL=perl-Cul_ma_h.js.map
|