Update balena-sdk to 17.0.0

Update balena-sdk from 16.45.1 to 17.0.0

Change-type: patch
This commit is contained in:
Thodoris Greasidis 2023-05-23 13:21:51 +03:00
parent 9d197317ca
commit 77cf4af166
13 changed files with 338 additions and 89 deletions

View File

@ -200,9 +200,8 @@ export default class ConfigGenerateCmd extends Command {
}
}
const deviceManifest = await balena.models.device.getManifestBySlug(
deviceType,
);
const deviceManifest =
await balena.models.config.getDeviceTypeManifestBySlug(deviceType);
const { validateSecureBootOptionAndWarn } = await import(
'../../utils/config'

View File

@ -235,7 +235,7 @@ ${dockerignoreHelp}
releaseTagValues,
);
if (options.note) {
await sdk.models.release.note(release.id, options.note);
await sdk.models.release.setNote(release.id, options.note);
}
}

View File

@ -82,7 +82,11 @@ export default class DevicesCmd extends Command {
const { flags: options } = this.parse<FlagsDef, {}>(DevicesCmd);
const balena = getBalenaSdk();
const devicesOptions = { ...devicesSelectFields, ...expandForAppName };
const devicesOptions = {
...devicesSelectFields,
...expandForAppName,
$orderby: { device_name: 'asc' },
} satisfies PineOptions<Device>;
let devices;
@ -94,9 +98,10 @@ export default class DevicesCmd extends Command {
devicesOptions,
)) as ExtendedDevice[];
} else {
devices = (await balena.models.device.getAll(
devicesOptions,
)) as ExtendedDevice[];
devices = (await balena.pine.get({
resource: 'device',
options: devicesOptions,
})) as ExtendedDevice[];
}
devices = devices.map(function (device) {

View File

@ -16,7 +16,6 @@
*/
import { flags } from '@oclif/command';
import type { Application } from 'balena-sdk';
import Command from '../../command';
import { ExpectedError } from '../../errors';
@ -101,13 +100,17 @@ export default class FleetCreateCmd extends Command {
options.organization?.toLowerCase() || (await this.getOrganization());
// Create application
let application: Application;
try {
application = await getBalenaSdk().models.application.create({
const application = await getBalenaSdk().models.application.create({
name: params.name,
deviceType,
organization,
});
// Output
console.log(
`Fleet created: slug "${application.slug}", device type "${deviceType}"`,
);
} catch (err) {
if ((err.message || '').toLowerCase().includes('unique')) {
// BalenaRequestError: Request error: "organization" and "app_name" must be unique.
@ -123,11 +126,6 @@ export default class FleetCreateCmd extends Command {
throw err;
}
// Output
console.log(
`Fleet created: slug "${application.slug}", device type "${deviceType}"`,
);
}
async getOrganization() {

View File

@ -88,6 +88,6 @@ export default class NoteCmd extends Command {
const balena = getBalenaSdk();
return balena.models.device.note(options.device!, params.note);
return balena.models.device.setNote(options.device, params.note);
}
}

View File

@ -358,7 +358,7 @@ export default class PushCmd extends Command {
releaseTagValues,
);
if (options.note) {
await sdk.models.release.note(releaseId, options.note);
await sdk.models.release.setNote(releaseId, options.note);
}
} else if (releaseTagKeys.length > 0) {
throw new Error(stripIndent`

View File

@ -200,18 +200,10 @@ export async function validateSecureBootOptionAndWarn(
throw new ExpectedError(`Error: No device type provided`);
}
const sdk = getBalenaSdk();
const releasePineOpts = {
const [osRelease] = await sdk.models.os.getAllOsVersions(slug, {
$select: 'contract',
$filter: { raw_version: `${version.replace(/^v/, '')}` },
} satisfies BalenaSdk.PineOptions<BalenaSdk.Release>;
// TODO: Remove the added type casting when the SDK returns the fully typed result
const [osRelease] = (await sdk.models.os.getAllOsVersions(
slug,
releasePineOpts,
)) as Array<
BalenaSdk.OsVersion &
BalenaSdk.PineTypedResult<BalenaSdk.Release, typeof releasePineOpts>
>;
});
if (!osRelease) {
throw new ExpectedError(`Error: No ${version} release for ${slug}`);
}

View File

@ -119,7 +119,10 @@ export async function getManifest(
`The device type of the provided OS image ${manifest.slug}, does not match the expected device type ${deviceType}`,
);
}
return manifest ?? (await sdk.models.device.getManifestBySlug(deviceType));
return (
manifest ??
(await sdk.models.config.getDeviceTypeManifestBySlug(deviceType))
);
}
export const areDeviceTypesCompatible = async (

View File

@ -252,33 +252,6 @@ export async function awaitDeviceOsUpdate(
return uuid;
}
export function inferOrSelectDevice(preferredUuid: string) {
const balena = getBalenaSdk();
return balena.models.device.getAll().then((devices) => {
const onlineDevices = devices.filter((device) => device.is_online);
if (_.isEmpty(onlineDevices)) {
throw new ExpectedError("You don't have any devices online");
}
const defaultUuid = _(onlineDevices).map('uuid').includes(preferredUuid)
? preferredUuid
: onlineDevices[0].uuid;
return getCliForm().ask({
message: 'Select a device',
type: 'list',
default: defaultUuid,
choices: _.map(onlineDevices, (device) => ({
name: `${device.device_name || 'Untitled'} (${device.uuid.slice(
0,
7,
)})`,
value: device.uuid,
})),
});
});
}
/*
* Given fleetOrDevice, which may be
* - a fleet name

View File

@ -16,10 +16,10 @@ limitations under the License.
import type { OptionalNavigationResource } from 'balena-sdk';
export const getExpanded = <T>(obj: OptionalNavigationResource<T>) =>
export const getExpanded = <T extends {}>(obj: OptionalNavigationResource<T>) =>
(Array.isArray(obj) && obj[0]) || undefined;
export const getExpandedProp = <T, K extends keyof T>(
export const getExpandedProp = <T extends {}, K extends keyof T>(
obj: OptionalNavigationResource<T>,
key: K,
) => (Array.isArray(obj) && obj[0] && obj[0][key]) || undefined;

View File

@ -427,7 +427,7 @@ async function generateApplicationConfig(
) {
const { generateApplicationConfig: configGen } = await import('./config');
const manifest = await sdk.models.device.getManifestBySlug(
const manifest = await sdk.models.config.getDeviceTypeManifestBySlug(
app.is_for__device_type[0].slug,
);
const opts =

337
npm-shrinkwrap.json generated
View File

@ -24,7 +24,7 @@
"balena-image-fs": "^7.0.6",
"balena-image-manager": "^8.0.0",
"balena-preload": "^13.0.0",
"balena-sdk": "^16.44.2",
"balena-sdk": "^17.0.0",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.7",
"balena-settings-storage": "^7.0.0",
@ -3952,15 +3952,16 @@
}
},
"node_modules/balena-hup-action-utils": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-4.1.3.tgz",
"integrity": "sha512-98SK5oTPgTKWsbEmPk0juI/ivT5qADsj/y+/B39I47lbDfPuhF/kHpgMI+xQCtT/GS+Dy3omkgY4nEcRI4CeoQ==",
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-5.0.0.tgz",
"integrity": "sha512-Hw/eyvQGPwKGjWwNcuntbfoHMskzymvesW6PebSGtzAYd+TJuv6mRkmLS2qspnjACOR3KYyJElIipNCkeVczpQ==",
"dependencies": {
"balena-semver": "^2.0.0",
"tslib": "^2.0.0"
"tslib": "^2.0.0",
"typed-error": "^3.2.2"
},
"engines": {
"node": ">=10"
"node": ">=12"
}
},
"node_modules/balena-image-fs": {
@ -3992,6 +3993,66 @@
"node": ">=12.0.0"
}
},
"node_modules/balena-image-manager/node_modules/@types/node": {
"version": "12.20.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="
},
"node_modules/balena-image-manager/node_modules/balena-hup-action-utils": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-4.1.3.tgz",
"integrity": "sha512-98SK5oTPgTKWsbEmPk0juI/ivT5qADsj/y+/B39I47lbDfPuhF/kHpgMI+xQCtT/GS+Dy3omkgY4nEcRI4CeoQ==",
"dependencies": {
"balena-semver": "^2.0.0",
"tslib": "^2.0.0"
},
"engines": {
"node": ">=10"
}
},
"node_modules/balena-image-manager/node_modules/balena-sdk": {
"version": "16.45.1",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-16.45.1.tgz",
"integrity": "sha512-pY3anTkmEcOp8GEgjkeJl8aj7SZBWifh4DSp8sUnryE0U7IGA3UcKggsfMjYsP1ZKvPlAvweNHQuUujfBOHbXg==",
"dependencies": {
"@balena/es-version": "^1.0.0",
"@types/json-schema": "^7.0.9",
"@types/node": "^12.20.50",
"abortcontroller-polyfill": "^1.7.1",
"balena-auth": "^4.1.0",
"balena-errors": "^4.7.3",
"balena-hup-action-utils": "~4.1.0",
"balena-register-device": "^8.0.0",
"balena-request": "^11.5.5",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.6",
"date-fns": "^2.29.3",
"handlebars": "^4.7.7",
"lodash": "^4.17.21",
"memoizee": "^0.4.15",
"ndjson": "^2.0.0",
"pinejs-client-core": "^6.12.0",
"tslib": "^2.1.0"
},
"engines": {
"node": ">=12.0"
}
},
"node_modules/balena-image-manager/node_modules/date-fns": {
"version": "2.30.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
"dependencies": {
"@babel/runtime": "^7.21.0"
},
"engines": {
"node": ">=0.11"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/date-fns"
}
},
"node_modules/balena-preload": {
"version": "13.0.0",
"resolved": "https://registry.npmjs.org/balena-preload/-/balena-preload-13.0.0.tgz",
@ -4018,6 +4079,11 @@
"node": ">=12"
}
},
"node_modules/balena-preload/node_modules/@types/node": {
"version": "12.20.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="
},
"node_modules/balena-preload/node_modules/archiver": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/archiver/-/archiver-3.1.1.tgz",
@ -4035,6 +4101,46 @@
"node": ">= 6"
}
},
"node_modules/balena-preload/node_modules/balena-hup-action-utils": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-4.1.3.tgz",
"integrity": "sha512-98SK5oTPgTKWsbEmPk0juI/ivT5qADsj/y+/B39I47lbDfPuhF/kHpgMI+xQCtT/GS+Dy3omkgY4nEcRI4CeoQ==",
"dependencies": {
"balena-semver": "^2.0.0",
"tslib": "^2.0.0"
},
"engines": {
"node": ">=10"
}
},
"node_modules/balena-preload/node_modules/balena-sdk": {
"version": "16.45.1",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-16.45.1.tgz",
"integrity": "sha512-pY3anTkmEcOp8GEgjkeJl8aj7SZBWifh4DSp8sUnryE0U7IGA3UcKggsfMjYsP1ZKvPlAvweNHQuUujfBOHbXg==",
"dependencies": {
"@balena/es-version": "^1.0.0",
"@types/json-schema": "^7.0.9",
"@types/node": "^12.20.50",
"abortcontroller-polyfill": "^1.7.1",
"balena-auth": "^4.1.0",
"balena-errors": "^4.7.3",
"balena-hup-action-utils": "~4.1.0",
"balena-register-device": "^8.0.0",
"balena-request": "^11.5.5",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.6",
"date-fns": "^2.29.3",
"handlebars": "^4.7.7",
"lodash": "^4.17.21",
"memoizee": "^0.4.15",
"ndjson": "^2.0.0",
"pinejs-client-core": "^6.12.0",
"tslib": "^2.1.0"
},
"engines": {
"node": ">=12.0"
}
},
"node_modules/balena-preload/node_modules/compress-commons": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-2.1.1.tgz",
@ -4075,6 +4181,21 @@
"node": ">= 6.9.0"
}
},
"node_modules/balena-preload/node_modules/date-fns": {
"version": "2.30.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
"dependencies": {
"@babel/runtime": "^7.21.0"
},
"engines": {
"node": ">=0.11"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/date-fns"
}
},
"node_modules/balena-preload/node_modules/readable-stream": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
@ -4148,21 +4269,21 @@
}
},
"node_modules/balena-sdk": {
"version": "16.45.1",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-16.45.1.tgz",
"integrity": "sha512-pY3anTkmEcOp8GEgjkeJl8aj7SZBWifh4DSp8sUnryE0U7IGA3UcKggsfMjYsP1ZKvPlAvweNHQuUujfBOHbXg==",
"version": "17.0.0",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-17.0.0.tgz",
"integrity": "sha512-CivFA2dGjV232nhPyc/1aA19EXLbZ5BAJ3EQ0TsA3xNx7M7fZr76Q9s47BDfAFgEO921dFxBZx30xqY1ifFI6g==",
"dependencies": {
"@balena/es-version": "^1.0.0",
"@types/json-schema": "^7.0.9",
"@types/node": "^12.20.50",
"@types/node": "^14.0.0",
"abortcontroller-polyfill": "^1.7.1",
"balena-auth": "^4.1.0",
"balena-errors": "^4.7.3",
"balena-hup-action-utils": "~4.1.0",
"balena-hup-action-utils": "~5.0.0",
"balena-register-device": "^8.0.0",
"balena-request": "^11.5.5",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.6",
"balena-settings-client": "^5.0.0",
"date-fns": "^2.29.3",
"handlebars": "^4.7.7",
"lodash": "^4.17.21",
@ -4172,13 +4293,33 @@
"tslib": "^2.1.0"
},
"engines": {
"node": ">=12.0"
"node": ">=14.0"
}
},
"node_modules/balena-sdk/node_modules/@types/js-yaml": {
"version": "3.11.1",
"resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.11.1.tgz",
"integrity": "sha512-M5qhhfuTt4fwHGqqANNQilp3Htb5cHwBxlMHDUw/TYRVkEp3s3IIFSH3Fe9HIAeEtnO4p3SSowLmCVavdRYfpw=="
},
"node_modules/balena-sdk/node_modules/@types/node": {
"version": "12.20.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="
"version": "14.18.47",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.47.tgz",
"integrity": "sha512-OuJi8bIng4wYHHA3YpKauL58dZrPxro3d0tabPHyiNF8rKfGKuVfr83oFlPLmKri1cX+Z3cJP39GXmnqkP11Gw=="
},
"node_modules/balena-sdk/node_modules/balena-settings-client": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/balena-settings-client/-/balena-settings-client-5.0.2.tgz",
"integrity": "sha512-i3YKQeKJ3E4yAkB1emxMyp0hM7nSJxy5m1P2btRu5U3D6M2s3AdahB23dfdchDtx/riT9vTrcG4vZa2aKV2+kw==",
"dependencies": {
"@resin.io/types-hidepath": "1.0.1",
"@resin.io/types-home-or-tmp": "3.0.0",
"@types/js-yaml": "3.11.1",
"@types/lodash": "^4.14.150",
"hidepath": "^1.0.0",
"home-or-tmp": "^2.0.0",
"js-yaml": "^3.4.0",
"lodash": "^4.17.15"
}
},
"node_modules/balena-sdk/node_modules/date-fns": {
"version": "2.30.0",
@ -4195,6 +4336,18 @@
"url": "https://opencollective.com/date-fns"
}
},
"node_modules/balena-sdk/node_modules/js-yaml": {
"version": "3.14.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
"integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
"dependencies": {
"argparse": "^1.0.7",
"esprima": "^4.0.0"
},
"bin": {
"js-yaml": "bin/js-yaml.js"
}
},
"node_modules/balena-semver": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/balena-semver/-/balena-semver-2.3.0.tgz",
@ -25657,12 +25810,13 @@
}
},
"balena-hup-action-utils": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-4.1.3.tgz",
"integrity": "sha512-98SK5oTPgTKWsbEmPk0juI/ivT5qADsj/y+/B39I47lbDfPuhF/kHpgMI+xQCtT/GS+Dy3omkgY4nEcRI4CeoQ==",
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-5.0.0.tgz",
"integrity": "sha512-Hw/eyvQGPwKGjWwNcuntbfoHMskzymvesW6PebSGtzAYd+TJuv6mRkmLS2qspnjACOR3KYyJElIipNCkeVczpQ==",
"requires": {
"balena-semver": "^2.0.0",
"tslib": "^2.0.0"
"tslib": "^2.0.0",
"typed-error": "^3.2.2"
}
},
"balena-image-fs": {
@ -25686,6 +25840,55 @@
"mime": "^2.4.6",
"mkdirp": "^1.0.4",
"rimraf": "^3.0.2"
},
"dependencies": {
"@types/node": {
"version": "12.20.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="
},
"balena-hup-action-utils": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-4.1.3.tgz",
"integrity": "sha512-98SK5oTPgTKWsbEmPk0juI/ivT5qADsj/y+/B39I47lbDfPuhF/kHpgMI+xQCtT/GS+Dy3omkgY4nEcRI4CeoQ==",
"requires": {
"balena-semver": "^2.0.0",
"tslib": "^2.0.0"
}
},
"balena-sdk": {
"version": "16.45.1",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-16.45.1.tgz",
"integrity": "sha512-pY3anTkmEcOp8GEgjkeJl8aj7SZBWifh4DSp8sUnryE0U7IGA3UcKggsfMjYsP1ZKvPlAvweNHQuUujfBOHbXg==",
"requires": {
"@balena/es-version": "^1.0.0",
"@types/json-schema": "^7.0.9",
"@types/node": "^12.20.50",
"abortcontroller-polyfill": "^1.7.1",
"balena-auth": "^4.1.0",
"balena-errors": "^4.7.3",
"balena-hup-action-utils": "~4.1.0",
"balena-register-device": "^8.0.0",
"balena-request": "^11.5.5",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.6",
"date-fns": "^2.29.3",
"handlebars": "^4.7.7",
"lodash": "^4.17.21",
"memoizee": "^0.4.15",
"ndjson": "^2.0.0",
"pinejs-client-core": "^6.12.0",
"tslib": "^2.1.0"
}
},
"date-fns": {
"version": "2.30.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
"requires": {
"@babel/runtime": "^7.21.0"
}
}
}
},
"balena-preload": {
@ -25711,6 +25914,11 @@
"unzipper": "^0.8.14"
},
"dependencies": {
"@types/node": {
"version": "12.20.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="
},
"archiver": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/archiver/-/archiver-3.1.1.tgz",
@ -25725,6 +25933,40 @@
"zip-stream": "^2.1.2"
}
},
"balena-hup-action-utils": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/balena-hup-action-utils/-/balena-hup-action-utils-4.1.3.tgz",
"integrity": "sha512-98SK5oTPgTKWsbEmPk0juI/ivT5qADsj/y+/B39I47lbDfPuhF/kHpgMI+xQCtT/GS+Dy3omkgY4nEcRI4CeoQ==",
"requires": {
"balena-semver": "^2.0.0",
"tslib": "^2.0.0"
}
},
"balena-sdk": {
"version": "16.45.1",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-16.45.1.tgz",
"integrity": "sha512-pY3anTkmEcOp8GEgjkeJl8aj7SZBWifh4DSp8sUnryE0U7IGA3UcKggsfMjYsP1ZKvPlAvweNHQuUujfBOHbXg==",
"requires": {
"@balena/es-version": "^1.0.0",
"@types/json-schema": "^7.0.9",
"@types/node": "^12.20.50",
"abortcontroller-polyfill": "^1.7.1",
"balena-auth": "^4.1.0",
"balena-errors": "^4.7.3",
"balena-hup-action-utils": "~4.1.0",
"balena-register-device": "^8.0.0",
"balena-request": "^11.5.5",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.6",
"date-fns": "^2.29.3",
"handlebars": "^4.7.7",
"lodash": "^4.17.21",
"memoizee": "^0.4.15",
"ndjson": "^2.0.0",
"pinejs-client-core": "^6.12.0",
"tslib": "^2.1.0"
}
},
"compress-commons": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-2.1.1.tgz",
@ -25761,6 +26003,14 @@
"readable-stream": "^3.4.0"
}
},
"date-fns": {
"version": "2.30.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",
"integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",
"requires": {
"@babel/runtime": "^7.21.0"
}
},
"readable-stream": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
@ -25816,21 +26066,21 @@
}
},
"balena-sdk": {
"version": "16.45.1",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-16.45.1.tgz",
"integrity": "sha512-pY3anTkmEcOp8GEgjkeJl8aj7SZBWifh4DSp8sUnryE0U7IGA3UcKggsfMjYsP1ZKvPlAvweNHQuUujfBOHbXg==",
"version": "17.0.0",
"resolved": "https://registry.npmjs.org/balena-sdk/-/balena-sdk-17.0.0.tgz",
"integrity": "sha512-CivFA2dGjV232nhPyc/1aA19EXLbZ5BAJ3EQ0TsA3xNx7M7fZr76Q9s47BDfAFgEO921dFxBZx30xqY1ifFI6g==",
"requires": {
"@balena/es-version": "^1.0.0",
"@types/json-schema": "^7.0.9",
"@types/node": "^12.20.50",
"@types/node": "^14.0.0",
"abortcontroller-polyfill": "^1.7.1",
"balena-auth": "^4.1.0",
"balena-errors": "^4.7.3",
"balena-hup-action-utils": "~4.1.0",
"balena-hup-action-utils": "~5.0.0",
"balena-register-device": "^8.0.0",
"balena-request": "^11.5.5",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.6",
"balena-settings-client": "^5.0.0",
"date-fns": "^2.29.3",
"handlebars": "^4.7.7",
"lodash": "^4.17.21",
@ -25840,10 +26090,30 @@
"tslib": "^2.1.0"
},
"dependencies": {
"@types/js-yaml": {
"version": "3.11.1",
"resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.11.1.tgz",
"integrity": "sha512-M5qhhfuTt4fwHGqqANNQilp3Htb5cHwBxlMHDUw/TYRVkEp3s3IIFSH3Fe9HIAeEtnO4p3SSowLmCVavdRYfpw=="
},
"@types/node": {
"version": "12.20.55",
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz",
"integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ=="
"version": "14.18.47",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.47.tgz",
"integrity": "sha512-OuJi8bIng4wYHHA3YpKauL58dZrPxro3d0tabPHyiNF8rKfGKuVfr83oFlPLmKri1cX+Z3cJP39GXmnqkP11Gw=="
},
"balena-settings-client": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/balena-settings-client/-/balena-settings-client-5.0.2.tgz",
"integrity": "sha512-i3YKQeKJ3E4yAkB1emxMyp0hM7nSJxy5m1P2btRu5U3D6M2s3AdahB23dfdchDtx/riT9vTrcG4vZa2aKV2+kw==",
"requires": {
"@resin.io/types-hidepath": "1.0.1",
"@resin.io/types-home-or-tmp": "3.0.0",
"@types/js-yaml": "3.11.1",
"@types/lodash": "^4.14.150",
"hidepath": "^1.0.0",
"home-or-tmp": "^2.0.0",
"js-yaml": "^3.4.0",
"lodash": "^4.17.15"
}
},
"date-fns": {
"version": "2.30.0",
@ -25852,6 +26122,15 @@
"requires": {
"@babel/runtime": "^7.21.0"
}
},
"js-yaml": {
"version": "3.14.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
"integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
"requires": {
"argparse": "^1.0.7",
"esprima": "^4.0.0"
}
}
}
},

View File

@ -207,7 +207,7 @@
"balena-image-fs": "^7.0.6",
"balena-image-manager": "^8.0.0",
"balena-preload": "^13.0.0",
"balena-sdk": "^16.44.2",
"balena-sdk": "^17.0.0",
"balena-semver": "^2.3.0",
"balena-settings-client": "^4.0.7",
"balena-settings-storage": "^7.0.0",