wiki-plugin-allyabase 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/contracts.js +5 -0
- package/server/feeds.js +3 -0
- package/server/inventory.js +6 -0
- package/server/server.js +2 -3
package/package.json
CHANGED
package/server/contracts.js
CHANGED
|
@@ -19,6 +19,11 @@ async function addRoutes(params) {
|
|
|
19
19
|
const app = params.app;
|
|
20
20
|
const argv = params.argv;
|
|
21
21
|
|
|
22
|
+
if(!argv.private_key) {
|
|
23
|
+
console.warn('You have included the allyabase plugin without providing a private key. allyabase will be unavailable.');
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
let allyabaseUser = {};
|
|
23
28
|
|
|
24
29
|
const allyabaseKeys = {
|
package/server/feeds.js
CHANGED
|
@@ -3,6 +3,8 @@ var sessionless = require('sessionless-node');
|
|
|
3
3
|
var fs = require('fs');
|
|
4
4
|
|
|
5
5
|
async function addRoutes(params) {
|
|
6
|
+
// TODO: Fix this
|
|
7
|
+
/*
|
|
6
8
|
const app = params.app;
|
|
7
9
|
const argv = params.argv;
|
|
8
10
|
|
|
@@ -22,6 +24,7 @@ async function addRoutes(params) {
|
|
|
22
24
|
const updatedUser = await dolores.getUser(doloresUser.uuid);
|
|
23
25
|
res.send(updatedUser.feeds);
|
|
24
26
|
});
|
|
27
|
+
*/
|
|
25
28
|
};
|
|
26
29
|
|
|
27
30
|
module.exports = {addRoutes};
|
package/server/inventory.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var _fount = require('fount-js');
|
|
2
2
|
var _bdo = require('bdo-js');
|
|
3
|
+
var _gateway = require('magic-gateway-js');
|
|
3
4
|
var sessionless = require('sessionless-node');
|
|
4
5
|
var fs = require('fs');
|
|
5
6
|
|
|
@@ -18,6 +19,11 @@ async function addRoutes(params) {
|
|
|
18
19
|
const app = params.app;
|
|
19
20
|
const argv = params.argv;
|
|
20
21
|
|
|
22
|
+
if(!argv.private_key) {
|
|
23
|
+
console.warn('You have included the allyabase plugin without providing a private key. allyabase will be unavailable.');
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
let allyabaseUser = {};
|
|
22
28
|
|
|
23
29
|
const allyabaseKeys = {
|
package/server/server.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const contracts = require('./contracts.js');
|
|
2
2
|
const feeds = require('./feeds.js');
|
|
3
3
|
const inventory = require('./inventory.js');
|
|
4
4
|
(function() {
|
|
5
5
|
async function startServer(params) {
|
|
6
|
-
|
|
6
|
+
contracts.addRoutes(params);
|
|
7
7
|
feeds.addRoutes(params);
|
|
8
8
|
inventory.addRoutes(params);
|
|
9
9
|
};
|
|
10
|
-
}
|
|
11
10
|
|
|
12
11
|
module.exports = {startServer};
|
|
13
12
|
}).call(this);
|