@things-factory/scheduler-client 8.0.8 → 8.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,6 +8,7 @@ exports.SchedulerEndpoint = env_1.config.get('scheduler/endpoint', 'http://127.0
|
|
|
8
8
|
exports.CallbackBase = env_1.config.get('scheduler/callbackBase', 'http://localhost:3000');
|
|
9
9
|
exports.Application = env_1.config.get('scheduler/application');
|
|
10
10
|
function getCallbackBaseWithDomainContext(domain) {
|
|
11
|
-
|
|
11
|
+
const domainExtType = domain.extType || 'domain';
|
|
12
|
+
return isPathBaseDomain ? exports.CallbackBase + `/${domainExtType}/${domain.subdomain}` : exports.CallbackBase;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../server/controllers/scheduler-api/config.ts"],"names":[],"mappings":";;;AAQA,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../server/controllers/scheduler-api/config.ts"],"names":[],"mappings":";;;AAQA,4EAIC;AAXD,6CAA4C;AAC5C,MAAM,gBAAgB,GAAG,CAAC,YAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;AAEpC,QAAA,iBAAiB,GAAW,YAAM,CAAC,GAAG,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AACrF,QAAA,YAAY,GAAW,YAAM,CAAC,GAAG,CAAC,wBAAwB,EAAE,uBAAuB,CAAC,CAAA;AACpF,QAAA,WAAW,GAAW,YAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;AAEtE,SAAgB,gCAAgC,CAAC,MAAc;IAC7D,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,IAAI,QAAQ,CAAA;IAEhD,OAAO,gBAAgB,CAAC,CAAC,CAAC,oBAAY,GAAG,IAAI,aAAa,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,oBAAY,CAAA;AACjG,CAAC","sourcesContent":["import { Domain } from '@things-factory/shell'\nimport { config } from '@things-factory/env'\nconst isPathBaseDomain = !config.get('subdomain')\n\nexport const SchedulerEndpoint: string = config.get('scheduler/endpoint', 'http://127.0.0.1:9902')\nexport const CallbackBase: string = config.get('scheduler/callbackBase', 'http://localhost:3000')\nexport const Application: string = config.get('scheduler/application')\n\nexport function getCallbackBaseWithDomainContext(domain: Domain) {\n const domainExtType = domain.extType || 'domain'\n\n return isPathBaseDomain ? CallbackBase + `/${domainExtType}/${domain.subdomain}` : CallbackBase\n}\n"]}
|