@reality.eth/reality-eth-lib 3.1.13 → 3.1.14
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/formatters/question.js +4 -0
- package/package.json +3 -3
package/formatters/question.js
CHANGED
|
@@ -173,6 +173,10 @@ exports.secondsTodHms = function(sec) {
|
|
|
173
173
|
|
|
174
174
|
exports.parseQuestionJSON = function(data, errors_to_title) {
|
|
175
175
|
|
|
176
|
+
// Strip unicode null-terminated-string control characters if there are any.
|
|
177
|
+
// These seem to be stripped already if we got data via The Graph, and only passed to us on RPC.
|
|
178
|
+
data = data.replace(/\u0000/g, "");
|
|
179
|
+
|
|
176
180
|
var question_json;
|
|
177
181
|
try {
|
|
178
182
|
question_json = JSON.parse(data);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reality.eth/reality-eth-lib",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.14",
|
|
4
4
|
"description": "Tools for handling questions in the reality.eth fact verification platform",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "env TZ='Asia/Kabul' mocha ./test"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "Edmund Edgar (https://reality.eth.link)",
|
|
17
17
|
"license": "GPL-3.0",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@reality.eth/contracts": "^3.0.
|
|
19
|
+
"@reality.eth/contracts": "^3.0.16",
|
|
20
20
|
"bignumber.js": "^7.2.1",
|
|
21
21
|
"bn.js": "^5.2.1",
|
|
22
22
|
"ethereumjs-abi": "^0.6.5",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"url": "https://github.com/RealityETH/monorepo/issues"
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://reality.eth.link",
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "bf4b54cd772d0763ab0a88ee631415d8ee90b2bb"
|
|
40
40
|
}
|