npm package diff
Package: @forge/manifest
Versions: 10.0.1-next.6 - 10.0.1-next.7
Modified: package/out/validators/resources-validator.js
Index: package/out/validators/resources-validator.js
===================================================================
--- package/out/validators/resources-validator.js
+++ package/out/validators/resources-validator.js
@@ -1,15 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.ResourcesValidator = void 0;
+exports.ResourcesValidator = exports.MAX_RESOURCE_COUNT = void 0;
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
const path_1 = require("path");
const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
const utils_1 = require("../utils");
const text_1 = require("../text");
const utils_2 = require("../utils");
-const MAX_RESOURCE_COUNT = 10;
+exports.MAX_RESOURCE_COUNT = 50;
class ResourcesValidator {
async validate(manifest) {
if (!manifest || !manifest.typedContent || !manifest.filePath) {
return {
@@ -24,11 +24,11 @@
success: true,
manifestObject: manifest
};
}
- if (resources.length > MAX_RESOURCE_COUNT) {
+ if (resources.length > exports.MAX_RESOURCE_COUNT) {
validationErrors.push({
- message: text_1.errors.resources.tooManyResourcesError(MAX_RESOURCE_COUNT),
+ message: text_1.errors.resources.tooManyResourcesError(exports.MAX_RESOURCE_COUNT),
reference: text_1.References.Resources,
level: 'error',
...(0, utils_1.findPosition)('resource', yamlContentByLine)
});
Modified: package/package.json
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/manifest",
- "version": "10.0.1-next.6",
+ "version": "10.0.1-next.7",
"description": "Definitions and validations of the Forge manifest",
"main": "out/index.js",
"scripts": {
"build": "yarn run compile",
Modified: package/out/validators/resources-validator.d.ts.map
Index: package/out/validators/resources-validator.d.ts.map
===================================================================
--- package/out/validators/resources-validator.d.ts.map
+++ package/out/validators/resources-validator.d.ts.map
@@ -1,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"}
\ No newline at end of file
+{"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"}
\ No newline at end of file
Modified: package/CHANGELOG.md
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
# @forge/manifest
+## 10.0.1-next.7
+
+### Patch Changes
+
+- 634d7b9: Bump max resource limit from 10 to 50
+
## 10.0.1-next.6
### Patch Changes
Modified: package/out/validators/resources-validator.d.ts
Index: package/out/validators/resources-validator.d.ts
===================================================================
--- package/out/validators/resources-validator.d.ts
+++ package/out/validators/resources-validator.d.ts
@@ -1,7 +1,8 @@
import { ManifestObject, ManifestValidationResult } from '../types';
import { ManifestSchema } from '../schema/manifest';
import { ValidatorInterface } from './validator-interface';
+export declare const MAX_RESOURCE_COUNT = 50;
export declare class ResourcesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
}
//# sourceMappingURL=resources-validator.d.ts.map
\ No newline at end of file