Skip to content

Commit 306e288

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/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/codemod:use-esm-import-syntax.js Please contact the author of the transform if you believe there was an error.
1 parent 115ae22 commit 306e288

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+83
-83
lines changed

src/DEFAULT_REPRESENTATION_BASE.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//import { DEFAULT_DISPLAY_BASE } from './' ;
2-
import { MAX_BASE } from './_limits' ;
2+
import { MAX_BASE } from "./_limits.js" ;
33

44
/*
55
* Biggest power of DEFAULT_DISPLAY_BASE whose square holds in a single double

src/Integer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { DEFAULT_DISPLAY_BASE , ZeroDivisionError } from './' ;
1+
import { DEFAULT_DISPLAY_BASE , ZeroDivisionError } from "./index.js" ;
22

33
import { ValueError } from '@aureooms/js-error' ;
44

5-
import { _from_number } from './_from_number' ;
5+
import { _from_number } from "./_from_number.js" ;
66

77
import {
88
stringify , convert , _trim_positive ,
@@ -13,7 +13,7 @@ import {
1313
euclidean_algorithm , extended_euclidean_algorithm ,
1414
} from '@aureooms/js-integer-big-endian' ;
1515

16-
import { MIN_NUMBER , MAX_NUMBER , MAX_BASE } from './_limits' ;
16+
import { MIN_NUMBER , MAX_NUMBER , MAX_BASE } from "./_limits.js" ;
1717

1818
export class Integer {
1919

src/IntegerRing.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Integer } from './' ;
2-
import { DEFAULT_DISPLAY_BASE } from './' ;
1+
import { Integer } from "./index.js" ;
2+
import { DEFAULT_DISPLAY_BASE } from "./index.js" ;
33
import { parse , convert } from '@aureooms/js-integer-big-endian' ;
44
import { TypeError , ValueError } from '@aureooms/js-error' ;
5-
import { _from_number } from './_from_number' ;
5+
import { _from_number } from "./_from_number.js" ;
66

77
export class IntegerRing {
88

src/ZZ.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
import {
33
DEFAULT_REPRESENTATION_BASE ,
44
IntegerRing ,
5-
} from './' ;
5+
} from "./index.js" ;
66

77
export const ZZ = new IntegerRing( 'Integer Ring' , DEFAULT_REPRESENTATION_BASE ) ;

src/_from_number.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Integer } from './Integer' ;
2-
import { MAX_BASE } from './_limits' ;
1+
import { Integer } from "./Integer.js" ;
2+
import { MAX_BASE } from "./_limits.js" ;
33

44
export function _from_number ( number ) {
55
const x = number >= 0 ? number : -number ;

src/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
export * from './DEFAULT_DISPLAY_BASE' ;
2-
export * from './DEFAULT_REPRESENTATION_BASE' ;
3-
export * from './Integer' ;
4-
export * from './IntegerRing' ;
5-
export * from './ZZ' ;
6-
export * from './ZeroDivisionError' ;
7-
export * from './integer' ;
8-
export * from './_limits' ;
1+
export * from "./DEFAULT_DISPLAY_BASE.js" ;
2+
export * from "./DEFAULT_REPRESENTATION_BASE.js" ;
3+
export * from "./Integer.js" ;
4+
export * from "./IntegerRing.js" ;
5+
export * from "./ZZ.js" ;
6+
export * from "./ZeroDivisionError.js" ;
7+
export * from "./integer.js" ;
8+
export * from "./_limits.js" ;

src/integer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DEFAULT_DISPLAY_BASE , ZZ } from './' ;
1+
import { DEFAULT_DISPLAY_BASE , ZZ } from "./index.js" ;
22

33
export function $0 ( ) {
44
return ZZ.$0() ;

test/src/Integer/abs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava' ;
2-
import { ZZ } from '../../../src' ;
2+
import { ZZ } from "../../../src/index.js" ;
33

44
function macro ( t , x ) {
55
t.is(x.toString().replace(/-/,''), ZZ.from(x).iabs().toString());

test/src/Integer/arithmetic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava' ;
22

3-
import { ZZ , ZeroDivisionError } from '../../../src' ;
3+
import { ZZ , ZeroDivisionError } from "../../../src/index.js" ;
44

55
test( 'simple operations with 12 and 20' , t => {
66

test/src/Integer/clone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava' ;
2-
import { ZZ } from '../../../src' ;
2+
import { ZZ } from "../../../src/index.js" ;
33

44
test ( 'Integer#copy' , t => {
55

0 commit comments

Comments
 (0)