From 74cbaf89b5803a9a5585615b94d432aac0a007c1 Mon Sep 17 00:00:00 2001 From: Nicolas Lepage <19571875+nlepage@users.noreply.github.com> Date: Mon, 14 Oct 2024 22:55:17 +0200 Subject: [PATCH] fix: wrongful import path in v2.0.0 example --- README.md | 2 +- docs/hello-sse/sw.js | 2 +- docs/hello-state-keepalive/sw.js | 2 +- docs/hello-state/sw.js | 2 +- docs/hello/sw.js | 2 +- example_json_test.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c266a68..bd293dc 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Create a ServiceWorker file with the following code: 📄 `sw.js` ```js importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.18.4/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') registerWasmHTTPListener('path/to/server.wasm') ``` diff --git a/docs/hello-sse/sw.js b/docs/hello-sse/sw.js index 7e959cd..e5eeb34 100644 --- a/docs/hello-sse/sw.js +++ b/docs/hello-sse/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') addEventListener('install', (event) => { event.waitUntil(skipWaiting()) diff --git a/docs/hello-state-keepalive/sw.js b/docs/hello-state-keepalive/sw.js index eb80955..0c35cc9 100644 --- a/docs/hello-state-keepalive/sw.js +++ b/docs/hello-state-keepalive/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') addEventListener('install', event => { event.waitUntil(skipWaiting()) diff --git a/docs/hello-state/sw.js b/docs/hello-state/sw.js index c137cd2..a02c3c3 100644 --- a/docs/hello-state/sw.js +++ b/docs/hello-state/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') addEventListener('install', (event) => { event.waitUntil(skipWaiting()) diff --git a/docs/hello/sw.js b/docs/hello/sw.js index 7e959cd..e5eeb34 100644 --- a/docs/hello/sw.js +++ b/docs/hello/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') addEventListener('install', (event) => { event.waitUntil(skipWaiting()) diff --git a/example_json_test.go b/example_json_test.go index 3b5fbfd..d7fd8f1 100644 --- a/example_json_test.go +++ b/example_json_test.go @@ -5,7 +5,7 @@ import ( "fmt" "net/http" - wasmhttp "github.com/nlepage/go-wasm-http-server/v2/v2" + wasmhttp "github.com/nlepage/go-wasm-http-server/v2" ) // Demonstrates a simple hello JSON service.