@ouestfrance/sipa-bms-ui 8.15.0 → 8.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouestfrance/sipa-bms-ui",
3
- "version": "8.15.0",
3
+ "version": "8.15.1",
4
4
  "author": "Ouest-France BMS",
5
5
  "license": "ISC",
6
6
  "scripts": {
@@ -30,16 +30,16 @@
30
30
  "url": "https://gitlab.ouest-france.fr/sipa-ouest-france/platform/platform-library-vuejs-bms.git"
31
31
  },
32
32
  "devDependencies": {
33
- "@chromatic-com/storybook": "^4.0.0",
33
+ "@chromatic-com/storybook": "^4.1.2",
34
34
  "@codemirror/lang-html": "6.4.11",
35
35
  "@codemirror/lang-json": "6.0.2",
36
36
  "@commitlint/cli": "20.1.0",
37
37
  "@commitlint/config-conventional": "20.0.0",
38
38
  "@formkit/vue": "1.6.9",
39
39
  "@mdx-js/react": "3.1.1",
40
- "@storybook/addon-docs": "9.1.15",
41
- "@storybook/addon-links": "9.1.15",
42
- "@storybook/vue3-vite": "9.1.15",
40
+ "@storybook/addon-docs": "10.0.7",
41
+ "@storybook/addon-links": "10.0.7",
42
+ "@storybook/vue3-vite": "10.0.7",
43
43
  "@types/lodash": "4.17.20",
44
44
  "@types/uuid": "11.0.0",
45
45
  "@vitejs/plugin-vue": "6.0.1",
@@ -68,9 +68,9 @@
68
68
  "sass": "1.93.2",
69
69
  "semantic-release": "25.0.1",
70
70
  "start-server-and-test": "2.1.2",
71
- "storybook": "9.1.15",
72
- "storybook-addon-pseudo-states": "9.1.15",
73
- "storybook-vue3-router": "^6.0.2",
71
+ "storybook": "10.0.7",
72
+ "storybook-addon-pseudo-states": "10.0.7",
73
+ "storybook-vue3-router": "^7.0.0",
74
74
  "typescript": "5.2.2",
75
75
  "uuid": "13.0.0",
76
76
  "vite": "^7.1.12",
@@ -9,13 +9,16 @@ describe('problem helper', () => {
9
9
  test('should return false if object has no type', () => {
10
10
  expect(isProblem({ toto: 'coucou' })).toEqual(false);
11
11
  });
12
- test('should return false if object type does not include correct origin', () => {
13
- expect(isProblem({ type: 'http://host.com' })).toEqual(false);
12
+ test('should return false if object type does not include correct protocol', () => {
13
+ expect(isProblem({ type: 'http://' })).toEqual(false);
14
+ });
15
+ test('should return false if object type does not include correct protocol', () => {
16
+ expect(isProblem({ type: 'https://my-url.fr' })).toEqual(true);
14
17
  });
15
18
  test('should return true if object is a problem', () => {
16
- expect(
17
- isProblem({ type: 'https://problems.bms.live/toto' }),
18
- ).toEqual(true);
19
+ expect(isProblem({ type: 'https://problems.bms.live/toto' })).toEqual(
20
+ true,
21
+ );
19
22
  });
20
23
  });
21
24
  });
@@ -1,4 +1,4 @@
1
1
  export const isProblem = (object: any): boolean =>
2
2
  !!object?.type &&
3
3
  typeof object.type === 'string' &&
4
- object.type.includes('https://problems.bms.live');
4
+ object.type.includes('https://');