Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remult

Package Overview
Dependencies
Maintainers
0
Versions
623
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remult - npm Package Compare versions

Comparing version 0.27.23-next.1 to 0.27.23-next.2

2

esm/src/data-api.js

@@ -118,3 +118,3 @@ import { doTransaction } from './context.js';

this.getArrayImpl(request, rest),
this.groupBy(request, aggregate),
this.groupBy(request, { ...aggregate, where: body.where }),
]);

@@ -121,0 +121,0 @@ return {

@@ -95,2 +95,6 @@ import { getRelationFieldInfo } from '../internals.js';

static minLength = createValueValidatorWithArgs((val, minLength) => val.length >= minLength, (maxLength) => `Value must be at least ${maxLength} characters`);
/**
* Validator to check if a value is within a specified range.
*/
static range = createValueValidatorWithArgs((val, [minValue, maxValue]) => val >= minValue && val <= maxValue, ([minValue, maxValue]) => `Value must be between ${minValue} and ${maxValue}`);
static defaultMessage = 'Invalid value';

@@ -97,0 +101,0 @@ }

{
"name": "remult",
"version": "0.27.23-next.1",
"version": "0.27.23-next.2",
"description": "A CRUD framework for full-stack TypeScript",

@@ -5,0 +5,0 @@ "homepage": "https://remult.dev",

@@ -204,3 +204,3 @@ "use strict";

this.getArrayImpl(request, rest),
this.groupBy(request, aggregate),
this.groupBy(request, tslib_1.__assign(tslib_1.__assign({}, aggregate), { where: body.where })),
])];

@@ -207,0 +207,0 @@ case 2:

@@ -1164,3 +1164,3 @@ import type { ErrorInfo, FieldOptions } from '../../index.js';

readonly access: {
set(object: entityType, value: valueType): void;
set(object: entityType, value: valueType | null): void;
};

@@ -1167,0 +1167,0 @@ readonly name: string;

@@ -78,2 +78,8 @@ import type { FieldValidator } from './column-interfaces.js';

};
/**
* Validator to check if a value is within a specified range.
*/
static range: ValidatorWithArgs<number, [number, number]> & {
defaultMessage: ValueValidationMessage<[number, number]>;
};
static defaultMessage: string;

@@ -80,0 +86,0 @@ }

@@ -139,2 +139,12 @@ "use strict";

Validators.minLength = createValueValidatorWithArgs(function (val, minLength) { return val.length >= minLength; }, function (maxLength) { return "Value must be at least ".concat(maxLength, " characters"); });
/**
* Validator to check if a value is within a specified range.
*/
Validators.range = createValueValidatorWithArgs(function (val, _b) {
var _c = tslib_1.__read(_b, 2), minValue = _c[0], maxValue = _c[1];
return val >= minValue && val <= maxValue;
}, function (_b) {
var _c = tslib_1.__read(_b, 2), minValue = _c[0], maxValue = _c[1];
return "Value must be between ".concat(minValue, " and ").concat(maxValue);
});
Validators.defaultMessage = 'Invalid value';

@@ -141,0 +151,0 @@ return Validators;

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