@monokle/synchronizer
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -5,2 +5,3 @@ export declare type OriginConfig = { | ||
authOrigin: string; | ||
schemasOrigin: string; | ||
[key: string]: string; | ||
@@ -7,0 +8,0 @@ }; |
@@ -41,2 +41,3 @@ "use strict"; | ||
values.authOrigin = values.OIDC_DISCOVERY_URL; | ||
values.schemasOrigin = values.SCHEMA_BASE_URL; | ||
} | ||
@@ -43,0 +44,0 @@ originConfigCache = { |
@@ -61,2 +61,3 @@ import { assert } from 'chai'; | ||
authOrigin: 'https://auth.test.monokle.com', | ||
schemasOrigin: 'https://schemas.test.monokle.com', | ||
}); | ||
@@ -70,2 +71,3 @@ assert.equal('https://api.test.monokle.com', apiHandler.apiUrl); | ||
authOrigin: 'https://custom.domain.io/auth', | ||
schemasOrigin: 'https://custom.domain.io/schemas', | ||
}); | ||
@@ -82,2 +84,3 @@ assert.equal('https://custom.domain.io/api', apiHandler.apiUrl); | ||
authOrigin: 'https://custom.domain.io/auth', | ||
schemasOrigin: 'https://custom.domain.io/schemas', | ||
}); | ||
@@ -84,0 +87,0 @@ assert.equal('https://custom.domain.io/projects', apiHandler.generateDeepLink('projects')); |
@@ -103,2 +103,4 @@ import sinon from 'sinon'; | ||
CLIENT_ID: "clientId", | ||
SCHEMA_BASE_URL: "https://plugins.monokle.local/schemas", | ||
}; | ||
@@ -113,2 +115,3 @@ `); | ||
assert.equal(originData?.authOrigin, 'https://id.monokle.local/realms/monokle'); | ||
assert.equal(originData?.schemasOrigin, 'https://plugins.monokle.local/schemas'); | ||
res(); | ||
@@ -115,0 +118,0 @@ } |
@@ -5,2 +5,3 @@ export declare type OriginConfig = { | ||
authOrigin: string; | ||
schemasOrigin: string; | ||
[key: string]: string; | ||
@@ -7,0 +8,0 @@ }; |
@@ -25,2 +25,3 @@ import normalizeUrl from 'normalize-url'; | ||
values.authOrigin = values.OIDC_DISCOVERY_URL; | ||
values.schemasOrigin = values.SCHEMA_BASE_URL; | ||
} | ||
@@ -27,0 +28,0 @@ originConfigCache = { |
{ | ||
"name": "@monokle/synchronizer", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "Monokle Cloud synchronizer", | ||
@@ -5,0 +5,0 @@ "author": "Kubeshop", |
213510
4722