@gradial/aci 0.1.37 → 0.1.38
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/next/middleware.js
CHANGED
|
@@ -244,7 +244,11 @@ function edgeKeySegment(value) {
|
|
|
244
244
|
return value.replace(/[^A-Za-z0-9_-]/g, '_');
|
|
245
245
|
}
|
|
246
246
|
function isAssetPath(pathname) {
|
|
247
|
-
|
|
247
|
+
if (pathname === ASSET_PREFIX || pathname.startsWith(`${ASSET_PREFIX}/`))
|
|
248
|
+
return true;
|
|
249
|
+
if (pathname.startsWith('/gradial/assets/'))
|
|
250
|
+
return true;
|
|
251
|
+
return false;
|
|
248
252
|
}
|
|
249
253
|
function isPassthroughRoute(pathname) {
|
|
250
254
|
return PASSTHROUGH_ROUTES.some((route) => routeMatches(pathname, route));
|
|
@@ -272,7 +276,7 @@ function normalizeRoutePath(value) {
|
|
|
272
276
|
return pathname.replace(/\/{2,}/g, '/').replace(/\/$/, '') || '/';
|
|
273
277
|
}
|
|
274
278
|
export const aciMiddlewareMatcher = [
|
|
275
|
-
'/((?!_next(?:/|$)|api(?:/|$)|favicon\\.ico$|\\.gradial-dam(?:/|$)
|
|
279
|
+
'/((?!_next(?:/|$)|api(?:/|$)|favicon\\.ico$|\\.gradial-dam(?:/|$)).*)',
|
|
276
280
|
];
|
|
277
281
|
export const config = {
|
|
278
282
|
matcher: aciMiddlewareMatcher,
|
|
@@ -319,7 +319,7 @@ export function checkMiddleware(ctx) {
|
|
|
319
319
|
// the SDK's canonical value. Next.js requires config.matcher to be
|
|
320
320
|
// statically analyzable, so importing the matcher from the SDK breaks the
|
|
321
321
|
// build. Instead the template inlines the value and this check detects drift.
|
|
322
|
-
const canonicalMatcher = "['/((?!_next(?:/|$)|api(?:/|$)|favicon\\\\.ico$|\\\\.gradial-dam(?:/|$)
|
|
322
|
+
const canonicalMatcher = "['/((?!_next(?:/|$)|api(?:/|$)|favicon\\\\.ico$|\\\\.gradial-dam(?:/|$)).*)']";
|
|
323
323
|
// Check for actual import/usage of aciMiddlewareMatcher (not just a mention
|
|
324
324
|
// in a comment). Look for `matcher: aciMiddlewareMatcher` or
|
|
325
325
|
// `import { ... aciMiddlewareMatcher ... }`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradial/aci",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
"zod": "^4.0.0"
|
|
128
128
|
},
|
|
129
129
|
"optionalDependencies": {
|
|
130
|
-
"@gradial/aci-cli-darwin-arm64": "0.1.
|
|
131
|
-
"@gradial/aci-cli-darwin-x64": "0.1.
|
|
132
|
-
"@gradial/aci-cli-linux-arm64": "0.1.
|
|
133
|
-
"@gradial/aci-cli-linux-x64": "0.1.
|
|
134
|
-
"@gradial/aci-cli-win32-arm64": "0.1.
|
|
135
|
-
"@gradial/aci-cli-win32-x64": "0.1.
|
|
130
|
+
"@gradial/aci-cli-darwin-arm64": "0.1.38",
|
|
131
|
+
"@gradial/aci-cli-darwin-x64": "0.1.38",
|
|
132
|
+
"@gradial/aci-cli-linux-arm64": "0.1.38",
|
|
133
|
+
"@gradial/aci-cli-linux-x64": "0.1.38",
|
|
134
|
+
"@gradial/aci-cli-win32-arm64": "0.1.38",
|
|
135
|
+
"@gradial/aci-cli-win32-x64": "0.1.38"
|
|
136
136
|
},
|
|
137
137
|
"scripts": {
|
|
138
138
|
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.json",
|