serverless-h3
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// index.ts | ||
// src/index.ts | ||
const h3_1 = require("h3"); | ||
@@ -18,3 +18,3 @@ const toPascalCase = (str) => { | ||
.toLowerCase() | ||
.replace(/(^\w|-\w)/g, (match) => match.toUpperCase().replace('-', '')); | ||
.replace(/(^\w|-\w)/g, (match) => match.toUpperCase().replace("-", "")); | ||
}; | ||
@@ -39,3 +39,3 @@ function serverless(app) { | ||
headers: headersObject, | ||
body: response.body | ||
body: response.body, | ||
}; | ||
@@ -42,0 +42,0 @@ }); |
{ | ||
"name": "serverless-h3", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A serverless wrapper for h3 applications", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"author": "Your Name", | ||
@@ -20,3 +16,6 @@ "license": "MIT", | ||
"@types/serviceworker": "^0.0.1" | ||
}, | ||
"scripts": { | ||
"build": "tsc" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
// index.ts | ||
// src/index.ts | ||
import { toPlainHandler } from "h3"; | ||
@@ -7,3 +7,3 @@ | ||
.toLowerCase() | ||
.replace(/(^\w|-\w)/g, (match) => match.toUpperCase().replace('-', '')); | ||
.replace(/(^\w|-\w)/g, (match) => match.toUpperCase().replace("-", "")); | ||
}; | ||
@@ -16,3 +16,3 @@ | ||
...event, | ||
method: event.httpMethod | ||
method: event.httpMethod, | ||
}); | ||
@@ -34,5 +34,6 @@ | ||
headers: headersObject, | ||
body: response.body | ||
body: response.body, | ||
}; | ||
}; | ||
} |
5160