@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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/%40axa-fr%2Fslimfaas-planet-saver.svg)](https://badge.fury.io/js/%40axa-fr%2Fslimfaas-planet-saver)
4
4
 
5
- ![SlimFaas.png](https://github.com/AxaFrance/SlimFaas/blob/main/documentation/SlimFaas.png)
5
+ ![SlimFaas](../../docs/SlimFaas.png)
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
- ![SlimFaasPlanetSaver.gif](https://github.com/AxaFrance/SlimFaas/blob/main/documentation/SlimfaasPlanetSaver.gif)
17
+ ![SlimFaas Planet Saver](../../docs/SlimFaasPlanetSaver.gif)
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.72.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/slimfaas.git"
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.1.1",
39
+ "@chromatic-com/storybook": "5.2.1",
40
40
  "@eslint/js": "^10.0.1",
41
- "@testing-library/jest-dom": "^6.9.1",
41
+ "@testing-library/jest-dom": "^7.0.0",
42
42
  "@testing-library/react": "^16.3.2",
43
- "@types/react": "^19.2.14",
43
+ "@types/react": "^19.2.17",
44
44
  "@types/react-dom": "^19.2.3",
45
- "@vitejs/plugin-react": "^6.0.1",
46
- "@vitest/coverage-v8": "^4.1.2",
47
- "eslint": "^10.1.0",
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.0.1",
50
- "eslint-plugin-react-refresh": "^0.5.2",
51
- "eslint-plugin-storybook": "10.3.4",
52
- "globals": "^17.4.0",
53
- "jsdom": "^29.0.1",
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.4",
56
- "react-dom": "^19.2.4",
57
- "vite": "^8.0.3",
58
- "vitest": "^4.1.2"
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}`);