Skip to content

Commit

Permalink
🤖 refactor: Use ESM import syntax.
Browse files Browse the repository at this point in the history
These changes were automatically generated by a transform whose code can be found at:
  - https://github.com/aureooms/rejuvenate/blob/eb1b209cd7aa675a642d48b2a788c2c6112779f7/src/transforms/codemod:use-esm-import-syntax.js
Please contact the author of the transform if you believe there was an error.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Apr 14, 2021
1 parent a315592 commit 29fff00
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/api/decide.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { solve } from './solve' ;
import { solve } from "./solve.js" ;

export function decide ( instance ) {

Expand Down
2 changes: 1 addition & 1 deletion src/api/from.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParitiesInstance , _sign_to_parity, _keys_to_parity, _parse_DIMACS_CNF } from '../core' ;
import { ParitiesInstance , _sign_to_parity, _keys_to_parity, _parse_DIMACS_CNF } from "../core/index.js" ;

/**
* The input is converted to parity format in each case.
Expand Down
8 changes: 4 additions & 4 deletions src/api/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './decide' ;
export * from './from' ;
export * from './solve' ;
export * from './verify' ;
export * from "./decide.js" ;
export * from "./from.js" ;
export * from "./solve.js" ;
export * from "./verify.js" ;
2 changes: 1 addition & 1 deletion src/api/solve.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SAT0W , setup_watchlist, setup_assignment } from '../core' ;
import { SAT0W , setup_watchlist, setup_assignment } from "../core/index.js" ;

/**
* Yields all satisfying assignments for the input instance.
Expand Down
2 changes: 1 addition & 1 deletion src/api/verify.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import { _verify } from '../core' ;
import { _verify } from "../core/index.js" ;
export const verify = ( { clauses } , certificate ) => _verify( clauses , certificate ) ;
2 changes: 1 addition & 1 deletion src/core/SAT0W/SAT0W.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { update_watchlist } from './update_watchlist' ;
import { update_watchlist } from "./update_watchlist.js" ;

export function* SAT0W ( n , clauses , watchlist , assignment , d ) {

Expand Down
6 changes: 3 additions & 3 deletions src/core/SAT0W/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './SAT0W' ;
export * from './setup_watchlist' ;
export * from './update_watchlist' ;
export * from "./SAT0W.js" ;
export * from "./setup_watchlist.js" ;
export * from "./update_watchlist.js" ;
2 changes: 1 addition & 1 deletion src/core/convert/KeysInstance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { _certificate_to_keys } from './_certificate_to_keys' ;
import { _certificate_to_keys } from "./_certificate_to_keys.js" ;

export class KeysInstance {

Expand Down
2 changes: 1 addition & 1 deletion src/core/convert/ParitiesInstance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { _count } from './_count' ;
import { _count } from "./_count.js" ;

export class ParitiesInstance {

Expand Down
2 changes: 1 addition & 1 deletion src/core/convert/SignsInstance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { _count } from './_count' ;
import { _count } from "./_count.js" ;

export class SignsInstance {

Expand Down
2 changes: 1 addition & 1 deletion src/core/convert/_keys_to_parity.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { KeysInstance } from './KeysInstance' ;
import { KeysInstance } from "./KeysInstance.js" ;


export function _keys_to_parity ( clauses ) {
Expand Down
18 changes: 9 additions & 9 deletions src/core/convert/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export * from './KeysInstance' ;
export * from './ParitiesInstance' ;
export * from './SignsInstance' ;
export * from './_certificate_to_keys' ;
export * from './_count' ;
export * from './_keys_to_parity' ;
export * from './_parity_to_keys' ;
export * from './_parity_to_sign' ;
export * from './_sign_to_parity' ;
export * from "./KeysInstance.js" ;
export * from "./ParitiesInstance.js" ;
export * from "./SignsInstance.js" ;
export * from "./_certificate_to_keys.js" ;
export * from "./_count.js" ;
export * from "./_keys_to_parity.js" ;
export * from "./_parity_to_keys.js" ;
export * from "./_parity_to_sign.js" ;
export * from "./_sign_to_parity.js" ;
10 changes: 5 additions & 5 deletions src/core/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './SAT0W' ;
export * from './_verify' ;
export * from './convert' ;
export * from './parse' ;
export * from './setup_assignment' ;
export * from "./SAT0W/index.js" ;
export * from "./_verify.js" ;
export * from "./convert/index.js" ;
export * from "./parse/index.js" ;
export * from "./setup_assignment.js" ;
2 changes: 1 addition & 1 deletion src/core/parse/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './_parse_DIMACS_CNF' ;
export * from "./_parse_DIMACS_CNF.js" ;
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './api' ;
export * from './core' ;
export * from "./api/index.js" ;
export * from "./core/index.js" ;
2 changes: 1 addition & 1 deletion test/src/DIMACS.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import * as sat from '../../src';
import * as sat from "../../src/index.js";

function text ( lines ) {
return ( lines.join( '\n' ) ) + '\n' ;
Expand Down
2 changes: 1 addition & 1 deletion test/src/SAT.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import * as sat from '../../src';
import * as sat from "../../src/index.js";

import * as compare from '@aureooms/js-compare' ;
import { list } from '@aureooms/js-itertools' ;
Expand Down
2 changes: 1 addition & 1 deletion test/src/SATLIB.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import * as sat from '../../src';
import * as sat from "../../src/index.js";

import * as compare from '@aureooms/js-compare' ;
import { list } from '@aureooms/js-itertools' ;
Expand Down

0 comments on commit 29fff00

Please sign in to comment.