Files
codeql-action/node_modules/text-decoder/lib/pass-through-decoder.js
Angela P Wen a196a714b8 Bump artifact dependencies if CODEQL_ACTION_ARTIFACT_V2_UPGRADE enabled (#2482)
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
Co-authored-by: Henry Mercer <henrymercer@github.com>
2024-10-01 09:59:05 -07:00

20 lines
273 B
JavaScript

const b4a = require('b4a')
module.exports = class PassThroughDecoder {
constructor (encoding) {
this.encoding = encoding
}
get remaining () {
return 0
}
decode (tail) {
return b4a.toString(tail, this.encoding)
}
flush () {
return ''
}
}