@ibiliaze/stringman 3.10.0 → 3.11.0
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.
- package/dist/seat.js +2 -2
- package/package.json +2 -2
- package/src/seat.ts +2 -2
package/dist/seat.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFromItemId = exports.getItemId = exports.seatMapKey = exports.getSeatColFromName = exports.getSeatRowFromName = void 0;
|
|
4
|
-
const getSeatRowFromName = (seatName) => seatName?.split(':')?.[0];
|
|
4
|
+
const getSeatRowFromName = (seatName) => seatName?.split(':')?.[0] || 'Unassigned seat';
|
|
5
5
|
exports.getSeatRowFromName = getSeatRowFromName;
|
|
6
|
-
const getSeatColFromName = (seatName) => seatName?.split(':')?.[1];
|
|
6
|
+
const getSeatColFromName = (seatName) => seatName?.split(':')?.[1] || 'Unassigned seat';
|
|
7
7
|
exports.getSeatColFromName = getSeatColFromName;
|
|
8
8
|
const seatMapKey = (row, col) => `${row}:${col}`;
|
|
9
9
|
exports.seatMapKey = seatMapKey;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/stringman",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"pub": "npm publish --access public",
|
|
10
|
-
"git": "git add .; git commit -m 'changes'; git tag -a v3.
|
|
10
|
+
"git": "git add .; git commit -m 'changes'; git tag -a v3.11.0 -m 'v3.11.0'; git push origin v3.11.0; git push",
|
|
11
11
|
"push": "npm run build; npm run git; npm run pub"
|
|
12
12
|
},
|
|
13
13
|
"author": "Ibi Hasanli",
|
package/src/seat.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const getSeatRowFromName = (seatName: string) => seatName?.split(':')?.[0];
|
|
2
|
-
export const getSeatColFromName = (seatName: string) => seatName?.split(':')?.[1];
|
|
1
|
+
export const getSeatRowFromName = (seatName: string) => seatName?.split(':')?.[0] || 'Unassigned seat';
|
|
2
|
+
export const getSeatColFromName = (seatName: string) => seatName?.split(':')?.[1] || 'Unassigned seat';
|
|
3
3
|
|
|
4
4
|
export const seatMapKey = (row: number, col: number) => `${row}:${col}`;
|
|
5
5
|
|