File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class GoogleProvider {
51
51
return filArgs . reduce ( ( ( p , c ) => p [ c ] ) , this . sdk ) . bind ( serviceInstance ) ( requestParams )
52
52
. then ( result => result . data )
53
53
. catch ( ( error ) => {
54
- if ( error && error . errors && error . errors [ 0 ] . message && error . errors [ 0 ] . message . includes ( 'project 1043443644444' ) ) {
54
+ if ( error && error . errors && error . errors [ 0 ] . message && _ . includes ( error . errors [ 0 ] . message , 'project 1043443644444' ) ) {
55
55
throw new Error ( "Incorrect configuration. Please change the 'project' key in the 'provider' block in your Serverless config file." ) ;
56
56
} else if ( error ) {
57
57
throw error ;
@@ -77,7 +77,7 @@ class GoogleProvider {
77
77
}
78
78
79
79
isServiceSupported ( service ) {
80
- if ( ! Object . keys ( this . sdk ) . includes ( service ) ) {
80
+ if ( ! _ . includes ( Object . keys ( this . sdk ) , service ) ) {
81
81
const errorMessage = [
82
82
`Unsupported service API "${ service } ".` ,
83
83
` Supported service APIs are: ${ Object . keys ( this . sdk ) . join ( ', ' ) } ` ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ module.exports = {
38
38
const functions = this . serverless . service . functions ;
39
39
40
40
_ . forEach ( functions , ( funcVal , funcKey ) => {
41
- if ( funcVal . handler . includes ( '/' ) || funcVal . handler . includes ( '.' ) ) {
41
+ if ( _ . includes ( funcVal . handler , '/' ) || _ . includes ( funcVal . handler , '.' ) ) {
42
42
const errorMessage = [
43
43
`The "handler" property for the function "${ funcKey } " is invalid.` ,
44
44
' Handlers should be plain strings referencing only the exported function name' ,
You can’t perform that action at this time.
0 commit comments