Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 4b463f0

Browse files
author
Eric Koleda
committed
Release version 14.
1 parent 5dfeb89 commit 4b463f0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dist/OAuth1.gs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)