This repository was archived by the owner on Nov 18, 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) {
111111 'https://script.google.com/macros/d/%s/usercallback' , scriptId ) ;
112112}
113113
114- if ( module ) {
114+ if ( typeof module != 'undefined' ) {
115115 module . exports = {
116116 createService : createService ,
117117 getCallbackUrl : getCallbackUrl ,
@@ -849,14 +849,12 @@ Service_.prototype.getCallbackUrl = function() {
849849 * @return {Object }
850850 */
851851 OAuth . prototype . deParam = function ( string ) {
852- var arr = decodeURIComponent ( string )
853- . replace ( / \+ / g, ' ' )
854- . split ( '&' ) ;
852+ var arr = string . replace ( / \+ / g, ' ' ) . split ( '&' ) ;
855853 var data = { } ;
856854
857855 for ( var i = 0 ; i < arr . length ; i ++ ) {
858856 var item = arr [ i ] . split ( '=' ) ;
859- data [ item [ 0 ] ] = item [ 1 ] ;
857+ data [ item [ 0 ] ] = decodeURIComponent ( item [ 1 ] ) ;
860858 }
861859 return data ;
862860 } ;
Original file line number Diff line number Diff line change 11{
22 "name" : " apps-script-oauth1" ,
3- "version" : " 1.13 .0" ,
3+ "version" : " 1.14 .0" ,
44 "description" : " OAuth1 for Apps Script is a library for Google Apps Script that provides the ability to create and authorize OAuth1 tokens. " ,
55 "repository" : {
66 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments