Skip to content

Commit

Permalink
fix(@formatjs/cli): Change default hashing to a longer & stronger hash
Browse files Browse the repository at this point in the history
to prevent collision
  • Loading branch information
Long Ho committed Jun 4, 2020
1 parent 4d09912 commit 0bb8358
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async function main(argv: string[]) {
await extract(processedFiles, {
outFile: cmdObj.outFile,
idInterpolationPattern:
cmdObj.idInterpolationPattern || '[contenthash:5]',
cmdObj.idInterpolationPattern || '[sha1:contenthash:base64:6]',
messagesDir: cmdObj.messagesDir,
extractSourceLocation: cmdObj.extractSourceLocation,
moduleSourceName: cmdObj.moduleSourceName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Array [
Object {
"defaultMessage": "No ID",
"description": "no ID",
"id": "e695b",
"id": "fAT9Q5",
},
]
`;
Expand Down Expand Up @@ -75,7 +75,7 @@ Array [
Object {
"defaultMessage": "No ID",
"description": "no ID",
"id": "e695b",
"id": "fAT9Q5",
},
]
`;
Expand Down Expand Up @@ -166,7 +166,7 @@ Array [
"line": 37,
},
"file": "defineMessages/actual.js",
"id": "e695b",
"id": "fAT9Q5",
"start": Object {
"column": 19,
"line": 34,
Expand Down Expand Up @@ -205,7 +205,7 @@ Array [
Object {
"defaultMessage": "No ID",
"description": "no ID",
"id": "e695b",
"id": "fAT9Q5",
},
]
`;
Expand Down Expand Up @@ -274,7 +274,7 @@ Array [
Object {
"defaultMessage": "No ID",
"description": "no ID",
"id": "e695b",
"id": "fAT9Q5",
},
Object {
"defaultMessage": "formatted message",
Expand Down Expand Up @@ -318,7 +318,7 @@ Array [
Object {
"defaultMessage": "No ID",
"description": "no ID",
"id": "e695b",
"id": "fAT9Q5",
},
]
`;
Expand Down Expand Up @@ -353,7 +353,7 @@ Array [
Object {
"defaultMessage": "No ID",
"description": "no ID",
"id": "e695b",
"id": "fAT9Q5",
},
Object {
"defaultMessage": "formatted message",
Expand Down

0 comments on commit 0bb8358

Please sign in to comment.