Skip to content

Commit ea93a10

Browse files
author
Dmitry Dutikov
committed
commonjs module export fixed
1 parent e6c8211 commit ea93a10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.cjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const State = {
8383
numberExpValue: 'numberExpValue',
8484
};
8585

86-
module.exports.JSON22 = class {
86+
class JSON22 {
8787

8888
static #Stack = class {
8989
#array;
@@ -741,3 +741,5 @@ module.exports.JSON22 = class {
741741
return result.join('');
742742
}
743743
}
744+
745+
module.exports = { JSON22 };

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json22",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "JSON superset with an ability to deal with classes and extended support for number values",
55
"author": "Dmitry Dutikov",
66
"license": "MIT",

0 commit comments

Comments
 (0)