@axa-fr/slimfaas-planet-saver 0.72.0 → 0.82.1
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/README.md +2 -2
- package/package.json +36 -17
- package/src/SlimFaasPlanetSaver.js +4 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/%40axa-fr%2Fslimfaas-planet-saver)
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
A Vanilla JS project to save the planet. SlimFaas (https://github.com/SlimPlanet/slimfaas) is the slimmest and simplest Function As A Service on Kubernetes.
|
|
8
8
|
It works as a proxy that you can be deployed in your namespace.
|
|
@@ -14,7 +14,7 @@ SlimFaas API can give to the frontend information about the infrastructure state
|
|
|
14
14
|
Because in production instead of setting up 2 replicas of your API backend, you can set up 0 replicas and use an UX that will show the user that the backend is down instead !
|
|
15
15
|
**@axa-fr/slimfaas-planet-saver** is here to for doing that easy.
|
|
16
16
|
|
|
17
|
-

|
|
18
18
|
|
|
19
19
|
## Getting Started
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/slimfaas-planet-saver",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.82.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/SlimFaasPlanetSaver.js",
|
|
7
7
|
"module": "./src/SlimFaasPlanetSaver.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "https://github.com/SlimPlanet/
|
|
28
|
+
"url": "git+https://github.com/SlimPlanet/SlimFaas.git"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"dev": "vite",
|
|
@@ -36,30 +36,49 @@
|
|
|
36
36
|
"coverage": "vitest run --coverage"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@chromatic-com/storybook": "5.
|
|
39
|
+
"@chromatic-com/storybook": "5.2.1",
|
|
40
40
|
"@eslint/js": "^10.0.1",
|
|
41
|
-
"@testing-library/jest-dom": "^
|
|
41
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
42
42
|
"@testing-library/react": "^16.3.2",
|
|
43
|
-
"@types/react": "^19.2.
|
|
43
|
+
"@types/react": "^19.2.17",
|
|
44
44
|
"@types/react-dom": "^19.2.3",
|
|
45
|
-
"@vitejs/plugin-react": "^6.0.
|
|
46
|
-
"@vitest/coverage-v8": "^4.1.
|
|
47
|
-
"eslint": "^10.
|
|
45
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
46
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
47
|
+
"eslint": "^10.7.0",
|
|
48
48
|
"eslint-plugin-react": "^7.37.5",
|
|
49
|
-
"eslint-plugin-react-hooks": "^7.
|
|
50
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
51
|
-
"eslint-plugin-storybook": "10.3
|
|
52
|
-
"globals": "^17.
|
|
53
|
-
"jsdom": "^29.
|
|
49
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
50
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
51
|
+
"eslint-plugin-storybook": "10.5.3",
|
|
52
|
+
"globals": "^17.7.0",
|
|
53
|
+
"jsdom": "^29.1.1",
|
|
54
54
|
"prop-types": "15.8.1",
|
|
55
|
-
"react": "^19.2.
|
|
56
|
-
"react-dom": "^19.2.
|
|
57
|
-
"
|
|
58
|
-
"
|
|
55
|
+
"react": "^19.2.8",
|
|
56
|
+
"react-dom": "^19.2.8",
|
|
57
|
+
"sass": "^1.101.3",
|
|
58
|
+
"storybook": "^10.5.3",
|
|
59
|
+
"typescript": "^7.0.2",
|
|
60
|
+
"vite": "^8.1.5",
|
|
61
|
+
"vitest": "^4.1.10"
|
|
59
62
|
},
|
|
60
63
|
"license": "MIT",
|
|
61
64
|
"publishConfig": {
|
|
62
65
|
"access": "public",
|
|
63
66
|
"registry": "https://registry.npmjs.org/"
|
|
67
|
+
},
|
|
68
|
+
"pnpm": {
|
|
69
|
+
"overrides": {
|
|
70
|
+
"storybook": ">=10.4.0",
|
|
71
|
+
"esbuild": ">=0.25.0"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@langchain/langgraph": "^1.4.8",
|
|
76
|
+
"@langchain/mcp-adapters": "^1.1.3",
|
|
77
|
+
"@langchain/openai": "^1.5.5",
|
|
78
|
+
"dompurify": "^3.4.12",
|
|
79
|
+
"highlight.js": "^11.11.1",
|
|
80
|
+
"js-yaml": "^5.2.1",
|
|
81
|
+
"marked": "^18.0.7",
|
|
82
|
+
"react-router-dom": "^7.18.1"
|
|
64
83
|
}
|
|
65
84
|
}
|
|
@@ -85,6 +85,10 @@ export default class SlimFaasPlanetSaver {
|
|
|
85
85
|
.map(async (item) => {
|
|
86
86
|
const response = await this.fetch(`${this.baseUrl}/wake-function/${item.Name}`, {
|
|
87
87
|
method: 'POST',
|
|
88
|
+
headers: {
|
|
89
|
+
'Content-Type': 'application/json',
|
|
90
|
+
},
|
|
91
|
+
body: '{}',
|
|
88
92
|
});
|
|
89
93
|
if (response.status >= 400) {
|
|
90
94
|
throw new Error(`HTTP Error! status: ${response.status} for function ${item.Name}`);
|