npm package diff
Package: @forge/manifest
Versions: 7.7.0-next.12 - 7.5.2-next.0-experimental-204139e
File: package/out/text/errors.js
Index: package/out/text/errors.js
===================================================================
--- package/out/text/errors.js
+++ package/out/text/errors.js
@@ -21,13 +21,9 @@
additionalProperties: (additionalProperty) => `should NOT have additional property '${additionalProperty}'`,
notAllowed: (props) => props
? `does not support the following Forge properties - ${props.map((v) => "'" + v + "'").join(', ')}`
: 'provided properties do not match schema. Learn more about modules at https://go.atlassian.com/forge-modules',
- missingEnvironmentVariable: (variable) => `could not find environment variable '${variable}'`,
- errorReadingResourceFile: (variable, errorMessage) => `error while reading resource file: '${variable}'. Error: ${errorMessage}`,
- resourceNotFound: (variable) => `could not find resource: '${variable}'`,
- resourcePathNotDefined: (variable) => `resource path not defined for resource: '${variable}'`,
- resourceFileNotSupported: (variable) => `resource file type not supported: '${variable}'`
+ missingEnvironmentVariable: (variable) => `could not find environment variable '${variable}'`
},
permissions: {
invalidPermission: (element, value) => `Invalid '${element}' permission in the manifest.yml file - '${value}'. Learn more about permissions at: https://go.atlassian.com/forge-permissions.`,
missingPermissionFromScope: (scope, event) => `Trigger event: '${event}' requires '${scope}' scope`,
@@ -36,9 +32,11 @@
deprecatedPermission: (element, value) => `There are deprecated scopes '${element}' in the manifest.yml file: '${value.join(', ')}'. You need to update this app to use new scopes and remove the deprecated scopes. Learn more at: https://go.atlassian.com/forge-permissions.`
},
connectModules: {
invalidConnectModule: (module) => `invalid value '${module}' in connectModules`,
- duplicateLifecycleFound: (module) => `'${module}' should contain only one element`
+ missingConnectModule: () => `document must have at least 1 valid connect module when 'connectModules' is declared`,
+ duplicateKeyFound: (key) => `found duplicate connect module key '${key}'`,
+ duplicatateLifecycleFound: (module) => `'${module}' should contain only one element`
},
modules: {
invalidModule: (module) => `invalid value '${module}' in modules`,
missingModule: () => 'document must have at least 1 module',
@@ -123,11 +121,9 @@
remote: {
missingModuleRemoteStorageInScopeEUD: (key) => `missing storage.inScopeEUD in ${key} module. storage.inScopeEUD is required if storage is present in operations.`
},
rovo: {
- incorrectAgentActionReference: (module, moduleKey) => `${module} references undefined action module with key '${moduleKey}'.`,
- unreferencedAction: (action) => `Action '${action}' is not referenced by any Rovo agent.`,
- undefinedActionName: (action) => `Action '${action}' does not have a name property. 'name' property will be required when Forge Agents are GA.`
+ incorrectAgentActionReference: (module, moduleKey) => `${module} references undefined action module with key '${moduleKey}'.`
}
},
resources: {
missingResource: (folder, key) => `missing resource '${folder}' is being referenced by '${key}' in resources`,
@@ -174,18 +170,8 @@
extraFiles: {
missing: (glob) => `Extra files specification '${glob}' does not match any files.`
}
}
- },
- translations: {
- missingTranslationsJsonFile: (languageLocaleCode) => `There is no available translations JSON file for the specified fallback language: '${languageLocaleCode}'`,
- duplicateFallbackConfig: (languageLocaleCode) => `Duplicated fallback configuration found for: '${languageLocaleCode}'`,
- invalidLanguageFile: (languageLocaleCode, path) => `An error occurred while reading JSON file for '${languageLocaleCode}' at the specified path: ${path}`,
- duplicateResourceKey: (languageLocaleCode) => `Duplicate translations resource key found: '${languageLocaleCode}'`,
- i18nKeyNotFound: (keyName) => `i18n key '${keyName}' could not be found in default locale file.`,
- missingTranslationsPropertyError: 'i18n key(s) found but translations property is missing in manifest file',
- internalI18nPropertyKeyFound: (propertyKey, moduleKey) => `Unexpected property key '${propertyKey}' found in '${moduleKey}' module`,
- i18nValueValidationError: (keyName, languageLocaleCode, errorMsg) => `i18n value for key '${keyName}' for locale '${languageLocaleCode}' ${errorMsg}`
}
};
var References;
(function (References) {
@@ -195,8 +181,9 @@
References["Permissions"] = "valid-permissions-required";
References["MissingScopes"] = "permission-scope-required";
References["Modules"] = "valid-module-required";
References["ConnectModules"] = "valid-connect-module-required";
+ References["DuplicateModuleKeys"] = "duplicate-module-keys";
References["Resources"] = "valid-resource-required";
References["Providers"] = "valid-provider-required";
References["Deprecated"] = "deprecated-property";
References["App"] = "valid-app-config-required";