Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "co-auther", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/co-auther/co-auther.js", |
@@ -67,3 +67,3 @@ var dontTouchLocalStorage = false; | ||
else if (initialRequestFailed && authData) { | ||
console.error('You have manual authData management but haven\'t cleared it manually after failed initialRequest'); | ||
console.error('Initial request promise was rejected. You have manual authData management and need to clear authData from localStorage manually.'); | ||
} | ||
@@ -166,6 +166,6 @@ } | ||
if (!dontTouchLocalStorage) { | ||
localStorage.setItem(config.AUTH_DATA, JSON.stringify(res.json())); | ||
localStorage.setItem(config.AUTH_DATA, res); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvLWF1dGhlci9jby1hdXRoZXIudHMiXSwibmFtZXMiOlsiYmFzaWNSb3V0aW5nIiwiYWN0aXZhdGlvbkhlbHBlciIsInNldFRlcm1pbmFsIiwiZ29Ub1Rlcm1pbmFsIiwiQ29BdXRoZXIiLCJDb0F1dGhlci5pc0luaXRpYWxEYXRhTG9hZGVkIiwiQ29BdXRoZXIubG9naW5XcmFwIiwiQ29BdXRoZXIubG9nb3V0V3JhcCIsIkNvQXV0aGVyLm1ha2VJbml0aWFsUmVxdWVzdFdyYXAiLCJpbml0aWFsaXplIiwiY2xlYXJBdXRoRGF0YSIsImdldEF1dGhEYXRhIiwic2V0QXV0aERhdGEiXSwibWFwcGluZ3MiOiJBQUFBLElBQUkscUJBQXFCLEdBQUcsS0FBSyxDQUFBO0FBQ2pDLElBQUksYUFBYSxHQUFHLElBQUksQ0FBQTtBQUN4QixJQUFJLG9CQUFvQixHQUFHLEtBQUssQ0FBQTtBQUNoQyxJQUFJLFFBQVEsQ0FBQTtBQUNaLHNCQUF1QixTQUFTO0lBQzlCQSxJQUFJQSxHQUFHQSxHQUFHQSxNQUFNQSxDQUFDQSxRQUFRQSxDQUFBQTtJQU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IHJvdXRlRnVuY3Rpb24gPSBuZXdSb3V0ZUZ1bmN0aW9uXG4gIH1cbn1cblxuZnVuY3Rpb24gY2xlYXJBdXRoRGF0YSAoKSB7XG4gIGlmICghZG9udFRvdWNoTG9jYWxTdG9yYWdlKSB7XG4gICAgbG9jYWxTdG9yYWdlLnJlbW92ZUl0ZW0oY29uZmlnLkFVVEhfREFUQSlcbiAgfVxufVxuXG5mdW5jdGlvbiBnZXRBdXRoRGF0YSAoKSB7XG4gIGxldCBhdXRoRGF0YVN0cmluZyA9IGxvY2FsU3RvcmFnZS5nZXRJdGVtKGNvbmZpZy5BVVRIX0RBVEEpXG4gIGxldCBhdXRoRGF0YSA9IGF1dGhEYXRhU3RyaW5nID8gSlNPTi5wYXJzZShhdXRoRGF0YVN0cmluZykgOiBudWxsXG4gIHJldHVybiBhdXRoRGF0YVxufVxuXG5mdW5jdGlvbiBzZXRBdXRoRGF0YSAocmVzKSB7XG4gIGlmICghZG9udFRvdWNoTG9jYWxTdG9yYWdlKSB7XG4gICAgbG9jYWxTdG9yYWdlLnNldEl0ZW0oY29uZmlnLkFVVEhfREFUQSwgcmVzKVxuICB9XG59XG5cbmV4cG9ydCB7XG4gIGluaXRpYWxpemUsXG4gIGdldENvQXV0aGVyLFxuICBhY3RpdmF0aW9uSGVscGVyLFxuICBzZXRUZXJtaW5hbFxufVxuIl0sInNvdXJjZVJvb3QiOiIvbm9kZV9tb2R1bGVzIn0= |
@@ -64,3 +64,4 @@ let dontTouchLocalStorage = false | ||
} else if (initialRequestFailed && authData) { | ||
console.error('You have manual authData management but haven\'t cleared it manually after failed initialRequest') | ||
console.error('Initial request promise was rejected. You have manual authData management and need to clear authData from localStorage manually.') | ||
} | ||
@@ -162,3 +163,3 @@ } | ||
if (!dontTouchLocalStorage) { | ||
localStorage.setItem(config.AUTH_DATA, JSON.stringify(res.json())) | ||
localStorage.setItem(config.AUTH_DATA, res) | ||
} | ||
@@ -165,0 +166,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
217655