@boardgamers/container-viewer
Advanced tools
Comparing version 1.0.15 to 1.0.16
{ | ||
"name": "@boardgamers/container-viewer", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"scripts": { | ||
@@ -8,3 +8,3 @@ "serve": "vue-cli-service serve", | ||
"test:unit": "vue-cli-service test:unit", | ||
"package": "vue-cli-service build --target lib src/wrapper.ts", | ||
"package": "vue-cli-service build --target lib --name @boardgamers/container-viewer src/wrapper.ts", | ||
"prepublishOnly": "npm run package" | ||
@@ -11,0 +11,0 @@ }, |
import type { GameState, Move } from 'container-engine'; | ||
import { EventEmitter } from 'events'; | ||
import Vue from 'vue'; | ||
import Game, { Preferences } from './components/Game.vue'; | ||
import Game from './components/Game.vue'; | ||
import type { Preferences } from './types/ui-data'; | ||
@@ -6,0 +7,0 @@ function launch(selector: string) { |
@@ -9,2 +9,7 @@ import { ContainerPiece, ShipPosition } from 'container-engine/src/gamestate'; | ||
export type Preferences = { | ||
sound: boolean; | ||
help: boolean; | ||
}; | ||
export interface Piece { | ||
@@ -11,0 +16,0 @@ id: string; |
@@ -17,14 +17,8 @@ { | ||
"paths": { | ||
"@/*": ["viewer/src/*"] | ||
"@/*": ["src/*"] | ||
}, | ||
"lib": ["esnext", "dom", "dom.iterable", "scripthost"] | ||
}, | ||
"include": [ | ||
"viewer/src/**/*.ts", | ||
"viewer/src/**/*.tsx", | ||
"viewer/src/**/*.vue", | ||
"viewer/tests/**/*.ts", | ||
"viewer/tests/**/*.tsx" | ||
], | ||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"], | ||
"exclude": ["node_modules"] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
508606
50
1448
2
6