@nuclia/sync-agent
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -136,3 +136,3 @@ "use strict"; | ||
nuclia.auth.authenticate({ access_token: token, refresh_token: '' }); | ||
const req = yield (0, rxjs_1.firstValueFrom)(nuclia.knowledgeBox.getConfiguration().pipe((0, rxjs_1.map)(() => true), (0, rxjs_1.catchError)(() => (0, rxjs_1.of)(false)))); | ||
const req = yield (0, rxjs_1.firstValueFrom)(nuclia.rest.checkAuthorization(`/kb/${this.kb.knowledgeBox}/configure`).pipe((0, rxjs_1.map)((check) => check.allowed), (0, rxjs_1.catchError)(() => (0, rxjs_1.of)(false)))); | ||
return req; | ||
@@ -139,0 +139,0 @@ } |
{ | ||
"name": "@nuclia/sync-agent", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "This is a sync agent to synchronize user files from diferent sources to nuclia", | ||
@@ -28,3 +28,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@nuclia/core": "^1.13.0", | ||
"@nuclia/core": "^1.14.2", | ||
"cheerio": "^1.0.0-rc.12", | ||
@@ -31,0 +31,0 @@ "commander": "^11.1.0", |
177092
Updated@nuclia/core@^1.14.2