@xcript-dev/next 0.1.0 → 0.1.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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2,12 +2,12 @@ import { NextRequest, NextResponse } from 'next/server';
|
|
|
2
2
|
export { ValidationResponse, XcriptConfig } from '@xcript-dev/sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @xcript/next — Next.js middleware for license validation.
|
|
5
|
+
* @xcript-dev/next — Next.js middleware for license validation.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```ts
|
|
9
9
|
* // middleware.ts
|
|
10
|
-
* import { withXcript } from '@xcript/next'
|
|
10
|
+
* import { withXcript } from '@xcript-dev/next'
|
|
11
11
|
*
|
|
12
12
|
* export default withXcript({
|
|
13
13
|
* apiKey: process.env.XCRIPT_API_KEY!,
|
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { NextRequest, NextResponse } from 'next/server';
|
|
|
2
2
|
export { ValidationResponse, XcriptConfig } from '@xcript-dev/sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @xcript/next — Next.js middleware for license validation.
|
|
5
|
+
* @xcript-dev/next — Next.js middleware for license validation.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```ts
|
|
9
9
|
* // middleware.ts
|
|
10
|
-
* import { withXcript } from '@xcript/next'
|
|
10
|
+
* import { withXcript } from '@xcript-dev/next'
|
|
11
11
|
*
|
|
12
12
|
* export default withXcript({
|
|
13
13
|
* apiKey: process.env.XCRIPT_API_KEY!,
|
package/dist/server.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @xcript/next/server — Server-side utilities for license validation.
|
|
2
|
+
* @xcript-dev/next/server — Server-side utilities for license validation.
|
|
3
3
|
*
|
|
4
4
|
* @example
|
|
5
5
|
* ```ts
|
|
6
6
|
* // Server Action or Route Handler
|
|
7
|
-
* import { requireLicense, getLicense } from '@xcript/next/server'
|
|
7
|
+
* import { requireLicense, getLicense } from '@xcript-dev/next/server'
|
|
8
8
|
*
|
|
9
9
|
* // Throws if license is invalid
|
|
10
10
|
* export async function POST() {
|
package/dist/server.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @xcript/next/server — Server-side utilities for license validation.
|
|
2
|
+
* @xcript-dev/next/server — Server-side utilities for license validation.
|
|
3
3
|
*
|
|
4
4
|
* @example
|
|
5
5
|
* ```ts
|
|
6
6
|
* // Server Action or Route Handler
|
|
7
|
-
* import { requireLicense, getLicense } from '@xcript/next/server'
|
|
7
|
+
* import { requireLicense, getLicense } from '@xcript-dev/next/server'
|
|
8
8
|
*
|
|
9
9
|
* // Throws if license is invalid
|
|
10
10
|
* export async function POST() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcript-dev/next",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Next.js integration for Xcript — middleware, hooks, and server utilities for license validation",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
"next": "^15.0.0",
|
|
61
61
|
"react": "^18.0.0"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|