Skip to content

Commit b4e205a

Browse files
committed
dependencies: Upgrade dependencies.
1 parent e6791d7 commit b4e205a

19 files changed

+5673
-4207
lines changed

examples/call_endpoint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ const config = {
1515
type: 'stream',
1616
subject: 'Testing zulip-js',
1717
content: 'Something is horribly wrong....',
18-
})
18+
}),
1919
);
2020
})();

examples/events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const config = {
1414
queue_id: process.env.ZULIP_QUEUE_ID,
1515
last_event_id: -1,
1616
dont_block: false,
17-
})
17+
}),
1818
);
1919
// Prints
2020
// { msg: '',

examples/interactive_call_endpoint.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const zulip = require('../lib');
55
if (process.argv[2] === 'help') {
66
console.log('This is a helper script to test Zulip APIs.');
77
console.log(
8-
'Call with: npm run call <method> <endpoint> <json_params> <zuliprc path>.'
8+
'Call with: npm run call <method> <endpoint> <json_params> <zuliprc path>.',
99
);
1010
console.log(
11-
'Put your zuliprc file in ~/.zuliprc or specify the 4th argument above.'
11+
'Put your zuliprc file in ~/.zuliprc or specify the 4th argument above.',
1212
);
1313
process.exit(0);
1414
}

examples/messages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const config = {
2525
await z.messages.update({
2626
message_id: res.id,
2727
content: 'New content',
28-
})
28+
}),
2929
);
3030

3131
const readParams = {

examples/private-messages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const config = {
3030
],
3131
num_before: 1,
3232
num_after: 1,
33-
})
33+
}),
3434
);
3535
// Fetch the most recent message
3636
const mostRecentParams = {

examples/subscriptions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ const zulip = require('../lib');
1818
console.log(
1919
await z.users.me.subscriptions.add({
2020
subscriptions: JSON.stringify([{ name: 'off topic' }]),
21-
})
21+
}),
2222
);
2323
})();

examples/typing-notifications/send-and-recieve.js

+5-12
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@ const zulip = require('../../lib');
22

33
if (process.argv.length < 7) {
44
console.log(
5-
'Usage: $node examples/typing-notifications/send-and-recieve.js realm-url sender-username sender-API-key recipient-username recipient-API-key'
5+
'Usage: $node examples/typing-notifications/send-and-recieve.js realm-url sender-username sender-API-key recipient-username recipient-API-key',
66
);
77
process.exit(1);
88
}
99

10-
const [
11-
,
12-
,
13-
realm,
14-
sender,
15-
senderAPIKey,
16-
recipient,
17-
recipientAPIKey,
18-
] = process.argv;
10+
const [, , realm, sender, senderAPIKey, recipient, recipientAPIKey] =
11+
process.argv;
1912

2013
(async () => {
2114
const senderClient = await zulip({
@@ -41,12 +34,12 @@ const [
4134
await senderClient.typing.send({
4235
to: [recipientId],
4336
op: 'start',
44-
})
37+
}),
4538
);
4639
console.log(
4740
await recipientClient.events.retrieve({
4841
queue_id: queueID,
4942
last_event_id: -1,
50-
})
43+
}),
5144
);
5245
})();

examples/typing-notifications/send-often.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const zulip = require('../../lib');
22

33
if (process.argv.length < 6) {
44
console.log(
5-
'Usage: $node examples/typing-notifications/send-often.js realm-url sender-username sender-API-key recipient-user-ID'
5+
'Usage: $node examples/typing-notifications/send-often.js realm-url sender-username sender-API-key recipient-user-ID',
66
);
77
process.exit(1);
88
}

examples/typing-notifications/send.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ const config = {
3232
queue_id: queueID,
3333
last_event_id: -1,
3434
dont_block: false,
35-
})
35+
}),
3636
);
3737
})();

examples/users.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const config = {
3030
password: 'temp',
3131
full_name: 'New User',
3232
short_name: 'newbie',
33-
})
33+
}),
3434
);
3535

3636
// Get user profile
@@ -52,7 +52,7 @@ const config = {
5252
console.log(
5353
await z.users.me.subscriptions.remove({
5454
subscriptions: JSON.stringify(['Verona']),
55-
})
55+
}),
5656
);
5757

5858
// Get pointer for user

0 commit comments

Comments
 (0)