Skip to content

Commit f63caf3

Browse files
committed
Merge branch 1.7 into 2.0
2 parents 546c097 + 17f6de3 commit f63caf3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
},
102102
"dependencies": {
103103
"@babel/runtime": "^7.4.4",
104-
"text-encoding": "^0.7.0",
104+
"text-encoding-utf-8": "^1.0.2",
105105
"uri-js": "^4.2.2"
106106
}
107107
}

src/internal/browser/browser-utf8.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* limitations under the License.
1818
*/
1919

20-
import HeapBuffer from './browser-buf'
21-
import textEncoding from 'text-encoding'
20+
import HeapBuffer from '../browser/browser-buf'
21+
import { TextEncoder, TextDecoder } from 'text-encoding-utf-8'
2222

23-
const encoder = new textEncoding.TextEncoder('utf-8')
24-
const decoder = new textEncoding.TextDecoder('utf-8')
23+
const encoder = new TextEncoder('utf-8')
24+
const decoder = new TextDecoder('utf-8')
2525

2626
function encode (str) {
2727
return new HeapBuffer(encoder.encode(str).buffer)

0 commit comments

Comments
 (0)