@spinque/query-api
Advanced tools
Comparing version 0.15.2 to 0.15.3
@@ -118,3 +118,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var fs, json; | ||
var fs, json, e_1; | ||
return __generator(this, function (_a) { | ||
@@ -128,10 +128,17 @@ switch (_a.label) { | ||
} | ||
if (!(!browser_or_node_1.isBrowser && this._tokenCachePath)) return [3 /*break*/, 2]; | ||
if (!(!browser_or_node_1.isBrowser && this._tokenCachePath)) return [3 /*break*/, 4]; | ||
_a.label = 1; | ||
case 1: | ||
_a.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, Promise.resolve().then(function () { return require('fs'); })]; | ||
case 1: | ||
case 2: | ||
fs = _a.sent(); | ||
json = JSON.stringify({ accessToken: accessToken, expires: expires }); | ||
fs.writeFileSync(this._tokenCachePath, json); | ||
_a.label = 2; | ||
case 2: return [2 /*return*/]; | ||
return [3 /*break*/, 4]; | ||
case 3: | ||
e_1 = _a.sent(); | ||
console.log(e_1); | ||
return [3 /*break*/, 4]; | ||
case 4: return [2 /*return*/]; | ||
} | ||
@@ -138,0 +145,0 @@ }); |
{ | ||
"name": "@spinque/query-api", | ||
"version": "0.15.2", | ||
"version": "0.15.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
166186
2454