Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion JSHash/JSHash.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const hashString = async (string, algorithm) => {
return Hex.stringify(hash);
}
default:
throw new Error(`${algorithm} algorithm is not suported`);
throw new Error(`${algorithm} algorithm is not supported`);
}
};

Expand Down
2 changes: 1 addition & 1 deletion JSHash/JSHmac.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const hmacString = async (string, key, algorithm) => {
return Hex.stringify(HMac);
}
default:
throw new Error(`${algorithm} algorithm is not suported`);
throw new Error(`${algorithm} algorithm is not supported`);
}
};

Expand Down
2 changes: 1 addition & 1 deletion __tests__/JSHash.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ describe('JSHash hasString Function', () => {
test('badHash', async () => {
await expect(
hashString('value', 'badHashAlgo'),
).rejects.toEqual(new Error('badHashAlgo algorithm is not suported'));
).rejects.toEqual(new Error('badHashAlgo algorithm is not supported'));
});
});
2 changes: 1 addition & 1 deletion __tests__/JSHmac.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ describe('JSHash hasString Function', () => {
test('badHmac', async () => {
await expect(
hmacString('value', 'SecretKey', 'badHmacAlgo'),
).rejects.toEqual(new Error('badHmacAlgo algorithm is not suported'));
).rejects.toEqual(new Error('badHmacAlgo algorithm is not supported'));
});
});
11 changes: 11 additions & 0 deletions android/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
arguments=--init-script C\:\\Users\\Vincent\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.15.0\\config_win\\org.eclipse.osgi\\54\\0\\.cp\\gradle\\init\\init.gradle --init-script C\:\\Users\\Vincent\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.15.0\\config_win\\org.eclipse.osgi\\54\\0\\.cp\\gradle\\protobuf\\init.gradle
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=C\:/Program Files/OpenJDK/jdk-19
jvm.arguments=
offline.mode=false
override.workspace.settings=true
show.console.view=true
show.executions.view=true
2 changes: 1 addition & 1 deletion coverage/react-native-hash/JSHash/JSHash.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">react-native
return Hex.stringify(hash);
}
default:
throw new Error(`${algorithm} algorithm is not suported`);
throw new Error(`${algorithm} algorithm is not supported`);
}
};
&nbsp;
Expand Down
2 changes: 1 addition & 1 deletion coverage/react-native-hash/JSHash/JSHmac.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">react-native
return Hex.stringify(HMac);
}
default:
throw new Error(`${algorithm} algorithm is not suported`);
throw new Error(`${algorithm} algorithm is not supported`);
}
};
&nbsp;
Expand Down