@defra/bng-errors-lib 0.60.0 → 0.62.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/errors.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/bng-errors-lib",
3
- "version": "0.60.0",
3
+ "version": "0.62.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Custom errors for Biodiversity Net Gain",
@@ -15,5 +15,5 @@
15
15
  },
16
16
  "author": "Department for Environment, Food and Rural Affairs <https://www.gov.uk/government/organisations/department-for-environment-food-rural-affairs>",
17
17
  "license": "OGL-UK-3.0",
18
- "gitHead": "605bc0ac56444c99545adaad8f5e377f8cc468a7"
18
+ "gitHead": "f7e885a598331721c7333efd848eda6db0ac0605"
19
19
  }
package/src/errors.js CHANGED
@@ -9,13 +9,15 @@ const INVALID_FEATURE_COUNT = 'INVALID-FEATURE-COUNT'
9
9
  const INVALID_LAYER_COUNT = 'INVALID-LAYER-COUNT'
10
10
  const INVALID_UPLOAD = 'INVALID-UPLOAD'
11
11
  const MISSING_COORDINATE_SYSTEM = 'MISSING-COORDINATE-SYSTEM'
12
+ const OUTSIDE_ENGLAND = 'OUTSIDE_ENGLAND'
12
13
 
13
14
  const uploadGeospatialLandBoundaryErrorCodes = Object.freeze({
14
15
  INVALID_COORDINATE_SYSTEM,
15
16
  INVALID_FEATURE_COUNT,
16
17
  INVALID_LAYER_COUNT,
17
18
  INVALID_UPLOAD,
18
- MISSING_COORDINATE_SYSTEM
19
+ MISSING_COORDINATE_SYSTEM,
20
+ OUTSIDE_ENGLAND
19
21
  })
20
22
 
21
23
  export {