@globus/sdk
Advanced tools
Comparing version 3.0.0-alpha.7 to 3.0.0-alpha.8
@@ -6,4 +6,4 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const storage_1 = require("../storage"); | ||
const index_js_1 = require("../../services/auth/index.js"); | ||
const index_js_1 = require("../storage/index.js"); | ||
const index_js_2 = require("../../services/auth/index.js"); | ||
class TokenLookup { | ||
@@ -28,6 +28,6 @@ constructor(options) { | ||
var _a; | ||
const resourceServer = (_a = index_js_1.CONFIG.RESOURCE_SERVERS) === null || _a === void 0 ? void 0 : _a[service]; | ||
const raw = (0, storage_1.getStorage)().get(`${tslib_1.__classPrivateFieldGet(this, _TokenLookup_manager, "f").configuration.client_id}:${resourceServer}`) || 'null'; | ||
const resourceServer = (_a = index_js_2.CONFIG.RESOURCE_SERVERS) === null || _a === void 0 ? void 0 : _a[service]; | ||
const raw = (0, index_js_1.getStorage)().get(`${tslib_1.__classPrivateFieldGet(this, _TokenLookup_manager, "f").configuration.client_id}:${resourceServer}`) || 'null'; | ||
return JSON.parse(raw); | ||
}; | ||
//# sourceMappingURL=TokenLookup.js.map |
var _TokenLookup_instances, _TokenLookup_manager, _TokenLookup_getTokenForService; | ||
import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib"; | ||
import { getStorage } from '../storage'; | ||
import { getStorage } from '../storage/index.js'; | ||
import { CONFIG } from '../../services/auth/index.js'; | ||
@@ -5,0 +5,0 @@ export class TokenLookup { |
{ | ||
"name": "@globus/sdk", | ||
"version": "3.0.0-alpha.7", | ||
"version": "3.0.0-alpha.8", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "The Globus SDK for Javascript", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1908011