@madgex/fert 7.0.6 → 7.0.8

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": "@madgex/fert",
3
- "version": "7.0.6",
3
+ "version": "7.0.8",
4
4
  "description": "Tool to help build the V6 branding",
5
5
  "bin": {
6
6
  "fert": "./bin/cli.js"
@@ -24,24 +24,24 @@
24
24
  "author": "Madgex",
25
25
  "license": "UNLICENSED",
26
26
  "dependencies": {
27
- "@aws-sdk/client-cloudfront": "3.896.0",
28
- "@aws-sdk/client-ssm": "3.896.0",
27
+ "@aws-sdk/client-cloudfront": "3.922.0",
28
+ "@aws-sdk/client-ssm": "3.922.0",
29
29
  "@hapi/hapi": "21.4.3",
30
30
  "@hapi/hoek": "11.0.7",
31
31
  "@hapi/inert": "7.1.0",
32
32
  "@hapi/vision": "7.0.3",
33
33
  "@hapipal/toys": "4.0.0",
34
- "@madgex/config-api-sdk": "1.12.8",
35
- "@madgex/design-system": "12.0.2",
34
+ "@madgex/config-api-sdk": "1.13.1",
35
+ "@madgex/design-system": "13.0.0",
36
36
  "@private/header-footer-podlet-server": "github:wiley/madgex-header-footer-podlet",
37
- "axios": "1.12.2",
37
+ "axios": "1.13.1",
38
38
  "cac": "6.7.14",
39
39
  "chalk": "5.6.2",
40
40
  "chokidar4": "npm:chokidar@4.0.3",
41
41
  "debug": "4.4.3",
42
42
  "dedent": "1.7.0",
43
43
  "find-up-simple": "1.0.1",
44
- "flat-cache": "6.1.14",
44
+ "flat-cache": "6.1.18",
45
45
  "form-data": "4.0.4",
46
46
  "joi": "17.13.3",
47
47
  "lodash": "4.17.21",
@@ -50,21 +50,21 @@
50
50
  "ora": "5.4.1",
51
51
  "prompts": "2.4.2",
52
52
  "rimraf": "6.0.1",
53
- "sass": "1.93.2",
54
- "simple-git": "3.28.0",
53
+ "sass": "1.93.3",
54
+ "simple-git": "3.30.0",
55
55
  "simple-update-notifier": "2.0.0",
56
56
  "uuid-validate": "0.0.3",
57
- "vite": "7.1.7",
58
- "vite-plugin-static-copy": "3.1.2"
57
+ "vite": "7.1.12",
58
+ "vite-plugin-static-copy": "3.1.4"
59
59
  },
60
60
  "devDependencies": {
61
- "@commitlint/cli": "19.8.1",
62
- "@commitlint/config-conventional": "19.8.1",
61
+ "@commitlint/cli": "20.1.0",
62
+ "@commitlint/config-conventional": "20.0.0",
63
63
  "@madgex/eslint-config-madgex": "2.3.0",
64
64
  "@madgex/prettier-config-madgex": "2.0.0",
65
- "eslint": "9.36.0",
65
+ "eslint": "9.39.1",
66
66
  "husky": "9.1.7",
67
- "lint-staged": "16.2.1",
67
+ "lint-staged": "16.2.6",
68
68
  "prettier": "3.6.2",
69
69
  "semantic-release": "24.2.9"
70
70
  },
@@ -1,4 +1,5 @@
1
- import { fileURLToPath } from 'node:url';
1
+ import path from 'node:path';
2
+ import { MDS_PATH } from '../../constants.js';
2
3
 
3
4
  export default ({ fertConfig }) => [
4
5
  {
@@ -30,21 +31,11 @@ export default ({ fertConfig }) => [
30
31
  },
31
32
  {
32
33
  method: 'get',
33
- path: '/design-system.css',
34
+ path: `/design-system/{path*}`,
34
35
  handler: {
35
- file: {
36
- path: fileURLToPath(import.meta.resolve('@madgex/design-system/index.css')),
37
- confine: false, // allow access outside of the fert project (helpful during dev)
38
- },
39
- },
40
- },
41
- {
42
- method: 'get',
43
- path: '/design-system.js',
44
- handler: {
45
- file: {
46
- path: fileURLToPath(import.meta.resolve('@madgex/design-system/index.js')),
47
- confine: false, // allow access outside of the fert project (helpful during dev)
36
+ directory: {
37
+ // using `directory` should mean we are using inert's 'confine' automatically, to prevent URL attacks e.g. `/_/jobseekers-frontend/public/design-system/..%2F..%2F..%2F..%2F/package.json`
38
+ path: [path.join(MDS_PATH, 'dist')],
48
39
  },
49
40
  },
50
41
  },
@@ -5,8 +5,8 @@
5
5
  <title>{{ title | default('Frontend Rollout Tool') }}</title>
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <link rel="stylesheet" href="/public/tokens/css-vars/variables.css">
8
- <link rel="stylesheet" href="/design-system.css">
9
- <script type="module" src="/design-system.js"></script>
8
+ <link rel="stylesheet" href="/design-system/css/index.css">
9
+ <script type="module" src="/design-system/js/index.js"></script>
10
10
  {%- for link in fertConfig.externalAssets.links %}
11
11
  <link {%- for key, value in link %} {{ key }}="{{ value }}" {%- endfor %}/>
12
12
  {%- endfor -%}