onix-board
Advanced tools
Comparing version 1.0.16 to 1.1.17
@@ -11,2 +11,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var isString = require("lodash/isString"); | ||
var Constants_1 = require("./Constants"); | ||
@@ -16,3 +17,2 @@ var onix_chess_1 = require("onix-chess"); | ||
var onix_core_1 = require("onix-core"); | ||
var onix_core_2 = require("onix-core"); | ||
var updateStyle = function (id, name) { | ||
@@ -56,3 +56,3 @@ var style = document.getElementById(id); | ||
if (state === void 0) { state = INITIAL_STATE; } | ||
onix_core_2.Logger.debug('Try board action', action); | ||
onix_core_1.Logger.debug('Try board action', action); | ||
switch (action.type) { | ||
@@ -118,3 +118,3 @@ case actions.SET_POSITION: | ||
if (res) { | ||
var fen = onix_core_1.isString(res) ? res : state.position.writeFEN(); | ||
var fen = isString(res) ? res : state.position.writeFEN(); | ||
var p = (selection.from.square === onix_chess_1.Square.NullSquare) ? selection.from.piece : onix_chess_1.Piece.NoPiece; | ||
@@ -149,3 +149,3 @@ return __assign({}, state, { fen: fen, selection: { | ||
if (res) { | ||
var fen = onix_core_1.isString(res) ? res : state.position.writeFEN(); | ||
var fen = isString(res) ? res : state.position.writeFEN(); | ||
var p = (selection.from.square === onix_chess_1.Square.NullSquare) ? selection.from.piece : onix_chess_1.Piece.NoPiece; | ||
@@ -152,0 +152,0 @@ return __assign({}, state, { fen: fen, selection: { |
{ | ||
"name": "onix-board", | ||
"version": "1.0.16", | ||
"version": "1.1.17", | ||
"description": "Onix chess board abstractions", | ||
@@ -30,4 +30,5 @@ "main": "built/index.js", | ||
"classnames": "^2.2.5", | ||
"onix-chess": "^1.0.12", | ||
"onix-core": "^1.1.27", | ||
"lodash": "^4.17.4", | ||
"onix-chess": "^1.1.14", | ||
"onix-core": "^1.2.28", | ||
"react": "^15.6.1", | ||
@@ -41,6 +42,7 @@ "react-dnd": "^2.4.0", | ||
"devDependencies": { | ||
"@types/node": "^7.0.12", | ||
"@types/lodash": "^4.14.73", | ||
"@types/node": "^7.0.42", | ||
"@types/react": "^15.6.1", | ||
"source-map-loader": "^0.2.1", | ||
"ts-loader": "^2.3.2", | ||
"ts-loader": "^2.3.3", | ||
"typescript": "^2.2.2", | ||
@@ -47,0 +49,0 @@ "webpack": "^2.3.3" |
import { Reducer } from 'redux'; | ||
import isString = require('lodash/isString'); | ||
import { BoardSize } from './Constants'; | ||
@@ -7,3 +8,2 @@ import { BoardState } from './BoardState'; | ||
import { BoardAction } from './BoardActions'; | ||
import { isString } from 'onix-core'; | ||
import { Logger } from 'onix-core'; | ||
@@ -10,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1395776
10
7
36554
+ Addedlodash@^4.17.4
Updatedonix-chess@^1.1.14
Updatedonix-core@^1.2.28