fix: bind adapt to class
Signed-off-by: Pascal Vorwerk <info@fossores.de>
This commit is contained in:
1
index.ts
1
index.ts
@@ -115,6 +115,7 @@ class CloudflareAdapter implements Adapter {
|
|||||||
private options: AdapterOptions;
|
private options: AdapterOptions;
|
||||||
constructor(options: AdapterOptions) {
|
constructor(options: AdapterOptions) {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
|
this.adapt = this.adapt.bind(this);
|
||||||
}
|
}
|
||||||
async adapt(builder: Builder) {
|
async adapt(builder: Builder) {
|
||||||
const files = fileURLToPath(new URL("./files", import.meta.url).href);
|
const files = fileURLToPath(new URL("./files", import.meta.url).href);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@fossoreslp/sveltekit-adapter-cloudflare",
|
"name": "@fossoreslp/sveltekit-adapter-cloudflare",
|
||||||
"version": "5.0.1",
|
"version": "5.0.2",
|
||||||
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration",
|
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user