@dcl/content-validator 1.0.0-20220111195543.commit-d2d6f1e → 1.0.0-20220111200841.commit-e97b937
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.profiles = void 0;
|
|
4
|
-
const
|
|
4
|
+
const address_1 = require("@ethersproject/address");
|
|
5
5
|
const types_1 = require("../../types");
|
|
6
6
|
/**
|
|
7
7
|
* Validate that the pointers are valid, and that the Ethereum address has write access to them
|
|
@@ -18,7 +18,7 @@ exports.profiles = {
|
|
|
18
18
|
if (!externalCalls.isAddressOwnedByDecentraland(ethAddress))
|
|
19
19
|
return (0, types_1.validationFailed)(`Only Decentraland can add or modify default profiles`);
|
|
20
20
|
}
|
|
21
|
-
else if (!
|
|
21
|
+
else if (!(0, address_1.isAddress)(pointer)) {
|
|
22
22
|
return (0, types_1.validationFailed)(`The given pointer is not a valid ethereum address.`);
|
|
23
23
|
}
|
|
24
24
|
else if (pointer !== ethAddress.toLowerCase()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../../src/validations/access-checker/profiles.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../../src/validations/access-checker/profiles.ts"],"names":[],"mappings":";;;AAAA,oDAAkD;AAElD,uCAA8D;AAE9D;;;GAGG;AACU,QAAA,QAAQ,GAAe;IAClC,QAAQ,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,EAAE;QAChD,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAA;QAC3C,MAAM,UAAU,GAAG,aAAa,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;QAEnE,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YACvB,OAAO,IAAA,wBAAgB,EAAC,oEAAoE,QAAQ,EAAE,CAAC,CAAA;QAEzG,MAAM,OAAO,GAAY,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;QAElD,IAAI,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YACjC,IAAI,CAAC,aAAa,CAAC,4BAA4B,CAAC,UAAU,CAAC;gBACzD,OAAO,IAAA,wBAAgB,EAAC,sDAAsD,CAAC,CAAA;SAClF;aAAM,IAAI,CAAC,IAAA,mBAAS,EAAC,OAAO,CAAC,EAAE;YAC9B,OAAO,IAAA,wBAAgB,EAAC,oDAAoD,CAAC,CAAA;SAC9E;aAAM,IAAI,OAAO,KAAK,UAAU,CAAC,WAAW,EAAE,EAAE;YAC/C,OAAO,IAAA,wBAAgB,EACrB,0GAA0G,OAAO,YAAY,UAAU,CAAC,WAAW,EAAE,IAAI,CAC1J,CAAA;SACF;QAED,OAAO,UAAE,CAAA;IACX,CAAC;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/content-validator",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-20220111200841.commit-e97b937",
|
|
4
4
|
"description": "Catalyst content validations",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@dcl/schemas": "^3.1.1",
|
|
37
37
|
"@dcl/urn-resolver": "^1.3.0",
|
|
38
|
+
"@ethersproject/address": "^5.5.0",
|
|
38
39
|
"dcl-catalyst-commons": "7.1.4-20220105153139.commit-79398b8",
|
|
39
|
-
"ethers": "^5.5.2",
|
|
40
40
|
"ms": "^2.1.3",
|
|
41
41
|
"sharp": "^0.29.3"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist"
|
|
45
45
|
],
|
|
46
|
-
"commit": "
|
|
46
|
+
"commit": "e97b937816f355e1f1bfefc746a8963ed7aaf35e"
|
|
47
47
|
}
|