Skip to content

Commit

Permalink
fix(md5-js): call fromUtf8 from correct environment (#2641)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Aug 5, 2021
1 parent 4dc7ff7 commit affa927
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/md5-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@
"dependencies": {
"@aws-sdk/types": "3.22.0",
"@aws-sdk/util-utf8-browser": "3.23.0",
"@aws-sdk/util-utf8-node": "3.23.0",
"tslib": "^2.3.0"
},
"browser": {
"@aws-sdk/util-base64-node": "@aws-sdk/util-base64-browser"
"@aws-sdk/util-base64-node": "@aws-sdk/util-base64-browser",
"@aws-sdk/util-utf8-node": "@aws-sdk/util-utf8-browser"
},
"react-native": {
"@aws-sdk/util-base64-node": "@aws-sdk/util-base64-browser"
"@aws-sdk/util-base64-node": "@aws-sdk/util-base64-browser",
"@aws-sdk/util-utf8-node": "@aws-sdk/util-utf8-browser"
},
"typesVersions": {
"<4.0": {
Expand Down
2 changes: 1 addition & 1 deletion packages/md5-js/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Hash, SourceData } from "@aws-sdk/types";
import { fromUtf8 } from "@aws-sdk/util-utf8-browser";
import { fromUtf8 } from "@aws-sdk/util-utf8-node";

import { BLOCK_SIZE, DIGEST_LENGTH, INIT } from "./constants";

Expand Down

0 comments on commit affa927

Please sign in to comment.