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

class-validator-extended

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-validator-extended - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

6

CHANGELOG.md

@@ -10,2 +10,8 @@ # Changelog

## [4.0.1] - 2024-09-15
### Chore
- Update dependencies to fix a potential security issue.
## [4.0.0] - 2024-02-19

@@ -12,0 +18,0 @@

4

dist/array/array-monotonic/array-monotonic.decorator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArrayMonotonic = exports.ARRAY_MONOTONIC = void 0;
exports.ARRAY_MONOTONIC = void 0;
exports.ArrayMonotonic = ArrayMonotonic;
const class_validator_1 = require("class-validator");

@@ -67,2 +68,1 @@ const array_monotonic_predicate_1 = require("./array-monotonic.predicate");

}
exports.ArrayMonotonic = ArrayMonotonic;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.arrayMonotonic = void 0;
exports.arrayMonotonic = arrayMonotonic;
const array_monotonic_options_1 = require("./array-monotonic.options");

@@ -49,2 +49,1 @@ function checkMonotonicity(value, monotonicity) {

}
exports.arrayMonotonic = arrayMonotonic;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArraySize = exports.ARRAY_SIZE = void 0;
exports.ARRAY_SIZE = void 0;
exports.ArraySize = ArraySize;
const class_validator_1 = require("class-validator");

@@ -32,2 +33,1 @@ const array_size_predicate_1 = require("./array-size.predicate");

}
exports.ArraySize = ArraySize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.arraySize = void 0;
exports.arraySize = arraySize;
/**

@@ -15,2 +15,1 @@ * @category Predicates

}
exports.arraySize = arraySize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaxBigInt = exports.MAX_BIGINT = void 0;
exports.MAX_BIGINT = void 0;
exports.MaxBigInt = MaxBigInt;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const max_bigint_predicate_1 = require("./max-bigint.predicate");

}
exports.MaxBigInt = MaxBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.maxBigInt = void 0;
exports.maxBigInt = maxBigInt;
const is_bigint_1 = require("../../type/is-bigint");

@@ -16,2 +16,1 @@ /**

}
exports.maxBigInt = maxBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MinBigInt = exports.MIN_BIGINT = void 0;
exports.MIN_BIGINT = void 0;
exports.MinBigInt = MinBigInt;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const min_bigint_predicate_1 = require("./min-bigint.predicate");

}
exports.MinBigInt = MinBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.minBigInt = void 0;
exports.minBigInt = minBigInt;
const is_bigint_1 = require("../../type/is-bigint");

@@ -16,2 +16,1 @@ /**

}
exports.minBigInt = minBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NegativeBigInt = exports.NEGATIVE_BIGINT = void 0;
exports.NEGATIVE_BIGINT = void 0;
exports.NegativeBigInt = NegativeBigInt;
const class_validator_1 = require("class-validator");

@@ -31,2 +32,1 @@ const negative_bigint_predicate_1 = require("./negative-bigint.predicate");

}
exports.NegativeBigInt = NegativeBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.negativeBigInt = void 0;
exports.negativeBigInt = negativeBigInt;
const is_bigint_1 = require("../../type/is-bigint");

@@ -12,2 +12,1 @@ /**

}
exports.negativeBigInt = negativeBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PositiveBigInt = exports.POSITIVE_BIGINT = void 0;
exports.POSITIVE_BIGINT = void 0;
exports.PositiveBigInt = PositiveBigInt;
const class_validator_1 = require("class-validator");

@@ -31,2 +32,1 @@ const positive_bigint_predicate_1 = require("./positive-bigint.predicate");

}
exports.PositiveBigInt = PositiveBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.positiveBigInt = void 0;
exports.positiveBigInt = positiveBigInt;
const is_bigint_1 = require("../../type/is-bigint");

@@ -12,2 +12,1 @@ /**

}
exports.positiveBigInt = positiveBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Nullable = void 0;
exports.Nullable = Nullable;
const class_validator_1 = require("class-validator");

@@ -23,3 +23,3 @@ /**

function Nullable(options) {
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
return function nullableDecorator(prototype, propertyKey) {

@@ -30,2 +30,1 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access

}
exports.Nullable = Nullable;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Optional = void 0;
exports.Optional = Optional;
const class_validator_1 = require("class-validator");

@@ -23,3 +23,3 @@ /**

function Optional(options) {
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
return function optionalDecorator(prototype, propertyKey) {

@@ -30,2 +30,1 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access

}
exports.Optional = Optional;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FutureDate = exports.FUTURE_DATE = void 0;
exports.FUTURE_DATE = void 0;
exports.FutureDate = FutureDate;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const future_date_predicate_1 = require("./future-date.predicate");

}
exports.FutureDate = FutureDate;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.futureDate = void 0;
exports.futureDate = futureDate;
/**

@@ -11,2 +11,1 @@ * @category Predicates

}
exports.futureDate = futureDate;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PastDate = exports.PAST_DATE = void 0;
exports.PAST_DATE = void 0;
exports.PastDate = PastDate;
const class_validator_1 = require("class-validator");

@@ -32,2 +33,1 @@ const past_date_predicate_1 = require("./past-date.predicate");

}
exports.PastDate = PastDate;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pastDate = void 0;
exports.pastDate = pastDate;
/**

@@ -11,2 +11,1 @@ * @category Predicates

}
exports.pastDate = pastDate;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.createDuration = void 0;
exports.createDuration = createDuration;
const dayjs_1 = __importDefault(require("dayjs"));

@@ -27,2 +27,1 @@ /** @hidden */

}
exports.createDuration = createDuration;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FutureDayjs = exports.FUTURE_DAYJS = void 0;
exports.FUTURE_DAYJS = void 0;
exports.FutureDayjs = FutureDayjs;
const class_validator_1 = require("class-validator");

