@mindfulauth/core 2.0.1 → 3.0.1
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/{astro → authScripts}/ForgotPasswordScript.astro +1 -1
- package/dist/{astro → authScripts}/LoginScript.astro +1 -1
- package/dist/{astro → authScripts}/MagicLoginScript.astro +1 -1
- package/dist/{astro → authScripts}/MagicRegisterScript.astro +1 -1
- package/dist/{astro → authScripts}/MainScript.astro +1 -1
- package/dist/{astro → authScripts}/RegisterPasswordScript.astro +1 -1
- package/dist/{astro → authScripts}/ResendVerificationScript.astro +1 -1
- package/dist/{astro → authScripts}/ResetPasswordScript.astro +1 -1
- package/dist/{astro → authScripts}/TurnstileInit.astro +1 -1
- package/dist/{astro → authScripts}/VerifyEmailScript.astro +1 -1
- package/dist/{astro → authScripts}/VerifyMagicLinkScript.astro +1 -1
- package/dist/authScripts/index.d.ts.map +1 -0
- package/dist/{astro → authScripts}/index.js +2 -2
- package/dist/components/MAuthEmailInput.astro +12 -0
- package/dist/components/MAuthForm.astro +10 -0
- package/dist/components/MAuthMessage.astro +8 -0
- package/dist/components/MAuthNameInput.astro +11 -0
- package/dist/components/MAuthPasswordChangePending.astro +8 -0
- package/dist/components/MAuthPasswordInput.astro +12 -0
- package/dist/components/MAuthSubmitButton.astro +8 -0
- package/dist/components/MAuthTurnstile.astro +11 -0
- package/dist/components/MAuthTwoFACodeInput.astro +13 -0
- package/dist/components/MAuthTwoFASection.astro +11 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +13 -0
- package/dist/core/csp.d.ts +2 -2
- package/dist/core/csp.js +3 -3
- package/dist/layouts/MAuthProtected.astro +56 -0
- package/dist/layouts/MAuthPublic.astro +68 -0
- package/package.json +16 -10
- package/dist/astro/index.d.ts.map +0 -1
- /package/dist/{astro → authScripts}/SecurityScript.astro +0 -0
- /package/dist/{astro → authScripts}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/authScripts/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Mindful Auth - Astro Components Barrel Export
|
|
2
|
-
// Usage: import { MAuthLoginScript, MAuthTurnstileInit } from '@mindfulauth/
|
|
3
|
-
// or: import MAuthLoginScript from '@mindfulauth/
|
|
2
|
+
// Usage: import { MAuthLoginScript, MAuthTurnstileInit } from '@mindfulauth/authScripts';
|
|
3
|
+
// or: import MAuthLoginScript from '@mindfulauth/authScripts/LoginScript.astro';
|
|
4
4
|
export { default as MAuthMainScript } from './MainScript.astro';
|
|
5
5
|
export { default as MAuthTurnstileInit } from './TurnstileInit.astro';
|
|
6
6
|
export { default as MAuthLoginScript } from './LoginScript.astro';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
class?: string;
|
|
6
|
+
}
|
|
7
|
+
const { label = 'Email', placeholder, class: classList } = Astro.props;
|
|
8
|
+
---
|
|
9
|
+
<div class={classList}>
|
|
10
|
+
<label>{label}</label>
|
|
11
|
+
<input type="email" name="email" required data-mindfulauth-field="email" placeholder={placeholder} />
|
|
12
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
label?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
}
|
|
6
|
+
const { label = 'Name', class: classList } = Astro.props;
|
|
7
|
+
---
|
|
8
|
+
<div class={classList}>
|
|
9
|
+
<label>{label}</label>
|
|
10
|
+
<input type="text" name="name" required data-mindfulauth-field="name" />
|
|
11
|
+
</div>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
class?: string;
|
|
4
|
+
}
|
|
5
|
+
const { class: classList } = Astro.props;
|
|
6
|
+
// Message container appears when a user is redirected to the forgot-password page with ?reason=password_change_required in the URL. The script displays a security warning message "Your account requires a password change for security reasons. Please complete the form below to set a new password.".
|
|
7
|
+
---
|
|
8
|
+
<div class={`hidden ${classList}`} data-mindfulauth-field="password-change-pending"></div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
label: string;
|
|
4
|
+
fieldName?: 'password' | 'confirm-password' | 'new-password';
|
|
5
|
+
class?: string;
|
|
6
|
+
}
|
|
7
|
+
const { label, fieldName = 'password', class: classList } = Astro.props;
|
|
8
|
+
---
|
|
9
|
+
<div class={classList}>
|
|
10
|
+
<label>{label}</label>
|
|
11
|
+
<input type="password" name={fieldName} required data-mindfulauth-field={fieldName} minlength={8} />
|
|
12
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
4
|
+
size?: 'flexible' | 'normal' | 'compact';
|
|
5
|
+
language?: 'auto' | string;
|
|
6
|
+
appearance?: 'always' | 'execute' | 'interaction-only';
|
|
7
|
+
class?: string;
|
|
8
|
+
}
|
|
9
|
+
const { theme = 'light', size = 'flexible', language = 'auto', appearance = 'always', class: classList } = Astro.props;
|
|
10
|
+
---
|
|
11
|
+
<div data-mindfulauth-turnstile data-theme={theme} data-size={size} data-language={language} data-appearance={appearance} class={classList}></div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
class?: string;
|
|
6
|
+
}
|
|
7
|
+
const { name, label = '2FA Code', class: classList } = Astro.props;
|
|
8
|
+
---
|
|
9
|
+
<div hidden data-mindfulauth-field="twofa-code-container" class={classList}>
|
|
10
|
+
<label>{label}</label>
|
|
11
|
+
<input type="text" name={name} inputmode="numeric" pattern="[0-9]{6}" maxlength="6" placeholder="Enter 6-digit code" data-mindfulauth-field="twofa-code" />
|
|
12
|
+
<small>Enter the 6-digit code from your authenticator app.</small>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
class?: string;
|
|
4
|
+
}
|
|
5
|
+
const { class: classList } = Astro.props;
|
|
6
|
+
---
|
|
7
|
+
<div class={`hidden ${classList}`} data-mindfulauth-field="twofa-section">
|
|
8
|
+
<label>Authenticator Code</label>
|
|
9
|
+
<input type="text" name="twofa-code" pattern="[0-9]*" maxlength="6" placeholder="123456" inputmode="numeric" data-mindfulauth-field="twofa-code" />
|
|
10
|
+
<a href="#" data-mindfulauth-field="use-recovery-link">Use a recovery code instead</a>
|
|
11
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as MAuthForm } from './MAuthForm.astro';
|
|
2
|
+
export { default as MAuthEmailInput } from './MAuthEmailInput.astro';
|
|
3
|
+
export { default as MAuthPasswordInput } from './MAuthPasswordInput.astro';
|
|
4
|
+
export { default as MAuthNameInput } from './MAuthNameInput.astro';
|
|
5
|
+
export { default as MAuthTurnstile } from './MAuthTurnstile.astro';
|
|
6
|
+
export { default as MAuthSubmitButton } from './MAuthSubmitButton.astro';
|
|
7
|
+
export { default as MAuthMessage } from './MAuthMessage.astro';
|
|
8
|
+
export { default as MAuthTwoFASection } from './MAuthTwoFASection.astro';
|
|
9
|
+
export { default as MAuthTwoFACodeInput } from './MAuthTwoFACodeInput.astro';
|
|
10
|
+
export { default as MAuthPasswordChangePending } from './MAuthPasswordChangePending.astro';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Mindful Auth - Astro Components Barrel Export
|
|
2
|
+
// Usage: import { MAuthForm, MAuthEmailInput } from '@mindfulauth/components';
|
|
3
|
+
// or: import MAuthForm from '@mindfulauth/components/MAuthForm.astro';
|
|
4
|
+
export { default as MAuthForm } from './MAuthForm.astro';
|
|
5
|
+
export { default as MAuthEmailInput } from './MAuthEmailInput.astro';
|
|
6
|
+
export { default as MAuthPasswordInput } from './MAuthPasswordInput.astro';
|
|
7
|
+
export { default as MAuthNameInput } from './MAuthNameInput.astro';
|
|
8
|
+
export { default as MAuthTurnstile } from './MAuthTurnstile.astro';
|
|
9
|
+
export { default as MAuthSubmitButton } from './MAuthSubmitButton.astro';
|
|
10
|
+
export { default as MAuthMessage } from './MAuthMessage.astro';
|
|
11
|
+
export { default as MAuthTwoFASection } from './MAuthTwoFASection.astro';
|
|
12
|
+
export { default as MAuthTwoFACodeInput } from './MAuthTwoFACodeInput.astro';
|
|
13
|
+
export { default as MAuthPasswordChangePending } from './MAuthPasswordChangePending.astro';
|
package/dist/core/csp.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Scans the mindfulauth/
|
|
2
|
+
* Scans the mindfulauth/authScripts/ directory at build time and returns SHA-384
|
|
3
3
|
* hashes for all <script is:inline> blocks found in .astro component files.
|
|
4
4
|
*
|
|
5
5
|
* Astro's static CSP analysis cannot resolve dynamically rendered components,
|
|
6
6
|
* so hashes must be declared manually in astro.config.mjs. This function
|
|
7
7
|
* computes them automatically so no manual maintenance is needed.
|
|
8
8
|
*
|
|
9
|
-
* When published as a package, this function resolves the
|
|
9
|
+
* When published as a package, this function resolves the authScripts/ directory
|
|
10
10
|
* relative to its own location — no consumer configuration required.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
package/dist/core/csp.js
CHANGED
|
@@ -8,14 +8,14 @@ import { join, dirname } from 'path';
|
|
|
8
8
|
import { fileURLToPath } from 'url';
|
|
9
9
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
10
|
/**
|
|
11
|
-
* Scans the mindfulauth/
|
|
11
|
+
* Scans the mindfulauth/authScripts/ directory at build time and returns SHA-384
|
|
12
12
|
* hashes for all <script is:inline> blocks found in .astro component files.
|
|
13
13
|
*
|
|
14
14
|
* Astro's static CSP analysis cannot resolve dynamically rendered components,
|
|
15
15
|
* so hashes must be declared manually in astro.config.mjs. This function
|
|
16
16
|
* computes them automatically so no manual maintenance is needed.
|
|
17
17
|
*
|
|
18
|
-
* When published as a package, this function resolves the
|
|
18
|
+
* When published as a package, this function resolves the authScripts/ directory
|
|
19
19
|
* relative to its own location — no consumer configuration required.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
@@ -25,7 +25,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
25
25
|
* scriptDirective: { hashes: getScriptHashes() }
|
|
26
26
|
*/
|
|
27
27
|
export function getScriptHashes() {
|
|
28
|
-
const dir = join(__dirname, '../
|
|
28
|
+
const dir = join(__dirname, '../authScripts');
|
|
29
29
|
return readdirSync(dir)
|
|
30
30
|
.filter(f => f.endsWith('.astro'))
|
|
31
31
|
.flatMap(file => {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
// Layout for protected pages (dashboard, security settings, etc.)
|
|
3
|
+
//
|
|
4
|
+
// IMPORTANT: This layout must be used on all pages inside [memberid] routes.
|
|
5
|
+
// The middleware enforces authentication. Pair this with ProtectedLayout for
|
|
6
|
+
// navigation and styling.
|
|
7
|
+
//
|
|
8
|
+
// Usage:
|
|
9
|
+
// import MAuthProtected from "@mindfulauth/core/layouts/MAuthProtected.astro";
|
|
10
|
+
// import ProtectedLayout from "@/layouts/ProtectedLayout.astro";
|
|
11
|
+
// <MAuthProtected title="Page Title" scripts={['MAuthSecurityScript']}>
|
|
12
|
+
// <ProtectedLayout>
|
|
13
|
+
// <p>Your content here</p>
|
|
14
|
+
// </ProtectedLayout>
|
|
15
|
+
// </MAuthProtected>
|
|
16
|
+
//
|
|
17
|
+
// Note: Component aliases located in mindfulauth/components/ via @mindfulauth/core/components/*
|
|
18
|
+
//
|
|
19
|
+
import { MAuthMainScript, MAuthSecurityScript } from "../authScripts";
|
|
20
|
+
|
|
21
|
+
type ScriptName = keyof typeof scriptMap;
|
|
22
|
+
|
|
23
|
+
const scriptMap = {
|
|
24
|
+
MAuthSecurityScript: MAuthSecurityScript,
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
interface Props {
|
|
28
|
+
title: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
scripts?: ScriptName[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const { title, description = "Secure Portal", scripts = [] } = Astro.props;
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
<!doctype html>
|
|
37
|
+
<html lang="en">
|
|
38
|
+
<head>
|
|
39
|
+
<meta charset="UTF-8" />
|
|
40
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
41
|
+
<meta name="description" content={description} />
|
|
42
|
+
<title>{title}</title>
|
|
43
|
+
<MAuthMainScript />
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
<slot />
|
|
47
|
+
|
|
48
|
+
{
|
|
49
|
+
// DO NOT DELETE: Dynamically render scripts based on the scripts prop.
|
|
50
|
+
scripts.map((scriptName) => {
|
|
51
|
+
const Component = scriptMap[scriptName];
|
|
52
|
+
return <Component />;
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
</body>
|
|
56
|
+
</html>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
// Layout for public authentication pages (login, register, etc.)
|
|
3
|
+
// Component aliases: mindfulauth/components/ via @mindfulauth/core/components/*
|
|
4
|
+
import {
|
|
5
|
+
MAuthMainScript,
|
|
6
|
+
MAuthTurnstileInit,
|
|
7
|
+
MAuthLoginScript,
|
|
8
|
+
MAuthRegisterPasswordScript,
|
|
9
|
+
MAuthForgotPasswordScript,
|
|
10
|
+
MAuthMagicLoginScript,
|
|
11
|
+
MAuthMagicRegisterScript,
|
|
12
|
+
MAuthResendVerificationScript,
|
|
13
|
+
MAuthResetPasswordScript,
|
|
14
|
+
MAuthVerifyEmailScript,
|
|
15
|
+
MAuthVerifyMagicLinkScript,
|
|
16
|
+
} from "../authScripts";
|
|
17
|
+
|
|
18
|
+
type ScriptName = keyof typeof scriptMap;
|
|
19
|
+
|
|
20
|
+
const scriptMap = {
|
|
21
|
+
MAuthTurnstileInit: MAuthTurnstileInit,
|
|
22
|
+
MAuthLoginScript: MAuthLoginScript,
|
|
23
|
+
MAuthRegisterPasswordScript: MAuthRegisterPasswordScript,
|
|
24
|
+
MAuthForgotPasswordScript: MAuthForgotPasswordScript,
|
|
25
|
+
MAuthMagicLoginScript: MAuthMagicLoginScript,
|
|
26
|
+
MAuthMagicRegisterScript: MAuthMagicRegisterScript,
|
|
27
|
+
MAuthResendVerificationScript: MAuthResendVerificationScript,
|
|
28
|
+
MAuthResetPasswordScript: MAuthResetPasswordScript,
|
|
29
|
+
MAuthVerifyEmailScript: MAuthVerifyEmailScript,
|
|
30
|
+
MAuthVerifyMagicLinkScript: MAuthVerifyMagicLinkScript,
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
interface Props {
|
|
34
|
+
title: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
scripts?: ScriptName[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const { title, description = "Secure Portal", scripts = [] } = Astro.props;
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
<!doctype html>
|
|
43
|
+
<html lang="en">
|
|
44
|
+
<head>
|
|
45
|
+
<meta charset="UTF-8" />
|
|
46
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
47
|
+
<meta name="description" content={description} />
|
|
48
|
+
<title>{title}</title>
|
|
49
|
+
|
|
50
|
+
<MAuthMainScript />
|
|
51
|
+
<script
|
|
52
|
+
is:inline
|
|
53
|
+
src="https://challenges.cloudflare.com/turnstile/v0/api.js"
|
|
54
|
+
></script>
|
|
55
|
+
</head>
|
|
56
|
+
<body>
|
|
57
|
+
<slot />
|
|
58
|
+
|
|
59
|
+
{
|
|
60
|
+
// DO NOT DELETE: Dynamically render requested auth scripts based on the page type.
|
|
61
|
+
// scriptMap maps script names to their Astro components. Each page passes specific scripts it needs.
|
|
62
|
+
scripts.map((scriptName) => {
|
|
63
|
+
const Component = scriptMap[scriptName];
|
|
64
|
+
return <Component />;
|
|
65
|
+
})
|
|
66
|
+
}
|
|
67
|
+
</body>
|
|
68
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindfulauth/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Mindful Auth core authentication library for Astro 6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,11 +9,17 @@
|
|
|
9
9
|
"types": "./dist/core/index.d.ts",
|
|
10
10
|
"import": "./dist/core/index.js"
|
|
11
11
|
},
|
|
12
|
-
"./
|
|
13
|
-
"types": "./dist/
|
|
14
|
-
"import": "./dist/
|
|
12
|
+
"./authScripts": {
|
|
13
|
+
"types": "./dist/authScripts/index.d.ts",
|
|
14
|
+
"import": "./dist/authScripts/index.js"
|
|
15
15
|
},
|
|
16
|
-
"./
|
|
16
|
+
"./authScripts/*.astro": "./dist/authScripts/*.astro",
|
|
17
|
+
"./components": {
|
|
18
|
+
"types": "./dist/components/index.d.ts",
|
|
19
|
+
"import": "./dist/components/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./components/*.astro": "./dist/components/*.astro",
|
|
22
|
+
"./layouts/*.astro": "./dist/layouts/*.astro",
|
|
17
23
|
"./middleware": {
|
|
18
24
|
"types": "./dist/core/middleware.d.ts",
|
|
19
25
|
"import": "./dist/core/middleware.js"
|
|
@@ -36,7 +42,7 @@
|
|
|
36
42
|
"README.md"
|
|
37
43
|
],
|
|
38
44
|
"scripts": {
|
|
39
|
-
"build": "tsc && cp src/astro/*.astro dist/astro/",
|
|
45
|
+
"build": "tsc && mkdir -p dist/authScripts dist/components dist/layouts && cp src/authScripts/*.astro dist/authScripts/ && cp src/components/*.astro dist/components/ && cp src/layouts/*.astro dist/layouts/",
|
|
40
46
|
"dev": "tsc --watch",
|
|
41
47
|
"prepublishOnly": "npm run build"
|
|
42
48
|
},
|
|
@@ -53,9 +59,9 @@
|
|
|
53
59
|
"astro": "^6.0.1"
|
|
54
60
|
},
|
|
55
61
|
"devDependencies": {
|
|
56
|
-
"@cloudflare/workers-types": "^4.
|
|
57
|
-
"@types/node": "^25.
|
|
58
|
-
"astro": "^6.0.
|
|
62
|
+
"@cloudflare/workers-types": "^4.20260313.1",
|
|
63
|
+
"@types/node": "^25.5.0",
|
|
64
|
+
"astro": "^6.0.4",
|
|
59
65
|
"typescript": "^5.9.3"
|
|
60
66
|
}
|
|
61
|
-
}
|
|
67
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/astro/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
File without changes
|
|
File without changes
|