@balena/open-balena-api 46.2.3 → 46.3.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.
|
@@ -8,9 +8,11 @@ hooks.addPureHook('PATCH', 'resin', 'device', {
|
|
|
8
8
|
// * app changed
|
|
9
9
|
// * target release changed
|
|
10
10
|
// * device name changed - so a user can restart their service and it will pick up the change
|
|
11
|
+
// * target OS release changed, so that Supervisors that support this can trigger a HUP
|
|
11
12
|
if ((request.values.is_pinned_on__release !== undefined ||
|
|
12
13
|
request.values.belongs_to__application != null ||
|
|
13
|
-
request.values.device_name != null
|
|
14
|
+
request.values.device_name != null ||
|
|
15
|
+
request.values.should_be_operated_by__release != null) &&
|
|
14
16
|
affectedIds.length !== 0) {
|
|
15
17
|
// Send the update requests only after the tx is committed
|
|
16
18
|
tx.on('end', async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-update-trigger.js","sourceRoot":"","sources":["../../../../src/features/ci-cd/hooks/device-update-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;IAC7C,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE;QAC5B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAY,CAAC;QAEzC,yCAAyC;QACzC,gBAAgB;QAChB,2BAA2B;QAC3B,6FAA6F;QAC7F,IACC,CAAC,OAAO,CAAC,MAAM,CAAC,qBAAqB,KAAK,SAAS;YAClD,OAAO,CAAC,MAAM,CAAC,uBAAuB,IAAI,IAAI;YAC9C,OAAO,CAAC,MAAM,CAAC,WAAW,IAAI,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"device-update-trigger.js","sourceRoot":"","sources":["../../../../src/features/ci-cd/hooks/device-update-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;IAC7C,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE;QAC5B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAY,CAAC;QAEzC,yCAAyC;QACzC,gBAAgB;QAChB,2BAA2B;QAC3B,6FAA6F;QAC7F,uFAAuF;QACvF,IACC,CAAC,OAAO,CAAC,MAAM,CAAC,qBAAqB,KAAK,SAAS;YAClD,OAAO,CAAC,MAAM,CAAC,uBAAuB,IAAI,IAAI;YAC9C,OAAO,CAAC,MAAM,CAAC,WAAW,IAAI,IAAI;YAClC,OAAO,CAAC,MAAM,CAAC,8BAA8B,IAAI,IAAI,CAAC;YACvD,WAAW,CAAC,MAAM,KAAK,CAAC,EACvB,CAAC;YACF,0DAA0D;YAC1D,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE;gBACvB,IAAI,CAAC;oBACJ,MAAM,WAAW,CAAC;wBACjB,GAAG,EAAE,YAAY;wBACjB,GAAG,EAAE,WAAW,CAAC,IAAI;wBACrB,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,EAAE;wBACpC,IAAI,EAAE,KAAK;qBACX,CAAC,CAAC;gBACJ,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACd,gBAAgB,CAAC,GAAG,EAAE,gCAAgC,CAAC,CAAC;gBACzD,CAAC;YACF,CAAC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/open-balena-api",
|
|
3
3
|
"description": "Internet of things, Made Simple",
|
|
4
|
-
"version": "46.
|
|
4
|
+
"version": "46.3.0",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -185,6 +185,6 @@
|
|
|
185
185
|
"import": "@swc-node/register/esm-register"
|
|
186
186
|
},
|
|
187
187
|
"versionist": {
|
|
188
|
-
"publishedAt": "2026-05-
|
|
188
|
+
"publishedAt": "2026-05-26T13:35:41.749Z"
|
|
189
189
|
}
|
|
190
190
|
}
|