forked from segmentio/analytics-node
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: vulnerabilities in dependencies (#157)
* fix: vulnerabilities in dependencies * chore: fix build step in workflow * fix: remove irrelevant changes
- Loading branch information
1 parent
232b33c
commit c4e472c
Showing
18 changed files
with
20,937 additions
and
26,722 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"presets": ["env"], | ||
"plugins": ["transform-es2015-spread", "transform-object-rest-spread"] | ||
} | ||
"presets": ["@babel/env"] | ||
} |
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,10 +1,10 @@ | ||
.husky/ | ||
lib/ | ||
node_modules/ | ||
reports/ | ||
stats/ | ||
*.json | ||
*.md | ||
*.d.ts | ||
.nyc_output | ||
examples/ | ||
examples/ | ||
dist/ | ||
coverage/ |
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,41 +1,47 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es2020": true, | ||
"jest": true | ||
}, | ||
"extends": ["airbnb-base", "plugin:sonarjs/recommended", "prettier", "plugin:compat/recommended"], | ||
"plugins": ["unicorn", "compat"], | ||
"parser": "@babel/eslint-parser", | ||
"globals": {}, | ||
"parserOptions": { | ||
"ecmaVersion": 11, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"import/prefer-default-export": "off", | ||
"unicorn/filename-case": [ | ||
"error", | ||
{ "cases": { "camelCase": true, "pascalCase": true, "kebabCase": true } } | ||
], | ||
"unicorn/no-instanceof-array": "error", | ||
"unicorn/no-static-only-class": "error", | ||
"unicorn/consistent-destructuring": "error", | ||
"unicorn/better-regex": "error", | ||
"unicorn/no-for-loop": "error", | ||
"unicorn/prefer-array-some": "error", | ||
"unicorn/explicit-length-check": "error", | ||
"unicorn/prefer-array-find": "error", | ||
"unicorn/no-lonely-if": "error", | ||
"unicorn/prefer-includes": "error", | ||
"unicorn/prefer-array-flat-map": "error", | ||
"unicorn/no-useless-spread": "error", | ||
"unicorn/no-useless-length-check": "error", | ||
"unicorn/prefer-export-from": "error", | ||
"sonarjs/prefer-immediate-return": "off", | ||
"sonarjs/no-nested-template-literals": "off", | ||
"sonarjs/max-switch-cases": "off", | ||
"sonarjs/cognitive-complexity": ["error", 40], | ||
"compat/compat": "warn" | ||
} | ||
"overrides": [ | ||
{ | ||
"files": ["*.js", "*.ts"], | ||
"extends": [ | ||
"airbnb-base", | ||
"plugin:sonarjs/recommended-legacy", | ||
"prettier", | ||
"plugin:compat/recommended" | ||
], | ||
"plugins": ["unicorn", "compat"], | ||
"parser": "@babel/eslint-parser", | ||
"globals": {}, | ||
"parserOptions": { | ||
"ecmaVersion": 11, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"import/prefer-default-export": "off", | ||
"unicorn/filename-case": [ | ||
"error", | ||
{ "cases": { "camelCase": true, "pascalCase": true, "kebabCase": true } } | ||
], | ||
"unicorn/no-instanceof-array": "error", | ||
"unicorn/no-static-only-class": "error", | ||
"unicorn/consistent-destructuring": "error", | ||
"unicorn/better-regex": "error", | ||
"unicorn/no-for-loop": "error", | ||
"unicorn/prefer-array-some": "error", | ||
"unicorn/explicit-length-check": "error", | ||
"unicorn/prefer-array-find": "error", | ||
"unicorn/no-lonely-if": "error", | ||
"unicorn/prefer-includes": "error", | ||
"unicorn/prefer-array-flat-map": "error", | ||
"unicorn/no-useless-spread": "error", | ||
"unicorn/no-useless-length-check": "error", | ||
"unicorn/prefer-export-from": "error", | ||
"compat/compat": "warn" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -37,4 +37,5 @@ jobs: | |
- name: Generate build | ||
run: | | ||
npm run build | ||
npm run build:cjs | ||
npm run build:esm |
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,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run commit-msg |
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,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run pre-commit |
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 +1 @@ | ||
16.15.1 | ||
22.11.0 |
Oops, something went wrong.