godprotocol 1.0.1 → 1.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/Index.js CHANGED
@@ -48,4 +48,6 @@ Socket_server();
48
48
 
49
49
  export { initiator };
50
50
 
51
- console.log(`\n...GOD PROTOCOL RUNNING :${PORT}`);
51
+ console.log(
52
+ `\n...GOD PROTOCOL RUNNING :${PORT}\nYour Public_key: ${process.env.PUBLIC_KEY}`
53
+ );
@@ -104,7 +104,7 @@ class Account {
104
104
  };
105
105
 
106
106
  get_account = (account) => {
107
- if (!account) return this;
107
+ if (!account || account === this.name) return this;
108
108
 
109
109
  account = this.accounts[account];
110
110
  if (!account) return this;
package/Objects/file.js CHANGED
@@ -57,7 +57,7 @@ class File {
57
57
  } else if (
58
58
  block.chain.parent.path === `${this.parent.account.path}/Datatypes/String`
59
59
  ) {
60
- return new String(obj.value);
60
+ return obj.value.toString();
61
61
  }
62
62
  return obj;
63
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A data mediator.",
5
5
  "main": "Index.js",
6
6
  "scripts": {