We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a460160 + 1612df1 commit e56477eCopy full SHA for e56477e
node-client/src/config.ts
@@ -185,7 +185,7 @@ export class KubeConfig {
185
return fs.readFileSync(file);
186
}
187
if (data) {
188
- return new Buffer(base64.decode(data), 'utf-8');
+ return Buffer.from(base64.decode(data), 'utf-8');
189
190
return null;
191
node-client/src/web-socket-handler.ts
@@ -43,7 +43,7 @@ export class WebSocketHandler {
43
44
public static handleStandardInput(conn: ws.connection, stdin: stream.Readable | any) {
45
stdin.on('data', (data) => {
46
- const buff = new Buffer(data.length + 1);
+ const buff = Buffer.from(data.length + 1);;
47
buff.writeInt8(0, 0);
48
if (data instanceof Buffer) {
49
data.copy(buff, 1);
0 commit comments