three-pathfinding
Advanced tools
Comparing version 0.5.1 to 0.5.2
{ | ||
"name": "three-pathfinding", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Navigation mesh toolkit for three.js, based on PatrolJS", | ||
@@ -9,2 +9,4 @@ "main": "src/index.js", | ||
"docs": "documentation build src/index.js --shallow -f md | replace-between --target README.md --token API", | ||
"dist": "browserify browser.js -o dist/three-pathfinding.js && uglifyjs dist/three-pathfinding.js --mangle > dist/three-pathfinding.min.js", | ||
"version": "npm run dist && git add -A dist", | ||
"postversion": "git push && git push --tags && npm publish" | ||
@@ -29,6 +31,10 @@ }, | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babelify": "^8.0.0", | ||
"browserify": "^14.4.0", | ||
"budo": "^10.0.4", | ||
"documentation": "^5.3.3", | ||
"replace-between": "0.0.8" | ||
"replace-between": "0.0.8", | ||
"uglify-js": "^3.3.3" | ||
}, | ||
@@ -35,0 +41,0 @@ "browserify": { |
@@ -16,8 +16,8 @@ # three-pathfinding | ||
```js | ||
const Path = require('three-pathfinding'); | ||
const pathfinder = new Path(); | ||
const Pathfinder = require('three-pathfinding'); | ||
const pathfinder = new Pathfinder(); | ||
// Create level. | ||
const ZONE = 'level1'; | ||
pathfinder.setZoneData(ZONE, Path.createZone(this.navMesh.geometry)); | ||
pathfinder.setZoneData(ZONE, Pathfinder.createZone(mesh.geometry)); | ||
@@ -24,0 +24,0 @@ // Find path from A to B. |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
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
334599
21
2839
8
3
5