@onderwijsin/nuxt-turnstile 0.2.6 → 0.2.8
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/dist/module.d.mts +13 -14
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -5
- package/package.json +2 -2
package/dist/module.d.mts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
|
-
interface ModuleOptions {
|
|
4
|
-
/** Whether the module is enabled. @default true */
|
|
5
|
-
enabled?: boolean;
|
|
6
|
-
/** Public site key consumed by the Turnstile widget. @default "" */
|
|
7
|
-
siteKey?: string;
|
|
8
|
-
/** Secret key used by server-side Turnstile verification. @default "" */
|
|
9
|
-
secretKey?: string;
|
|
10
|
-
/** Optional administrator token that bypasses Turnstile verification. @default "" */
|
|
11
|
-
adminToken?: string;
|
|
12
|
-
/** Header accepted for the administrator token. @default "x-admin-token" */
|
|
13
|
-
adminHeaderName?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
3
|
/** Registers shared Turnstile configuration, client helpers, and server validation. */
|
|
17
|
-
declare const _default: _nuxt_schema.NuxtModule<
|
|
4
|
+
declare const _default: _nuxt_schema.NuxtModule<{
|
|
5
|
+
enabled?: boolean | undefined;
|
|
6
|
+
siteKey?: string | undefined;
|
|
7
|
+
secretKey?: string | undefined;
|
|
8
|
+
adminToken?: string | undefined;
|
|
9
|
+
adminHeaderName?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
enabled?: boolean | undefined;
|
|
12
|
+
siteKey?: string | undefined;
|
|
13
|
+
secretKey?: string | undefined;
|
|
14
|
+
adminToken?: string | undefined;
|
|
15
|
+
adminHeaderName?: string | undefined;
|
|
16
|
+
}, false>;
|
|
18
17
|
|
|
19
18
|
export { _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import { defu } from 'defu';
|
|
|
3
3
|
import { enabled, resolveModuleName, resolveLoggerScope, moduleSetup, validateModuleOptions, transpileRuntime, moduleDependenciesWhenEnabled } from '@onderwijsin/nuxt-module-utils/build';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
|
-
const version = "0.2.
|
|
6
|
+
const version = "0.2.8";
|
|
7
7
|
|
|
8
8
|
const turnstileOptionsSchema = z.object({
|
|
9
9
|
enabled,
|
|
10
|
-
siteKey: z.string(),
|
|
11
|
-
secretKey: z.string(),
|
|
12
|
-
adminToken: z.string(),
|
|
13
|
-
adminHeaderName: z.string().min(1)
|
|
10
|
+
siteKey: z.string().default(""),
|
|
11
|
+
secretKey: z.string().default(""),
|
|
12
|
+
adminToken: z.string().default(""),
|
|
13
|
+
adminHeaderName: z.string().min(1).default("x-admin-token")
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
const MODULE_KEY = "turnstile";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onderwijsin/nuxt-turnstile",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Nuxt Turnstile integration with client helpers and server-side validation.",
|
|
5
5
|
"homepage": "https://github.com/onderwijsin/nuxt-modules#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"defu": "6.1.7",
|
|
44
44
|
"h3": "1.15.11",
|
|
45
45
|
"zod": "4.4.3",
|
|
46
|
-
"@onderwijsin/nuxt-module-utils": "^0.
|
|
46
|
+
"@onderwijsin/nuxt-module-utils": "^0.5.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@nuxt/module-builder": "1.0.3",
|