Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef24503

Browse filesBrowse files
authored
Merge pull request #9 from range-labs/dpup/updates
Update dependencies to resolve security alerts
2 parents 1022658 + 3223b58 commit ef24503
Copy full SHA for ef24503

File tree

3 files changed

+479
-320
lines changed
Filter options

3 files changed

+479
-320
lines changed

‎lib/index.js

Copy file name to clipboardExpand all lines: lib/index.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const eventMappers = {
8787
let events = await listEvents(username, after);
8888
let suggestions = {};
8989
let unmappedUsers = {};
90-
events.forEach(evt => {
90+
events.forEach((evt) => {
9191
const username = evt.actor.login;
9292
const email = cfg.users[username];
9393
if (!email) {
@@ -132,7 +132,7 @@ async function listEvents(username, after) {
132132
page,
133133
per_page: 20,
134134
});
135-
data.forEach(evt => {
135+
data.forEach((evt) => {
136136
if (new Date(evt.created_at) > after) events.push(evt);
137137
else done = true;
138138
});
@@ -152,7 +152,7 @@ async function listEvents(username, after) {
152152
// Fetches the 'login' name for each org the user is a member of.
153153
async function listOrgs() {
154154
let resp = await client.orgs.listForAuthenticatedUser({ per_page: 100 });
155-
return resp.data.map(org => org.login);
155+
return resp.data.map((org) => org.login);
156156
}
157157

158158
// Sends a suggestion to the Range webhook specified in the config.
@@ -168,9 +168,9 @@ async function makeSuggestion(suggestion) {
168168
},
169169
};
170170

171-
let req = https.request(cfg.rangeWebhook, opts, res => {
171+
let req = https.request(cfg.rangeWebhook, opts, (res) => {
172172
res.setEncoding('utf8');
173-
res.on('data', chunk => {
173+
res.on('data', (chunk) => {
174174
console.log(chunk);
175175
});
176176
res.on('end', () => {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.