@alauda/doom 0.19.2 → 0.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -122,7 +122,6 @@ const limit = pRateLimit({
122
122
  concurrency: 10,
123
123
  });
124
124
  const supportedLanguages = SUPPORTED_LANGUAGES.join(', ');
125
- const shaHash = crypto.createHash('sha256');
126
125
  export const translateCommand = new Command('translate')
127
126
  .description('Translate the documentation')
128
127
  .argument('[root]', 'Root directory of the documentation')
@@ -201,7 +200,10 @@ export const translateCommand = new Command('translate')
201
200
  allSourceFilePaths.delete(sourceFilePath);
202
201
  return;
203
202
  }
204
- const sourceSHA = shaHash.update(sourceContent).digest('hex');
203
+ const sourceSHA = crypto
204
+ .createHash('sha256')
205
+ .update(sourceContent)
206
+ .digest('hex');
205
207
  const targetFilePath = sourceFilePath.replace(sourceDir, targetDir);
206
208
  let targetContent;
207
209
  let targetFrontmatter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": "https://gitlab-ce.alauda.cn/idp/Doom.git",