Fix scope
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
},
|
||||
|
||||
@@ -18,7 +18,7 @@ export type Price =
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* import { x402 } from "@emdashcms/x402";
|
||||
* import { x402 } from "@emdash-cms/x402";
|
||||
*
|
||||
* export default defineConfig({
|
||||
* integrations: [
|
||||
|
||||
Reference in New Issue
Block a user