File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,7 @@ buff = jose.util.asBuffer(input);
487
487
488
488
### URI-Safe Base64 ###
489
489
490
- This exposes [ base64url ] ( https://github.com/brianloveswords/base64url ) 's ` encode ` and ` toBuffer ` methods as ` encode ` and ` decode ` (respectively).
490
+ This exposes [ urlsafe-base64 ] ( https://github.com/RGBboy/urlsafe-base64 ) 's ` encode ` and ` decode ` methods as ` encode ` and ` decode ` (respectively).
491
491
492
492
To convert from a Buffer to a base64uri-encoded String:
493
493
Original file line number Diff line number Diff line change 5
5
*/
6
6
"use strict" ;
7
7
8
- var impl = require ( "base64url " ) ;
8
+ var impl = require ( "urlsafe-base64 " ) ;
9
9
10
10
/**
11
11
* @namespace base64url
@@ -33,7 +33,7 @@ var base64url = {
33
33
* @param {String } input The data to decode.
34
34
* @returns {Buffer|String } the base64url decoding of {input}.
35
35
*/
36
- decode : impl . toBuffer
36
+ decode : impl . decode
37
37
} ;
38
38
39
39
module . exports = base64url ;
Original file line number Diff line number Diff line change 25
25
],
26
26
"license" : " Apache-2.0" ,
27
27
"dependencies" : {
28
- "base64url" : " ^1.0.4" ,
29
28
"es6-promise" : " ^2.0.1" ,
30
29
"jsbn" : " git+https://github.com/andyperlitch/jsbn.git" ,
31
30
"lodash.assign" : " ^3.2.0" ,
40
39
"lodash.uniq" : " ^3.2.1" ,
41
40
"long" : " ^2.2.3" ,
42
41
"node-forge" : " git+https://github.com/linuxwolf/forge.git#master" ,
42
+ "urlsafe-base64" : " git+https://github.com/linuxwolf/urlsafe-base64.git#encoding" ,
43
43
"uuid" : " ^2.0.1"
44
44
},
45
45
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments