Fix scope

This commit is contained in:
Matt Kane
2026-04-01 10:58:32 +01:00
parent 482a442f60
commit 2e863566b3
264 changed files with 578 additions and 578 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@emdashcms/x402",
"name": "@emdash-cms/x402",
"version": "0.0.0",
"description": "x402 payment protocol integration for Astro sites",
"license": "MIT",

View File

@@ -1,5 +1,5 @@
/**
* @emdashcms/x402 -- x402 Payment Integration for Astro
* @emdash-cms/x402 -- x402 Payment Integration for Astro
*
* An Astro integration that provides x402 payment enforcement via
* Astro.locals.x402. Supports bot-only mode using Cloudflare Bot Management.
@@ -7,7 +7,7 @@
* @example
* ```ts
* // astro.config.mjs
* import { x402 } from "@emdashcms/x402";
* import { x402 } from "@emdash-cms/x402";
*
* export default defineConfig({
* integrations: [
@@ -46,7 +46,7 @@ const RESOLVED_VIRTUAL_MODULE_ID = "\0" + VIRTUAL_MODULE_ID;
*/
export function x402(config: X402Config): AstroIntegration {
return {
name: "@emdashcms/x402",
name: "@emdash-cms/x402",
hooks: {
"astro:config:setup": ({ addMiddleware, updateConfig }) => {
// Inject the virtual module that provides config to the middleware
@@ -70,7 +70,7 @@ export function x402(config: X402Config): AstroIntegration {
// Register the middleware that puts the enforcer on locals
addMiddleware({
entrypoint: "@emdashcms/x402/middleware",
entrypoint: "@emdash-cms/x402/middleware",
order: "pre",
});
},

View File

@@ -18,7 +18,7 @@ export type Price =
*
* @example
* ```ts
* import { x402 } from "@emdashcms/x402";
* import { x402 } from "@emdash-cms/x402";
*
* export default defineConfig({
* integrations: [