Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Fix: ensure snapshots match when version matches the current package.…
Browse files Browse the repository at this point in the history
…json version

Otherwise snapshots will not match as soon as we prepare release
  • Loading branch information
eyelidlessness committed Feb 7, 2023
1 parent ba6f59a commit 004d045
Show file tree
Hide file tree
Showing 3 changed files with 1,772 additions and 1,769 deletions.
7 changes: 4 additions & 3 deletions src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const transform = (survey: Survey): Promise<TransformedSurvey> => {
form,
model,
languageMap,
transformerVersion: PACKAGE_VESION,
transformerVersion: PACKAGE_VERSION,
});
});
};
Expand Down Expand Up @@ -510,9 +510,10 @@ const md5 = (message: string | Buffer) => {
return hash.digest('hex');
};

const PACKAGE_VESION = pkg.version;
/** @package */
export const PACKAGE_VERSION = pkg.version;

const VERSION = md5(xslForm + xslModel + PACKAGE_VESION);
const VERSION = md5(xslForm + xslModel + PACKAGE_VERSION);

export { VERSION as version };

Expand Down
Loading

0 comments on commit 004d045

Please sign in to comment.