oc-template-elm-compiler 1.0.3 → 1.1.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oc-template-elm-compiler",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Compiler for the Elm OC template",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"elm": "^0.19.1-6",
|
|
32
32
|
"oc-template-elm": "0.1.1",
|
|
33
|
-
"oc-vite-compiler": "^4.0
|
|
33
|
+
"oc-vite-compiler": "^4.1.0",
|
|
34
34
|
"vite-plugin-elm": "^2.8.0"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
@@ -20,7 +20,16 @@ async function getFunFact(year: number) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export const server = new Server()
|
|
23
|
-
.
|
|
23
|
+
.withParameters({
|
|
24
|
+
userId: {
|
|
25
|
+
default: 1,
|
|
26
|
+
description: 'The user id from the user database',
|
|
27
|
+
example: 1,
|
|
28
|
+
mandatory: true,
|
|
29
|
+
type: 'number',
|
|
30
|
+
},
|
|
31
|
+
})
|
|
32
|
+
.handler(async (params, ctx) => {
|
|
24
33
|
const { userId } = params;
|
|
25
34
|
const user = await getUser(userId);
|
|
26
35
|
const [firstName, lastName] = user.name.split(/\s+/);
|