mirror of
https://github.com/github/codeql-action.git
synced 2026-05-14 07:10:18 +00:00
Import @actions/artifact@v1 as artifact-legacy and v2 as artifact
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
module.exports = class BrowserDecoder {
|
||||
constructor (encoding) {
|
||||
this.decoder = new TextDecoder(encoding === 'utf16le' ? 'utf16-le' : encoding)
|
||||
}
|
||||
|
||||
decode (data) {
|
||||
return this.decoder.decode(data, { stream: true })
|
||||
}
|
||||
|
||||
flush () {
|
||||
return this.decoder.decode(new Uint8Array(0))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user