@thisisagile/easy 10.14.14 → 10.15.2
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.
|
@@ -8,7 +8,7 @@ const types_1 = require("../../types");
|
|
|
8
8
|
const validator_1 = __importDefault(require("validator"));
|
|
9
9
|
class Email extends types_1.Value {
|
|
10
10
|
constructor(email) {
|
|
11
|
-
super((0, types_1.asString)(email));
|
|
11
|
+
super((0, types_1.asString)(email).trim().toLowerCase());
|
|
12
12
|
}
|
|
13
13
|
get isValid() {
|
|
14
14
|
return (0, exports.isEmail)(this.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Email.js","sourceRoot":"","sources":["../../../src/domain/values/Email.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA6D;AAC7D,0DAAkC;AAElC,MAAa,KAAM,SAAQ,aAAK;IAC9B,YAAY,KAAe;QACzB,KAAK,CAAC,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Email.js","sourceRoot":"","sources":["../../../src/domain/values/Email.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA6D;AAC7D,0DAAkC;AAElC,MAAa,KAAM,SAAQ,aAAK;IAC9B,YAAY,KAAe;QACzB,KAAK,CAAC,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAA,eAAO,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAA,YAAI,EAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC3E,CAAC;CACF;AAZD,sBAYC;AAEM,MAAM,KAAK,GAAG,CAAC,KAAe,EAAS,EAAE,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;AAArD,QAAA,KAAK,SAAgD;AAE3D,MAAM,OAAO,GAAG,CAAC,CAAW,EAAW,EAAE,CAAC,CAAC,IAAA,eAAO,EAAC,CAAC,CAAC,IAAI,mBAAS,CAAC,OAAO,CAAC,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC,CAAC;AAAlF,QAAA,OAAO,WAA2E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisisagile/easy",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.15.2",
|
|
4
4
|
"description": "Straightforward library for building domain-driven microservice architectures",
|
|
5
5
|
"author": "Sander Hoogendoorn",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@thisisagile/easy-test": "10.
|
|
34
|
+
"@thisisagile/easy-test": "10.15.2",
|
|
35
35
|
"@types/form-urlencoded": "^4.4.0",
|
|
36
36
|
"@types/jsonwebtoken": "^8.5.8",
|
|
37
37
|
"@types/validator": "^13.7.2"
|