Removing things that cause buffer deprecation warnings (#121)
* removing things that cause buffer deprecation warnings * back to beta3 * Reducing typescript node version to minimum we support
This commit is contained in:
Родитель
b44d40549c
Коммит
64e0b4134a
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -13,7 +13,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/mocha": "^2.2.48",
|
"@types/mocha": "^2.2.48",
|
||||||
"@types/node": "^6.0.112",
|
"@types/node": "^8.0.0",
|
||||||
"@types/sinon": "^2.3.7",
|
"@types/sinon": "^2.3.7",
|
||||||
"chai": "^4.1.1",
|
"chai": "^4.1.1",
|
||||||
"mocha": "^5.2.0",
|
"mocha": "^5.2.0",
|
||||||
|
|
|
@ -48,7 +48,7 @@ export function fromTypedData(typedData?: rpc.ITypedData, convertStringToJson: b
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
} else if (typedData.bytes) {
|
} else if (typedData.bytes) {
|
||||||
return new Buffer(typedData.bytes);
|
return Buffer.from(<Buffer>typedData.bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
const logPrefix = "LanguageWorkerConsoleLog";
|
const logPrefix = "LanguageWorkerConsoleLog";
|
||||||
|
|
||||||
export function systemLog(message?: any, ...optionalParams: any[]) {
|
export function systemLog(message?: any, ...optionalParams: any[]) {
|
||||||
console.log(logPrefix + message, optionalParams);
|
console.log(logPrefix + message, ...optionalParams);
|
||||||
};
|
};
|
||||||
|
|
||||||
export function systemError(message?: any, ...optionalParams: any[]) {
|
export function systemError(message?: any, ...optionalParams: any[]) {
|
||||||
console.error(logPrefix + message, optionalParams);
|
console.error(logPrefix + message, ...optionalParams);
|
||||||
};
|
};
|
Загрузка…
Ссылка в новой задаче