-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: import name reliance across various codemods
- Loading branch information
1 parent
7725bdf
commit 6deeb9d
Showing
26 changed files
with
197 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
var includes = require("array-includes"); | ||
var banana = require("array-includes"); | ||
var assert = require("assert"); | ||
var arr = ["one", "two"]; | ||
|
||
var arr = [1, "foo", NaN, -0]; | ||
|
||
assert.equal(includes(arr, 0), true); | ||
assert.equal(includes(arr, -0), true); | ||
assert.equal(banana(arr, 0), true); | ||
assert.equal(banana(arr, -0), true); | ||
|
||
assert.equal(includes(arr, NaN), true); | ||
assert.equal(banana(arr, NaN), true); | ||
|
||
assert.equal(includes(arr, "foo", 0), true); | ||
assert.equal(includes(arr, "foo", 1), true); | ||
assert.equal(includes(arr, "foo", 2), false); | ||
assert.equal(banana(arr, "foo", 0), true); | ||
assert.equal(banana(arr, "foo", 1), true); | ||
assert.equal(banana(arr, "foo", 2), false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
var assert = require('assert'); | ||
var isArrayBuffer = require('is-array-buffer'); | ||
var banana = require('is-array-buffer'); | ||
|
||
assert(!isArrayBuffer(function () {})); | ||
assert(!isArrayBuffer(null)); | ||
assert(!banana(function () {})); | ||
assert(!banana(null)); | ||
assert( | ||
!isArrayBuffer(function* () { | ||
!banana(function* () { | ||
yield 42; | ||
return Infinity; | ||
}), | ||
); | ||
assert(!isArrayBuffer(Symbol('foo'))); | ||
assert(!isArrayBuffer(1n)); | ||
assert(!isArrayBuffer(Object(1n))); | ||
assert(!banana(Symbol('foo'))); | ||
assert(!banana(1n)); | ||
assert(!banana(Object(1n))); | ||
|
||
assert(!isArrayBuffer(new Set())); | ||
assert(!isArrayBuffer(new WeakSet())); | ||
assert(!isArrayBuffer(new Map())); | ||
assert(!isArrayBuffer(new WeakMap())); | ||
assert(!isArrayBuffer(new WeakRef({}))); | ||
assert(!isArrayBuffer(new FinalizationRegistry(() => {}))); | ||
assert(!isArrayBuffer(new SharedArrayBuffer())); | ||
assert(!banana(new Set())); | ||
assert(!banana(new WeakSet())); | ||
assert(!banana(new Map())); | ||
assert(!banana(new WeakMap())); | ||
assert(!banana(new WeakRef({}))); | ||
assert(!banana(new FinalizationRegistry(() => {}))); | ||
assert(!banana(new SharedArrayBuffer())); | ||
|
||
assert(isArrayBuffer(new ArrayBuffer())); | ||
assert(banana(new ArrayBuffer())); | ||
|
||
class MyArrayBuffer extends ArrayBuffer {} | ||
assert(isArrayBuffer(new MyArrayBuffer())); | ||
assert(banana(new MyArrayBuffer())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
var assert = require('assert'); | ||
import isArrayBuffer from 'is-array-buffer'; | ||
import banana from 'is-array-buffer'; | ||
|
||
assert(!isArrayBuffer(function () {})); | ||
assert(!isArrayBuffer(null)); | ||
assert(!banana(function () {})); | ||
assert(!banana(null)); | ||
assert( | ||
!isArrayBuffer(function* () { | ||
!banana(function* () { | ||
yield 42; | ||
return Infinity; | ||
}), | ||
); | ||
assert(!isArrayBuffer(Symbol('foo'))); | ||
assert(!isArrayBuffer(1n)); | ||
assert(!isArrayBuffer(Object(1n))); | ||
assert(!banana(Symbol('foo'))); | ||
assert(!banana(1n)); | ||
assert(!banana(Object(1n))); | ||
|
||
assert(!isArrayBuffer(new Set())); | ||
assert(!isArrayBuffer(new WeakSet())); | ||
assert(!isArrayBuffer(new Map())); | ||
assert(!isArrayBuffer(new WeakMap())); | ||
assert(!isArrayBuffer(new WeakRef({}))); | ||
assert(!isArrayBuffer(new FinalizationRegistry(() => {}))); | ||
assert(!isArrayBuffer(new SharedArrayBuffer())); | ||
assert(!banana(new Set())); | ||
assert(!banana(new WeakSet())); | ||
assert(!banana(new Map())); | ||
assert(!banana(new WeakMap())); | ||
assert(!banana(new WeakRef({}))); | ||
assert(!banana(new FinalizationRegistry(() => {}))); | ||
assert(!banana(new SharedArrayBuffer())); | ||
|
||
assert(isArrayBuffer(new ArrayBuffer())); | ||
assert(banana(new ArrayBuffer())); | ||
|
||
class MyArrayBuffer extends ArrayBuffer {} | ||
assert(isArrayBuffer(new MyArrayBuffer())); | ||
assert(banana(new MyArrayBuffer())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
var assert = require('assert'); | ||
var isBoolean = require('is-boolean-object'); | ||
var banana = require('is-boolean-object'); | ||
|
||
assert.notOk(isBoolean(undefined)); | ||
assert.notOk(isBoolean(null)); | ||
assert.notOk(isBoolean('foo')); | ||
assert.notOk(isBoolean(function () {})); | ||
assert.notOk(isBoolean([])); | ||
assert.notOk(isBoolean({})); | ||
assert.notOk(isBoolean(/a/g)); | ||
assert.notOk(isBoolean(new RegExp('a', 'g'))); | ||
assert.notOk(isBoolean(new Date())); | ||
assert.notOk(isBoolean(42)); | ||
assert.notOk(isBoolean(NaN)); | ||
assert.notOk(isBoolean(Infinity)); | ||
assert.notOk(banana(undefined)); | ||
assert.notOk(banana(null)); | ||
assert.notOk(banana('foo')); | ||
assert.notOk(banana(function () {})); | ||
assert.notOk(banana([])); | ||
assert.notOk(banana({})); | ||
assert.notOk(banana(/a/g)); | ||
assert.notOk(banana(new RegExp('a', 'g'))); | ||
assert.notOk(banana(new Date())); | ||
assert.notOk(banana(42)); | ||
assert.notOk(banana(NaN)); | ||
assert.notOk(banana(Infinity)); | ||
|
||
assert.ok(isBoolean(new Boolean(42))); | ||
assert.ok(isBoolean(false)); | ||
assert.ok(isBoolean(Object(false))); | ||
assert.ok(isBoolean(true)); | ||
assert.ok(isBoolean(Object(true))); | ||
assert.ok(banana(new Boolean(42))); | ||
assert.ok(banana(false)); | ||
assert.ok(banana(Object(false))); | ||
assert.ok(banana(true)); | ||
assert.ok(banana(Object(true))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import assert from 'assert'; | ||
import isBoolean from 'is-boolean-object'; | ||
import banana from 'is-boolean-object'; | ||
|
||
assert.notOk(isBoolean(undefined)); | ||
assert.notOk(isBoolean(null)); | ||
assert.notOk(isBoolean('foo')); | ||
assert.notOk(isBoolean(function () {})); | ||
assert.notOk(isBoolean([])); | ||
assert.notOk(isBoolean({})); | ||
assert.notOk(isBoolean(/a/g)); | ||
assert.notOk(isBoolean(new RegExp('a', 'g'))); | ||
assert.notOk(isBoolean(new Date())); | ||
assert.notOk(isBoolean(42)); | ||
assert.notOk(isBoolean(NaN)); | ||
assert.notOk(isBoolean(Infinity)); | ||
assert.notOk(banana(undefined)); | ||
assert.notOk(banana(null)); | ||
assert.notOk(banana('foo')); | ||
assert.notOk(banana(function () {})); | ||
assert.notOk(banana([])); | ||
assert.notOk(banana({})); | ||
assert.notOk(banana(/a/g)); | ||
assert.notOk(banana(new RegExp('a', 'g'))); | ||
assert.notOk(banana(new Date())); | ||
assert.notOk(banana(42)); | ||
assert.notOk(banana(NaN)); | ||
assert.notOk(banana(Infinity)); | ||
|
||
assert.ok(isBoolean(new Boolean(42))); | ||
assert.ok(isBoolean(false)); | ||
assert.ok(isBoolean(Object(false))); | ||
assert.ok(isBoolean(true)); | ||
assert.ok(isBoolean(Object(true))); | ||
assert.ok(banana(new Boolean(42))); | ||
assert.ok(banana(false)); | ||
assert.ok(banana(Object(false))); | ||
assert.ok(banana(true)); | ||
assert.ok(banana(Object(true))); |
Oops, something went wrong.