-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Latest sync including AsyncNodePlugin (#263)
* everything minus language, internal plugins, async * this works * lint * update yarn version according to readme * revert yarn version * remove resolutions * fix flow test * fix android test * temporarily disable applitools * try again after updating api key * not use latest version of bundler because it requires newer ruby version * update iOS tests to transition inside afterTransition (#268) update tests to transition inside afterTransition Co-authored-by: zwu01 <nancy_wu1@intuit.com> * remove comment block * lint * modify long text test * lint --------- Co-authored-by: brocollie08 <sentony03@gmail.com> Co-authored-by: nancywu1 <66387473+nancywu1@users.noreply.github.com> Co-authored-by: zwu01 <nancy_wu1@intuit.com>
- Loading branch information
1 parent
1500ba3
commit 7c26e7b
Showing
26 changed files
with
777 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { Node } from './types'; | ||
|
||
/** Check to see if the object contains async */ | ||
export function hasAsync(obj: object): boolean { | ||
return Object.prototype.hasOwnProperty.call(obj, 'async'); | ||
} | ||
|
||
/** Get the ID of the Node if there is one */ | ||
export function getNodeID(node?: Node.Node | null): string | undefined { | ||
if (!node) { | ||
return; | ||
} | ||
|
||
if ( | ||
'value' in node && | ||
typeof node.value === 'object' && | ||
typeof node.value?.id === 'string' | ||
) { | ||
return node.value.id; | ||
} | ||
} |
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
Oops, something went wrong.