-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
10,987 additions
and
11,114 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,9 @@ | ||
lib/ | ||
es/ | ||
es6/ | ||
*.d.ts | ||
src/**/*.js | ||
test/**/*.js | ||
.eslintrc.js | ||
jest.config.js | ||
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* | ||
Rules Severity | ||
- 0 = off | ||
- 1 = warn | ||
- 2 = error | ||
*/ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"impliedStrict": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"project": "./tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
// Javscript Specific Rules That Are Applied To Typescript Too | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 80, | ||
"ignoreComments": true, | ||
"ignorePattern": "^(import)|(it\\()", | ||
"ignoreTemplateLiterals": true | ||
} | ||
], | ||
"no-console": 1, | ||
"quotes": [ | ||
2, | ||
"single" | ||
], | ||
"semi": 2, | ||
"sort-keys": [ | ||
2, | ||
"asc", | ||
{ | ||
"caseSensitive": true, | ||
"natural": false, | ||
"minKeys": 2 | ||
} | ||
], | ||
// Typescript Specific Rules From This Point On | ||
"typescript-sort-keys/string-enum": 0, | ||
"@typescript-eslint/explicit-function-return-type": 2, | ||
"@typescript-eslint/no-explicit-any": 2, | ||
"@typescript-eslint/no-inferrable-types": 2, | ||
"@typescript-eslint/no-misused-promises": [ | ||
"error", | ||
{ | ||
"checksVoidReturn": false | ||
} | ||
], | ||
"@typescript-eslint/no-non-null-assertion": 2, | ||
"@typescript-eslint/no-unsafe-call": 2, | ||
"@typescript-eslint/no-unsafe-member-access": 2, | ||
"@typescript-eslint/no-unused-vars": [ | ||
2, | ||
{ | ||
"argsIgnorePattern": "_", | ||
"ignoreRestSiblings": true | ||
} | ||
], | ||
"@typescript-eslint/no-var-requires": 2, | ||
"@typescript-eslint/require-await": 2 | ||
} | ||
} |
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 @@ | ||
|
||
name-template: 'Next Release' | ||
tag-template: 'next' | ||
change-template: '- $TITLE #$NUMBER' | ||
no-changes-template: '- No changes yet' | ||
template: | | ||
$CHANGES |
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,34 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
ts-project: [src/tsconfig.json, src/tsconfig-es6.json] | ||
|
||
env: | ||
TS_NODE_PROJECT: ${{ matrix.ts-project }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm cache clean --force | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test |
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 |
---|---|---|
|
@@ -9,5 +9,5 @@ | |
}, | ||
"confirm": true, | ||
"publishTag": "latest", | ||
"prePublishScript": "gulp" | ||
} | ||
"prePublishScript": "npm test" | ||
} |
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,23 @@ | ||
# Changelog | ||
All notable changes to this project from 6.4.4 forward will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
### Changed | ||
|
||
### Fixed | ||
|
||
## [6.4.4] | ||
|
||
### Added | ||
|
||
### Changed | ||
- Update dependencies (`minimist`, `json5`, `@babel/traverse`, `tough-cookie`, `ansi-regex`, `cookiejar`, `express`, `decode-uri-component`) | ||
|
||
### Fixed | ||
- Change JsonContent to return object rather than string (#379 / #378) |
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.