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

@remnawave/backend-contract

Package Overview
Dependencies
Maintainers
0
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remnawave/backend-contract - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

6

build/commands/users/create-user.command.js

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

}),
enabledInbounds: zod_1.z
.array(models_1.InboundsSchema.pick({
uuid: true,
}), {
activeUserInbounds: zod_1.z
.array(zod_1.z.string().uuid(), {
invalid_type_error: 'Enabled inbounds must be an array',

@@ -81,0 +79,0 @@ })

@@ -38,24 +38,7 @@ "use strict";

}),
// enabledInbounds: z
// .array(
// InboundsSchema.pick({
// uuid: true,
// }),
// {
// invalid_type_error: 'Enabled inbounds must be an array',
// },
// )
// .optional(),
enabledInbounds: zod_1.z.preprocess((val) => {
if (Array.isArray(val)) {
return val.map((uuid) => ({ uuid }));
}
return [];
}, zod_1.z
.array(models_1.InboundsSchema.pick({
uuid: true,
}), {
invalid_type_error: 'Enabled inbounds must be an array of objects with uuid',
activeUserInbounds: zod_1.z
.array(zod_1.z.string().uuid(), {
invalid_type_error: 'Enabled inbounds must be an array of UUIDs',
})
.optional()),
.optional(),
expireAt: zod_1.z.coerce

@@ -62,0 +45,0 @@ .date({

@@ -76,11 +76,6 @@ import { z } from 'zod';

}),
enabledInbounds: z
.array(
InboundsSchema.pick({
uuid: true,
}),
{
invalid_type_error: 'Enabled inbounds must be an array',
},
)
activeUserInbounds: z
.array(z.string().uuid(), {
invalid_type_error: 'Enabled inbounds must be an array',
})
.optional(),

@@ -87,0 +82,0 @@ expireAt: z.coerce

@@ -36,31 +36,7 @@ import { z } from 'zod';

}),
// enabledInbounds: z
// .array(
// InboundsSchema.pick({
// uuid: true,
// }),
// {
// invalid_type_error: 'Enabled inbounds must be an array',
// },
// )
// .optional(),
enabledInbounds: z.preprocess(
(val) => {
if (Array.isArray(val)) {
return val.map((uuid) => ({ uuid }));
}
return [];
},
z
.array(
InboundsSchema.pick({
uuid: true,
}),
{
invalid_type_error:
'Enabled inbounds must be an array of objects with uuid',
},
)
.optional(),
),
activeUserInbounds: z
.array(z.string().uuid(), {
invalid_type_error: 'Enabled inbounds must be an array of UUIDs',
})
.optional(),
expireAt: z.coerce

@@ -67,0 +43,0 @@ .date({

{
"name": "@remnawave/backend-contract",
"version": "0.0.10",
"version": "0.0.11",
"description": "A contract library for Remnawave",

@@ -5,0 +5,0 @@ "main": "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