@interfere/next 5.0.1 → 7.0.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-get.mjs","names":[],"sources":["../../../src/internal/route/handle-get.ts"],"sourcesContent":["import { API_PATHS } from \"@interfere/constants/api\";\n\nimport {\n extractSubPath,\n forwardToCollector,\n notConfiguredResponse,\n resolveAuthenticatedEnv,\n} from \"./proxy.js\";\nimport { SW_SCRIPT } from \"./sw-script.js\";\n\nexport function handleGet(request: Request): Response | Promise<Response> {\n const subPath = extractSubPath(request);\n\n if (subPath.endsWith(\"/sw\")) {\n return new Response(SW_SCRIPT, {\n status: 200,\n headers: {\n \"content-type\": \"application/javascript\",\n \"
|
|
1
|
+
{"version":3,"file":"handle-get.mjs","names":[],"sources":["../../../src/internal/route/handle-get.ts"],"sourcesContent":["import { API_PATHS } from \"@interfere/constants/api\";\n\nimport {\n extractSubPath,\n forwardToCollector,\n notConfiguredResponse,\n resolveAuthenticatedEnv,\n} from \"./proxy.js\";\nimport { SW_SCRIPT } from \"./sw-script.js\";\n\nexport function handleGet(request: Request): Response | Promise<Response> {\n const subPath = extractSubPath(request);\n\n if (subPath.endsWith(\"/sw\")) {\n return new Response(SW_SCRIPT, {\n status: 200,\n headers: {\n \"content-type\": \"application/javascript\",\n \"cache-control\": \"public, max-age=3600\",\n },\n });\n }\n\n if (subPath === API_PATHS.CONFIG) {\n const env = resolveAuthenticatedEnv();\n if (!env) {\n return notConfiguredResponse();\n }\n return forwardToCollector(request, env, subPath);\n }\n\n return new Response(\"Not Found\", { status: 404 });\n}\n"],"mappings":";;;;AAUA,SAAgB,UAAU,SAAgD;CACxE,MAAM,UAAU,eAAe,QAAQ;AAEvC,KAAI,QAAQ,SAAS,MAAM,CACzB,QAAO,IAAI,SAAS,WAAW;EAC7B,QAAQ;EACR,SAAS;GACP,gBAAgB;GAChB,iBAAiB;GAClB;EACF,CAAC;AAGJ,KAAI,YAAY,UAAU,QAAQ;EAChC,MAAM,MAAM,yBAAyB;AACrC,MAAI,CAAC,IACH,QAAO,uBAAuB;AAEhC,SAAO,mBAAmB,SAAS,KAAK,QAAQ;;AAGlD,QAAO,IAAI,SAAS,aAAa,EAAE,QAAQ,KAAK,CAAC"}
|
package/dist/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interfere/next",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Build software that never breaks.",
|
|
6
6
|
"keywords": [
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsdown",
|
|
60
60
|
"dev": "tsdown --watch",
|
|
61
|
-
"test:
|
|
61
|
+
"test:e2e": "vitest run --project browser",
|
|
62
62
|
"test:unit": "vitest run --project unit --coverage",
|
|
63
63
|
"typecheck": "tsc --noEmit --incremental",
|
|
64
|
-
"test": "bun run test:unit
|
|
64
|
+
"test": "bun run test:unit"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@interfere/constants": "^
|
|
68
|
-
"@interfere/react": "^
|
|
69
|
-
"@interfere/sdk": "^
|
|
70
|
-
"@interfere/types": "^
|
|
67
|
+
"@interfere/constants": "^6.0.0",
|
|
68
|
+
"@interfere/react": "^7.0.0",
|
|
69
|
+
"@interfere/sdk": "^6.0.0",
|
|
70
|
+
"@interfere/types": "^6.0.0",
|
|
71
71
|
"chalk": "^5.6.2",
|
|
72
72
|
"uuid": "^13.0.0"
|
|
73
73
|
},
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"react-dom": ">=19"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@interfere/typescript-config": "^
|
|
82
|
-
"@interfere/vitest-config": "^
|
|
81
|
+
"@interfere/typescript-config": "^6.0.0",
|
|
82
|
+
"@interfere/vitest-config": "^6.0.0",
|
|
83
83
|
"@testing-library/react": "^16.3.2",
|
|
84
84
|
"@types/node": "^24.12.0",
|
|
85
85
|
"@types/react": "19.2.14",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"@vitest/browser-playwright": "4.1.0",
|
|
90
90
|
"@vitest/coverage-v8": "^4.0.18",
|
|
91
91
|
"jsdom": "^29.0.0",
|
|
92
|
-
"next": "^16.1.
|
|
92
|
+
"next": "^16.1.7",
|
|
93
93
|
"playwright": "^1.56.1",
|
|
94
94
|
"react": "^19.2.4",
|
|
95
95
|
"react-dom": "^19.2.4",
|
|
96
|
-
"tsdown": "^0.21.
|
|
96
|
+
"tsdown": "^0.21.4",
|
|
97
97
|
"typescript": "5.9.3",
|
|
98
98
|
"vitest": "^4.0.18",
|
|
99
99
|
"webpack": "^5.105.1"
|