Skip to content

Commit b30ab44

Browse files
💥 refactor!: Use flat export style.
BREAKING CHANGE: The default export is gone.
1 parent cfcad52 commit b30ab44

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

src/index.js

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
import fill from './fill.js';
2-
import nextFloat64 from './nextFloat64.js';
3-
import nextInt32 from './nextInt32.js';
4-
import nextUint64 from './nextUint64.js';
5-
import splitmix64 from './splitmix64.js';
6-
import xoroshiro128plus from './xoroshiro128plus.js';
7-
8-
/* eslint import/no-anonymous-default-export: [2, {"allowObject": true}] */
9-
export default {
10-
fill,
11-
nextFloat64,
12-
nextInt32,
13-
nextUint64,
14-
splitmix64,
15-
xoroshiro128plus,
16-
};
17-
18-
export {fill, nextFloat64, nextInt32, nextUint64, splitmix64, xoroshiro128plus};
1+
export {default as _fill} from './_fill.js';
2+
export {default as fill} from './fill.js';
3+
export {default as genBit} from './genBit.js';
4+
export {default as genBoolean} from './genBoolean.js';
5+
export {default as genByte} from './genByte.js';
6+
export {default as genInt32} from './genInt32.js';
7+
export {default as genUint16} from './genUint16.js';
8+
export {default as genUint64} from './genUint64.js';
9+
export {default as nextBigInt64} from './nextBigInt64.js';
10+
export {default as nextBigUint64} from './nextBigUint64.js';
11+
export {default as nextFloat32} from './nextFloat32.js';
12+
export {default as nextFloat64} from './nextFloat64.js';
13+
export {default as nextInt32} from './nextInt32.js';
14+
export {default as nextUint16} from './nextUint16.js';
15+
export {default as nextUint32} from './nextUint32.js';
16+
export {default as nextUint64} from './nextUint64.js';
17+
export {default as nextUint8} from './nextUint8.js';
18+
export {default as splitmix64} from './splitmix64.js';
19+
export {default as xoroshiro128plus} from './xoroshiro128plus.js';

0 commit comments

Comments
 (0)