New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nuclia/sync-agent

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuclia/sync-agent - npm Package Compare versions

Comparing version 1.0.3 to 1.0.7

8

build/logic/sync/domain/dto/update-sync.dto.js

@@ -46,15 +46,9 @@ "use strict";

if (kb) {
const { knowledgeBox, zone, backend, apiKey } = kb;
const { knowledgeBox, backend } = kb;
if (isDefined(knowledgeBox) && !knowledgeBox) {
return ['Invalid format for kb: Error: knowledgeBox is required'];
}
if (isDefined(zone) && !zone) {
return ['Invalid format for kb: Error: zone is required'];
}
if (isDefined(backend) && !backend) {
return ['Invalid format for kb: Error: backend is required'];
}
if (isDefined(apiKey) && !apiKey) {
return ['Invalid format for kb: Error: apiKey is required'];
}
}

@@ -61,0 +55,0 @@ if (foldersToSync && foldersToSync.length > 0) {

7

build/logic/sync/domain/sync.entity.js

@@ -17,4 +17,6 @@ "use strict";

*
* It is not defined when using a local NucliaDB
*
* Example: `europe-1` */
zone: zod_1.z.string().min(1, { message: 'Required' }),
zone: zod_1.z.string().optional(),
/**

@@ -29,4 +31,5 @@ * The Nuclia Knowledge Box unique id.

* It can be used in a server-side app, but never in a web app.
* It is not defined when using a local NucliaDB
*/
apiKey: zod_1.z.string().min(1, { message: 'Required' }),
apiKey: zod_1.z.string().optional(),
});

@@ -33,0 +36,0 @@ class SyncEntity {

@@ -19,4 +19,6 @@ import { Observable } from 'rxjs';

*
* It is not defined when using a local NucliaDB
*
* Example: `europe-1` */
zone: z.ZodString;
zone: z.ZodOptional<z.ZodString>;
/**

@@ -31,14 +33,15 @@ * The Nuclia Knowledge Box unique id.

* It can be used in a server-side app, but never in a web app.
* It is not defined when using a local NucliaDB
*/
apiKey: z.ZodString;
apiKey: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
backend: string;
zone: string;
knowledgeBox: string;
apiKey: string;
zone?: string | undefined;
apiKey?: string | undefined;
}, {
backend: string;
zone: string;
knowledgeBox: string;
apiKey: string;
zone?: string | undefined;
apiKey?: string | undefined;
}>;

@@ -45,0 +48,0 @@ export type NucliaOptions = z.infer<typeof NucliaOptionsValidator>;

{
"name": "@nuclia/sync-agent",
"version": "1.0.3",
"version": "1.0.7",
"description": "This is a sync agent to synchronize user files from diferent sources to nuclia",

@@ -5,0 +5,0 @@ "main": "build/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc