-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into aalej-func-setup
- Loading branch information
Showing
218 changed files
with
15,093 additions
and
6,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
- fix non static check for not-found route in Next.js 14.2 (#7012) | ||
- Adds `*.local` to .gitignore and functions ignore for javascript,typescript, and python templates. (#7018) | ||
- Adds `*.local` to .gitignore and functions ignore for `init functions`. (#7018) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
// "react" | ||
], | ||
"rules": { | ||
"@typescript-eslint/semi": "warn", | ||
"curly": "warn", | ||
"eqeqeq": "warn", | ||
"no-throw-literal": "warn", | ||
"semi": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"out", | ||
"dist", | ||
"**/*.d.ts" | ||
] | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
// "react" | ||
], | ||
"rules": { | ||
"@typescript-eslint/semi": "warn", | ||
"curly": "warn", | ||
"eqeqeq": "warn", | ||
"no-throw-literal": "warn", | ||
"semi": "off" | ||
}, | ||
"ignorePatterns": ["out", "dist", "**/*.d.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ dist/ | |
resources/dist | ||
.vscode-test | ||
.wdio-vscode-service | ||
logs | ||
logs | ||
!*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## The default | ||
**/.git | ||
**/.svn | ||
**/.hg | ||
**/node_modules | ||
|
||
## The good stuff | ||
dist | ||
resources | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint" | ||
] | ||
"recommendations": ["dbaeumer.vscode-eslint"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,7 @@ webpack.*.js | |
../ | ||
*.zip | ||
node_modules/ | ||
dist/test/ | ||
dist/test/ | ||
*.tgz | ||
package-lock.json | ||
.wdio-vscode-service/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** An error thrown before the GraphQL operation could complete. | ||
* | ||
* This could include HTTP errors or JSON parsing errors. | ||
*/ | ||
export class DataConnectError extends Error { | ||
constructor(message: string, cause?: unknown) { | ||
super(message, { cause }); | ||
} | ||
} | ||
|
||
/** Encode an error into a {@link SerializedError} */ | ||
export function toSerializedError(error: Error): SerializedError { | ||
return { | ||
name: error.name, | ||
message: error.message, | ||
stack: error.stack, | ||
cause: | ||
error.cause instanceof Error ? toSerializedError(error.cause) : undefined, | ||
}; | ||
} | ||
|
||
/** An error object that can be sent across webview boundaries */ | ||
export interface SerializedError { | ||
name?: string; | ||
message: string; | ||
stack?: string; | ||
cause?: SerializedError; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import { ExecutionResult, GraphQLError } from "graphql"; | ||
|
||
/** Asserts that an unknown object is a {@link ExecutionResult} */ | ||
export function assertExecutionResult( | ||
response: any | ||
): asserts response is ExecutionResult { | ||
if (!response) { | ||
throw new Error(`Expected ExecutionResult but got ${response}`); | ||
} | ||
|
||
const type = typeof response; | ||
if (type !== "object") { | ||
throw new Error(`Expected ExecutionResult but got ${type}`); | ||
} | ||
|
||
const { data, errors } = response; | ||
if (!data && !errors) { | ||
throw new Error( | ||
`Expected ExecutionResult to have either "data" or "errors" set but none found` | ||
); | ||
} | ||
|
||
if (errors) { | ||
if (!Array.isArray(errors)) { | ||
throw new Error( | ||
`Expected errors to be an array but got ${typeof errors}` | ||
); | ||
} | ||
for (const error of errors) { | ||
assertGraphQLError(error); | ||
} | ||
} | ||
} | ||
|
||
export function isExecutionResult(response: any): response is ExecutionResult { | ||
try { | ||
assertExecutionResult(response); | ||
return true; | ||
} catch { | ||
return false; | ||
} | ||
} | ||
|
||
/** Asserts that an unknown object is a {@link GraphQLError} */ | ||
export function assertGraphQLError( | ||
error: unknown | ||
): asserts error is GraphQLError { | ||
if (!error) { | ||
throw new Error(`Expected GraphQLError but got ${error}`); | ||
} | ||
|
||
const type = typeof error; | ||
if (type !== "object") { | ||
throw new Error(`Expected GraphQLError but got ${type}`); | ||
} | ||
|
||
const { message } = error as GraphQLError; | ||
if (typeof message !== "string") { | ||
throw new Error( | ||
`Expected GraphQLError to have "message" set but got ${typeof message}` | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export interface ServiceAccount { | ||
user: ServiceAccountUser | ||
user: ServiceAccountUser; | ||
} | ||
|
||
export interface ServiceAccountUser { | ||
email: string; | ||
type: 'service_account' | ||
type: "service_account"; | ||
} |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.