space-engineers
Advanced tools
Comparing version 1.0.3 to 1.0.5
@@ -21,8 +21,2 @@ const config = require('config'); | ||
console.log( | ||
url, | ||
message, | ||
query | ||
) | ||
return { | ||
@@ -29,0 +23,0 @@ url: url + query, |
@@ -27,3 +27,3 @@ const {demotePlayer, banPlayer, kickPlayer, promotePlayer} = require('./admin'); | ||
entity.remove = () => { | ||
return send('DELETE', `${path}/${EntityId}`, {log: true}); | ||
return send('DELETE', `${path}/${EntityId}`); | ||
} | ||
@@ -63,3 +63,3 @@ } | ||
if (message) { | ||
return send('POST', path, {body: message, log: true}); | ||
return send('POST', path, {body: message}); | ||
} | ||
@@ -74,3 +74,3 @@ | ||
const {Messages} = await send('GET', path, {qs: {Date: date, MessageCount: count}, log: true}); | ||
const {Messages} = await send('GET', path, {qs: {Date: date, MessageCount: count}}); | ||
@@ -77,0 +77,0 @@ return Messages; |
{ | ||
"name": "space-engineers", | ||
"version": "1.0.3", | ||
"version": "1.0.5", | ||
"description": "A complete Node.js API for the Space Engineers Remote API.", | ||
@@ -5,0 +5,0 @@ "author": "Brian Jemilo II<jemiloii@gmail.com>", |
@@ -18,1 +18,66 @@ # space-engineers | ||
``` | ||
If you already use config, make sure to add the following to your `default.json` | ||
```json | ||
{ | ||
"SpaceEngineers": { | ||
"baseUrl": "http://localhost", | ||
"port": 8080, | ||
"prefix": "/vrageremote" | ||
} | ||
} | ||
``` | ||
Exports | ||
```js | ||
{ | ||
// Admin Routes | ||
admin: { | ||
demotePlayer, | ||
bannedPlayers, | ||
banPlayer, | ||
kickedPlayers, | ||
kickPlayer, | ||
promotePlayer | ||
}, | ||
// API Routes | ||
api: { | ||
api | ||
}, | ||
// Express Server Instance | ||
app, | ||
// Server Routes | ||
server: { | ||
info, | ||
ping, | ||
stop | ||
}, | ||
// Session Routes | ||
session: { | ||
asteroids, | ||
characters, | ||
chat, | ||
economyAnalysis, | ||
floatingObjects, | ||
grids, | ||
planets, | ||
players, | ||
save | ||
} | ||
} | ||
``` | ||
Most methods will return an array or single object. | ||
In every object, you might find additional methods attached: | ||
- remove | ||
- stop | ||
- power.on | ||
- power.off | ||
For the players method, objects will have additional methods. | ||
- ban | ||
- kick | ||
- promote | ||
- demote |
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
11387
82
265