@dcl/content-validator 4.7.12-5457188781.commit-12dc405 → 4.7.12
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Validate that given scene deployment does not contain worldConfiguration
|
|
2
|
+
* Validate that given scene deployment does not contain worldConfiguration section
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export declare const noWorldsConfigurationValidateFn: import("../types").ValidateFn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../src/validations/scene.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,+
|
|
1
|
+
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../src/validations/scene.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,+BAQ1C,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,+BAW5B,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,+BAG3B,CAAA"}
|
|
@@ -5,14 +5,13 @@ const schemas_1 = require("@dcl/schemas");
|
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const validations_1 = require("./validations");
|
|
7
7
|
/**
|
|
8
|
-
* Validate that given scene deployment does not contain worldConfiguration
|
|
8
|
+
* Validate that given scene deployment does not contain worldConfiguration section
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
exports.noWorldsConfigurationValidateFn = (0, validations_1.validateAfterADR173)(async function validateFn(deployment) {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return (0, types_1.validationFailed)('Scenes cannot have worldConfiguration or dreamSpaceConfiguration sections after ADR 173.');
|
|
12
|
+
const sceneHasWorldConfiguration = deployment.entity.metadata?.worldConfiguration !== undefined;
|
|
13
|
+
if (sceneHasWorldConfiguration) {
|
|
14
|
+
return (0, types_1.validationFailed)('Scenes cannot have worldConfiguration section after ADR 173.');
|
|
16
15
|
}
|
|
17
16
|
return types_1.OK;
|
|
18
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene.js","sourceRoot":"","sources":["../../src/validations/scene.ts"],"names":[],"mappings":";;;AAAA,0CAAyD;AACzD,oCAAyF;AACzF,+CAA4G;AAE5G;;;GAGG;AACU,QAAA,+BAA+B,GAAG,IAAA,iCAAmB,EAAC,KAAK,UAAU,UAAU,CAC1F,UAAgC;IAEhC,MAAM
|
|
1
|
+
{"version":3,"file":"scene.js","sourceRoot":"","sources":["../../src/validations/scene.ts"],"names":[],"mappings":";;;AAAA,0CAAyD;AACzD,oCAAyF;AACzF,+CAA4G;AAE5G;;;GAGG;AACU,QAAA,+BAA+B,GAAG,IAAA,iCAAmB,EAAC,KAAK,UAAU,UAAU,CAC1F,UAAgC;IAEhC,MAAM,0BAA0B,GAAG,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,kBAAkB,KAAK,SAAS,CAAA;IAC/F,IAAI,0BAA0B,EAAE;QAC9B,OAAO,IAAA,wBAAgB,EAAC,8DAA8D,CAAC,CAAA;KACxF;IACD,OAAO,UAAE,CAAA;AACX,CAAC,CAAC,CAAA;AAEF;;;GAGG;AACU,QAAA,iBAAiB,GAAG,IAAA,iCAAmB,EAAC,KAAK,UAAU,UAAU,CAC5E,UAAgC;IAEhC,MAAM,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,eAAe,CAAA;IAC1E,IAAI,cAAc,EAAE;QAClB,MAAM,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAuB,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,cAAc,CAAC,CAAA;QAClH,IAAI,CAAC,aAAa,EAAE;YAClB,OAAO,IAAA,wBAAgB,EAAC,oBAAoB,cAAc,8CAA8C,CAAC,CAAA;SAC1G;KACF;IACD,OAAO,UAAE,CAAA;AACX,CAAC,CAAC,CAAA;AAEF;;;GAGG;AACU,QAAA,eAAe,GAAG,IAAA,mCAAqB,EAClD,oBAAU,CAAC,KAAK,EAChB,IAAA,yBAAW,EAAC,uCAA+B,EAAE,yBAAiB,CAAC,CAChE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/content-validator",
|
|
3
|
-
"version": "4.7.12
|
|
3
|
+
"version": "4.7.12",
|
|
4
4
|
"description": "Catalyst content validations",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"files": [
|
|
60
60
|
"dist"
|
|
61
61
|
],
|
|
62
|
-
"commit": "
|
|
62
|
+
"commit": "475869072c804e933eae0159f40c55ad1b3f26e1"
|
|
63
63
|
}
|