@forge/manifest 5.2.0-next.3 → 5.2.0-next.4

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 5.2.0-next.4
4
+
5
+ ### Patch Changes
6
+
7
+ - a0da1771: Updated condition for snapshot warning
8
+
3
9
  ## 5.2.0-next.3
4
10
 
5
11
  ### Minor Changes
@@ -12,6 +12,6 @@ export * from './permissions-validator';
12
12
  export * from './connect-remote-validator';
13
13
  export * from './connect-authentication-validator';
14
14
  export * from './entity-property-validator';
15
- export * from './snapshot-vaidator';
15
+ export * from './snapshot-validator';
16
16
  export * from './package-validator';
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
@@ -15,5 +15,5 @@ tslib_1.__exportStar(require("./permissions-validator"), exports);
15
15
  tslib_1.__exportStar(require("./connect-remote-validator"), exports);
16
16
  tslib_1.__exportStar(require("./connect-authentication-validator"), exports);
17
17
  tslib_1.__exportStar(require("./entity-property-validator"), exports);
18
- tslib_1.__exportStar(require("./snapshot-vaidator"), exports);
18
+ tslib_1.__exportStar(require("./snapshot-validator"), exports);
19
19
  tslib_1.__exportStar(require("./package-validator"), exports);
@@ -4,4 +4,4 @@ import { ManifestSchema } from '../schema/manifest';
4
4
  export declare class SnapshotValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
5
5
  validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
6
6
  }
7
- //# sourceMappingURL=snapshot-vaidator.d.ts.map
7
+ //# sourceMappingURL=snapshot-validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot-validator.d.ts","sourceRoot":"","sources":["../../src/validators/snapshot-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAErF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAUpD,qBAAa,iBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAyBrD"}
@@ -11,7 +11,7 @@ const handleRedundantSnapshot = () => {
11
11
  };
12
12
  class SnapshotValidator {
13
13
  async validate(manifest) {
14
- var _a, _b;
14
+ var _a, _b, _c;
15
15
  if (!(manifest === null || manifest === void 0 ? void 0 : manifest.typedContent)) {
16
16
  return {
17
17
  success: false,
@@ -20,7 +20,7 @@ class SnapshotValidator {
20
20
  }
21
21
  const validationErrors = [];
22
22
  if (((_a = manifest.typedContent.app.runtime) === null || _a === void 0 ? void 0 : _a.snapshots) === true &&
23
- ((_b = manifest.typedContent.app.runtime) === null || _b === void 0 ? void 0 : _b.name) !== 'sandbox') {
23
+ ((_c = (_b = manifest.typedContent.app.runtime) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : 'sandbox') !== 'sandbox') {
24
24
  validationErrors.push(handleRedundantSnapshot());
25
25
  }
26
26
  const warningLevel = validationErrors.filter((e) => e.level === 'warning');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "5.2.0-next.3",
3
+ "version": "5.2.0-next.4",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"snapshot-vaidator.d.ts","sourceRoot":"","sources":["../../src/validators/snapshot-vaidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAErF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAUpD,qBAAa,iBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAyBrD"}