@warlock.js/seal 4.2.11 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -17
- package/LICENSE +21 -21
- package/cjs/index.cjs +26 -0
- package/cjs/index.cjs.map +1 -1
- package/esm/index.d.mts +5 -1
- package/esm/index.mjs +5 -1
- package/esm/validators/index.d.mts +4 -0
- package/esm/validators/index.mjs +4 -4
- package/esm/validators/methods/equality-conditional-methods.d.mts +7 -0
- package/esm/validators/methods/equality-conditional-methods.d.mts.map +1 -1
- package/esm/validators/methods/equality-conditional-methods.mjs +6 -1
- package/esm/validators/methods/equality-conditional-methods.mjs.map +1 -1
- package/esm/validators/methods/forbidden-methods.d.mts +8 -1
- package/esm/validators/methods/forbidden-methods.d.mts.map +1 -1
- package/esm/validators/methods/forbidden-methods.mjs +6 -1
- package/esm/validators/methods/forbidden-methods.mjs.map +1 -1
- package/esm/validators/methods/present-methods.d.mts +8 -1
- package/esm/validators/methods/present-methods.d.mts.map +1 -1
- package/esm/validators/methods/present-methods.mjs +6 -1
- package/esm/validators/methods/present-methods.mjs.map +1 -1
- package/esm/validators/methods/required-methods.d.mts +9 -0
- package/esm/validators/methods/required-methods.d.mts.map +1 -1
- package/esm/validators/methods/required-methods.mjs +8 -1
- package/esm/validators/methods/required-methods.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# Changelog — @warlock.js/seal
|
|
2
|
-
|
|
3
|
-
All notable changes to `@warlock.js/seal` are documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
|
-
|
|
7
|
-
## [Unreleased]
|
|
8
|
-
|
|
9
|
-
## 4.2.11
|
|
10
|
-
|
|
11
|
-
### Changed
|
|
12
|
-
|
|
13
|
-
- Bumped `@mongez/reinforcements` to 3.3.0
|
|
14
|
-
|
|
15
|
-
## 4.1.15
|
|
16
|
-
|
|
17
|
-
- Baseline — per-package changelog tracking starts at this version.
|
|
1
|
+
# Changelog — @warlock.js/seal
|
|
2
|
+
|
|
3
|
+
All notable changes to `@warlock.js/seal` are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## 4.2.11
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Bumped `@mongez/reinforcements` to 3.3.0
|
|
14
|
+
|
|
15
|
+
## 4.1.15
|
|
16
|
+
|
|
17
|
+
- Baseline — per-package changelog tracking starts at this version.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Hassan Zohdy
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Hassan Zohdy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/cjs/index.cjs
CHANGED
|
@@ -4510,6 +4510,11 @@ var ArrayValidator = class extends BaseValidator {
|
|
|
4510
4510
|
//#endregion
|
|
4511
4511
|
//#region ../@warlock.js/seal/src/validators/methods/equality-conditional-methods.ts
|
|
4512
4512
|
/**
|
|
4513
|
+
* Marker re-exported by the validators barrel so the dts bundler keeps this
|
|
4514
|
+
* module (and its `declare module` augmentation) in the bundled `.d.ts`.
|
|
4515
|
+
*/
|
|
4516
|
+
const equalityConditionalMethodsApplied = true;
|
|
4517
|
+
/**
|
|
4513
4518
|
* Value must be equal to the given value
|
|
4514
4519
|
*/
|
|
4515
4520
|
BaseValidator.prototype.equal = function(value, errorMessage) {
|
|
@@ -4631,6 +4636,11 @@ BaseValidator.prototype.whenSibling = function(siblingField, options) {
|
|
|
4631
4636
|
//#endregion
|
|
4632
4637
|
//#region ../@warlock.js/seal/src/validators/methods/forbidden-methods.ts
|
|
4633
4638
|
/**
|
|
4639
|
+
* Marker re-exported by the validators barrel so the dts bundler keeps this
|
|
4640
|
+
* module (and its `declare module` augmentation) in the bundled `.d.ts`.
|
|
4641
|
+
*/
|
|
4642
|
+
const forbiddenMethodsApplied = true;
|
|
4643
|
+
/**
|
|
4634
4644
|
* Value is forbidden to be present
|
|
4635
4645
|
*/
|
|
4636
4646
|
BaseValidator.prototype.forbidden = function(errorMessage) {
|
|
@@ -4756,6 +4766,11 @@ BaseValidator.prototype.forbiddenIfNotInSibling = function(field, values, errorM
|
|
|
4756
4766
|
//#endregion
|
|
4757
4767
|
//#region ../@warlock.js/seal/src/validators/methods/present-methods.ts
|
|
4758
4768
|
/**
|
|
4769
|
+
* Marker re-exported by the validators barrel so the dts bundler keeps this
|
|
4770
|
+
* module (and its `declare module` augmentation) in the bundled `.d.ts`.
|
|
4771
|
+
*/
|
|
4772
|
+
const presentMethodsApplied = true;
|
|
4773
|
+
/**
|
|
4759
4774
|
* Field must be present if another field exists
|
|
4760
4775
|
*/
|
|
4761
4776
|
BaseValidator.prototype.presentWith = function(field, errorMessage) {
|
|
@@ -4983,6 +4998,13 @@ BaseValidator.prototype.presentWithoutAnySiblings = function(fields, errorMessag
|
|
|
4983
4998
|
//#endregion
|
|
4984
4999
|
//#region ../@warlock.js/seal/src/validators/methods/required-methods.ts
|
|
4985
5000
|
/**
|
|
5001
|
+
* Marker re-exported by the validators barrel so the dts bundler keeps this
|
|
5002
|
+
* module (and its `declare module` augmentation) in the bundled `.d.ts`.
|
|
5003
|
+
* Without a real export, side-effect-only augmentation modules get tree-shaken
|
|
5004
|
+
* out of the published types, dropping every chainable rule method.
|
|
5005
|
+
*/
|
|
5006
|
+
const requiredMethodsApplied = true;
|
|
5007
|
+
/**
|
|
4986
5008
|
* This value must be present and has a value
|
|
4987
5009
|
*/
|
|
4988
5010
|
BaseValidator.prototype.required = function(errorMessage) {
|
|
@@ -8699,6 +8721,7 @@ exports.emailRule = emailRule;
|
|
|
8699
8721
|
exports.endsWithRule = endsWithRule;
|
|
8700
8722
|
exports.enumRule = enumRule;
|
|
8701
8723
|
exports.equalRule = equalRule;
|
|
8724
|
+
exports.equalityConditionalMethodsApplied = equalityConditionalMethodsApplied;
|
|
8702
8725
|
exports.equalsFieldRule = equalsFieldRule;
|
|
8703
8726
|
exports.evenRule = evenRule;
|
|
8704
8727
|
exports.flipArrayMutator = flipArrayMutator;
|
|
@@ -8710,6 +8733,7 @@ exports.forbiddenIfNotEmptyRule = forbiddenIfNotEmptyRule;
|
|
|
8710
8733
|
exports.forbiddenIfNotInRule = forbiddenIfNotInRule;
|
|
8711
8734
|
exports.forbiddenIfNotRule = forbiddenIfNotRule;
|
|
8712
8735
|
exports.forbiddenIfRule = forbiddenIfRule;
|
|
8736
|
+
exports.forbiddenMethodsApplied = forbiddenMethodsApplied;
|
|
8713
8737
|
exports.forbiddenRule = forbiddenRule;
|
|
8714
8738
|
exports.fromHourRule = fromHourRule;
|
|
8715
8739
|
exports.fromMinuteRule = fromMinuteRule;
|
|
@@ -8795,6 +8819,7 @@ exports.presentIfInRule = presentIfInRule;
|
|
|
8795
8819
|
exports.presentIfNotEmptyRule = presentIfNotEmptyRule;
|
|
8796
8820
|
exports.presentIfNotInRule = presentIfNotInRule;
|
|
8797
8821
|
exports.presentIfRule = presentIfRule;
|
|
8822
|
+
exports.presentMethodsApplied = presentMethodsApplied;
|
|
8798
8823
|
exports.presentRule = presentRule;
|
|
8799
8824
|
exports.presentUnlessRule = presentUnlessRule;
|
|
8800
8825
|
exports.presentWithAllRule = presentWithAllRule;
|
|
@@ -8820,6 +8845,7 @@ exports.requiredIfInRule = requiredIfInRule;
|
|
|
8820
8845
|
exports.requiredIfNotEmptyRule = requiredIfNotEmptyRule;
|
|
8821
8846
|
exports.requiredIfNotInRule = requiredIfNotInRule;
|
|
8822
8847
|
exports.requiredIfRule = requiredIfRule;
|
|
8848
|
+
exports.requiredMethodsApplied = requiredMethodsApplied;
|
|
8823
8849
|
exports.requiredRule = requiredRule;
|
|
8824
8850
|
exports.requiredUnlessRule = requiredUnlessRule;
|
|
8825
8851
|
exports.requiredWhenRule = requiredWhenRule;
|