-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prep for Release: source maps, types, prettier (#301)
* updates library exports * fixes lint configuration so that it actually fails now, as intended * tidy up --------- Co-authored-by: Filipe Freire <[email protected]>
- Loading branch information
1 parent
fbd23b5
commit 6a758d6
Showing
7 changed files
with
66 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
"author": "Kong <[email protected]>", | ||
"homepage": "https://github.com/Kong/httpsnippet", | ||
"license": "MIT", | ||
"main": "dist/httpsnippet.js", | ||
"types": "dist/httpsnippet.d.ts", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"bin": "bin/httpsnippet", | ||
"keywords": [ | ||
"api", | ||
|
@@ -51,9 +51,13 @@ | |
"clean": "tsc --build tsconfig.build.json --clean", | ||
"prebuild": "npm run clean", | ||
"lint": "npm run lint:prettify && npm run lint:code && npm run lint:markdown", | ||
"lint:prettify": "prettier --write .", | ||
"lint:code": "eslint . --ext ts,d.ts,test.ts --fix", | ||
"lint:prettify": "prettier --check .", | ||
"lint:code": "eslint . --ext ts,d.ts,test.ts", | ||
"lint:markdown": "markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"", | ||
"lint:fix": "npm run lint:prettify:fix && npm run lint:code:fix && npm run lint:markdown:fix", | ||
"lint:prettify:fix": "prettier --write .", | ||
"lint:code:fix": "eslint . --ext ts,d.ts,test.ts --fix", | ||
"lint:markdown:fix": "markdownlint-cli2-fix \"**/*.md\" \"#**/node_modules\"", | ||
"build": "tsc --build tsconfig.build.json", | ||
"build:types": "tsc -d --declarationDir dist/lib --declarationMap --emitDeclarationOnly", | ||
"test": "jest" | ||
|
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export { CodeBuilder, CodeBuilderOptions, PostProcessor } from './helpers/code-builder'; | ||
export { EscapeOptions, escapeString } from './helpers/escape'; | ||
export { HARError, validateHarRequest } from './helpers/har-validator'; | ||
export { getHeader, getHeaderName } from './helpers/headers'; | ||
export { AvailableTarget, availableTargets, extname } from './helpers/utils'; | ||
export { | ||
HarEntry, | ||
HarRequest, | ||
HTTPSnippet, | ||
isHarEntry, | ||
Request, | ||
RequestExtras, | ||
} from './httpsnippet'; | ||
export { | ||
addTarget, | ||
addTargetClient, | ||
Client, | ||
ClientId, | ||
ClientInfo, | ||
Converter, | ||
Extension, | ||
isClient, | ||
isTarget, | ||
Target, | ||
TargetId, | ||
TargetInfo, | ||
targets, | ||
} from './targets/targets'; |
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