Skip to content

Commit 9dd1cd0

Browse files
authored
Merge pull request #313 from aliams/master
Add aes128gcm support for CLI
2 parents 2b56cc3 + 6815eb4 commit 9dd1cd0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Then you can run the following commands:
102102

103103
Usage:
104104

105-
web-push send-notification --endpoint=<url> [--key=<browser key>] [--auth=<auth secret>] [--payload=<message>] [--ttl=<seconds>] [--vapid-subject=<vapid subject>] [--vapid-pubkey=<public key url base64>] [--vapid-pvtkey=<private key url base64>] [--gcm-api-key=<api key>]
105+
web-push send-notification --endpoint=<url> [--key=<browser key>] [--auth=<auth secret>] [--payload=<message>] [--encoding=<aesgcm | aes128gcm>] [--ttl=<seconds>] [--vapid-subject=<vapid subject>] [--vapid-pubkey=<public key url base64>] [--vapid-pvtkey=<private key url base64>] [--gcm-api-key=<api key>]
106106

107107
web-push generate-vapid-keys [--json]
108108

test/test-cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
'--auth=auth',
9494
'--payload=hello',
9595
'--ttl=1234',
96+
'--encoding=aesgcm',
9697
'--vapid-subject=http://example.push-serice.com/contact',
9798
'--vapid-pubkey=vapid-publicKey',
9899
'--vapid-pvtkey=vapid-privateKey',

0 commit comments

Comments
 (0)