-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: the module is now ESM
- Loading branch information
Showing
13 changed files
with
213 additions
and
137 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ coverage/ | |
node_modules/ | ||
*.log | ||
.vscode | ||
types/ |
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,24 @@ | ||
import prettierConfig from 'eslint-config-prettier'; | ||
import prettierPlugin from 'eslint-plugin-prettier'; | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
prettierConfig, | ||
{ | ||
plugins: { | ||
prettier: prettierPlugin, | ||
}, | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
global: true, | ||
}, | ||
}, | ||
}, | ||
{ | ||
ignores: ['dist/*', 'coverage/*', 'example/*'], | ||
}, | ||
]; |
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,14 +1,17 @@ | ||
'use strict'; | ||
import { PodletServer } from './podlet-server/server.js'; | ||
import { HttpsServer } from './https-server/server.js'; | ||
import { HttpServer } from './http-server/server.js'; | ||
import { request } from './http-request/request.js'; | ||
import { | ||
destinationBufferStream, | ||
destinationObjectStream, | ||
} from './stream-utils/streams.js'; | ||
|
||
const PodletServer = require('./podlet-server/server'); | ||
const HttpsServer = require('./https-server/server'); | ||
const HttpServer = require('./http-server/server'); | ||
const request = require('./http-request/request'); | ||
const streams = require('./stream-utils/streams'); | ||
|
||
module.exports.destinationObjectStream = streams.destinationObjectStream; | ||
module.exports.destinationBufferStream = streams.destinationBufferStream; | ||
module.exports.PodletServer = PodletServer; | ||
module.exports.HttpsServer = HttpsServer; | ||
module.exports.HttpServer = HttpServer; | ||
module.exports.request = request; | ||
export { | ||
PodletServer, | ||
HttpsServer, | ||
HttpServer, | ||
request, | ||
destinationBufferStream, | ||
destinationObjectStream, | ||
}; |
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
Oops, something went wrong.