fixes npm security issues

main
koehr 5 years ago
parent 59ac454bc5
commit 6abd225eb5

4319
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -10,8 +10,8 @@
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
},
"dependencies": {
"seedrandom": "^2.4.3",
"vue": "^2.5.11"
"seedrandom": "^2.4.4",
"vue": "^2.6.10"
},
"browserslist": [
"> 1%",
@ -19,18 +19,18 @@
"not ie <= 10"
],
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"fast-simplex-noise": "^3.2.0",
"cross-env": "^5.2.0",
"css-loader": "^3.0.0",
"file-loader": "^1.1.4",
"lodash": "^4.17.10",
"vue-loader": "^13.0.5",
"vue-template-compiler": "^2.4.4",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1"
"lodash": "^4.17.11",
"open-simplex-noise": "^1.6.0",
"vue-loader": "^13.7.3",
"vue-template-compiler": "^2.6.10",
"webpack": "^3.12.0",
"webpack-dev-server": "^2.11.5"
}
}

@ -2,7 +2,7 @@ import {type as T, level as L, probability as P} from './def'
export default class BlockGen {
constructor (noiseGen) {
this.rand = (x, y) => 0.5 + 0.5 * noiseGen.raw2D(x, y)
this.rand = (x, y) => 0.5 + 0.5 * noiseGen.noise2D(x, y)
}
level (level, column, row, previousRow) {

@ -1,5 +1,5 @@
import SeedRng from 'seedrandom'
import FastSimplexNoise from 'fast-simplex-noise'
import SimplexNoise from 'open-simplex-noise'
import {type as T, level as L} from './def'
import BlockGen from './first-iteration'
@ -9,7 +9,7 @@ import PlayerChanges from './third-iteration'
export default class Level {
constructor (width, height, seed = 'super random seed') {
const random = SeedRng(seed)
const noiseGen = new FastSimplexNoise({ random })
const noiseGen = new SimplexNoise(parseInt(seed, 32))
this._w = width
this._h = height
this._grid = new Array(this._h)

@ -2,7 +2,7 @@ import {type as T, level as L, probability as P} from './def'
export default class BlockExt {
constructor (noiseGen) {
this.rand = (x, y) => 0.5 + 0.5 * noiseGen.raw2D(x, y)
this.rand = (x, y) => 0.5 + 0.5 * noiseGen.noise2D(x, y)
}
level (level, column, row, previousRow) {

Loading…
Cancel
Save