@defra/grants-config-utils 0.3.0 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @defra/grants-config-utils
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 63ff163: GRAN-60 - Add user to release config call (hardcoded for now)
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/grants-config-utils",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "NPM module for providing utils for publishing grants config",
5
5
  "engines": {
6
6
  "node": ">=24",
@@ -132,11 +132,15 @@ const sendConfigMessageToBroker = async (
132
132
  // files is an array of tuples, we only want the S3 paths here
133
133
  const s3Paths = files.map(([_, s3Path]) => s3Path);
134
134
 
135
+ // When CDP is updated to inject user that did deployment of container, reference that injected variable from config here
136
+ const user = "system";
137
+
135
138
  const payload = {
136
139
  grant,
137
140
  version,
138
141
  files: s3Paths,
139
142
  status: configPublishStatus,
143
+ user,
140
144
  };
141
145
 
142
146
  if (setToUseSNS(configSNSTopic)) {
@@ -131,6 +131,7 @@ describe("storeConfigVersionAndInformBroker", () => {
131
131
  version: "1.2.3",
132
132
  files: ["grant-1/1.2.3/main.json"],
133
133
  status: "active",
134
+ user: "system",
134
135
  }),
135
136
  },
136
137
  );
@@ -158,6 +159,7 @@ describe("storeConfigVersionAndInformBroker", () => {
158
159
  version: "1.2.3",
159
160
  files: ["grant-1/1.2.3/main.json"],
160
161
  status: "active",
162
+ user: "system",
161
163
  });
162
164
  });
163
165