Skip to content

Commit 3b3f802

Browse files
🤖 refactor: Use ESM import syntax.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/aureooms/rejuvenate/blob/e086830dfe927964be93f46b8ecdacd2597eb487/src/transforms/codemod:use-esm-import-syntax.js Please contact the author of the transform if you believe there was an error.
1 parent 53f19ff commit 3b3f802

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

src/_parse_fixed_point.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { DECIMAL_PREFIX , REPETEND_PREFIX } from './_constants' ;
2+
import { DECIMAL_PREFIX , REPETEND_PREFIX } from "./_constants.js" ;
33

44
export function _parse_fixed_point ( { _chr , reg , sub } ) {
55

src/_parse_fraction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { FRACTION_SEP } from './_constants' ;
2+
import { FRACTION_SEP } from "./_constants.js" ;
33

44
export function _parse_fraction ( { reg } ) {
55

src/digits.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { take } from '@aureooms/js-itertools' ;
2-
import { _decimals } from './decimals' ;
3-
import { _transient } from './transient' ;
2+
import { _decimals } from "./decimals.js" ;
3+
import { _transient } from "./transient.js" ;
44

55
export function _digits ( { jz , gt1 , eq , muln , divmodn , divmod , egcd , sgn , abs } ) {
66

src/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
export * from './add' ;
2-
export * from './div' ;
3-
export * from './mul' ;
4-
export * from './sub' ;
5-
export * from './pow' ;
6-
export * from './cmp' ;
7-
export * from './cmp_no_bounds' ;
8-
export * from './simplify' ;
9-
export * from './digits' ;
10-
export * from './_stringify_digits' ;
11-
export * from './_parse_fixed_point' ;
12-
export * from './_parse_fraction' ;
1+
export * from "./add.js" ;
2+
export * from "./div.js" ;
3+
export * from "./mul.js" ;
4+
export * from "./sub.js" ;
5+
export * from "./pow.js" ;
6+
export * from "./cmp.js" ;
7+
export * from "./cmp_no_bounds.js" ;
8+
export * from "./simplify.js" ;
9+
export * from "./digits.js" ;
10+
export * from "./_stringify_digits.js" ;
11+
export * from "./_parse_fixed_point.js" ;
12+
export * from "./_parse_fraction.js" ;

test/src/_fixtures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import int from 'int' ;
2-
import BN from 'bn.js' ;
2+
import BN from "bn.js/lib/bn.js" ;
33
import { ZZ } from '@aureooms/js-integer' ;
44
import { _chr } from '@aureooms/js-integer-big-endian' ;
55

test/src/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import {
66
_cmp , _cmp_no_bounds ,
77
_simplify , _digits , _stringify_digits ,
88
_parse_fraction , _parse_fixed_point
9-
} from '../../src';
9+
} from "../../src/index.js";
1010

1111
const GOOGOL = '10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' ;
1212

1313
const factorize = __factorize__( $2, iadd1, eq0, gt1, divmod ) ;
1414

1515
const ufactors = n => new Set(factorize(n)) ;
1616

17-
import { ALU } from './_fixtures' ;
17+
import { ALU } from "./_fixtures.js" ;
1818

1919
function binary ( t , alu , [ [ _x , _y , factory ] , a , b , c , d , e ] ) {
2020

0 commit comments

Comments
 (0)