balena-settings-client 4.0.6 → 5.0.0-drop-imageMakerUrl-6f70bda41730cb77e8c21463e42e895283201304
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 +10 -0
- package/build/defaults.d.ts +0 -5
- package/build/defaults.js +0 -7
- package/build/defaults.js.map +1 -1
- package/lib/defaults.ts +0 -8
- package/package.json +4 -1
- package/tests/defaults.spec.ts +4 -8
- package/tests/e2e/test.ts +0 -1
- package/.github/CODEOWNERS +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ 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
|
+
# v5.0.0
|
|
8
|
+
## (2022-05-03)
|
|
9
|
+
|
|
10
|
+
* Drop the imageMakerUrl default setting [Thodoris Greasidis]
|
|
11
|
+
|
|
12
|
+
# v4.0.7
|
|
13
|
+
## (2021-06-30)
|
|
14
|
+
|
|
15
|
+
* Delete CODEOWNERS [Thodoris Greasidis]
|
|
16
|
+
|
|
7
17
|
# v4.0.6
|
|
8
18
|
## (2021-01-20)
|
|
9
19
|
|
package/build/defaults.d.ts
CHANGED
|
@@ -24,11 +24,6 @@ declare const _default: {
|
|
|
24
24
|
* @memberof defaults
|
|
25
25
|
*/
|
|
26
26
|
registry2Url(): string;
|
|
27
|
-
/**
|
|
28
|
-
* @property {Function} imageMakerUrl - Balena Image Maker url
|
|
29
|
-
* @memberof defaults
|
|
30
|
-
*/
|
|
31
|
-
imageMakerUrl(): string;
|
|
32
27
|
/**
|
|
33
28
|
* @property {Function} deltaUrl - Balena Delta url
|
|
34
29
|
* @memberof defaults
|
package/build/defaults.js
CHANGED
|
@@ -51,13 +51,6 @@ module.exports = {
|
|
|
51
51
|
registry2Url: function () {
|
|
52
52
|
return "registry2." + this.balenaUrl;
|
|
53
53
|
},
|
|
54
|
-
/**
|
|
55
|
-
* @property {Function} imageMakerUrl - Balena Image Maker url
|
|
56
|
-
* @memberof defaults
|
|
57
|
-
*/
|
|
58
|
-
imageMakerUrl: function () {
|
|
59
|
-
return "https://img." + this.balenaUrl;
|
|
60
|
-
},
|
|
61
54
|
/**
|
|
62
55
|
* @property {Function} deltaUrl - Balena Delta url
|
|
63
56
|
* @memberof defaults
|
package/build/defaults.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../lib/defaults.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;AAEF,mCAAqC;AACrC,sCAAwC;AACxC,6BAAwC;AAOxC,iBAAS;IACR;;;OAGG;IACH,SAAS,EAAE,kBAAkB;IAE7B;;;OAGG;IACH,MAAM;QACL,OAAO,iBAAe,IAAI,CAAC,SAAW,CAAC;IACxC,CAAC;IAED;;;OAGG;IACH,MAAM;QACL,OAAO,SAAO,IAAI,CAAC,SAAW,CAAC;IAChC,CAAC;IAED;;;OAGG;IACH,WAAW;QACV,OAAO,cAAY,IAAI,CAAC,SAAW,CAAC;IACrC,CAAC;IAED;;;OAGG;IACH,YAAY;QACX,OAAO,eAAa,IAAI,CAAC,SAAW,CAAC;IACtC,CAAC;IAED;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../lib/defaults.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;AAEF,mCAAqC;AACrC,sCAAwC;AACxC,6BAAwC;AAOxC,iBAAS;IACR;;;OAGG;IACH,SAAS,EAAE,kBAAkB;IAE7B;;;OAGG;IACH,MAAM;QACL,OAAO,iBAAe,IAAI,CAAC,SAAW,CAAC;IACxC,CAAC;IAED;;;OAGG;IACH,MAAM;QACL,OAAO,SAAO,IAAI,CAAC,SAAW,CAAC;IAChC,CAAC;IAED;;;OAGG;IACH,WAAW;QACV,OAAO,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AExC;;;OAGG;IACH,cAAc,EAAE,gBAAgB;CAChC,CAAC"}
|
package/lib/defaults.ts
CHANGED
|
@@ -62,14 +62,6 @@ export = {
|
|
|
62
62
|
return `registry2.${this.balenaUrl}`;
|
|
63
63
|
},
|
|
64
64
|
|
|
65
|
-
/**
|
|
66
|
-
* @property {Function} imageMakerUrl - Balena Image Maker url
|
|
67
|
-
* @memberof defaults
|
|
68
|
-
*/
|
|
69
|
-
imageMakerUrl() {
|
|
70
|
-
return `https://img.${this.balenaUrl}`;
|
|
71
|
-
},
|
|
72
|
-
|
|
73
65
|
/**
|
|
74
66
|
* @property {Function} deltaUrl - Balena Delta url
|
|
75
67
|
* @memberof defaults
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balena-settings-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-drop-imageMakerUrl-6f70bda41730cb77e8c21463e42e895283201304",
|
|
4
4
|
"description": "Balena client application shared settings",
|
|
5
5
|
"main": "build/settings.js",
|
|
6
6
|
"types": "build/settings.d.ts",
|
|
@@ -74,5 +74,8 @@
|
|
|
74
74
|
"*.ts": [
|
|
75
75
|
"balena-lint --typescript --fix"
|
|
76
76
|
]
|
|
77
|
+
},
|
|
78
|
+
"versionist": {
|
|
79
|
+
"publishedAt": "2022-05-03T07:12:09.499Z"
|
|
77
80
|
}
|
|
78
81
|
}
|
package/tests/defaults.spec.ts
CHANGED
|
@@ -67,14 +67,10 @@ describe('Defaults:', () => {
|
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
describe('.imageMakerUrl', () => {
|
|
70
|
-
it('should
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
it('should contain an https protocol', () => {
|
|
76
|
-
const setting = utils.evaluateSetting<string>(defaults, 'imageMakerUrl');
|
|
77
|
-
expect(url.parse(setting).protocol).to.equal('https:');
|
|
70
|
+
it('should throw', () => {
|
|
71
|
+
expect(() =>
|
|
72
|
+
utils.evaluateSetting<string>(defaults, 'imageMakerUrl'),
|
|
73
|
+
).to.throw(Error, 'Setting not found: imageMakerUrl');
|
|
78
74
|
});
|
|
79
75
|
});
|
|
80
76
|
|
package/tests/e2e/test.ts
CHANGED
|
@@ -168,7 +168,6 @@ wary.it('should be able to return all settings', {}, () => {
|
|
|
168
168
|
vpnUrl: 'vpn.balenadev.custom.com/',
|
|
169
169
|
registryUrl: 'registry.balenadev.custom.com/',
|
|
170
170
|
registry2Url: 'registry2.balenadev.custom.com/',
|
|
171
|
-
imageMakerUrl: 'https://img.balenadev.custom.com/',
|
|
172
171
|
deltaUrl: 'https://delta.balenadev.custom.com/',
|
|
173
172
|
dashboardUrl: 'https://dashboard.balenadev.custom.com/',
|
|
174
173
|
proxyUrl: 'devices.balenadev.custom.com/',
|
package/.github/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
* @pdcastro @zvin @hedss
|