Skip to content

Commit

Permalink
bump spin_sdk dep
Browse files Browse the repository at this point in the history
Signed-off-by: karthik2804 <[email protected]>
  • Loading branch information
karthik2804 committed Sep 3, 2024
1 parent cf62df3 commit 6915698
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/http-js/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@fermyon/knitwit": "https://github.com/fermyon/knitwit"
},
"dependencies": {
"@fermyon/spin-sdk": "^2.0.0"
"@fermyon/spin-sdk": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion templates/http-ts/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@fermyon/knitwit": "https://github.com/fermyon/knitwit"
},
"dependencies": {
"@fermyon/spin-sdk": "^2.0.0"
"@fermyon/spin-sdk": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion templates/redis-js/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@fermyon/knitwit": "https://github.com/fermyon/knitwit"
},
"dependencies": {
"@fermyon/spin-sdk": "^2.0.0"
"@fermyon/spin-sdk": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion templates/redis-ts/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@fermyon/knitwit": "https://github.com/fermyon/knitwit"
},
"dependencies": {
"@fermyon/spin-sdk": "^2.0.0"
"@fermyon/spin-sdk": "^2.1.0"
}
}
4 changes: 3 additions & 1 deletion templates/redis-ts/content/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { RedisHandler } from "@fermyon/spin-sdk";

const decoder = new TextDecoder();

export class MyRedisHandler extends RedisHandler {
async handleMessage(msg: Uint8Array): Promise<void> {
console.log("Received message:", msg);
console.log("Received message:", decoder.decode(msg));
}
}

Expand Down

0 comments on commit 6915698

Please sign in to comment.