-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ESM instead of CJS and update the
fs-capacitor
dependency.
- Loading branch information
1 parent
8914950
commit 07b8b80
Showing
16 changed files
with
139 additions
and
124 deletions.
There are no files selected for viewing
4 changes: 1 addition & 3 deletions
4
GRAPHQL_MULTIPART_REQUEST_SPEC_URL.js → GRAPHQL_MULTIPART_REQUEST_SPEC_URL.mjs
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,12 +1,10 @@ | ||
// @ts-check | ||
|
||
"use strict"; | ||
|
||
/** | ||
* [GraphQL multipart request spec](https://github.com/jaydenseric/graphql-multipart-request-spec) | ||
* URL. Useful for error messages, etc. | ||
*/ | ||
const GRAPHQL_MULTIPART_REQUEST_SPEC_URL = | ||
"https://github.com/jaydenseric/graphql-multipart-request-spec"; | ||
|
||
module.exports = GRAPHQL_MULTIPART_REQUEST_SPEC_URL; | ||
export default GRAPHQL_MULTIPART_REQUEST_SPEC_URL; |
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
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
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,17 +1,13 @@ | ||
// @ts-check | ||
|
||
"use strict"; | ||
|
||
/** | ||
* Safely ignores a Node.js readable stream. | ||
* @param {import("stream").Readable} stream Node.js readable stream. | ||
*/ | ||
function ignoreStream(stream) { | ||
export default function ignoreStream(stream) { | ||
// Prevent an unhandled error from crashing the process. | ||
stream.on("error", () => {}); | ||
|
||
// Waste the stream. | ||
stream.resume(); | ||
} | ||
|
||
module.exports = ignoreStream; |
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
Oops, something went wrong.