We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d013987 commit b772a8dCopy full SHA for b772a8d
node-client/src/config.ts
@@ -102,7 +102,7 @@ export class KubeConfig {
102
return fs.readFileSync(file);
103
}
104
if (data) {
105
- return new Buffer(base64.decode(data), 'utf-8');
+ return Buffer.from(base64.decode(data), 'utf-8');
106
107
return null;
108
node-client/src/web-socket-handler.ts
@@ -89,7 +89,7 @@ export class WebSocketHandler {
89
90
public static handleStandardInput(conn: ws.connection, stdin: stream.Readable | any) {
91
stdin.on('data', (data) => {
92
- let buff = new Buffer(data.length + 1);
+ let buff = Buffer.from(data.length + 1);
93
buff.writeInt8(0, 0);
94
if (data instanceof Buffer) {
95
data.copy(buff, 1);
0 commit comments