Skip to content

Commit

Permalink
Making decryption a little faster
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGeek committed Feb 9, 2019
1 parent 2afffb6 commit e71432c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "upad-parse",
"version": "6.0.0",
"version": "6.0.1",
"description": "This is a parser for the NPX file format that µPad uses",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Translators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export namespace Translators {

if (typeof jsonObj.sections === 'string') {
if (!passkey) throw new Error('This notepad is encrypted. A passkey is needed to unlock it.');
jsonObj.sections = (await decrypt(jsonObj, passkey)).sections;
return await decrypt(jsonObj, passkey);
}

// Restore sections
Expand Down

0 comments on commit e71432c

Please sign in to comment.