netlify-cli 9.13.5 → 9.15.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.
- package/npm-shrinkwrap.json +27 -27
- package/package.json +3 -2
- package/src/commands/dev/dev.js +3 -1
- package/src/functions-templates/go/scheduled-function/.netlify-function-template.js +5 -0
- package/src/functions-templates/go/scheduled-function/go.mod +5 -0
- package/src/functions-templates/go/scheduled-function/go.sum +21 -0
- package/src/functions-templates/go/scheduled-function/netlify.toml +11 -0
- package/src/functions-templates/go/scheduled-function/src/hourly-schedule/main.go +36 -0
- package/src/functions-templates/javascript/stripe-charge/package-lock.json +7 -7
- package/src/functions-templates/javascript/stripe-subscription/package-lock.json +7 -7
- package/src/functions-templates/rust/hello-world/Cargo.toml +1 -1
- package/src/functions-templates/typescript/hello-world/package-lock.json +7 -7
- package/src/lib/functions/netlify-function.js +4 -2
- package/src/lib/functions/registry.js +1 -0
- package/src/lib/functions/server.js +1 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.15.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "9.
|
|
9
|
+
"version": "9.15.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@babel/preset-react": "^7.12.13",
|
|
129
|
-
"@netlify/eslint-config-node": "^5.1.
|
|
129
|
+
"@netlify/eslint-config-node": "^5.1.8",
|
|
130
130
|
"ava": "^4.0.0",
|
|
131
131
|
"c8": "^7.11.0",
|
|
132
132
|
"eslint-plugin-sort-destructure-keys": "^1.3.5",
|
|
@@ -3452,9 +3452,9 @@
|
|
|
3452
3452
|
}
|
|
3453
3453
|
},
|
|
3454
3454
|
"node_modules/@netlify/eslint-config-node": {
|
|
3455
|
-
"version": "5.1.
|
|
3456
|
-
"resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.
|
|
3457
|
-
"integrity": "sha512-
|
|
3455
|
+
"version": "5.1.8",
|
|
3456
|
+
"resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.8.tgz",
|
|
3457
|
+
"integrity": "sha512-A1UsNwPXsjryQxBPXGmEynIVaYq4o2VpCiDfkZiIQ0FTXzJv+aBopxwaKBvdE4NgHueLAgpUlWWCJ7Xkt4zN0Q==",
|
|
3458
3458
|
"dev": true,
|
|
3459
3459
|
"dependencies": {
|
|
3460
3460
|
"@babel/core": "^7.13.8",
|
|
@@ -13012,9 +13012,9 @@
|
|
|
13012
13012
|
}
|
|
13013
13013
|
},
|
|
13014
13014
|
"node_modules/gh-release-fetch": {
|
|
13015
|
-
"version": "3.0.
|
|
13016
|
-
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.
|
|
13017
|
-
"integrity": "sha512-
|
|
13015
|
+
"version": "3.0.2",
|
|
13016
|
+
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.2.tgz",
|
|
13017
|
+
"integrity": "sha512-xcX1uaOVDvsm+io4bvJfBFpQCLfoI3DsFay2GBMUtEnNInbNFFZqxTh7X0WIorCDtOmtos5atp2BGHAGEzmlAg==",
|
|
13018
13018
|
"dependencies": {
|
|
13019
13019
|
"@types/download": "^8.0.0",
|
|
13020
13020
|
"@types/node-fetch": "^2.1.6",
|
|
@@ -16797,9 +16797,9 @@
|
|
|
16797
16797
|
}
|
|
16798
16798
|
},
|
|
16799
16799
|
"node_modules/minimist": {
|
|
16800
|
-
"version": "1.2.
|
|
16801
|
-
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.
|
|
16802
|
-
"integrity": "sha512-
|
|
16800
|
+
"version": "1.2.6",
|
|
16801
|
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
|
|
16802
|
+
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="
|
|
16803
16803
|
},
|
|
16804
16804
|
"node_modules/minimist-options": {
|
|
16805
16805
|
"version": "4.1.0",
|
|
@@ -23251,9 +23251,9 @@
|
|
|
23251
23251
|
}
|
|
23252
23252
|
},
|
|
23253
23253
|
"node_modules/typescript": {
|
|
23254
|
-
"version": "4.6.
|
|
23255
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.
|
|
23256
|
-
"integrity": "sha512-
|
|
23254
|
+
"version": "4.6.3",
|
|
23255
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
|
23256
|
+
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
|
|
23257
23257
|
"bin": {
|
|
23258
23258
|
"tsc": "bin/tsc",
|
|
23259
23259
|
"tsserver": "bin/tsserver"
|
|
@@ -26726,9 +26726,9 @@
|
|
|
26726
26726
|
"integrity": "sha512-tiKmDcHM2riSVN79c0mJY/67EBDafXQAMitHuLiCDAMdtz3kfv+NqdVG5krgf5lWR8Uf8AeZrUW5Q9RP25REvw=="
|
|
26727
26727
|
},
|
|
26728
26728
|
"@netlify/eslint-config-node": {
|
|
26729
|
-
"version": "5.1.
|
|
26730
|
-
"resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.
|
|
26731
|
-
"integrity": "sha512-
|
|
26729
|
+
"version": "5.1.8",
|
|
26730
|
+
"resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.8.tgz",
|
|
26731
|
+
"integrity": "sha512-A1UsNwPXsjryQxBPXGmEynIVaYq4o2VpCiDfkZiIQ0FTXzJv+aBopxwaKBvdE4NgHueLAgpUlWWCJ7Xkt4zN0Q==",
|
|
26732
26732
|
"dev": true,
|
|
26733
26733
|
"requires": {
|
|
26734
26734
|
"@babel/core": "^7.13.8",
|
|
@@ -33926,9 +33926,9 @@
|
|
|
33926
33926
|
}
|
|
33927
33927
|
},
|
|
33928
33928
|
"gh-release-fetch": {
|
|
33929
|
-
"version": "3.0.
|
|
33930
|
-
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.
|
|
33931
|
-
"integrity": "sha512-
|
|
33929
|
+
"version": "3.0.2",
|
|
33930
|
+
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.2.tgz",
|
|
33931
|
+
"integrity": "sha512-xcX1uaOVDvsm+io4bvJfBFpQCLfoI3DsFay2GBMUtEnNInbNFFZqxTh7X0WIorCDtOmtos5atp2BGHAGEzmlAg==",
|
|
33932
33932
|
"requires": {
|
|
33933
33933
|
"@types/download": "^8.0.0",
|
|
33934
33934
|
"@types/node-fetch": "^2.1.6",
|
|
@@ -36742,9 +36742,9 @@
|
|
|
36742
36742
|
}
|
|
36743
36743
|
},
|
|
36744
36744
|
"minimist": {
|
|
36745
|
-
"version": "1.2.
|
|
36746
|
-
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.
|
|
36747
|
-
"integrity": "sha512-
|
|
36745
|
+
"version": "1.2.6",
|
|
36746
|
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
|
|
36747
|
+
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="
|
|
36748
36748
|
},
|
|
36749
36749
|
"minimist-options": {
|
|
36750
36750
|
"version": "4.1.0",
|
|
@@ -41716,9 +41716,9 @@
|
|
|
41716
41716
|
}
|
|
41717
41717
|
},
|
|
41718
41718
|
"typescript": {
|
|
41719
|
-
"version": "4.6.
|
|
41720
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.
|
|
41721
|
-
"integrity": "sha512-
|
|
41719
|
+
"version": "4.6.3",
|
|
41720
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
|
41721
|
+
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw=="
|
|
41722
41722
|
},
|
|
41723
41723
|
"uglify-js": {
|
|
41724
41724
|
"version": "3.15.0",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
3
|
"description": "Netlify command line tool",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.15.0",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Abraham Schilling <AbrahamSchilling@gmail.com> (https://gitlab.com/n4bb12)",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"Cole Bosmann",
|
|
31
31
|
"Dan Croak (https://twitter.com/croaky)",
|
|
32
32
|
"Dan Loewenherz <dan@lionheartsw.com> (https://twitter.com/dwlz)",
|
|
33
|
+
"Daniel Woelfel <dwwoelfel@gmail.com> (https://twitter.com/danielwoelfel)",
|
|
33
34
|
"Dave Ackerman <dmackerman@gmail.com>",
|
|
34
35
|
"David Calavera <david@netlify.com> (https://twitter.com/calavera)",
|
|
35
36
|
"David Lemler <dlemler@pm.me> (https://twitter.com/davidlemlerm)",
|
|
@@ -316,7 +317,7 @@
|
|
|
316
317
|
},
|
|
317
318
|
"devDependencies": {
|
|
318
319
|
"@babel/preset-react": "^7.12.13",
|
|
319
|
-
"@netlify/eslint-config-node": "^5.1.
|
|
320
|
+
"@netlify/eslint-config-node": "^5.1.8",
|
|
320
321
|
"ava": "^4.0.0",
|
|
321
322
|
"c8": "^7.11.0",
|
|
322
323
|
"eslint-plugin-sort-destructure-keys": "^1.3.5",
|
package/src/commands/dev/dev.js
CHANGED
|
@@ -294,7 +294,9 @@ const startPollingForAPIAuthentication = async function (options) {
|
|
|
294
294
|
process.env.ONEGRAPH_AUTHLIFY_TOKEN = netlifyGraphJWT
|
|
295
295
|
process.env.NETLIFY_GRAPH_TOKEN = netlifyGraphJWT
|
|
296
296
|
}
|
|
297
|
-
} else {
|
|
297
|
+
} else if (!authlifyTokenId) {
|
|
298
|
+
// If there's no `authlifyTokenId`, it's because the user disabled API
|
|
299
|
+
// Auth. Delete the config in this case.
|
|
298
300
|
delete config.netlifyGraphConfig
|
|
299
301
|
}
|
|
300
302
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
|
2
|
+
github.com/aws/aws-lambda-go v1.28.0 h1:fZiik1PZqW2IyAN4rj+Y0UBaO1IDFlsNo9Zz/XnArK4=
|
|
3
|
+
github.com/aws/aws-lambda-go v1.28.0/go.mod h1:jJmlefzPfGnckuHdXX7/80O3BvUUi12XOkbv4w9SGLU=
|
|
4
|
+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
|
5
|
+
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
|
6
|
+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
|
7
|
+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
|
8
|
+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
|
9
|
+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
|
10
|
+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
|
11
|
+
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
|
12
|
+
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
|
|
13
|
+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
|
14
|
+
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
|
|
15
|
+
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
|
16
|
+
github.com/urfave/cli/v2 v2.2.0/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ=
|
|
17
|
+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
|
18
|
+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
|
19
|
+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
|
20
|
+
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=
|
|
21
|
+
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
package main
|
|
2
|
+
|
|
3
|
+
import (
|
|
4
|
+
"context"
|
|
5
|
+
"encoding/json"
|
|
6
|
+
"log"
|
|
7
|
+
"net/http"
|
|
8
|
+
"time"
|
|
9
|
+
|
|
10
|
+
"github.com/aws/aws-lambda-go/events"
|
|
11
|
+
"github.com/aws/aws-lambda-go/lambda"
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
type requestBody struct {
|
|
15
|
+
NextRun time.Time `json:"next_run"`
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// The schedule for this function is defined inside the netlify.toml file. To learn about scheduled functions
|
|
19
|
+
// and supported cron extensions, visit https://ntl.fyi/sched-func.
|
|
20
|
+
func handler(ctx context.Context, request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error) {
|
|
21
|
+
requestBody := requestBody{}
|
|
22
|
+
|
|
23
|
+
if err := json.Unmarshal([]byte(request.Body), &requestBody); err != nil {
|
|
24
|
+
log.Fatalf("cannot parse request body: %s", err.Error())
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
log.Printf("Next run at %s\n", requestBody.NextRun.Local())
|
|
28
|
+
|
|
29
|
+
return &events.APIGatewayProxyResponse{
|
|
30
|
+
StatusCode: http.StatusNoContent,
|
|
31
|
+
}, nil
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
func main() {
|
|
35
|
+
lambda.Start(handler)
|
|
36
|
+
}
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"node_modules/stripe": {
|
|
108
|
-
"version": "8.
|
|
109
|
-
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.
|
|
110
|
-
"integrity": "sha512-
|
|
108
|
+
"version": "8.212.0",
|
|
109
|
+
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.212.0.tgz",
|
|
110
|
+
"integrity": "sha512-xQ2uPMRAmRyOiMZktw3hY8jZ8LFR9lEQRPEaQ5WcDcn51kMyn46GeikOikxiFTHEN8PeKRdwtpz4yNArAvu/Kg==",
|
|
111
111
|
"dependencies": {
|
|
112
112
|
"@types/node": ">=8.1.0",
|
|
113
113
|
"qs": "^6.6.0"
|
|
@@ -184,13 +184,13 @@
|
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
"stripe": {
|
|
187
|
-
"version": "8.
|
|
188
|
-
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.
|
|
189
|
-
"integrity": "sha512-
|
|
187
|
+
"version": "8.212.0",
|
|
188
|
+
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.212.0.tgz",
|
|
189
|
+
"integrity": "sha512-xQ2uPMRAmRyOiMZktw3hY8jZ8LFR9lEQRPEaQ5WcDcn51kMyn46GeikOikxiFTHEN8PeKRdwtpz4yNArAvu/Kg==",
|
|
190
190
|
"requires": {
|
|
191
191
|
"@types/node": ">=8.1.0",
|
|
192
192
|
"qs": "^6.6.0"
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
}
|
|
196
|
+
}
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"node_modules/stripe": {
|
|
108
|
-
"version": "8.
|
|
109
|
-
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.
|
|
110
|
-
"integrity": "sha512-
|
|
108
|
+
"version": "8.212.0",
|
|
109
|
+
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.212.0.tgz",
|
|
110
|
+
"integrity": "sha512-xQ2uPMRAmRyOiMZktw3hY8jZ8LFR9lEQRPEaQ5WcDcn51kMyn46GeikOikxiFTHEN8PeKRdwtpz4yNArAvu/Kg==",
|
|
111
111
|
"dependencies": {
|
|
112
112
|
"@types/node": ">=8.1.0",
|
|
113
113
|
"qs": "^6.6.0"
|
|
@@ -184,13 +184,13 @@
|
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
"stripe": {
|
|
187
|
-
"version": "8.
|
|
188
|
-
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.
|
|
189
|
-
"integrity": "sha512-
|
|
187
|
+
"version": "8.212.0",
|
|
188
|
+
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.212.0.tgz",
|
|
189
|
+
"integrity": "sha512-xQ2uPMRAmRyOiMZktw3hY8jZ8LFR9lEQRPEaQ5WcDcn51kMyn46GeikOikxiFTHEN8PeKRdwtpz4yNArAvu/Kg==",
|
|
190
190
|
"requires": {
|
|
191
191
|
"@types/node": ">=8.1.0",
|
|
192
192
|
"qs": "^6.6.0"
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
}
|
|
196
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@netlify/functions": "^1.0.0",
|
|
13
13
|
"@types/node": "^14.0.0",
|
|
14
|
-
"typescript": "^4.
|
|
14
|
+
"typescript": "^4.0.0"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"node_modules/@netlify/functions": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="
|
|
37
37
|
},
|
|
38
38
|
"node_modules/typescript": {
|
|
39
|
-
"version": "4.6.
|
|
40
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.
|
|
41
|
-
"integrity": "sha512-
|
|
39
|
+
"version": "4.6.3",
|
|
40
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
|
41
|
+
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
|
|
42
42
|
"bin": {
|
|
43
43
|
"tsc": "bin/tsc",
|
|
44
44
|
"tsserver": "bin/tsserver"
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="
|
|
69
69
|
},
|
|
70
70
|
"typescript": {
|
|
71
|
-
"version": "4.6.
|
|
72
|
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.
|
|
73
|
-
"integrity": "sha512-
|
|
71
|
+
"version": "4.6.3",
|
|
72
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
|
73
|
+
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw=="
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -41,7 +41,9 @@ class NetlifyFunction {
|
|
|
41
41
|
// Determines whether this is a background function based on the function
|
|
42
42
|
// name.
|
|
43
43
|
this.isBackground = name.endsWith(BACKGROUND_SUFFIX)
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
const functionConfig = config.functions && config.functions[name]
|
|
46
|
+
this.schedule = functionConfig && functionConfig.schedule
|
|
45
47
|
|
|
46
48
|
// List of the function's source files. This starts out as an empty set
|
|
47
49
|
// and will get populated on every build.
|
|
@@ -91,7 +93,7 @@ class NetlifyFunction {
|
|
|
91
93
|
|
|
92
94
|
this.buildData = buildData
|
|
93
95
|
this.srcFiles = srcFilesSet
|
|
94
|
-
this.schedule = schedule
|
|
96
|
+
this.schedule = schedule || this.schedule
|
|
95
97
|
|
|
96
98
|
return { srcFilesDiff }
|
|
97
99
|
} catch (error) {
|
|
@@ -113,6 +113,7 @@ const createHandler = function (options) {
|
|
|
113
113
|
const jwt = generateNetlifyGraphJWT(config.netlifyGraphConfig)
|
|
114
114
|
event.authlifyToken = jwt
|
|
115
115
|
event.netlifyGraphToken = jwt
|
|
116
|
+
event.headers['X-Nf-Graph-Token'] = jwt
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
const clientContext = buildClientContext(request.headers) || {}
|