@@ -48,2 +49,1 @@ const future_dayjs_predicate_1 = require("./future-dayjs.predicate");

}
exports.FutureDayjs = FutureDayjs;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.futureDayjs = void 0;
exports.futureDayjs = futureDayjs;
const dayjs_1 = __importDefault(require("dayjs"));

@@ -23,2 +23,1 @@ const is_dayjs_1 = require("../../type/is-dayjs");

}
exports.futureDayjs = futureDayjs;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidDuration = void 0;
exports.isValidDuration = isValidDuration;
/** @hidden */

@@ -8,2 +8,1 @@ function isValidDuration(duration) {

}
exports.isValidDuration = isValidDuration;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.MaxDayjs = exports.MAX_DAYJS = void 0;
exports.MAX_DAYJS = void 0;
exports.MaxDayjs = MaxDayjs;
const class_validator_1 = require("class-validator");

@@ -48,2 +49,1 @@ const dayjs_1 = __importDefault(require("dayjs"));

}
exports.MaxDayjs = MaxDayjs;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.maxDayjs = void 0;
exports.maxDayjs = maxDayjs;
const dayjs_1 = __importDefault(require("dayjs"));

@@ -27,2 +27,1 @@ const is_dayjs_1 = require("../../type/is-dayjs");

}
exports.maxDayjs = maxDayjs;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaxDuration = exports.MAX_DURATION = void 0;
exports.MAX_DURATION = void 0;
exports.MaxDuration = MaxDuration;
const class_validator_1 = require("class-validator");

@@ -50,2 +51,1 @@ const create_duration_1 = require("../create-duration");

}
exports.MaxDuration = MaxDuration;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.maxDuration = void 0;
exports.maxDuration = maxDuration;
const is_duration_1 = require("../../type/is-duration");

@@ -23,2 +23,1 @@ const create_duration_1 = require("../create-duration");

}
exports.maxDuration = maxDuration;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.MinDayjs = exports.MIN_DAYJS = void 0;
exports.MIN_DAYJS = void 0;
exports.MinDayjs = MinDayjs;
const class_validator_1 = require("class-validator");

@@ -48,2 +49,1 @@ const dayjs_1 = __importDefault(require("dayjs"));

}
exports.MinDayjs = MinDayjs;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.minDayjs = void 0;
exports.minDayjs = minDayjs;
const dayjs_1 = __importDefault(require("dayjs"));

@@ -27,2 +27,1 @@ const is_dayjs_1 = require("../../type/is-dayjs");

}
exports.minDayjs = minDayjs;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MinDuration = exports.MIN_DURATION = void 0;
exports.MIN_DURATION = void 0;
exports.MinDuration = MinDuration;
const class_validator_1 = require("class-validator");

@@ -50,2 +51,1 @@ const create_duration_1 = require("../create-duration");

}
exports.MinDuration = MinDuration;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.minDuration = void 0;
exports.minDuration = minDuration;
const is_duration_1 = require("../../type/is-duration");

