install gulp to process code
This commit is contained in:
parent
24f6606c2c
commit
b6a3900ee2
1651 changed files with 253427 additions and 39 deletions
17
node_modules/text-decoder/lib/browser-decoder.js
generated
vendored
Normal file
17
node_modules/text-decoder/lib/browser-decoder.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module.exports = class BrowserDecoder {
|
||||
constructor (encoding) {
|
||||
this.decoder = new TextDecoder(encoding === 'utf16le' ? 'utf16-le' : encoding)
|
||||
}
|
||||
|
||||
get remaining () {
|
||||
return -1
|
||||
}
|
||||
|
||||
decode (data) {
|
||||
return this.decoder.decode(data, { stream: true })
|
||||
}
|
||||
|
||||
flush () {
|
||||
return this.decoder.decode(new Uint8Array(0))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue