Skip to content

Commit

Permalink
Fix typos and update packages (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
tameemsafi authored Sep 19, 2023
1 parent 8f42160 commit 29d0af0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typewriter-effect",
"version": "2.20.1",
"version": "2.21.0",
"main": "dist/react.js",
"types": "index.d.ts",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/core/Typewriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class Typewriter {
*/
callFunction = (cb, thisArg) => {
if(!cb || typeof cb !== 'function') {
throw new Error('Callbak must be a function');
throw new Error('Callback must be a function');
}

this.addEventToQueue(EVENT_NAMES.CALL_FUNCTION, { cb, thisArg });
Expand Down
4 changes: 2 additions & 2 deletions src/core/__test__/Typewriter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@ describe('Typewriter', () => {
it('should throw error if callback function is not provided', () => {
expect(() => {
instance.callFunction();
}).toThrowError('Callbak must be a function');
}).toThrowError('Callback must be a function');
});

it('should throw error if callback is not a function', () => {
expect(() => {
instance.callFunction(false);
}).toThrowError('Callbak must be a function');
}).toThrowError('Callback must be a function');
});
});

Expand Down
1 change: 1 addition & 0 deletions webpack/production.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import commonConfig from './common.config.babel';

const config = merge(commonConfig, {
mode: 'production',
devtool: 'source-map',

plugins: [
new webpack.ProvidePlugin({
Expand Down

0 comments on commit 29d0af0

Please sign in to comment.