-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add dsn-parser package * ci: improve filtering * feat: add dsn-parser package * feat: add dsn-parser package * feat: add dsn-parser package * feat: add dsn-parser package
- Loading branch information
1 parent
71f7750
commit e78d112
Showing
38 changed files
with
1,722 additions
and
139 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@httpx/dsn-parser': minor | ||
--- | ||
|
||
Add @httpx/dsn-parser package | ||
|
||
Moving [@soluble/cache-interop](https://github.com/soluble-io/cache-interop/tree/main/packages/dsn-parser) to the | ||
@httpx org. |
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,2 @@ | ||
* | ||
!.gitignore |
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,18 @@ | ||
#!/bin/bash | ||
|
||
VERSION=0.6.1 | ||
PLATFORM=linux | ||
CODECOV_BINARY_URL=https://github.com/codecov/uploader/releases/download/v${VERSION}/codecov-${PLATFORM} | ||
OUTPUT_DIR="$(cd $(dirname $0); pwd)/download" | ||
CACHE_FILE="${OUTPUT_DIR}/codecov-${PLATFORM}-${VERSION}" | ||
|
||
if [ ! -f "${CACHE_FILE}" ]; then | ||
echo "Downloading codecov binary" | ||
curl -L "${CODECOV_BINARY_URL}" -o "${CACHE_FILE}" | ||
chmod +x "${CACHE_FILE}" | ||
else | ||
echo "Using cached codecov binary at version ${VERSION}" | ||
fi | ||
|
||
echo "Creating a symbolic link to codecov binary" | ||
ln -s --force "${CACHE_FILE}" "${OUTPUT_DIR}/codecov" |
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,42 @@ | ||
coverage: | ||
range: 60..100 | ||
round: down | ||
precision: 2 | ||
|
||
flag_management: | ||
default_rules: | ||
carryforward: false | ||
individual_flags: | ||
- name: httpx-exception-unit | ||
paths: | ||
- packages/exception | ||
statuses: | ||
- type: project | ||
target: 95% | ||
threshold: 1% | ||
|
||
- name: httpx-dsn-parser-unit | ||
paths: | ||
- packages/dsn-parser | ||
statuses: | ||
- type: project | ||
target: 95% | ||
threshold: 1% | ||
|
||
ignore: | ||
- '.yarn/**/*' | ||
- '.husky/**/*' | ||
- 'docs/**/*' | ||
- 'examples/**/*' | ||
- '**/dist/**/*' | ||
|
||
github_checks: true | ||
|
||
comment: | ||
layout: 'reach, diff, flags, files' | ||
behavior: default | ||
require_changes: false | ||
require_base: yes | ||
require_head: yes | ||
branches: null | ||
show_carryforward_flags: true |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dist | ||
out | ||
build | ||
coverage | ||
_release | ||
|
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,40 @@ | ||
/** | ||
* Specific eslint rules for this workspace, learn how to compose | ||
* @link https://github.com/belgattitude/perso/tree/main/packages/eslint-config-bases | ||
*/ | ||
|
||
// Workaround for https://github.com/eslint/eslint/issues/3458 | ||
require('@belgattitude/eslint-config-bases/patch/modern-module-resolution'); | ||
|
||
const { | ||
getDefaultIgnorePatterns, | ||
} = require('@belgattitude/eslint-config-bases/helpers'); | ||
|
||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: 'tsconfig.json', | ||
}, | ||
ignorePatterns: [ | ||
...getDefaultIgnorePatterns(), | ||
'**/build', | ||
'**/.cache', | ||
'**/dist', | ||
'**/_release', | ||
'.cache', | ||
'**/docs', | ||
], | ||
extends: [ | ||
'@belgattitude/eslint-config-bases/typescript', | ||
'@belgattitude/eslint-config-bases/sonar', | ||
'@belgattitude/eslint-config-bases/regexp', | ||
'@belgattitude/eslint-config-bases/jest', | ||
// Apply prettier and disable incompatible rules | ||
'@belgattitude/eslint-config-bases/prettier-plugin', | ||
], | ||
rules: { | ||
'sonarjs/cognitive-complexity': ['error', 17], | ||
}, | ||
overrides: [], | ||
}; |
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,37 @@ | ||
# dependencies | ||
node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# production output | ||
/dist | ||
/build | ||
/out | ||
|
||
# tests | ||
/coverage | ||
/.nyc_output | ||
|
||
# editor | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# os | ||
.DS_Store | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
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,7 @@ | ||
module.exports = [ | ||
{ | ||
name: 'JS', | ||
path: ['dist/index.mjs'], | ||
limit: '1.39KB', | ||
}, | ||
]; |
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 @@ | ||
# @httpx/dsn-parser |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021-current Sébastien Vanvelthem | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.