godprotocol 1.0.72 → 1.0.73

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.
@@ -158,7 +158,7 @@ class Account extends Filesystem {
158
158
  this.data_tracks[ky] = servers;
159
159
  };
160
160
 
161
- account = (name, server) => {
161
+ create_account = (name, server) => {
162
162
  let account = this.accounts[name] || this.manager.accounts[name];
163
163
 
164
164
  if (!account) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "description": "A data mediator.",
5
5
  "main": "Index.js",
6
6
  "types": "index.d.ts",
@@ -40,7 +40,7 @@ const create_server = async (initiator, serve) => {
40
40
  let obj = initiator.manager.web.sync(data);
41
41
  res.end(obj ? obj.stringify(true) : "404");
42
42
  } else if (req.url === "/create_account") {
43
- let account = initiator.account(data.name, data.server);
43
+ let account = initiator.create_account(data.name, data.server);
44
44
  res.end(account.stringify(true));
45
45
  } else if (req.url === "/load") {
46
46
  initiator.load(data, (datagram) => cb(res, datagram));