@base-sdk-fp/core
Advanced tools
Comparing version 0.0.3 to 0.1.2
@@ -8,3 +8,8 @@ "use strict"; | ||
const axios_1 = __importDefault(require("axios")); | ||
const internal_dev_1 = require("../internal-dev"); | ||
const _BASE_ACCOUNTS_SERVICES_URL = "https://accounts.services.grida.co"; | ||
const _host = (0, internal_dev_1._is_internal_dev)() | ||
? | ||
internal_dev_1.__internal_dev_hosts.__INTERNAL_DEV_ACCOUNTS_SERVICES_HOST | ||
: _BASE_ACCOUNTS_SERVICES_URL; | ||
function initClient(init) { | ||
@@ -32,3 +37,3 @@ if (init) { | ||
axios: axios_1.default.create({ | ||
baseURL: _BASE_ACCOUNTS_SERVICES_URL, | ||
baseURL: _host, | ||
withCredentials: true, | ||
@@ -44,3 +49,3 @@ }), | ||
axios: axios_1.default.create({ | ||
baseURL: _BASE_ACCOUNTS_SERVICES_URL, | ||
baseURL: _host, | ||
headers: { | ||
@@ -47,0 +52,0 @@ Authorization: `Bearer ${accessToken}`, |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._is_internal_dev = exports._IS_INTERNAL_DEV = void 0; | ||
exports._IS_INTERNAL_DEV = process.env.INTERNAL_DEV | ||
? JSON.parse(process.env.INTERNAL_DEV) | ||
exports._IS_INTERNAL_DEV = process.env.USE_GRIDA_INTERNAL_DEV_LOCAL_AUTH | ||
? JSON.parse(process.env.USE_GRIDA_INTERNAL_DEV_LOCAL_AUTH) | ||
: false; | ||
@@ -7,0 +7,0 @@ function _is_internal_dev() { |
{ | ||
"name": "@base-sdk-fp/core", | ||
"version": "0.0.3", | ||
"version": "0.1.2", | ||
"main": "dist/index.js", | ||
"private": false, | ||
"scripts": { | ||
"prepack": "tsc" | ||
"clean": "rimraf dist", | ||
"build": "yarn clean && tsc" | ||
}, | ||
@@ -23,3 +24,4 @@ "devDependencies": { | ||
"access": "public" | ||
} | ||
}, | ||
"gitHead": "d12076819b6f6bad2aa8d9963e03a8775b7ea787" | ||
} |
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
7761
12
0
148