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/make-github-pseudonymous-again/rejuvenate/blob/1e99a03141f51bbb455be0733469df94f868e671/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 Jun 27, 2022
1 parent c9a0d76 commit df46f10
Show file tree
Hide file tree
Showing 26 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/isArray.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isInstance from './isInstance';
import isInstance from './isInstance.js';

const isArray = (x) => isInstance(Array, x);
export default isArray;
2 changes: 1 addition & 1 deletion src/isBoolean.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isInstance from './isInstance';
import isInstance from './isInstance.js';

const isBoolean = (x) => isInstance(Boolean, x);
export default isBoolean;
2 changes: 1 addition & 1 deletion src/isDate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isInstance from './isInstance';
import isInstance from './isInstance.js';

const isDate = (x) => isInstance(Date, x);
export default isDate;
2 changes: 1 addition & 1 deletion src/isFunction.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isInstance from './isInstance';
import isInstance from './isInstance.js';

const isFunction = ( value ) => isInstance( Function, value );
export default isFunction;
2 changes: 1 addition & 1 deletion src/isInt.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isFinite from './isFinite';
import isFinite from './isFinite.js';

const isInt = (x) => isFinite(x) && (x % 1 === 0);
export default isInt;
2 changes: 1 addition & 1 deletion src/isInt32.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isFinite from './isFinite';
import isFinite from './isFinite.js';

const isInt32 = (x) => isFinite(x) && x === (x | 0);
export default isInt32;
2 changes: 1 addition & 1 deletion src/isNumber.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isInstance from './isInstance';
import isInstance from './isInstance.js';

const isNumber = (x) => isInstance(Number, x);
export default isNumber;
2 changes: 1 addition & 1 deletion src/isObject.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isInstance from './isInstance';
import isInstance from './isInstance.js';

const isObject = (x) => isInstance(Object, x);
export default isObject;
2 changes: 1 addition & 1 deletion src/isRegExp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isInstance from './isInstance';
import isInstance from './isInstance.js';

const isRegExp = (x) => isInstance(RegExp, x);
export default isRegExp;
2 changes: 1 addition & 1 deletion src/isString.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isInstance from './isInstance';
import isInstance from './isInstance.js';

const isString = (x) => isInstance(String, x);
export default isString;
2 changes: 1 addition & 1 deletion test/src/isArray.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import {isArray, isObject} from '../../src';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isArray( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isBoolean.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isBoolean} from '../../src';
import {isArray, isObject} from '../../src';
import {isBoolean} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isBoolean( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isDate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isDate} from '../../src';
import {isArray, isObject} from '../../src';
import {isDate} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isDate( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isFinite.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isFinite} from '../../src';
import {isArray, isObject} from '../../src';
import {isFinite} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isFinite( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isFunction.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isFunction} from '../../src';
import {isArray, isObject} from '../../src';
import {isFunction} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isFunction( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isInt.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isInt} from '../../src';
import {isArray, isObject} from '../../src';
import {isInt} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isInt( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isInt32.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isInt32} from '../../src';
import {isArray, isObject} from '../../src';
import {isInt32} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isInt32( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isNaN.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isNaN} from '../../src';
import {isArray, isObject} from '../../src';
import {isNaN} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isNaN( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isNegativeInfinity.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isNegativeInfinity} from '../../src';
import {isArray, isObject} from '../../src';
import {isNegativeInfinity} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isNegativeInfinity( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isNull.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isNull} from '../../src';
import {isArray, isObject} from '../../src';
import {isNull} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isNull( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isNumber.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isNumber} from '../../src';
import {isArray, isObject} from '../../src';
import {isNumber} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isNumber( n ), v );
Expand Down
2 changes: 1 addition & 1 deletion test/src/isObject.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import {isArray, isObject} from '../../src';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isObject( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isPositiveInfinity.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isPositiveInfinity} from '../../src';
import {isArray, isObject} from '../../src';
import {isPositiveInfinity} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isPositiveInfinity( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isRegExp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isRegExp} from '../../src';
import {isArray, isObject} from '../../src';
import {isRegExp} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isRegExp( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isString.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isString} from '../../src';
import {isArray, isObject} from '../../src';
import {isString} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isString( n ), v );
Expand Down
4 changes: 2 additions & 2 deletions test/src/isUndefined.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava';
import {isUndefined} from '../../src';
import {isArray, isObject} from '../../src';
import {isUndefined} from '../../src/index.js';
import {isArray, isObject} from '../../src/index.js';

const macro = ( t, n, v ) => {
t.deepEqual( isUndefined( n ), v );
Expand Down

0 comments on commit df46f10

Please sign in to comment.