@netlify/functions-utils 4.0.3 → 4.1.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/README.md +3 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -11,11 +11,9 @@ This allows plugins to:
11
11
  # Example
12
12
 
13
13
  ```js
14
- module.exports = {
15
- // Add a Netlify Functions file or directory to a build
16
- async onPreBuild({ utils }) {
17
- await utils.functions.add('./path/to/function')
18
- },
14
+ // Add a Netlify Functions file or directory to a build
15
+ export const onPreBuild = async function ({ utils }) {
16
+ await utils.functions.add('./path/to/function')
19
17
  }
20
18
  ```
21
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/functions-utils",
3
- "version": "4.0.3",
3
+ "version": "4.1.0",
4
4
  "description": "Utility for adding Functions files in Netlify Build",
5
5
  "type": "module",
6
6
  "exports": "./src/main.js",