-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add v4-rc to on: CI rules * feat: allow specifying custom no content statuses * test: custom empty body statuses * chore: fix eslint * fix: pass noContentStatuses where needed * chore: improve test name * 🆙 lib * chore: improve types near Array.concat() * chore: explicitly handle all cases in statusesContainStatus() * 🆙 lib * chore: update docs about new option `noContentStatuses` * chore: add a TODO about noContentStatusCodes * chore: update changelogs * 🆙 lib * chore: up version to 4.0.0-rc.38 * [v4] Composition engine (#404) * 🆙 4.0.0-alpha.39 * Fix bad changelog * fix(composition-engine): incorrect import from `core/status-codes` (#426) * 🆙 4.0.0-alpha.40 * Publish package as public access * Use npm publish instead of yarn npm publish * Add step to build standalone before publish * Bump version to test CI --------- Co-authored-by: Mikhail Kormanovskii <[email protected]> Co-authored-by: Magomed Chemurziev <[email protected]> Co-authored-by: Magomed Chemurziev <[email protected]> Co-authored-by: Abdelrahman Aly Abounegm <[email protected]> Co-authored-by: Abdelrahman Abounegm <[email protected]> Co-authored-by: kholstinin <[email protected]>
- Loading branch information
1 parent
6c8fa6d
commit 1d8c03f
Showing
50 changed files
with
2,042 additions
and
72 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
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
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
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
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
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,9 @@ | ||
import type { StatusCodes } from '../../../core/status-codes'; | ||
import type { Statuses } from '../../../core/request/interface'; | ||
/** | ||
* Returns true if specified `statuses` contain specified `statusCode` | ||
* | ||
* @param statuses | ||
* @param statusCode | ||
*/ | ||
export declare function statusesContainStatus(statuses: Statuses, statusCode: StatusCodes): boolean; |
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,17 @@ | ||
"use strict"; | ||
|
||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.statusesContainStatus = statusesContainStatus; | ||
var _range = _interopRequireDefault(require("../../../core/range")); | ||
function statusesContainStatus(statuses, statusCode) { | ||
if (statuses instanceof _range.default) { | ||
return statuses.contains(statusCode); | ||
} | ||
if (Object.isArray(statuses)) { | ||
return statuses.includes(statusCode); | ||
} | ||
return statuses === statusCode; | ||
} |
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.