Skip to content

Commit 1a04e48

Browse files
committed
fix: work even if value is inexplicably undefined
1 parent b55f17f commit 1a04e48

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.circleci/config.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ jobs:
99
# specify the version you desire here
1010
- image: circleci/node
1111

12-
# Specify service dependencies here if necessary
13-
# CircleCI maintains a library of pre-built images
14-
# documented at https://circleci.com/docs/2.0/circleci-images/
15-
# - image: circleci/mongo:3.4.4
16-
1712
working_directory: ~/repo
1813

1914
steps:
@@ -23,7 +18,6 @@ jobs:
2318
- restore_cache:
2419
keys:
2520
- v1-dependencies-{{ checksum "package.json" }}
26-
# fallback to using the latest cache if no exact match is found
2721
- v1-dependencies-
2822

2923
- run: yarn install
@@ -35,3 +29,15 @@ jobs:
3529

3630
# run tests!
3731
- run: yarn test
32+
33+
release:
34+
docker:
35+
- image: circleci/node
36+
steps:
37+
- checkout
38+
- restore_cache:
39+
keys:
40+
- v1-dependencies-{{ checksum "package.json" }}
41+
- v1-dependencies-
42+
- run: yarn install
43+
- run: npx semantic-release

.travis.yml

Whitespace-only changes.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
> Node.js module that finds a user's system proxy settings from their Windows registry settings.
44
5-
[![NPM][npm-icon] ][npm-url]
5+
[![NPM][npm-icon]][npm-url]
66

7-
[![Build status][ci-image] ][ci-url]
8-
[![semantic-release][semantic-image] ][semantic-url]
7+
[![Build status][ci-image]][ci-url]
8+
9+
[![semantic-release][semantic-image]][semantic-url]
910

1011
## Install
1112

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const registry = require('registry-js')
33

44
const findByName = (values, name) => {
55
return values.find((value) => {
6-
return value.name === name
6+
return value && value.name === name
77
})
88
}
99

0 commit comments

Comments
 (0)