@@ -23,2 +23,1 @@ const create_duration_1 = require("../create-duration");

}
exports.minDuration = minDuration;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PastDayjs = exports.PAST_DAYJS = void 0;
exports.PAST_DAYJS = void 0;
exports.PastDayjs = PastDayjs;
const class_validator_1 = require("class-validator");

@@ -43,2 +44,1 @@ const past_dayjs_predicate_1 = require("./past-dayjs.predicate");

}
exports.PastDayjs = PastDayjs;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.pastDayjs = void 0;
exports.pastDayjs = pastDayjs;
const dayjs_1 = __importDefault(require("dayjs"));

@@ -23,2 +23,1 @@ const is_dayjs_1 = require("../../type/is-dayjs");

}
exports.pastDayjs = pastDayjs;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapContainsKeys = exports.MAP_CONTAINS_KEYS = void 0;
exports.MAP_CONTAINS_KEYS = void 0;
exports.MapContainsKeys = MapContainsKeys;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const map_contains_keys_predicate_1 = require("./map-contains-keys.predicate");

}
exports.MapContainsKeys = MapContainsKeys;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapContainsKeys = void 0;
exports.mapContainsKeys = mapContainsKeys;
const is_map_1 = require("../../type/is-map");

@@ -14,2 +14,1 @@ /**

}
exports.mapContainsKeys = mapContainsKeys;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapContains = exports.MAP_CONTAINS = void 0;
exports.MAP_CONTAINS = void 0;
exports.MapContains = MapContains;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const map_contains_predicate_1 = require("./map-contains.predicate");

}
exports.MapContains = MapContains;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapContains = void 0;
exports.mapContains = mapContains;
const is_map_1 = require("../../type/is-map");

@@ -18,2 +18,1 @@ /**

}
exports.mapContains = mapContains;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapMaxSize = exports.MAP_MAX_SIZE = void 0;
exports.MAP_MAX_SIZE = void 0;
exports.MapMaxSize = MapMaxSize;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const map_max_size_predicate_1 = require("./map-max-size.predicate");

}
exports.MapMaxSize = MapMaxSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapMaxSize = void 0;
exports.mapMaxSize = mapMaxSize;
const is_map_1 = require("../../type/is-map");

@@ -16,2 +16,1 @@ /**

}
exports.mapMaxSize = mapMaxSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapMinSize = exports.MAP_MIN_SIZE = void 0;
exports.MAP_MIN_SIZE = void 0;
exports.MapMinSize = MapMinSize;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const map_min_size_predicate_1 = require("./map-min-size.predicate");

}
exports.MapMinSize = MapMinSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapMinSize = void 0;
exports.mapMinSize = mapMinSize;
const is_map_1 = require("../../type/is-map");

@@ -16,2 +16,1 @@ /**

}
exports.mapMinSize = mapMinSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapNotContainsKeys = exports.MAP_NOT_CONTAINS_KEYS = void 0;
exports.MAP_NOT_CONTAINS_KEYS = void 0;
exports.MapNotContainsKeys = MapNotContainsKeys;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const map_not_contains_keys_predicate_1 = require("./map-not-contains-keys.predicate");

}
exports.MapNotContainsKeys = MapNotContainsKeys;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapNotContainsKeys = void 0;
exports.mapNotContainsKeys = mapNotContainsKeys;
const is_map_1 = require("../../type/is-map");

@@ -14,2 +14,1 @@ /**

}
exports.mapNotContainsKeys = mapNotContainsKeys;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapNotContains = exports.MAP_NOT_CONTAINS = void 0;
exports.MAP_NOT_CONTAINS = void 0;
exports.MapNotContains = MapNotContains;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const map_not_contains_predicate_1 = require("./map-not-contains.predicate");

}
exports.MapNotContains = MapNotContains;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapNotContains = void 0;
exports.mapNotContains = mapNotContains;
const is_map_1 = require("../../type/is-map");

@@ -18,2 +18,1 @@ /**

}
exports.mapNotContains = mapNotContains;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapNotEmpty = exports.MAP_NOT_EMPTY = void 0;
exports.MAP_NOT_EMPTY = void 0;
exports.MapNotEmpty = MapNotEmpty;
const class_validator_1 = require("class-validator");

@@ -31,2 +32,1 @@ const map_not_empty_predicate_1 = require("./map-not-empty.predicate");

}
exports.MapNotEmpty = MapNotEmpty;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapNotEmpty = void 0;
exports.mapNotEmpty = mapNotEmpty;
const is_map_1 = require("../../type/is-map");

@@ -12,2 +12,1 @@ /**

}
exports.mapNotEmpty = mapNotEmpty;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapSize = exports.MAP_SIZE = void 0;
exports.MAP_SIZE = void 0;
exports.MapSize = MapSize;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const map_size_predicate_1 = require("./map-size.predicate");

}
exports.MapSize = MapSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapSize = void 0;
exports.mapSize = mapSize;
const is_map_1 = require("../../type/is-map");

@@ -16,2 +16,1 @@ /**

}
exports.mapSize = mapSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapUniqueKeys = exports.MAP_UNIQUE_KEYS = void 0;
exports.MAP_UNIQUE_KEYS = void 0;
exports.MapUniqueKeys = MapUniqueKeys;
const class_validator_1 = require("class-validator");

@@ -34,2 +35,1 @@ const map_unique_keys_predicate_1 = require("./map-unique-keys.predicate");

}
exports.MapUniqueKeys = MapUniqueKeys;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapUniqueKeys = void 0;
exports.mapUniqueKeys = mapUniqueKeys;
const is_map_1 = require("../../type/is-map");

@@ -30,2 +30,1 @@ /**

}
exports.mapUniqueKeys = mapUniqueKeys;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapUnique = exports.MAP_UNIQUE = void 0;
exports.MAP_UNIQUE = void 0;
exports.MapUnique = MapUnique;
const class_validator_1 = require("class-validator");

@@ -34,2 +35,1 @@ const map_unique_predicate_1 = require("./map-unique.predicate");

}
exports.MapUnique = MapUnique;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapUnique = void 0;
exports.mapUnique = mapUnique;
const is_map_1 = require("../../type/is-map");

@@ -30,2 +30,1 @@ /**

}
exports.mapUnique = mapUnique;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsNetworkPort = exports.IS_NETWORK_PORT = void 0;
exports.IS_NETWORK_PORT = void 0;
exports.IsNetworkPort = IsNetworkPort;
const class_validator_1 = require("class-validator");

@@ -32,3 +33,7 @@ const is_network_port_predicate_1 = require("./is-network-port.predicate");

function IsNetworkPort(options) {
const { allow_system_allocated, allow_system_ports } = Object.assign({ allow_system_allocated: true, allow_system_ports: true }, options);
const { allow_system_allocated, allow_system_ports } = {
allow_system_allocated: true,
allow_system_ports: true,
...options,
};
return (0, class_validator_1.ValidateBy)({

@@ -48,2 +53,1 @@ name: exports.IS_NETWORK_PORT,

}
exports.IsNetworkPort = IsNetworkPort;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNetworkPort = void 0;
exports.isNetworkPort = isNetworkPort;
const integerRegex = /^0|([1-9]\d*)$/;

@@ -14,3 +14,7 @@ /**

}
const { allow_system_allocated, allow_system_ports } = Object.assign({ allow_system_allocated: true, allow_system_ports: true }, options);
const { allow_system_allocated, allow_system_ports } = {
allow_system_allocated: true,
allow_system_ports: true,
...options,
};
return (value <= 65535 &&

@@ -20,2 +24,1 @@ value >= (allow_system_allocated ? 0 : 1) &&

}
exports.isNetworkPort = isNetworkPort;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetContains = exports.SET_CONTAINS = void 0;
exports.SET_CONTAINS = void 0;
exports.SetContains = SetContains;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const set_contains_predicate_1 = require("./set-contains.predicate");

}
exports.SetContains = SetContains;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setContains = void 0;
exports.setContains = setContains;
const is_set_1 = require("../../type/is-set");

@@ -14,2 +14,1 @@ /**

}
exports.setContains = setContains;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetMaxSize = exports.SET_MAX_SIZE = void 0;
exports.SET_MAX_SIZE = void 0;
exports.SetMaxSize = SetMaxSize;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const set_max_size_predicate_1 = require("./set-max-size.predicate");

}
exports.SetMaxSize = SetMaxSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setMaxSize = void 0;
exports.setMaxSize = setMaxSize;
const is_set_1 = require("../../type/is-set");

@@ -16,2 +16,1 @@ /**

}
exports.setMaxSize = setMaxSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetMinSize = exports.SET_MIN_SIZE = void 0;
exports.SET_MIN_SIZE = void 0;
exports.SetMinSize = SetMinSize;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const set_min_size_predicate_1 = require("./set-min-size.predicate");

}
exports.SetMinSize = SetMinSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setMinSize = void 0;
exports.setMinSize = setMinSize;
const is_set_1 = require("../../type/is-set");

@@ -16,2 +16,1 @@ /**

}
exports.setMinSize = setMinSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetNotContains = exports.SET_NOT_CONTAINS = void 0;
exports.SET_NOT_CONTAINS = void 0;
exports.SetNotContains = SetNotContains;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const set_not_contains_predicate_1 = require("./set-not-contains.predicate");

}
exports.SetNotContains = SetNotContains;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setNotContains = void 0;
exports.setNotContains = setNotContains;
const is_set_1 = require("../../type/is-set");

@@ -14,2 +14,1 @@ /**

}
exports.setNotContains = setNotContains;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetNotEmpty = exports.SET_NOT_EMPTY = void 0;
exports.SET_NOT_EMPTY = void 0;
exports.SetNotEmpty = SetNotEmpty;
const class_validator_1 = require("class-validator");

@@ -31,2 +32,1 @@ const set_not_empty_predicate_1 = require("./set-not-empty.predicate");

}
exports.SetNotEmpty = SetNotEmpty;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setNotEmpty = void 0;
exports.setNotEmpty = setNotEmpty;
const is_set_1 = require("../../type/is-set");

@@ -12,2 +12,1 @@ /**

}
exports.setNotEmpty = setNotEmpty;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetSize = exports.SET_SIZE = void 0;
exports.SET_SIZE = void 0;
exports.SetSize = SetSize;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const set_size_predicate_1 = require("./set-size.predicate");

}
exports.SetSize = SetSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setSize = void 0;
exports.setSize = setSize;
const is_set_1 = require("../../type/is-set");

@@ -16,2 +16,1 @@ /**

}
exports.setSize = setSize;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetUnique = exports.SET_UNIQUE = void 0;
exports.SET_UNIQUE = void 0;
exports.SetUnique = SetUnique;
const class_validator_1 = require("class-validator");

@@ -34,2 +35,1 @@ const set_unique_predicate_1 = require("./set-unique.predicate");

}
exports.SetUnique = SetUnique;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setUnique = void 0;
exports.setUnique = setUnique;
const is_set_1 = require("../../type/is-set");

@@ -30,2 +30,1 @@ /**

}
exports.setUnique = setUnique;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsAwsARN = exports.IS_AWS_ARN = void 0;
exports.IS_AWS_ARN = void 0;
exports.IsAwsARN = IsAwsARN;
const class_validator_1 = require("class-validator");

@@ -41,2 +42,1 @@ const is_aws_arn_predicate_1 = require("./is-aws-arn.predicate");

}
exports.IsAwsARN = IsAwsARN;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.isAwsARN = void 0;
exports.isAwsARN = isAwsARN;
const regExp = /^arn:(?<partition>aws(?:-cn|-us-gov)?):(?<service>[a-z][\da-z-]*[\da-z]):(?<region>[a-z]{2}-[a-z]+-([1-9]\d*))?:(?<accountId>\d{12})?:(?<resourceId>.+)$/;

@@ -19,2 +19,1 @@ /**

}
exports.isAwsARN = isAwsARN;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsAwsRegion = exports.IS_AWS_REGION = void 0;
exports.IS_AWS_REGION = void 0;
exports.IsAwsRegion = IsAwsRegion;
const class_validator_1 = require("class-validator");

@@ -33,2 +34,1 @@ const is_aws_region_predicate_1 = require("./is-aws-region.predicate");

}
exports.IsAwsRegion = IsAwsRegion;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isAwsRegion = void 0;
exports.isAwsRegion = isAwsRegion;
const regExp = /^[a-z]{2}-[a-z]+-([1-9]\d*)$/;

@@ -12,2 +12,1 @@ /**

}
exports.isAwsRegion = isAwsRegion;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotMatches = exports.NOT_MATCHES = void 0;
exports.NOT_MATCHES = void 0;
exports.NotMatches = NotMatches;
const class_validator_1 = require("class-validator");

@@ -29,2 +30,1 @@ const not_matches_predicate_1 = require("./not-matches.predicate");

}
exports.NotMatches = NotMatches;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.notMatches = void 0;
exports.notMatches = notMatches;
const matches_1 = __importDefault(require("validator/lib/matches"));

@@ -15,2 +15,1 @@ function notMatches(value, pattern, modifiers) {

}
exports.notMatches = notMatches;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsBigInt = exports.IS_BIGINT = void 0;
exports.IS_BIGINT = void 0;
exports.IsBigInt = IsBigInt;
const class_validator_1 = require("class-validator");

@@ -30,2 +31,1 @@ const is_bigint_predicate_1 = require("./is-bigint.predicate");

}
exports.IsBigInt = IsBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBigInt = void 0;
exports.isBigInt = isBigInt;
/**

@@ -11,2 +11,1 @@ * @category Predicates

}
exports.isBigInt = isBigInt;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsDayjs = exports.IS_DAYJS = void 0;
exports.IS_DAYJS = void 0;
exports.IsDayjs = IsDayjs;
const class_validator_1 = require("class-validator");

@@ -35,2 +36,1 @@ const is_dayjs_predicate_1 = require("./is-dayjs.predicate");

}
exports.IsDayjs = IsDayjs;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDayjs = void 0;
exports.isDayjs = isDayjs;
const dayjs_1 = require("dayjs");

@@ -11,5 +11,4 @@ /**

function isDayjs(value, options) {
const { allow_invalid } = Object.assign({ allow_invalid: false }, options);
const { allow_invalid } = { allow_invalid: false, ...options };
return (0, dayjs_1.isDayjs)(value) && (allow_invalid || value.isValid());
}
exports.isDayjs = isDayjs;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsDuration = exports.IS_DURATION = void 0;
exports.IS_DURATION = void 0;
exports.IsDuration = IsDuration;
const class_validator_1 = require("class-validator");

@@ -40,2 +41,1 @@ const is_duration_predicate_1 = require("./is-duration.predicate");

}
exports.IsDuration = IsDuration;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.isDuration = void 0;
exports.isDuration = isDuration;
const dayjs_1 = __importDefault(require("dayjs"));

@@ -21,2 +21,1 @@ const is_valid_duration_1 = require("../../dayjs/is-valid-duration");

}
exports.isDuration = isDuration;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsMap = exports.IS_MAP = void 0;
exports.IS_MAP = void 0;
exports.IsMap = IsMap;
const class_validator_1 = require("class-validator");

@@ -32,2 +33,1 @@ const is_map_predicate_1 = require("./is-map.predicate");

}
exports.IsMap = IsMap;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isMap = void 0;
exports.isMap = isMap;
/**

@@ -11,2 +11,1 @@ * @category Predicates

}
exports.isMap = isMap;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsNull = exports.IS_NULL = void 0;
exports.IS_NULL = void 0;
exports.IsNull = IsNull;
const class_validator_1 = require("class-validator");

@@ -30,2 +31,1 @@ const is_null_predicate_1 = require("./is-null.predicate");

}
exports.IsNull = IsNull;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNull = void 0;
exports.isNull = isNull;
/**

@@ -11,2 +11,1 @@ * @category Predicates

}
exports.isNull = isNull;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsSet = exports.IS_SET = void 0;
exports.IS_SET = void 0;
exports.IsSet = IsSet;
const class_validator_1 = require("class-validator");

@@ -32,2 +33,1 @@ const is_set_predicate_1 = require("./is-set.predicate");

}
exports.IsSet = IsSet;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSet = void 0;
exports.isSet = isSet;
/**

@@ -11,2 +11,1 @@ * @category Predicates

}
exports.isSet = isSet;
{
"name": "class-validator-extended",
"version": "4.0.0",
"version": "4.0.1",
"description": "Additional validators for class-validator.",

@@ -65,22 +65,23 @@ "keywords": [

"@types/jest": "29.5.12",
"@types/validator": "13.11.9",
"@typescript-eslint/eslint-plugin": "7.0.1",
"@typescript-eslint/parser": "7.0.1",
"@types/node": "22.5.4",
"@types/validator": "13.12.1",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "27.9.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-unicorn": "51.0.1",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-jest": "28.8.3",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-unicorn": "55.0.0",
"jest": "29.7.0",
"jest-date-mock": "1.0.8",
"jest-date-mock": "1.0.10",
"jest-extended": "4.0.2",
"lockfile-lint": "4.13.1",
"prettier": "3.2.5",
"sort-package-json": "2.7.0",
"ts-jest": "29.1.2",
"typedoc": "0.25.8",
"typescript": "5.3.3"
"lockfile-lint": "4.14.0",
"prettier": "3.3.3",
"sort-package-json": "2.10.1",
"ts-jest": "29.2.5",
"typedoc": "0.26.7",
"typescript": "5.5.4"
},

@@ -87,0 +88,0 @@ "peerDependencies": {

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