@steadphast/connector-nextjs 0.6.0 → 0.7.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/README.md +176 -18
- package/dist/behavioral-collector.d.ts +9 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +19 -0
- package/dist/config.d.ts +26 -0
- package/dist/index.js +374 -26
- package/dist/page-probes.d.ts +27 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +1012 -20
- package/package.json +13 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steadphast/connector-nextjs",
|
|
3
3
|
"description": "Next.js Middleware and Proxy connector for Steadphast: captures request metadata before it reaches your app and sends it to Steadphast for AI and bot traffic classification, without touching the response.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Steadphast",
|
|
7
7
|
"homepage": "https://steadphast.ai",
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"dist/index.d.ts",
|
|
26
26
|
"dist/config.d.ts",
|
|
27
27
|
"dist/middleware.d.ts",
|
|
28
|
+
"dist/behavioral-collector.d.ts",
|
|
29
|
+
"dist/page-probes.d.ts",
|
|
30
|
+
"dist/client.js",
|
|
31
|
+
"dist/client.d.ts",
|
|
28
32
|
"dist/server.js",
|
|
29
33
|
"dist/server.d.ts",
|
|
30
34
|
"LICENSE",
|
|
@@ -32,7 +36,7 @@
|
|
|
32
36
|
"README.md"
|
|
33
37
|
],
|
|
34
38
|
"scripts": {
|
|
35
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json && esbuild src/index.ts src/server.ts src/internal-loopback.ts src/internal-loopback-server.ts --bundle --format=esm --platform=neutral --target=es2022 --outdir=dist --external:next/server --external:next/headers --external:react",
|
|
39
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && esbuild src/index.ts src/client.ts src/server.ts src/internal-loopback.ts src/internal-loopback-server.ts --bundle --format=esm --platform=neutral --target=es2022 --outdir=dist --external:next/server --external:next/headers --external:react",
|
|
36
40
|
"prepublishOnly": "node -e \"if(process.env.STEADPHAST_CONNECTOR_RELEASE!=='1'){console.error('refusing to publish: only the publish-connector-nextjs workflow releases this package (it sets STEADPHAST_CONNECTOR_RELEASE=1 after every gate passes).');process.exit(1)}\"",
|
|
37
41
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
38
42
|
"lint": "biome check src scripts package.json tsconfig.json tsconfig.build.json vitest.config.ts",
|
|
@@ -49,6 +53,11 @@
|
|
|
49
53
|
"import": "./dist/index.js",
|
|
50
54
|
"default": "./dist/index.js"
|
|
51
55
|
},
|
|
56
|
+
"./client": {
|
|
57
|
+
"types": "./dist/client.d.ts",
|
|
58
|
+
"import": "./dist/client.js",
|
|
59
|
+
"default": "./dist/client.js"
|
|
60
|
+
},
|
|
52
61
|
"./server": {
|
|
53
62
|
"types": "./dist/server.d.ts",
|
|
54
63
|
"import": "./dist/server.js",
|
|
@@ -61,11 +70,13 @@
|
|
|
61
70
|
},
|
|
62
71
|
"devDependencies": {
|
|
63
72
|
"@discover/connector-core": "workspace:*",
|
|
73
|
+
"@discover/contracts": "workspace:*",
|
|
64
74
|
"@edge-runtime/vm": "5.0.0",
|
|
65
75
|
"@types/react": "19.2.18",
|
|
66
76
|
"@types/react-dom": "19.2.4",
|
|
67
77
|
"@vitest/coverage-v8": "4.1.12",
|
|
68
78
|
"esbuild": "0.28.2",
|
|
79
|
+
"jsdom": "29.1.1",
|
|
69
80
|
"next": "15.5.28",
|
|
70
81
|
"react": "19.2.8",
|
|
71
82
|
"react-dom": "19.2.8",
|