@forge/manifest 10.0.1-next.6 → 10.0.1-next.7

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
+ ## 10.0.1-next.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 634d7b9: Bump max resource limit from 10 to 50
8
+
3
9
  ## 10.0.1-next.6
4
10
 
5
11
  ### Patch Changes
@@ -1,6 +1,7 @@
1
1
  import { ManifestObject, ManifestValidationResult } from '../types';
2
2
  import { ManifestSchema } from '../schema/manifest';
3
3
  import { ValidatorInterface } from './validator-interface';
4
+ export declare const MAX_RESOURCE_COUNT = 50;
4
5
  export declare class ResourcesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
5
6
  validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
6
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"resources-validator.d.ts","sourceRoot":"","sources":["../../src/validators/resources-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,kBACX,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;CAkLrD"}
1
+ {"version":3,"file":"resources-validator.d.ts","sourceRoot":"","sources":["../../src/validators/resources-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,qBAAa,kBACX,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;CAkLrD"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourcesValidator = void 0;
3
+ exports.ResourcesValidator = exports.MAX_RESOURCE_COUNT = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fs_1 = tslib_1.__importDefault(require("fs"));
6
6
  const path_1 = require("path");
@@ -8,7 +8,7 @@ const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
8
8
  const utils_1 = require("../utils");
9
9
  const text_1 = require("../text");
10
10
  const utils_2 = require("../utils");
11
- const MAX_RESOURCE_COUNT = 10;
11
+ exports.MAX_RESOURCE_COUNT = 50;
12
12
  class ResourcesValidator {
13
13
  async validate(manifest) {
14
14
  if (!manifest || !manifest.typedContent || !manifest.filePath) {
@@ -25,9 +25,9 @@ class ResourcesValidator {
25
25
  manifestObject: manifest
26
26
  };
27
27
  }
28
- if (resources.length > MAX_RESOURCE_COUNT) {
28
+ if (resources.length > exports.MAX_RESOURCE_COUNT) {
29
29
  validationErrors.push({
30
- message: text_1.errors.resources.tooManyResourcesError(MAX_RESOURCE_COUNT),
30
+ message: text_1.errors.resources.tooManyResourcesError(exports.MAX_RESOURCE_COUNT),
31
31
  reference: text_1.References.Resources,
32
32
  level: 'error',
33
33
  ...(0, utils_1.findPosition)('resource', yamlContentByLine)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "10.0.1-next.6",
3
+ "version": "10.0.1-next.7",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {