@defra/grants-reporting-publisher 0.0.2 → 0.0.3

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
  # @defra/grants-reporting-publisher
2
2
 
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6be70d1: Allow consumers to use validation without requiring SNS client
8
+
3
9
  ## 0.0.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/grants-reporting-publisher",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "NPM module for publishing grants reporting events",
5
5
  "engines": {
6
6
  "node": ">=24",
@@ -27,9 +27,12 @@
27
27
  "version:create": "changeset"
28
28
  },
29
29
  "author": "Defra Grants Platform Experience Team",
30
- "main": "./dist/index.js",
30
+ "main": "./src/index.js",
31
31
  "exports": {
32
- ".": "./dist/index.js"
32
+ ".": "./src/index.js",
33
+ "./publish": "./src/publish.js",
34
+ "./validate": "./src/validate.js",
35
+ "./schema": "./src/schema.js"
33
36
  },
34
37
  "license": "OGL-UK-3.0",
35
38
  "bugs": {
@@ -61,6 +64,11 @@
61
64
  "peerDependencies": {
62
65
  "@aws-sdk/client-sns": ">=3"
63
66
  },
67
+ "peerDependenciesMeta": {
68
+ "@aws-sdk/client-sns": {
69
+ "optional": true
70
+ }
71
+ },
64
72
  "release-it": {
65
73
  "npm": {
66
74
  "publish": false
package/src/index.js CHANGED
@@ -1,2 +1 @@
1
1
  export { validateReportingEvent } from "./validate.js";
2
- export { publishReportingEvent } from "./publish.js";