Best JavaScript code snippet using stryker-parent
relay-compiler_vx.x.x.js
Source:relay-compiler_vx.x.x.js
1// flow-typed signature: b23b54afd020d28c398da83fbbafac882// flow-typed version: <<STUB>>/relay-compiler_v^5.0.0/flow_v0.104.03/**4 * This is an autogenerated libdef stub for:5 *6 * 'relay-compiler'7 *8 * Fill this stub out by replacing all the `any` types.9 *10 * Once filled out, we encourage you to share your work with the11 * community by sending a pull request to:12 * https://github.com/flowtype/flow-typed13 */14declare module 'relay-compiler' {15 declare module.exports: any;16}17/**18 * We include stubs for each file inside this npm package in case you need to19 * require those files directly. Feel free to delete any files that aren't20 * needed.21 */22declare module 'relay-compiler/lib/areEqualOSS' {23 declare module.exports: any;24}25declare module 'relay-compiler/lib/ASTCache' {26 declare module.exports: any;27}28declare module 'relay-compiler/lib/ASTConvert' {29 declare module.exports: any;30}31declare module 'relay-compiler/lib/ClientExtensionsTransform' {32 declare module.exports: any;33}34declare module 'relay-compiler/lib/CodegenDirectory' {35 declare module.exports: any;36}37declare module 'relay-compiler/lib/CodegenRunner' {38 declare module.exports: any;39}40declare module 'relay-compiler/lib/CodegenTypes' {41 declare module.exports: any;42}43declare module 'relay-compiler/lib/CodegenWatcher' {44 declare module.exports: any;45}46declare module 'relay-compiler/lib/CodeMarker' {47 declare module.exports: any;48}49declare module 'relay-compiler/lib/compileRelayArtifacts' {50 declare module.exports: any;51}52declare module 'relay-compiler/lib/dedupeJSONStringify' {53 declare module.exports: any;54}55declare module 'relay-compiler/lib/deepMergeAssignments' {56 declare module.exports: any;57}58declare module 'relay-compiler/lib/DefaultHandleKey' {59 declare module.exports: any;60}61declare module 'relay-compiler/lib/DotGraphQLParser' {62 declare module.exports: any;63}64declare module 'relay-compiler/lib/filterContextForNode' {65 declare module.exports: any;66}67declare module 'relay-compiler/lib/FilterDirectivesTransform' {68 declare module.exports: any;69}70declare module 'relay-compiler/lib/FindGraphQLTags' {71 declare module.exports: any;72}73declare module 'relay-compiler/lib/FlattenTransform' {74 declare module.exports: any;75}76declare module 'relay-compiler/lib/formatGeneratedModule' {77 declare module.exports: any;78}79declare module 'relay-compiler/lib/getFieldDefinition' {80 declare module.exports: any;81}82declare module 'relay-compiler/lib/getIdentifierForArgumentValue' {83 declare module.exports: any;84}85declare module 'relay-compiler/lib/getIdentifierForSelection' {86 declare module.exports: any;87}88declare module 'relay-compiler/lib/getLiteralArgumentValues' {89 declare module.exports: any;90}91declare module 'relay-compiler/lib/getModuleName' {92 declare module.exports: any;93}94declare module 'relay-compiler/lib/getNormalizationOperationName' {95 declare module.exports: any;96}97declare module 'relay-compiler/lib/GraphQLCompilerContext' {98 declare module.exports: any;99}100declare module 'relay-compiler/lib/GraphQLCompilerProfiler' {101 declare module.exports: any;102}103declare module 'relay-compiler/lib/GraphQLCompilerUserError' {104 declare module.exports: any;105}106declare module 'relay-compiler/lib/GraphQLConsoleReporter' {107 declare module.exports: any;108}109declare module 'relay-compiler/lib/GraphQLDerivedFromMetadata' {110 declare module.exports: any;111}112declare module 'relay-compiler/lib/GraphQLIR' {113 declare module.exports: any;114}115declare module 'relay-compiler/lib/GraphQLIRPrinter' {116 declare module.exports: any;117}118declare module 'relay-compiler/lib/GraphQLIRTransformer' {119 declare module.exports: any;120}121declare module 'relay-compiler/lib/GraphQLIRTransforms' {122 declare module.exports: any;123}124declare module 'relay-compiler/lib/GraphQLIRValidator' {125 declare module.exports: any;126}127declare module 'relay-compiler/lib/GraphQLIRVisitor' {128 declare module.exports: any;129}130declare module 'relay-compiler/lib/GraphQLMultiReporter' {131 declare module.exports: any;132}133declare module 'relay-compiler/lib/GraphQLReporter' {134 declare module.exports: any;135}136declare module 'relay-compiler/lib/GraphQLSchemaUtils' {137 declare module.exports: any;138}139declare module 'relay-compiler/lib/GraphQLWatchmanClient' {140 declare module.exports: any;141}142declare module 'relay-compiler/lib' {143 declare module.exports: any;144}145declare module 'relay-compiler/lib/inferRootArgumentDefinitions' {146 declare module.exports: any;147}148declare module 'relay-compiler/lib/InlineFragmentsTransform' {149 declare module.exports: any;150}151declare module 'relay-compiler/lib/isEquivalentType' {152 declare module.exports: any;153}154declare module 'relay-compiler/lib/murmurHash' {155 declare module.exports: any;156}157declare module 'relay-compiler/lib/NormalizationCodeGenerator' {158 declare module.exports: any;159}160declare module 'relay-compiler/lib/nullthrowsOSS' {161 declare module.exports: any;162}163declare module 'relay-compiler/lib/partitionArray' {164 declare module.exports: any;165}166declare module 'relay-compiler/lib/ReaderCodeGenerator' {167 declare module.exports: any;168}169declare module 'relay-compiler/lib/RefineOperationVariablesTransform' {170 declare module.exports: any;171}172declare module 'relay-compiler/lib/RelayApplyFragmentArgumentTransform' {173 declare module.exports: any;174}175declare module 'relay-compiler/lib/RelayCodeGenerator' {176 declare module.exports: any;177}178declare module 'relay-compiler/lib/RelayCompilerBin' {179 declare module.exports: any;180}181declare module 'relay-compiler/lib/RelayCompilerCache' {182 declare module.exports: any;183}184declare module 'relay-compiler/lib/RelayCompilerError' {185 declare module.exports: any;186}187declare module 'relay-compiler/lib/RelayCompilerMain' {188 declare module.exports: any;189}190declare module 'relay-compiler/lib/RelayCompilerScope' {191 declare module.exports: any;192}193declare module 'relay-compiler/lib/RelayConnectionConstants' {194 declare module.exports: any;195}196declare module 'relay-compiler/lib/RelayConnectionTransform' {197 declare module.exports: any;198}199declare module 'relay-compiler/lib/RelayDeferStreamTransform' {200 declare module.exports: any;201}202declare module 'relay-compiler/lib/RelayDirectiveClientExtensionValidationTransform' {203 declare module.exports: any;204}205declare module 'relay-compiler/lib/RelayFieldHandleTransform' {206 declare module.exports: any;207}208declare module 'relay-compiler/lib/RelayFileWriter' {209 declare module.exports: any;210}211declare module 'relay-compiler/lib/RelayFindGraphQLTags' {212 declare module.exports: any;213}214declare module 'relay-compiler/lib/RelayFlowBabelFactories' {215 declare module.exports: any;216}217declare module 'relay-compiler/lib/RelayFlowGenerator' {218 declare module.exports: any;219}220declare module 'relay-compiler/lib/RelayFlowTypeTransformers' {221 declare module.exports: any;222}223declare module 'relay-compiler/lib/RelayGenerateIDFieldTransform' {224 declare module.exports: any;225}226declare module 'relay-compiler/lib/RelayGenerateTypeNameTransform' {227 declare module.exports: any;228}229declare module 'relay-compiler/lib/RelayGraphQLEnumsGenerator' {230 declare module.exports: any;231}232declare module 'relay-compiler/lib/RelayIRTransforms' {233 declare module.exports: any;234}235declare module 'relay-compiler/lib/RelayLanguagePluginInterface' {236 declare module.exports: any;237}238declare module 'relay-compiler/lib/RelayLanguagePluginJavaScript' {239 declare module.exports: any;240}241declare module 'relay-compiler/lib/RelayMaskTransform' {242 declare module.exports: any;243}244declare module 'relay-compiler/lib/RelayMatchTransform' {245 declare module.exports: any;246}247declare module 'relay-compiler/lib/RelayParser' {248 declare module.exports: any;249}250declare module 'relay-compiler/lib/RelayRefetchableFragmentTransform' {251 declare module.exports: any;252}253declare module 'relay-compiler/lib/RelayRelayDirectiveTransform' {254 declare module.exports: any;255}256declare module 'relay-compiler/lib/RelaySkipHandleFieldTransform' {257 declare module.exports: any;258}259declare module 'relay-compiler/lib/RelaySourceModuleParser' {260 declare module.exports: any;261}262declare module 'relay-compiler/lib/RelaySplitModuleImportTransform' {263 declare module.exports: any;264}265declare module 'relay-compiler/lib/RelayTestOperationTransform' {266 declare module.exports: any;267}268declare module 'relay-compiler/lib/RelayTransformUtils' {269 declare module.exports: any;270}271declare module 'relay-compiler/lib/RelayValidator' {272 declare module.exports: any;273}274declare module 'relay-compiler/lib/Rollout' {275 declare module.exports: any;276}277declare module 'relay-compiler/lib/SkipClientExtensionsTransform' {278 declare module.exports: any;279}280declare module 'relay-compiler/lib/SkipRedundantNodesTransform' {281 declare module.exports: any;282}283declare module 'relay-compiler/lib/SkipUnreachableNodeTransform' {284 declare module.exports: any;285}286declare module 'relay-compiler/lib/SourceControl' {287 declare module.exports: any;288}289declare module 'relay-compiler/lib/writeRelayGeneratedFile' {290 declare module.exports: any;291}292declare module 'relay-compiler/relay-compiler' {293 declare module.exports: any;294}295declare module 'relay-compiler/relay-compiler.min' {296 declare module.exports: any;297}298// Filename aliases299declare module 'relay-compiler/index' {300 declare module.exports: $Exports<'relay-compiler'>;301}302declare module 'relay-compiler/index.js' {303 declare module.exports: $Exports<'relay-compiler'>;304}305declare module 'relay-compiler/lib/areEqualOSS.js' {306 declare module.exports: $Exports<'relay-compiler/lib/areEqualOSS'>;307}308declare module 'relay-compiler/lib/ASTCache.js' {309 declare module.exports: $Exports<'relay-compiler/lib/ASTCache'>;310}311declare module 'relay-compiler/lib/ASTConvert.js' {312 declare module.exports: $Exports<'relay-compiler/lib/ASTConvert'>;313}314declare module 'relay-compiler/lib/ClientExtensionsTransform.js' {315 declare module.exports: $Exports<'relay-compiler/lib/ClientExtensionsTransform'>;316}317declare module 'relay-compiler/lib/CodegenDirectory.js' {318 declare module.exports: $Exports<'relay-compiler/lib/CodegenDirectory'>;319}320declare module 'relay-compiler/lib/CodegenRunner.js' {321 declare module.exports: $Exports<'relay-compiler/lib/CodegenRunner'>;322}323declare module 'relay-compiler/lib/CodegenTypes.js' {324 declare module.exports: $Exports<'relay-compiler/lib/CodegenTypes'>;325}326declare module 'relay-compiler/lib/CodegenWatcher.js' {327 declare module.exports: $Exports<'relay-compiler/lib/CodegenWatcher'>;328}329declare module 'relay-compiler/lib/CodeMarker.js' {330 declare module.exports: $Exports<'relay-compiler/lib/CodeMarker'>;331}332declare module 'relay-compiler/lib/compileRelayArtifacts.js' {333 declare module.exports: $Exports<'relay-compiler/lib/compileRelayArtifacts'>;334}335declare module 'relay-compiler/lib/dedupeJSONStringify.js' {336 declare module.exports: $Exports<'relay-compiler/lib/dedupeJSONStringify'>;337}338declare module 'relay-compiler/lib/deepMergeAssignments.js' {339 declare module.exports: $Exports<'relay-compiler/lib/deepMergeAssignments'>;340}341declare module 'relay-compiler/lib/DefaultHandleKey.js' {342 declare module.exports: $Exports<'relay-compiler/lib/DefaultHandleKey'>;343}344declare module 'relay-compiler/lib/DotGraphQLParser.js' {345 declare module.exports: $Exports<'relay-compiler/lib/DotGraphQLParser'>;346}347declare module 'relay-compiler/lib/filterContextForNode.js' {348 declare module.exports: $Exports<'relay-compiler/lib/filterContextForNode'>;349}350declare module 'relay-compiler/lib/FilterDirectivesTransform.js' {351 declare module.exports: $Exports<'relay-compiler/lib/FilterDirectivesTransform'>;352}353declare module 'relay-compiler/lib/FindGraphQLTags.js' {354 declare module.exports: $Exports<'relay-compiler/lib/FindGraphQLTags'>;355}356declare module 'relay-compiler/lib/FlattenTransform.js' {357 declare module.exports: $Exports<'relay-compiler/lib/FlattenTransform'>;358}359declare module 'relay-compiler/lib/formatGeneratedModule.js' {360 declare module.exports: $Exports<'relay-compiler/lib/formatGeneratedModule'>;361}362declare module 'relay-compiler/lib/getFieldDefinition.js' {363 declare module.exports: $Exports<'relay-compiler/lib/getFieldDefinition'>;364}365declare module 'relay-compiler/lib/getIdentifierForArgumentValue.js' {366 declare module.exports: $Exports<'relay-compiler/lib/getIdentifierForArgumentValue'>;367}368declare module 'relay-compiler/lib/getIdentifierForSelection.js' {369 declare module.exports: $Exports<'relay-compiler/lib/getIdentifierForSelection'>;370}371declare module 'relay-compiler/lib/getLiteralArgumentValues.js' {372 declare module.exports: $Exports<'relay-compiler/lib/getLiteralArgumentValues'>;373}374declare module 'relay-compiler/lib/getModuleName.js' {375 declare module.exports: $Exports<'relay-compiler/lib/getModuleName'>;376}377declare module 'relay-compiler/lib/getNormalizationOperationName.js' {378 declare module.exports: $Exports<'relay-compiler/lib/getNormalizationOperationName'>;379}380declare module 'relay-compiler/lib/GraphQLCompilerContext.js' {381 declare module.exports: $Exports<'relay-compiler/lib/GraphQLCompilerContext'>;382}383declare module 'relay-compiler/lib/GraphQLCompilerProfiler.js' {384 declare module.exports: $Exports<'relay-compiler/lib/GraphQLCompilerProfiler'>;385}386declare module 'relay-compiler/lib/GraphQLCompilerUserError.js' {387 declare module.exports: $Exports<'relay-compiler/lib/GraphQLCompilerUserError'>;388}389declare module 'relay-compiler/lib/GraphQLConsoleReporter.js' {390 declare module.exports: $Exports<'relay-compiler/lib/GraphQLConsoleReporter'>;391}392declare module 'relay-compiler/lib/GraphQLDerivedFromMetadata.js' {393 declare module.exports: $Exports<'relay-compiler/lib/GraphQLDerivedFromMetadata'>;394}395declare module 'relay-compiler/lib/GraphQLIR.js' {396 declare module.exports: $Exports<'relay-compiler/lib/GraphQLIR'>;397}398declare module 'relay-compiler/lib/GraphQLIRPrinter.js' {399 declare module.exports: $Exports<'relay-compiler/lib/GraphQLIRPrinter'>;400}401declare module 'relay-compiler/lib/GraphQLIRTransformer.js' {402 declare module.exports: $Exports<'relay-compiler/lib/GraphQLIRTransformer'>;403}404declare module 'relay-compiler/lib/GraphQLIRTransforms.js' {405 declare module.exports: $Exports<'relay-compiler/lib/GraphQLIRTransforms'>;406}407declare module 'relay-compiler/lib/GraphQLIRValidator.js' {408 declare module.exports: $Exports<'relay-compiler/lib/GraphQLIRValidator'>;409}410declare module 'relay-compiler/lib/GraphQLIRVisitor.js' {411 declare module.exports: $Exports<'relay-compiler/lib/GraphQLIRVisitor'>;412}413declare module 'relay-compiler/lib/GraphQLMultiReporter.js' {414 declare module.exports: $Exports<'relay-compiler/lib/GraphQLMultiReporter'>;415}416declare module 'relay-compiler/lib/GraphQLReporter.js' {417 declare module.exports: $Exports<'relay-compiler/lib/GraphQLReporter'>;418}419declare module 'relay-compiler/lib/GraphQLSchemaUtils.js' {420 declare module.exports: $Exports<'relay-compiler/lib/GraphQLSchemaUtils'>;421}422declare module 'relay-compiler/lib/GraphQLWatchmanClient.js' {423 declare module.exports: $Exports<'relay-compiler/lib/GraphQLWatchmanClient'>;424}425declare module 'relay-compiler/lib/index' {426 declare module.exports: $Exports<'relay-compiler/lib'>;427}428declare module 'relay-compiler/lib/index.js' {429 declare module.exports: $Exports<'relay-compiler/lib'>;430}431declare module 'relay-compiler/lib/inferRootArgumentDefinitions.js' {432 declare module.exports: $Exports<'relay-compiler/lib/inferRootArgumentDefinitions'>;433}434declare module 'relay-compiler/lib/InlineFragmentsTransform.js' {435 declare module.exports: $Exports<'relay-compiler/lib/InlineFragmentsTransform'>;436}437declare module 'relay-compiler/lib/isEquivalentType.js' {438 declare module.exports: $Exports<'relay-compiler/lib/isEquivalentType'>;439}440declare module 'relay-compiler/lib/murmurHash.js' {441 declare module.exports: $Exports<'relay-compiler/lib/murmurHash'>;442}443declare module 'relay-compiler/lib/NormalizationCodeGenerator.js' {444 declare module.exports: $Exports<'relay-compiler/lib/NormalizationCodeGenerator'>;445}446declare module 'relay-compiler/lib/nullthrowsOSS.js' {447 declare module.exports: $Exports<'relay-compiler/lib/nullthrowsOSS'>;448}449declare module 'relay-compiler/lib/partitionArray.js' {450 declare module.exports: $Exports<'relay-compiler/lib/partitionArray'>;451}452declare module 'relay-compiler/lib/ReaderCodeGenerator.js' {453 declare module.exports: $Exports<'relay-compiler/lib/ReaderCodeGenerator'>;454}455declare module 'relay-compiler/lib/RefineOperationVariablesTransform.js' {456 declare module.exports: $Exports<'relay-compiler/lib/RefineOperationVariablesTransform'>;457}458declare module 'relay-compiler/lib/RelayApplyFragmentArgumentTransform.js' {459 declare module.exports: $Exports<'relay-compiler/lib/RelayApplyFragmentArgumentTransform'>;460}461declare module 'relay-compiler/lib/RelayCodeGenerator.js' {462 declare module.exports: $Exports<'relay-compiler/lib/RelayCodeGenerator'>;463}464declare module 'relay-compiler/lib/RelayCompilerBin.js' {465 declare module.exports: $Exports<'relay-compiler/lib/RelayCompilerBin'>;466}467declare module 'relay-compiler/lib/RelayCompilerCache.js' {468 declare module.exports: $Exports<'relay-compiler/lib/RelayCompilerCache'>;469}470declare module 'relay-compiler/lib/RelayCompilerError.js' {471 declare module.exports: $Exports<'relay-compiler/lib/RelayCompilerError'>;472}473declare module 'relay-compiler/lib/RelayCompilerMain.js' {474 declare module.exports: $Exports<'relay-compiler/lib/RelayCompilerMain'>;475}476declare module 'relay-compiler/lib/RelayCompilerScope.js' {477 declare module.exports: $Exports<'relay-compiler/lib/RelayCompilerScope'>;478}479declare module 'relay-compiler/lib/RelayConnectionConstants.js' {480 declare module.exports: $Exports<'relay-compiler/lib/RelayConnectionConstants'>;481}482declare module 'relay-compiler/lib/RelayConnectionTransform.js' {483 declare module.exports: $Exports<'relay-compiler/lib/RelayConnectionTransform'>;484}485declare module 'relay-compiler/lib/RelayDeferStreamTransform.js' {486 declare module.exports: $Exports<'relay-compiler/lib/RelayDeferStreamTransform'>;487}488declare module 'relay-compiler/lib/RelayDirectiveClientExtensionValidationTransform.js' {489 declare module.exports: $Exports<'relay-compiler/lib/RelayDirectiveClientExtensionValidationTransform'>;490}491declare module 'relay-compiler/lib/RelayFieldHandleTransform.js' {492 declare module.exports: $Exports<'relay-compiler/lib/RelayFieldHandleTransform'>;493}494declare module 'relay-compiler/lib/RelayFileWriter.js' {495 declare module.exports: $Exports<'relay-compiler/lib/RelayFileWriter'>;496}497declare module 'relay-compiler/lib/RelayFindGraphQLTags.js' {498 declare module.exports: $Exports<'relay-compiler/lib/RelayFindGraphQLTags'>;499}500declare module 'relay-compiler/lib/RelayFlowBabelFactories.js' {501 declare module.exports: $Exports<'relay-compiler/lib/RelayFlowBabelFactories'>;502}503declare module 'relay-compiler/lib/RelayFlowGenerator.js' {504 declare module.exports: $Exports<'relay-compiler/lib/RelayFlowGenerator'>;505}506declare module 'relay-compiler/lib/RelayFlowTypeTransformers.js' {507 declare module.exports: $Exports<'relay-compiler/lib/RelayFlowTypeTransformers'>;508}509declare module 'relay-compiler/lib/RelayGenerateIDFieldTransform.js' {510 declare module.exports: $Exports<'relay-compiler/lib/RelayGenerateIDFieldTransform'>;511}512declare module 'relay-compiler/lib/RelayGenerateTypeNameTransform.js' {513 declare module.exports: $Exports<'relay-compiler/lib/RelayGenerateTypeNameTransform'>;514}515declare module 'relay-compiler/lib/RelayGraphQLEnumsGenerator.js' {516 declare module.exports: $Exports<'relay-compiler/lib/RelayGraphQLEnumsGenerator'>;517}518declare module 'relay-compiler/lib/RelayIRTransforms.js' {519 declare module.exports: $Exports<'relay-compiler/lib/RelayIRTransforms'>;520}521declare module 'relay-compiler/lib/RelayLanguagePluginInterface.js' {522 declare module.exports: $Exports<'relay-compiler/lib/RelayLanguagePluginInterface'>;523}524declare module 'relay-compiler/lib/RelayLanguagePluginJavaScript.js' {525 declare module.exports: $Exports<'relay-compiler/lib/RelayLanguagePluginJavaScript'>;526}527declare module 'relay-compiler/lib/RelayMaskTransform.js' {528 declare module.exports: $Exports<'relay-compiler/lib/RelayMaskTransform'>;529}530declare module 'relay-compiler/lib/RelayMatchTransform.js' {531 declare module.exports: $Exports<'relay-compiler/lib/RelayMatchTransform'>;532}533declare module 'relay-compiler/lib/RelayParser.js' {534 declare module.exports: $Exports<'relay-compiler/lib/RelayParser'>;535}536declare module 'relay-compiler/lib/RelayRefetchableFragmentTransform.js' {537 declare module.exports: $Exports<'relay-compiler/lib/RelayRefetchableFragmentTransform'>;538}539declare module 'relay-compiler/lib/RelayRelayDirectiveTransform.js' {540 declare module.exports: $Exports<'relay-compiler/lib/RelayRelayDirectiveTransform'>;541}542declare module 'relay-compiler/lib/RelaySkipHandleFieldTransform.js' {543 declare module.exports: $Exports<'relay-compiler/lib/RelaySkipHandleFieldTransform'>;544}545declare module 'relay-compiler/lib/RelaySourceModuleParser.js' {546 declare module.exports: $Exports<'relay-compiler/lib/RelaySourceModuleParser'>;547}548declare module 'relay-compiler/lib/RelaySplitModuleImportTransform.js' {549 declare module.exports: $Exports<'relay-compiler/lib/RelaySplitModuleImportTransform'>;550}551declare module 'relay-compiler/lib/RelayTestOperationTransform.js' {552 declare module.exports: $Exports<'relay-compiler/lib/RelayTestOperationTransform'>;553}554declare module 'relay-compiler/lib/RelayTransformUtils.js' {555 declare module.exports: $Exports<'relay-compiler/lib/RelayTransformUtils'>;556}557declare module 'relay-compiler/lib/RelayValidator.js' {558 declare module.exports: $Exports<'relay-compiler/lib/RelayValidator'>;559}560declare module 'relay-compiler/lib/Rollout.js' {561 declare module.exports: $Exports<'relay-compiler/lib/Rollout'>;562}563declare module 'relay-compiler/lib/SkipClientExtensionsTransform.js' {564 declare module.exports: $Exports<'relay-compiler/lib/SkipClientExtensionsTransform'>;565}566declare module 'relay-compiler/lib/SkipRedundantNodesTransform.js' {567 declare module.exports: $Exports<'relay-compiler/lib/SkipRedundantNodesTransform'>;568}569declare module 'relay-compiler/lib/SkipUnreachableNodeTransform.js' {570 declare module.exports: $Exports<'relay-compiler/lib/SkipUnreachableNodeTransform'>;571}572declare module 'relay-compiler/lib/SourceControl.js' {573 declare module.exports: $Exports<'relay-compiler/lib/SourceControl'>;574}575declare module 'relay-compiler/lib/writeRelayGeneratedFile.js' {576 declare module.exports: $Exports<'relay-compiler/lib/writeRelayGeneratedFile'>;577}578declare module 'relay-compiler/relay-compiler.js' {579 declare module.exports: $Exports<'relay-compiler/relay-compiler'>;580}581declare module 'relay-compiler/relay-compiler.min.js' {582 declare module.exports: $Exports<'relay-compiler/relay-compiler.min'>;...
compatConfig.ts
Source:compatConfig.ts
1import { SourceLocation } from '../ast'2import { CompilerError } from '../errors'3import { ParserContext } from '../parse'4import { TransformContext } from '../transform'5export type CompilerCompatConfig = Partial<6 Record<CompilerDeprecationTypes, boolean | 'suppress-warning'>7> & {8 MODE?: 2 | 39}10export interface CompilerCompatOptions {11 compatConfig?: CompilerCompatConfig12}13export const enum CompilerDeprecationTypes {14 COMPILER_IS_ON_ELEMENT = 'COMPILER_IS_ON_ELEMENT',15 COMPILER_V_BIND_SYNC = 'COMPILER_V_BIND_SYNC',16 COMPILER_V_BIND_PROP = 'COMPILER_V_BIND_PROP',17 COMPILER_V_BIND_OBJECT_ORDER = 'COMPILER_V_BIND_OBJECT_ORDER',18 COMPILER_V_ON_NATIVE = 'COMPILER_V_ON_NATIVE',19 COMPILER_V_IF_V_FOR_PRECEDENCE = 'COMPILER_V_IF_V_FOR_PRECEDENCE',20 COMPILER_V_FOR_REF = 'COMPILER_V_FOR_REF',21 COMPILER_NATIVE_TEMPLATE = 'COMPILER_NATIVE_TEMPLATE',22 COMPILER_INLINE_TEMPLATE = 'COMPILER_INLINE_TEMPLATE',23 COMPILER_FILTERS = 'COMPILER_FILTER'24}25type DeprecationData = {26 message: string | ((...args: any[]) => string)27 link?: string28}29const deprecationData: Record<CompilerDeprecationTypes, DeprecationData> = {30 [CompilerDeprecationTypes.COMPILER_IS_ON_ELEMENT]: {31 message:32 `Platform-native elements with "is" prop will no longer be ` +33 `treated as components in Vue 3 unless the "is" value is explicitly ` +34 `prefixed with "vue:".`,35 link: `https://v3.vuejs.org/guide/migration/custom-elements-interop.html`36 },37 [CompilerDeprecationTypes.COMPILER_V_BIND_SYNC]: {38 message: key =>39 `.sync modifier for v-bind has been removed. Use v-model with ` +40 `argument instead. \`v-bind:${key}.sync\` should be changed to ` +41 `\`v-model:${key}\`.`,42 link: `https://v3.vuejs.org/guide/migration/v-model.html`43 },44 [CompilerDeprecationTypes.COMPILER_V_BIND_PROP]: {45 message:46 `.prop modifier for v-bind has been removed and no longer necessary. ` +47 `Vue 3 will automatically set a binding as DOM property when appropriate.`48 },49 [CompilerDeprecationTypes.COMPILER_V_BIND_OBJECT_ORDER]: {50 message:51 `v-bind="obj" usage is now order sensitive and behaves like JavaScript ` +52 `object spread: it will now overwrite an existing non-mergeable attribute ` +53 `that appears before v-bind in the case of conflict. ` +54 `To retain 2.x behavior, move v-bind to make it the first attribute. ` +55 `You can also suppress this warning if the usage is intended.`,56 link: `https://v3.vuejs.org/guide/migration/v-bind.html`57 },58 [CompilerDeprecationTypes.COMPILER_V_ON_NATIVE]: {59 message: `.native modifier for v-on has been removed as is no longer necessary.`,60 link: `https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html`61 },62 [CompilerDeprecationTypes.COMPILER_V_IF_V_FOR_PRECEDENCE]: {63 message:64 `v-if / v-for precedence when used on the same element has changed ` +65 `in Vue 3: v-if now takes higher precedence and will no longer have ` +66 `access to v-for scope variables. It is best to avoid the ambiguity ` +67 `with <template> tags or use a computed property that filters v-for ` +68 `data source.`,69 link: `https://v3.vuejs.org/guide/migration/v-if-v-for.html`70 },71 [CompilerDeprecationTypes.COMPILER_V_FOR_REF]: {72 message:73 `Ref usage on v-for no longer creates array ref values in Vue 3. ` +74 `Consider using function refs or refactor to avoid ref usage altogether.`,75 link: `https://v3.vuejs.org/guide/migration/array-refs.html`76 },77 [CompilerDeprecationTypes.COMPILER_NATIVE_TEMPLATE]: {78 message:79 `<template> with no special directives will render as a native template ` +80 `element instead of its inner content in Vue 3.`81 },82 [CompilerDeprecationTypes.COMPILER_INLINE_TEMPLATE]: {83 message: `"inline-template" has been removed in Vue 3.`,84 link: `https://v3.vuejs.org/guide/migration/inline-template-attribute.html`85 },86 [CompilerDeprecationTypes.COMPILER_FILTERS]: {87 message:88 `filters have been removed in Vue 3. ` +89 `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +90 `Use method calls or computed properties instead.`,91 link: `https://v3.vuejs.org/guide/migration/filters.html`92 }93}94function getCompatValue(95 key: CompilerDeprecationTypes | 'MODE',96 context: ParserContext | TransformContext97) {98 const config = (context as ParserContext).options99 ? (context as ParserContext).options.compatConfig100 : (context as TransformContext).compatConfig101 const value = config && config[key]102 if (key === 'MODE') {103 return value || 3 // compiler defaults to v3 behavior104 } else {105 return value106 }107}108export function isCompatEnabled(109 key: CompilerDeprecationTypes,110 context: ParserContext | TransformContext111) {112 const mode = getCompatValue('MODE', context)113 const value = getCompatValue(key, context)114 // in v3 mode, only enable if explicitly set to true115 // otherwise enable for any non-false value116 return mode === 3 ? value === true : value !== false117}118export function checkCompatEnabled(119 key: CompilerDeprecationTypes,120 context: ParserContext | TransformContext,121 loc: SourceLocation | null,122 ...args: any[]123): boolean {124 const enabled = isCompatEnabled(key, context)125 if (__DEV__ && enabled) {126 warnDeprecation(key, context, loc, ...args)127 }128 return enabled129}130export function warnDeprecation(131 key: CompilerDeprecationTypes,132 context: ParserContext | TransformContext,133 loc: SourceLocation | null,134 ...args: any[]135) {136 const val = getCompatValue(key, context)137 if (val === 'suppress-warning') {138 return139 }140 const { message, link } = deprecationData[key]141 const msg = `(deprecation ${key}) ${142 typeof message === 'function' ? message(...args) : message143 }${link ? `\n Details: ${link}` : ``}`144 const err = new SyntaxError(msg) as CompilerError145 err.code = key146 if (loc) err.loc = loc147 context.onWarn(err)...
webpack.js
Source:webpack.js
1/*2 MIT License http://www.opensource.org/licenses/mit-license.php3 Author Tobias Koppers @sokra4*/5"use strict";6const util = require("util");7const webpackOptionsSchemaCheck = require("../schemas/WebpackOptions.check.js");8const webpackOptionsSchema = require("../schemas/WebpackOptions.json");9const Compiler = require("./Compiler");10const MultiCompiler = require("./MultiCompiler");11const WebpackOptionsApply = require("./WebpackOptionsApply");12const {13 applyWebpackOptionsDefaults,14 applyWebpackOptionsBaseDefaults15} = require("./config/defaults");16const { getNormalizedWebpackOptions } = require("./config/normalization");17const NodeEnvironmentPlugin = require("./node/NodeEnvironmentPlugin");18const memoize = require("./util/memoize");19/** @typedef {import("../declarations/WebpackOptions").WebpackOptions} WebpackOptions */20/** @typedef {import("./Compiler").WatchOptions} WatchOptions */21/** @typedef {import("./MultiCompiler").MultiCompilerOptions} MultiCompilerOptions */22/** @typedef {import("./MultiStats")} MultiStats */23/** @typedef {import("./Stats")} Stats */24const getValidateSchema = memoize(() => require("./validateSchema"));25/**26 * @template T27 * @callback Callback28 * @param {Error=} err29 * @param {T=} stats30 * @returns {void}31 */32/**33 * @param {ReadonlyArray<WebpackOptions>} childOptions options array34 * @param {MultiCompilerOptions} options options35 * @returns {MultiCompiler} a multi-compiler36 */37const createMultiCompiler = (childOptions, options) => {38 const compilers = childOptions.map(options => createCompiler(options));39 const compiler = new MultiCompiler(compilers, options);40 for (const childCompiler of compilers) {41 if (childCompiler.options.dependencies) {42 compiler.setDependencies(43 childCompiler,44 childCompiler.options.dependencies45 );46 }47 }48 return compiler;49};50/**51 * @param {WebpackOptions} rawOptions options object52 * @returns {Compiler} a compiler53 */54const createCompiler = rawOptions => {55 const options = getNormalizedWebpackOptions(rawOptions);56 applyWebpackOptionsBaseDefaults(options);57 const compiler = new Compiler(options.context);58 compiler.options = options;59 new NodeEnvironmentPlugin({60 infrastructureLogging: options.infrastructureLogging61 }).apply(compiler);62 if (Array.isArray(options.plugins)) {63 for (const plugin of options.plugins) {64 if (typeof plugin === "function") {65 plugin.call(compiler, compiler);66 } else {67 plugin.apply(compiler);68 }69 }70 }71 applyWebpackOptionsDefaults(options);72 compiler.hooks.environment.call();73 compiler.hooks.afterEnvironment.call();74 new WebpackOptionsApply().process(options, compiler);75 compiler.hooks.initialize.call();76 return compiler;77};78/**79 * @callback WebpackFunctionSingle80 * @param {WebpackOptions} options options object81 * @param {Callback<Stats>=} callback callback82 * @returns {Compiler} the compiler object83 */84/**85 * @callback WebpackFunctionMulti86 * @param {ReadonlyArray<WebpackOptions> & MultiCompilerOptions} options options objects87 * @param {Callback<MultiStats>=} callback callback88 * @returns {MultiCompiler} the multi compiler object89 */90const webpack = /** @type {WebpackFunctionSingle & WebpackFunctionMulti} */ (91 /**92 * @param {WebpackOptions | (ReadonlyArray<WebpackOptions> & MultiCompilerOptions)} options options93 * @param {Callback<Stats> & Callback<MultiStats>=} callback callback94 * @returns {Compiler | MultiCompiler}95 */96 (options, callback) => {97 const create = () => {98 if (!webpackOptionsSchemaCheck(options)) {99 getValidateSchema()(webpackOptionsSchema, options);100 }101 /** @type {MultiCompiler|Compiler} */102 let compiler;103 let watch = false;104 /** @type {WatchOptions|WatchOptions[]} */105 let watchOptions;106 if (Array.isArray(options)) {107 /** @type {MultiCompiler} */108 compiler = createMultiCompiler(109 options,110 /** @type {MultiCompilerOptions} */ (options)111 );112 watch = options.some(options => options.watch);113 watchOptions = options.map(options => options.watchOptions || {});114 } else {115 const webpackOptions = /** @type {WebpackOptions} */ (options);116 /** @type {Compiler} */117 compiler = createCompiler(webpackOptions);118 watch = webpackOptions.watch;119 watchOptions = webpackOptions.watchOptions || {};120 }121 return { compiler, watch, watchOptions };122 };123 if (callback) {124 try {125 const { compiler, watch, watchOptions } = create();126 if (watch) {127 compiler.watch(watchOptions, callback);128 } else {129 compiler.run((err, stats) => {130 compiler.close(err2 => {131 callback(err || err2, stats);132 });133 });134 }135 return compiler;136 } catch (err) {137 process.nextTick(() => callback(err));138 return null;139 }140 } else {141 const { compiler, watch } = create();142 if (watch) {143 util.deprecate(144 () => {},145 "A 'callback' argument needs to be provided to the 'webpack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback.",146 "DEP_WEBPACK_WATCH_WITHOUT_CALLBACK"147 )();148 }149 return compiler;150 }151 }152);...
private_export_testing.d.ts
Source:private_export_testing.d.ts
1/**2 * @license3 * Copyright Google Inc. All Rights Reserved.4 *5 * Use of this source code is governed by an MIT-style license that can be6 * found in the LICENSE file at https://angular.io/license7 */8import * as test_compiler from './testing/test_compiler';9export declare namespace __core_private_testing_types__ {10 type TestingCompiler = test_compiler.TestingCompiler;11 var TestingCompiler: typeof test_compiler.TestingCompiler;12 type TestingCompilerFactory = test_compiler.TestingCompilerFactory;13 var TestingCompilerFactory: typeof test_compiler.TestingCompilerFactory;14}15export declare var __core_private_testing__: {16 TestingCompiler: typeof test_compiler.TestingCompiler;17 TestingCompilerFactory: typeof test_compiler.TestingCompilerFactory;...
Using AI Code Generation
1var stryker = require('stryker-parent');2var compiler = new stryker.Compiler();3compiler.compile();4var stryker = require('stryker-parent');5var compiler = new stryker.Compiler();6compiler.compile();7var stryker = require('stryker-parent');8var compiler = new stryker.Compiler();9compiler.compile();10var stryker = require('stryker-parent');11var compiler = new stryker.Compiler();12compiler.compile();13var stryker = require('stryker-parent');14var compiler = new stryker.Compiler();15compiler.compile();16var stryker = require('stryker-parent');17var compiler = new stryker.Compiler();18compiler.compile();19var stryker = require('stryker-parent');20var compiler = new stryker.Compiler();21compiler.compile();22var stryker = require('stryker-parent');23var compiler = new stryker.Compiler();24compiler.compile();25var stryker = require('stryker-parent');26var compiler = new stryker.Compiler();27compiler.compile();28var stryker = require('stryker-parent');29var compiler = new stryker.Compiler();30compiler.compile();31var stryker = require('stryker-parent');32var compiler = new stryker.Compiler();33compiler.compile();34var stryker = require('stryker-parent');35var compiler = new stryker.Compiler();36compiler.compile();37var stryker = require('
Using AI Code Generation
1const strykerCompiler = require('stryker-parent').strykerCompiler;2const strykerCompiler = require('stryker-parent').strykerCompiler;3const strykerCompiler = require('stryker-parent').strykerCompiler;4const strykerCompiler = require('stryker-parent').strykerCompiler;5const strykerCompiler = require('stryker-parent').strykerCompiler;6const strykerCompiler = require('stryker-parent').strykerCompiler;7const strykerCompiler = require('stryker-parent').strykerCompiler;8const strykerCompiler = require('stryker-parent').strykerCompiler;9const strykerCompiler = require('stryker-parent').strykerCompiler;10const strykerCompiler = require('stryker-parent').strykerCompiler;11const strykerCompiler = require('stryker-parent').strykerCompiler;12const strykerCompiler = require('stryker-parent').strykerCompiler;13const strykerCompiler = require('stryker-parent').strykerCompiler;14const strykerCompiler = require('stryker-parent').strykerCompiler;15const strykerCompiler = require('stryker-parent').strykerCompiler;16const strykerCompiler = require('stryker-parent').strykerCompiler;
Using AI Code Generation
1const { compile } = require('stryker-parent');2const { StrykerOptions } = require('@stryker-mutator/api/core');3const { File } = require('@stryker-mutator/api/core');4const options = new StrykerOptions({5 new File('test.js', 'console.log("hello world")'),6 new File('other.js', 'export function foo() { return 1; }')7});8const results = await compile(options);9const { compile } = require('stryker-parent');10const { StrykerOptions } = require('@stryker-mutator/api/core');11const { File } = require('@stryker-mutator/api/core');12const options = new StrykerOptions({13 new File('test.ts', 'console.log("hello world")'),14 new File('other.ts', 'export function foo() { return 1; }')15});16const results = await compile(options);17const { compile } = require('stryker-parent');18const { StrykerOptions } = require('@stryker-mutator/api/core');19const { File } = require('@stryker-mutator/api/core');20const options = new StrykerOptions({21 new File('test.ts', 'console.log("hello world")'),22 new File('other.ts', 'export function foo() { return 1; }')23});24const results = await compile(options);
Using AI Code Generation
1var compiler = require('stryker-parent/compiler');2compiler.run('test.js', 'test.js.map');3var compiler = require('stryker-parent/compiler');4compiler.run('test.js', 'test.js.map');5var compiler = require('stryker-parent/compiler');6module.exports = function(config) {7 config.set({8 strykerParent: {9 }10 });11}
Using AI Code Generation
1var compiler = require('stryker-parent').compiler;2compiler.compile('src/**/*.ts', 'build', {3});4grunt.initConfig({5 stryker: {6 options: {7 },8 dev: {9 files: {10 }11 }12 }13});14grunt.loadNpmTasks('grunt-stryker');15grunt.registerTask('default', ['stryker']);
Using AI Code Generation
1var compiler = require('stryker-parent').compiler;2compiler.compile(['test.js'], function (err, result) {3 console.log(result);4});5var compiler = require('stryker-parent').compiler;6compiler.compile(['test.js'], function (err, result) {7 console.log(result);8});9var compiler = require('stryker-typescript').compiler;10compiler.compile(['test.js'], function (err, result) {11 console.log(result);12});13var compiler = require('stryker-typescript').compiler;14compiler.compile(['test.js'], function (err, result) {15 console.log(result);16});17var compiler = require('stryker-babel').compiler;18compiler.compile(['test.js'], function (err, result) {19 console.log(result);20});21var compiler = require('stryker-babel').compiler;22compiler.compile(['test.js'], function (err, result) {23 console.log(result);24});
Using AI Code Generation
1var compiler = require('stryker-parent').compiler;2compiler.compile('test.js', 'test.js', function(err, result) {3});4var compiler = require('stryker-parent').compiler;5compiler.compile('test.js', 'test.js', function(err, result) {6});7var compiler = require('stryker-parent').compiler;8compiler.compile('test.js', 'test.js', function(err, result) {9});10var compiler = require('stryker-parent').compiler;11compiler.compile('test.js', 'test.js', function(err, result) {12});13var compiler = require('stryker-parent').compiler;14compiler.compile('test.js', 'test.js', function(err, result) {15});16var compiler = require('stryker-parent').compiler;17compiler.compile('test.js', 'test.js', function(err, result) {18});19var compiler = require('stryker-parent').compiler;20compiler.compile('test.js', 'test.js', function(err, result) {21});22var compiler = require('stryker-parent').compiler;23compiler.compile('test.js', 'test.js', function(err, result) {24});25var compiler = require('stryker-parent').compiler;26compiler.compile('test.js', 'test.js', function(err, result) {27});28var compiler = require('stryker-parent').compiler;29compiler.compile('test.js', 'test.js', function
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!