@balena/env-parsing 1.1.10 → 1.1.11

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.
@@ -1,3 +1,24 @@
1
+ - commits:
2
+ - subject: Update type import
3
+ hash: 048e9954236aed01865141c3860e79a0400798d7
4
+ body: ""
5
+ footer:
6
+ Change-type: patch
7
+ change-type: patch
8
+ author: Josh Bowling
9
+ nested: []
10
+ - subject: Update dependency @balena/lint to v8
11
+ hash: 4989e05103642c2e214161d9acf59e76d027ba7a
12
+ body: |
13
+ Update @balena/lint from 7.3.0 to 8.0.0
14
+ footer:
15
+ Change-type: patch
16
+ change-type: patch
17
+ author: Self-hosted Renovate Bot
18
+ nested: []
19
+ version: 1.1.11
20
+ title: ""
21
+ date: 2024-04-09T01:53:07.783Z
1
22
  - commits:
2
23
  - subject: Update dependency rimraf to v5
3
24
  hash: 2549b71d43287a299b0adfa75dc79b9e53331890
@@ -10,7 +31,7 @@
10
31
  nested: []
11
32
  version: 1.1.10
12
33
  title: ""
13
- date: 2023-12-29T12:49:50.104Z
34
+ date: 2023-12-29T12:52:54.693Z
14
35
  - commits:
15
36
  - subject: Update dependency typescript to v5
16
37
  hash: 3f31c879075cb52ee522f1c6ee2725f46924da47
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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
+ ## 1.1.11 - 2024-04-09
8
+
9
+ * Update type import [Josh Bowling]
10
+ * Update dependency @balena/lint to v8 [Self-hosted Renovate Bot]
11
+
7
12
  ## 1.1.10 - 2023-12-29
8
13
 
9
14
  * Update dependency rimraf to v5 [Self-hosted Renovate Bot]
package/build/index.d.ts CHANGED
@@ -55,4 +55,4 @@ export declare const hostPortsVar: (varName: string | string[], defaultHosts?: H
55
55
  * ie it will parse 'true'/'false' into a boolean for express and '123'/etc into a number
56
56
  * so that express will be able to handle those correctly
57
57
  */
58
- export declare const trustProxyVar: <R>(varName: string | string[], defaultValue?: R | undefined) => string | number | boolean | R;
58
+ export declare const trustProxyVar: <R>(varName: string | string[], defaultValue?: R) => boolean | string | number | R;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/env-parsing",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "A collection of utilities to simplify/standardize env var parsing",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "homepage": "https://github.com/balena-io-modules/balena-env-parsing",
25
25
  "devDependencies": {
26
- "@balena/lint": "^7.2.0",
26
+ "@balena/lint": "^8.0.0",
27
27
  "@types/chai": "^4.3.3",
28
28
  "@types/mocha": "^10.0.0",
29
29
  "@types/node": "^20.0.0",
@@ -51,6 +51,6 @@
51
51
  ]
52
52
  },
53
53
  "versionist": {
54
- "publishedAt": "2023-12-29T12:49:50.161Z"
54
+ "publishedAt": "2024-04-09T01:53:07.841Z"
55
55
  }
56
56
  }
package/test/index.ts CHANGED
@@ -2,13 +2,13 @@ import { expect } from 'chai';
2
2
  import {
3
3
  boolVar,
4
4
  checkInt,
5
- HostPort,
6
5
  intVar,
7
6
  optionalVar,
8
7
  requiredVar,
9
8
  hostPortsVar,
10
9
  trustProxyVar,
11
10
  } from '../src';
11
+ import type { HostPort } from '../src';
12
12
 
13
13
  const varName = 'fruit';
14
14
  const varNames = ['vegetable', 'fruit'];