balena-sdk 16.37.0 → 16.38.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 +4 -0
- package/es2015/balena-browser.js +22 -14
- package/es2015/balena-browser.min.js +1 -1
- package/es2015/models/balenaos-contract.d.ts +3 -2
- package/es2015/models/balenaos-contract.js +15 -12
- package/es2015/models/device-type.js +6 -1
- package/es2015/util/sdk-version.js +1 -1
- package/es2018/balena-browser.js +22 -14
- package/es2018/balena-browser.min.js +1 -1
- package/es2018/models/balenaos-contract.d.ts +3 -2
- package/es2018/models/balenaos-contract.js +15 -12
- package/es2018/models/device-type.js +6 -1
- package/es2018/util/sdk-version.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## 16.38.0 - 2023-03-21
|
|
8
|
+
|
|
9
|
+
* Add aliases for the DT contrast slugs used in getInstructions [Thodoris Greasidis]
|
|
10
|
+
|
|
7
11
|
## 16.37.0 - 2023-03-21
|
|
8
12
|
|
|
9
13
|
* device-type/getInstructions: Overload to accept the device type contract [Thodoris Greasidis]
|
package/es2015/balena-browser.js
CHANGED
|
@@ -4030,10 +4030,10 @@ exports.default = getApplicationModel;
|
|
|
4030
4030
|
},{"../util":45,"../util/callbacks":35,"../util/dependent-resource":37,"../util/device-os-version":41,"../util/device-service-details":42,"../util/request-batching":48,"./application-invite":6,"./application-membership":7,"./device-type":13,"./release":23,"balena-errors":63,"lodash/once":407,"tslib":583,"url":590}],9:[function(require,module,exports){
|
|
4031
4031
|
"use strict";
|
|
4032
4032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4033
|
-
exports.BalenaOS = void 0;
|
|
4033
|
+
exports.aliases = exports.BalenaOS = void 0;
|
|
4034
4034
|
// Hardcoded host OS contract, this should be moved to the Yocto build process with meta-balena.
|
|
4035
4035
|
// Here for initial implementatin and testing purposes
|
|
4036
|
-
|
|
4036
|
+
exports.BalenaOS = {
|
|
4037
4037
|
name: 'balenaOS',
|
|
4038
4038
|
slug: 'balenaos',
|
|
4039
4039
|
type: 'sw.os',
|
|
@@ -4048,24 +4048,24 @@ const BalenaOS = {
|
|
|
4048
4048
|
`{{{deviceType.partials.bootDevice}}} to boot the device.`,
|
|
4049
4049
|
],
|
|
4050
4050
|
externalFlash: [
|
|
4051
|
-
`Insert the {{deviceType.data.media.altBoot.[0]}} to the host machine.`,
|
|
4052
|
-
`Write the {{name}} file you downloaded to the {{deviceType.data.media.altBoot.[0]}}. We recommend using <a href="http://www.etcher.io/">Etcher</a>.`,
|
|
4051
|
+
`Insert the {{resolveContractAlias deviceType.data.media.altBoot.[0]}} to the host machine.`,
|
|
4052
|
+
`Write the {{name}} file you downloaded to the {{resolveContractAlias deviceType.data.media.altBoot.[0]}}. We recommend using <a href="http://www.etcher.io/">Etcher</a>.`,
|
|
4053
4053
|
`Wait for writing of {{name}} to complete.`,
|
|
4054
|
-
`Remove the {{deviceType.data.media.altBoot.[0]}} from the host machine.`,
|
|
4055
|
-
`Insert the freshly flashed {{deviceType.data.media.altBoot.[0]}} into the {{deviceType.name}}.`,
|
|
4054
|
+
`Remove the {{resolveContractAlias deviceType.data.media.altBoot.[0]}} from the host machine.`,
|
|
4055
|
+
`Insert the freshly flashed {{resolveContractAlias deviceType.data.media.altBoot.[0]}} into the {{deviceType.name}}.`,
|
|
4056
4056
|
`<strong role="alert">Warning!</strong> This will also completely erase internal storage medium, so please make a backup first.`,
|
|
4057
4057
|
`{{#each deviceType.partials.bootDeviceExternal}}{{{this}}} {{/each}}`,
|
|
4058
4058
|
`Wait for the {{deviceType.name}} to finish flashing and shutdown. {{#if deviceType.partials.flashIndicator}}Please wait until {{deviceType.partials.flashIndicator}}.{{/if}}`,
|
|
4059
|
-
`Remove the {{deviceType.data.media.altBoot.[0]}} from the {{deviceType.name}}.`,
|
|
4059
|
+
`Remove the {{resolveContractAlias deviceType.data.media.altBoot.[0]}} from the {{deviceType.name}}.`,
|
|
4060
4060
|
`{{#each deviceType.partials.bootDeviceInternal}}{{{this}}} {{/each}}`,
|
|
4061
4061
|
`{{{deviceType.partials.bootDevice}}} to boot the device.`,
|
|
4062
4062
|
],
|
|
4063
4063
|
externalBoot: [
|
|
4064
|
-
`Insert the {{deviceType.data.media.defaultBoot}} to the host machine.`,
|
|
4065
|
-
`Write the {{name}} file you downloaded to the {{deviceType.data.media.defaultBoot}}. We recommend using <a href="http://www.etcher.io/">Etcher</a>.`,
|
|
4064
|
+
`Insert the {{resolveContractAlias deviceType.data.media.defaultBoot}} to the host machine.`,
|
|
4065
|
+
`Write the {{name}} file you downloaded to the {{resolveContractAlias deviceType.data.media.defaultBoot}}. We recommend using <a href="http://www.etcher.io/">Etcher</a>.`,
|
|
4066
4066
|
`Wait for writing of {{name}} to complete.`,
|
|
4067
|
-
`Remove the {{deviceType.data.media.defaultBoot}} from the host machine.`,
|
|
4068
|
-
`Insert the freshly flashed {{deviceType.data.media.defaultBoot}} into the {{deviceType.name}}.`,
|
|
4067
|
+
`Remove the {{resolveContractAlias deviceType.data.media.defaultBoot}} from the host machine.`,
|
|
4068
|
+
`Insert the freshly flashed {{resolveContractAlias deviceType.data.media.defaultBoot}} into the {{deviceType.name}}.`,
|
|
4069
4069
|
`{{{deviceType.partials.bootDevice}}} to boot the device.`,
|
|
4070
4070
|
],
|
|
4071
4071
|
jetsonFlash: [
|
|
@@ -4106,7 +4106,10 @@ const BalenaOS = {
|
|
|
4106
4106
|
},
|
|
4107
4107
|
},
|
|
4108
4108
|
};
|
|
4109
|
-
exports.
|
|
4109
|
+
exports.aliases = {
|
|
4110
|
+
sdcard: 'SD card',
|
|
4111
|
+
usb_mass_storage: 'USB key',
|
|
4112
|
+
};
|
|
4110
4113
|
|
|
4111
4114
|
},{}],10:[function(require,module,exports){
|
|
4112
4115
|
"use strict";
|
|
@@ -4738,6 +4741,11 @@ const Handlebars = tslib_1.__importStar(require("handlebars"));
|
|
|
4738
4741
|
const cloneDeep = require("lodash/cloneDeep");
|
|
4739
4742
|
// REPLACE ONCE HOST OS CONTRACTS ARE GENERATED THROUGH YOCTO
|
|
4740
4743
|
const balenaos_contract_1 = require("./balenaos-contract");
|
|
4744
|
+
const handlebarsRuntimeOptions = {
|
|
4745
|
+
helpers: {
|
|
4746
|
+
resolveContractAlias: (slug) => { var _a; return (_a = balenaos_contract_1.aliases[slug]) !== null && _a !== void 0 ? _a : slug; },
|
|
4747
|
+
},
|
|
4748
|
+
};
|
|
4741
4749
|
const traversingCompile = (partials, initial, path) => {
|
|
4742
4750
|
let interpolated = Object.assign({}, initial);
|
|
4743
4751
|
for (const partialKey of Object.keys(partials)) {
|
|
@@ -4749,7 +4757,7 @@ const traversingCompile = (partials, initial, path) => {
|
|
|
4749
4757
|
}
|
|
4750
4758
|
// if array of partials, compile the template
|
|
4751
4759
|
location[partialKey] = current
|
|
4752
|
-
.map((partial) => Handlebars.compile(partial)(interpolated))
|
|
4760
|
+
.map((partial) => Handlebars.compile(partial)(interpolated, handlebarsRuntimeOptions))
|
|
4753
4761
|
.filter((n) => n);
|
|
4754
4762
|
}
|
|
4755
4763
|
else {
|
|
@@ -12707,7 +12715,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12707
12715
|
// being embedded in the dist of the consumer project
|
|
12708
12716
|
// which we want to avoid, both b/c of the dist size increase &
|
|
12709
12717
|
// the security concerns of including the versions of the dependencies
|
|
12710
|
-
const sdkVersion = '16.
|
|
12718
|
+
const sdkVersion = '16.38.0';
|
|
12711
12719
|
exports.default = sdkVersion;
|
|
12712
12720
|
|
|
12713
12721
|
},{}],50:[function(require,module,exports){
|