Skip to content

Commit

Permalink
Fixing the export to also export class.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Mar 9, 2021
1 parent 5ae00ad commit a993acf
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 25 deletions.
4 changes: 2 additions & 2 deletions bin/jsencrypt.js

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

2 changes: 1 addition & 1 deletion bin/jsencrypt.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import { JSEncrypt } from './JSEncrypt';
export { JSEncrypt };
export default JSEncrypt;
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import { JSEncrypt } from './JSEncrypt';
export { JSEncrypt };
export default JSEncrypt;
2 changes: 1 addition & 1 deletion lib/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "3.0.3"}
{"version": "3.1.0"}
38 changes: 19 additions & 19 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "jsencrypt",
"version": "3.0.3",
"version": "3.1.0",
"description": "A Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation.",
"main": "lib/index.js",
"dependencies": {},
"devDependencies": {
"typescript": "^4.2.3",
"webpack": "^5.24.3",
"webpack": "^5.24.4",
"webpack-cli": "^4.5.0"
},
"files": [
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import { JSEncrypt } from './JSEncrypt';
export { JSEncrypt }
export default JSEncrypt;

1 comment on commit a993acf

@matheo
Copy link

@matheo matheo commented on a993acf Mar 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉
the "types": "lib/index.d.ts" is still missing in the package.json tho

Please sign in to comment.