@lovelybunch/api 1.0.34 → 1.0.35
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.
|
@@ -2,11 +2,8 @@ import { Hono } from 'hono';
|
|
|
2
2
|
import { promises as fs } from 'fs';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
import matter from 'gray-matter';
|
|
5
|
-
import { trimTrailingSlash } from 'hono/trailing-slash';
|
|
6
5
|
import { findGaitDirectory } from '../../../../../lib/gait-path.js';
|
|
7
6
|
const app = new Hono();
|
|
8
|
-
// Handle trailing slashes consistently
|
|
9
|
-
app.use('*', trimTrailingSlash());
|
|
10
7
|
async function getArchitecturePath() {
|
|
11
8
|
const gaitDir = await findGaitDirectory();
|
|
12
9
|
if (!gaitDir)
|
|
@@ -2,11 +2,8 @@ import { Hono } from 'hono';
|
|
|
2
2
|
import { promises as fs } from 'fs';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
import matter from 'gray-matter';
|
|
5
|
-
import { trimTrailingSlash } from 'hono/trailing-slash';
|
|
6
5
|
import { findGaitDirectory } from '../../../../../lib/gait-path.js';
|
|
7
6
|
const app = new Hono();
|
|
8
|
-
// Handle trailing slashes consistently
|
|
9
|
-
app.use('*', trimTrailingSlash());
|
|
10
7
|
async function getProjectPath() {
|
|
11
8
|
const gaitDir = await findGaitDirectory();
|
|
12
9
|
if (!gaitDir)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovelybunch/api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/server-with-static.js",
|
|
6
6
|
"exports": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@hono/node-server": "^1.13.7",
|
|
34
34
|
"@hono/node-ws": "^1.0.6",
|
|
35
|
-
"@lovelybunch/core": "^1.0.
|
|
36
|
-
"@lovelybunch/types": "^1.0.
|
|
35
|
+
"@lovelybunch/core": "^1.0.35",
|
|
36
|
+
"@lovelybunch/types": "^1.0.35",
|
|
37
37
|
"dotenv": "^17.2.1",
|
|
38
38
|
"fuse.js": "^7.0.0",
|
|
39
39
|
"gray-matter": "^4.0.3",
|