balena-settings-client 4.0.7 → 5.0.1-drop-appveyor-e091801f3412c5e860d10e0d5a20b4684d148c8a

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
@@ -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.1
8
+ ## (2022-05-03)
9
+
10
+ * Stop running tests on appveyor [Thodoris Greasidis]
11
+
12
+ # v5.0.0
13
+ ## (2022-05-03)
14
+
15
+ * Drop the imageMakerUrl default setting [Thodoris Greasidis]
16
+
7
17
  # v4.0.7
8
18
  ## (2021-06-30)
9
19
 
@@ -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
@@ -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,I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W,IAAI,CAAC,SAAW,CAAC;IACpC,CAAC;IAED;;;OAGG;IACH,SAAS;QACR,OAAO,YAAU,IAAI,CAAC,SAAW,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,aAAa,EAAE,WAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAErD;;;OAGG;IACH,iBAAiB,EAAE,WAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAEvD;;;OAGG;IACH,cAAc;QACb,OAAO,WAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,YAAY;QACX,OAAO,WAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,cAAc,EAAE,CAAC,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAE3C;;;OAGG;IACH,oBAAoB,EAAE,CAAC,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE;IAExC;;;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": "4.0.7",
3
+ "version": "5.0.1-drop-appveyor-e091801f3412c5e860d10e0d5a20b4684d148c8a",
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:20:36.865Z"
77
80
  }
78
81
  }
@@ -67,14 +67,10 @@ describe('Defaults:', () => {
67
67
  });
68
68
 
69
69
  describe('.imageMakerUrl', () => {
70
- it('should be a valid url', () => {
71
- const setting = utils.evaluateSetting<string>(defaults, 'imageMakerUrl');
72
- expect(() => url.parse(setting)).to.not.throw(Error);
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/appveyor.yml DELETED
@@ -1,30 +0,0 @@
1
- # appveyor file
2
- # http://www.appveyor.com/docs/appveyor-yml
3
-
4
- init:
5
- - git config --global core.autocrlf input
6
-
7
- cache:
8
- - C:\Users\appveyor\.node-gyp
9
- - '%AppData%\npm-cache'
10
-
11
- # what combinations to test
12
- environment:
13
- matrix:
14
- - nodejs_version: 'stable'
15
- - nodejs_version: 8
16
- - nodejs_version: 6
17
-
18
- install:
19
- - ps: Install-Product node $env:nodejs_version x64
20
- - npm install -g npm@4
21
- - set PATH=%APPDATA%\npm;%PATH%
22
- - npm install
23
-
24
- build: off
25
-
26
- test_script:
27
- - node --version
28
- - npm --version
29
- - ps: npm test
30
- - cmd: npm test