@eik/node-client
Advanced tools
Comparing version 1.0.0-next.4 to 1.0.0-next.5
@@ -0,1 +1,8 @@ | ||
# [1.0.0-next.5](https://github.com/eik-lib/node-client/compare/v1.0.0-next.4...v1.0.0-next.5) (2021-03-23) | ||
### Bug Fixes | ||
* Do not use getters and setters on public data object ([0505dcb](https://github.com/eik-lib/node-client/commit/0505dcb25b2563b826d5806fc30a7d148c111c00)) | ||
# [1.0.0-next.4](https://github.com/eik-lib/node-client/compare/v1.0.0-next.3...v1.0.0-next.4) (2021-03-19) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@eik/node-client", | ||
"version": "1.0.0-next.4", | ||
"version": "1.0.0-next.5", | ||
"description": "A node.js client for interacting with a Eik server.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,40 +0,8 @@ | ||
const inspect = Symbol.for('nodejs.util.inspect.custom'); | ||
export default class Asset { | ||
#integrity; | ||
#value; | ||
constructor({ | ||
value = '', | ||
} = {}) { | ||
this.#integrity = null; | ||
this.#value = value; | ||
this.integrity = null; | ||
this.value = value; | ||
} | ||
get integrity() { | ||
return this.#integrity; | ||
} | ||
set integrity(value) { | ||
this.#integrity = value; | ||
} | ||
get value() { | ||
return this.#value; | ||
} | ||
set value(value) { | ||
this.#value = value; | ||
} | ||
toJSON() { | ||
return { | ||
integrity: this.#integrity, | ||
value: this.#value, | ||
} | ||
} | ||
[inspect]() { | ||
return this.toJSON(); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
16234
183