volleyballsimtypes 0.0.146 → 0.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,4 +31,4 @@ export declare function getPositions(): CourtPosition[];
|
|
|
31
31
|
export declare function rotatePosition(position: number): CourtPosition;
|
|
32
32
|
export declare function isFrontRow(position: number): boolean;
|
|
33
33
|
export declare function isBackRow(position: number): boolean;
|
|
34
|
-
export declare function
|
|
34
|
+
export declare function getCourtRow(row: CourtRow): CourtPosition[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getCourtRow = exports.isBackRow = exports.isFrontRow = exports.rotatePosition = exports.getPositions = exports.CourtTarget = exports.CourtPosition = exports.CourtRow = void 0;
|
|
4
4
|
var CourtRow;
|
|
5
5
|
(function (CourtRow) {
|
|
6
6
|
CourtRow["BACK"] = "BACK_ROW";
|
|
@@ -62,9 +62,9 @@ function isBackRow(position) {
|
|
|
62
62
|
return BACK_ROW.includes(position);
|
|
63
63
|
}
|
|
64
64
|
exports.isBackRow = isBackRow;
|
|
65
|
-
function
|
|
65
|
+
function getCourtRow(row) {
|
|
66
66
|
if (![CourtRow.BACK, CourtRow.FRONT].includes(row))
|
|
67
67
|
throw new Error(`INVALID_ROW: ${row}`);
|
|
68
68
|
return CourtRow.BACK === row ? [...BACK_ROW] : [...FRONT_ROW];
|
|
69
69
|
}
|
|
70
|
-
exports.
|
|
70
|
+
exports.getCourtRow = getCourtRow;
|
|
@@ -31,4 +31,4 @@ export declare function getPositions(): CourtPosition[];
|
|
|
31
31
|
export declare function rotatePosition(position: number): CourtPosition;
|
|
32
32
|
export declare function isFrontRow(position: number): boolean;
|
|
33
33
|
export declare function isBackRow(position: number): boolean;
|
|
34
|
-
export declare function
|
|
34
|
+
export declare function getCourtRow(row: CourtRow): CourtPosition[];
|
|
@@ -55,7 +55,7 @@ export function isBackRow(position) {
|
|
|
55
55
|
throw new Error(`POSITION_INDEX_OUT_OF_BOUNDS: ${position}`);
|
|
56
56
|
return BACK_ROW.includes(position);
|
|
57
57
|
}
|
|
58
|
-
export function
|
|
58
|
+
export function getCourtRow(row) {
|
|
59
59
|
if (![CourtRow.BACK, CourtRow.FRONT].includes(row))
|
|
60
60
|
throw new Error(`INVALID_ROW: ${row}`);
|
|
61
61
|
return CourtRow.BACK === row ? [...BACK_ROW] : [...FRONT_ROW];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volleyballsimtypes",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.147",
|
|
4
4
|
"description": "vbsim types",
|
|
5
5
|
"main": "./dist/cjs/src/index.js",
|
|
6
6
|
"module": "./dist/esm/src/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"clean": "rimraf dist",
|
|
14
14
|
"validate": "npm run standard && npm run madge",
|
|
15
15
|
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
|
|
16
|
-
"preversion": "npm run clean && npm run validate && npm run build &&
|
|
16
|
+
"preversion": "npm run clean && npm run validate && npm run build && git commit -a --amend --no-edit",
|
|
17
17
|
"postversion": "git push --follow-tags"
|
|
18
18
|
},
|
|
19
19
|
"author": "Francisco Farias <fariasfranciscoe@gmail.com>",
|