onix-chess
Advanced tools
Comparing version 5.2.1 to 5.3.0
@@ -292,3 +292,3 @@ "use strict"; | ||
id: 0, | ||
username: "?" | ||
name: "?" | ||
} | ||
@@ -301,3 +301,3 @@ }; | ||
id: 0, | ||
username: "?" | ||
name: "?" | ||
} | ||
@@ -304,0 +304,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Chess = exports.Position = exports.FenFormat = exports.FenString = exports.SimpleMove = exports.Move = exports.Square = exports.Piece = exports.CastlingSide = exports.Castling = exports.Color = exports.i18nRegister = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ var i18n_1 = require("./i18n"); |
@@ -18,3 +18,3 @@ import { IUser } from 'onix-core/dist/app/IUser'; | ||
} | ||
export declare type StatusName = 'started' | 'aborted' | 'mate' | 'resign' | 'stalemate' | 'timeout' | 'draw' | 'outoftime' | 'noStart' | 'cheat' | 'variantEnd'; | ||
export declare type StatusName = 'created' | 'new' | 'wait' | 'started' | 'aborted' | 'mate' | 'resign' | 'stalemate' | 'timeout' | 'draw' | 'outoftime' | 'noStart' | 'cheat' | 'variantEnd' | 'paused'; | ||
export interface IGameStatus { | ||
@@ -50,2 +50,3 @@ name: StatusName; | ||
createdAt?: number; | ||
createdBy?: number | string; | ||
private?: boolean; | ||
@@ -71,5 +72,10 @@ advance?: boolean; | ||
} | ||
export interface IChessTitle { | ||
id: string; | ||
name: string; | ||
} | ||
export interface IChessUser extends IUser { | ||
aurl?: string | string[]; | ||
title?: string; | ||
icon?: string; | ||
title?: IChessTitle | string; | ||
perfs?: IChessPerfs; | ||
@@ -76,0 +82,0 @@ } |
{ | ||
"name": "onix-chess", | ||
"version": "5.2.1", | ||
"version": "5.3.0", | ||
"description": "Onix chess library", | ||
@@ -27,21 +27,21 @@ "main": "dist/index.js", | ||
"lodash-es": "^4.17.15", | ||
"onix-core": "^4.0.1", | ||
"shortid": "^2.2.15", | ||
"onix-core": "^4.2.0", | ||
"shortid": "^2.2.16", | ||
"warning": "^4.0.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/register": "^7.10.5", | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"@babel/register": "^7.12.1", | ||
"@types/lodash-es": "^4.17.3", | ||
"@types/node": "^14.0.23", | ||
"@types/node": "^14.14.7", | ||
"@types/shortid": "0.0.29", | ||
"chai": "^4.2.0", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"mocha": "^8.0.1", | ||
"ts-loader": "^8.0.1", | ||
"typescript": "^3.9.6", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.12" | ||
"mocha": "^8.2.1", | ||
"ts-loader": "^8.0.11", | ||
"typescript": "^4.0.5", | ||
"webpack": "^5.4.0", | ||
"webpack-cli": "^4.2.0" | ||
} | ||
} |
@@ -357,3 +357,3 @@ import toSafeInteger from 'lodash-es/toSafeInteger'; | ||
id: 0, | ||
username: "?" | ||
name: "?" | ||
} | ||
@@ -367,3 +367,3 @@ }; | ||
id: 0, | ||
username: "?" | ||
name: "?" | ||
} | ||
@@ -370,0 +370,0 @@ }; |
@@ -23,5 +23,5 @@ import { IUser } from 'onix-core/dist/app/IUser'; | ||
export type StatusName = 'started' | 'aborted' | 'mate' | 'resign' | | ||
'stalemate' | 'timeout' | 'draw' | 'outoftime' | | ||
'noStart' | 'cheat' | 'variantEnd'; | ||
export type StatusName = 'created' | 'new' | 'wait' | 'started' | 'aborted' | | ||
'mate' | 'resign' | 'stalemate' | 'timeout' | 'draw' | | ||
'outoftime' | 'noStart' | 'cheat' | 'variantEnd' | 'paused'; | ||
@@ -63,2 +63,3 @@ export interface IGameStatus { | ||
createdAt?: number; | ||
createdBy?: number | string; | ||
private?: boolean; | ||
@@ -87,5 +88,11 @@ advance?: boolean; | ||
export interface IChessTitle { | ||
id: string, | ||
name: string | ||
} | ||
export interface IChessUser extends IUser { | ||
aurl?: string | string[]; | ||
title?: string; | ||
icon?: string, | ||
title?: IChessTitle |string; | ||
perfs?: IChessPerfs; | ||
@@ -92,0 +99,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
463952
74
8823
Updatedonix-core@^4.2.0
Updatedshortid@^2.2.16