This repository was archived by the owner on Jun 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function getCallbackUrl(scriptId) {
111
111
'https://script.google.com/macros/d/%s/usercallback' , scriptId ) ;
112
112
}
113
113
114
- if ( module ) {
114
+ if ( typeof module != 'undefined' ) {
115
115
module . exports = {
116
116
createService : createService ,
117
117
getCallbackUrl : getCallbackUrl ,
@@ -849,14 +849,12 @@ Service_.prototype.getCallbackUrl = function() {
849
849
* @return {Object }
850
850
*/
851
851
OAuth . prototype . deParam = function ( string ) {
852
- var arr = decodeURIComponent ( string )
853
- . replace ( / \+ / g, ' ' )
854
- . split ( '&' ) ;
852
+ var arr = string . replace ( / \+ / g, ' ' ) . split ( '&' ) ;
855
853
var data = { } ;
856
854
857
855
for ( var i = 0 ; i < arr . length ; i ++ ) {
858
856
var item = arr [ i ] . split ( '=' ) ;
859
- data [ item [ 0 ] ] = item [ 1 ] ;
857
+ data [ item [ 0 ] ] = decodeURIComponent ( item [ 1 ] ) ;
860
858
}
861
859
return data ;
862
860
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " apps-script-oauth1" ,
3
- "version" : " 1.13 .0" ,
3
+ "version" : " 1.14 .0" ,
4
4
"description" : " OAuth1 for Apps Script is a library for Google Apps Script that provides the ability to create and authorize OAuth1 tokens. " ,
5
5
"repository" : {
6
6
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments