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/a5a57b70ac6fd6fb77fdab32e6b7be7519ce9564/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 Mar 17, 2021
1 parent 26d77ef commit a93125b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/IndexError.js
@@ -1,3 +1,3 @@
import customError from './customError' ;
import customError from "./customError.js" ;

export default customError('IndexError') ;
2 changes: 1 addition & 1 deletion src/KeyError.js
@@ -1,3 +1,3 @@
import customError from './customError' ;
import customError from "./customError.js" ;

export default customError('KeyError') ;
2 changes: 1 addition & 1 deletion src/NotImplementedError.js
@@ -1,3 +1,3 @@
import customError from './customError' ;
import customError from "./customError.js" ;

export default customError('NotImplementedError') ;
2 changes: 1 addition & 1 deletion src/StopIteration.js
@@ -1,3 +1,3 @@
import customError from './customError' ;
import customError from "./customError.js" ;

export default customError('StopIteration') ;
2 changes: 1 addition & 1 deletion src/ValueError.js
@@ -1,3 +1,3 @@
import customError from './customError' ;
import customError from "./customError.js" ;

export default customError('ValueError') ;
4 changes: 2 additions & 2 deletions src/customError.js
@@ -1,5 +1,5 @@
import Error from './Error' ;
import extendError from './extendError' ;
import Error from "./Error.js" ;
import extendError from "./extendError.js" ;

const customError = name => extendError( Error , name ) ;
export default customError;
2 changes: 1 addition & 1 deletion test/src/error.js
Expand Up @@ -9,7 +9,7 @@ import {
NotImplementedError ,
ValueError ,
StopIteration ,
} from '../../src' ;
} from "../../src/index.js" ;

const errors = [
Error ,
Expand Down

0 comments on commit a93125b

Please sign in to comment.