MCPcopy Index your code

hub / github.com/gatsbyjs/gatsby / functions

Functions6,117 in github.com/gatsbyjs/gatsby

↓ 1,042 callersMethodget
* Retrieve cached value * @param key Cache key * @returns Promise resolving to cached value * @example * const value = await cache.get(`un
packages/gatsby/index.d.ts:1590
↓ 916 callersMethodmap
( iterable: | Iterable<[string | number | boolean | symbol, symbol]> | { [key: string]: symbol
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1465
↓ 841 callersMethodforEach
(callback: (entry: T, index: number) => unknown)
packages/gatsby/src/datastore/common/iterable.ts:61
↓ 658 callersMethodresolve
(source: TSource, args: TArgs)
packages/gatsby-plugin-utils/src/polyfill-remote-file/types.ts:52
↓ 515 callersFunctiongraphql
()
packages/gatsby/cache-dir/gatsby-browser-entry.js:5
↓ 460 callersMethodfilter
(predicate: (entry: T) => unknown)
packages/gatsby/src/datastore/common/iterable.ts:45
↓ 451 callersMethodthen
(resolve, reject)
packages/gatsby/cache-dir/server-utils/writable-as-promise.js:38
↓ 377 callersMethodparse
(query: Query)
packages/gatsby/src/query/graphql-runner.ts:105
↓ 359 callersMethodkeys
* Sets or extends the allowed object keys.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1600
↓ 329 callersMethodon
(eventName: EventName, callback: MettHandler<EventName, Payload>)
packages/gatsby/src/utils/mett.ts:11
↓ 318 callersMethodreplace
* Replace characters matching the given pattern with the specified replacement string where: * @param pattern - a regular expression object to matc
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1428
↓ 308 callersMethodstring
* Generates a schema object that matches a string data type. Note that empty strings are not allowed by default and must be enabled with allow('').
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:2024
↓ 303 callersMethoddescription
* Annotates the key
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:897
↓ 294 callersMethodget
* Retrieve an item from the cache. * * Note that key and value can be anything including objects, array, etc.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:457
↓ 279 callersMethodset
* Cache value * @param key Cache key * @param value Value to be cached * @returns Promise resolving to cached value * @example * await
packages/gatsby/index.d.ts:1600
↓ 278 callersMethodhas
* Verifies that an assertion passes for at least one item in the array, where: * `schema` - the validation rules required to satisfy the assertion.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1497
↓ 248 callersMethodadd
Add a call to the batcher
packages/gatsby/src/utils/batcher.ts:9
↓ 242 callersMethodtoString
()
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1951
↓ 232 callersMethoderror
* Overrides the default joi error with a custom error if the rule fails where: * @param err - can be: * an instance of `Error` - the override
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:940
↓ 228 callersMethodwarn
(message: string)
packages/gatsby-plugin-image/src/image-utils.ts:22
↓ 214 callersFunctionplugin
( name: string, optimize?: boolean, deprecationReason?: string )
packages/gatsby/src/utils/webpack-plugins.ts:4
↓ 207 callersMethoddefault
* Sets a default value if the original value is `undefined` where: * @param value - the default value. One of: * - a literal value (string, n
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:882
↓ 200 callersMethodslice
(start: number, end?: number)
packages/gatsby/src/datastore/common/iterable.ts:49
↓ 198 callersMethodconcat
* Returns a new type that is the result of adding the rules of one type to another.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:859
↓ 195 callersMethodany
* Generates a schema object that matches any data type.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1971
↓ 184 callersMethodall
()
deprecated-packages/gatsby-telemetry/src/in-memory-store.ts:28
↓ 175 callersMethodsort
* Sorts the array by given order.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1544
↓ 167 callersMethodobject
( schema?: SchemaMap<T> )
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:2017
↓ 167 callersMethodpanic
(errorMeta: ErrorMeta, error?: Error | Array<Error>)
packages/gatsby-cli/src/reporter/reporter-timer.ts:28
↓ 162 callersMethodsend
(msg: any)
packages/gatsby/src/commands/develop.ts:147
↓ 158 callersMethodset
* Add an item to the cache. * * Note that key and value can be anything including objects, array, etc.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:450
↓ 158 callersMethodstart
()
packages/gatsby-cli/src/reporter/reporter-timer.ts:22
↓ 138 callersMethodboolean
* Generates a schema object that matches a boolean data type (as well as the strings 'true', 'false', 'yes', and 'no'). Can also be called via bool().
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1986
↓ 137 callersMethodend
()
packages/gatsby-cli/src/reporter/reporter-timer.ts:29
↓ 131 callersFunctioncreateTypes
(types, plugin)
packages/gatsby/src/schema/__tests__/build-schema.js:1933
↓ 128 callersMethodvalues
()
packages/gatsby/src/schema/graphql-engine/entry.ts:211
↓ 124 callersFunctionslash
(path: string)
packages/gatsby-core-utils/src/path.ts:86
↓ 123 callersMethodtrim
* Requires the string value to contain no whitespace before or after. If the validation convert option is on (enabled by default), the string will be
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1439
↓ 121 callersFunctioncreateNodeId
packages/gatsby-source-drupal/src/__tests__/index.js:70
↓ 120 callersMethoddelete
(key: string)
deprecated-packages/gatsby-telemetry/src/in-memory-store.ts:40
↓ 118 callersFunctiongetStore
()
packages/gatsby-source-wordpress/src/store.ts:53
↓ 117 callersFunctioncreatePage
( page: Partial<IGatsbyPage>, contextModified: boolean = false )
packages/gatsby/src/utils/__tests__/get-page-data.ts:368
↓ 115 callersMethodassertRoute
* Assert the current URL * @param route * @example cy.assertRoute('/page-2')
e2e-tests/development-runtime/cypress/support/e2e.ts:22
↓ 114 callersFunctiontest
()
packages/gatsby-remark-prismjs/src/__tests__/fixtures/highlight-line.js:1
↓ 112 callersFunctiondispatch
packages/gatsby/src/redux/__tests__/jobsv2.js:46
↓ 108 callersMethodremove
* Remove a task node from the queue * @param taskNode Queue's node to remove
packages/gatsby-worker/src/task-queue.ts:44
↓ 108 callersFunctionuseStaticQuery
packages/gatsby/cache-dir/static-query.js:54
↓ 100 callersMethodcreateNode
@see https://www.gatsbyjs.com/docs/actions/#createNode
packages/gatsby/index.d.ts:1354
↓ 92 callersMethodgetRecord
(key: string, metric: string, raw?: boolean)
e2e-tests/production-runtime/cypress/support/e2e.ts:14
↓ 90 callersMethodmatch
* Requires the validated value to match a specific set of the provided alternative.try() schemas. * Cannot be combined with `alternatives.condition
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1804
↓ 89 callersFunctionformatLogMessage
( input: string | Array<string>, { useVerboseStyle }: { useVerboseStyle?: boolean } = {} )
packages/gatsby-source-wordpress/src/utils/format-log-message.ts:4
↓ 87 callersFunctionreducer
(state, event)
packages/gatsby/cache-dir/fast-refresh-overlay/index.js:11
↓ 83 callersFunctioncreateContentDigest
( input: BinaryLike | string | any )
packages/gatsby-core-utils/src/create-content-digest.ts:26
↓ 81 callersFunctionfetch
* High-level function to coordinate fetching data from Lever.co * site.
packages/gatsby-source-lever/src/fetch.js:8
↓ 76 callersFunctionrunFilter
(filter)
packages/gatsby/src/schema/__tests__/run-query.js:386
↓ 75 callersFunctionprint
packages/gatsby/src/schema/__tests__/build-schema.js:1344
↓ 75 callersMethodrequired
* Marks a key as required which will not allow undefined as value. All keys are optional by default.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1088
↓ 70 callersMethodmeta
* Attaches metadata to the key.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1036
↓ 68 callersFunctiondone
()
packages/gatsby-cli/src/reporter/reporter-progress.ts:121
↓ 68 callersMethodnumber
* Generates a schema object that matches a number data type (as well as strings that can be converted to numbers).
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:2011
↓ 68 callersFunctionstripIndent
( tpl: ReadonlyArray<string>, ...expressions: ReadonlyArray<string> )
packages/gatsby-plugin-utils/src/polyfill-remote-file/utils/strip-indent.ts:1
↓ 67 callersFunctionwrapOptions
packages/gatsby-source-wordpress/src/steps/declare-plugin-options-schema.js:6
↓ 64 callersMethodarray
* Generates a schema object that matches an array data type.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1976
↓ 64 callersFunctiontest
(value)
integration-tests/cache-resilience/utils/jest-serializer-omit-undefined/index.js:4
↓ 62 callersFunctioncreateNodeId
( shopifyId: string, gatsbyApi: NodePluginArgs, { typePrefix }: IShopifyPluginOptions )
packages/gatsby-source-shopify/src/helpers.ts:8
↓ 62 callersFunctionfetchWithRetry
(...args)
integration-tests/functions/test-helpers.js:11
↓ 61 callersMethodpanicOnBuild
( errorMeta: ErrorMeta, error?: Error | Array<Error> )
packages/gatsby-cli/src/reporter/reporter-timer.ts:24
↓ 61 callersMethodvalidate
* Validates a value using the schema and options.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1143
↓ 60 callersFunctiontestPluginOptionsSchema
( pluginSchemaFunction: Exclude<GatsbyNode["pluginOptionsSchema"], undefined>, pluginOptions: IPluginInfoO
packages/gatsby-plugin-utils/src/test-plugin-options-schema.ts:13
↓ 59 callersFunctionrunQuery
(query, variables)
packages/gatsby/src/schema/__tests__/queries.js:58
↓ 58 callersFunctionbuildSchema
()
packages/gatsby/src/schema/__tests__/build-schema.js:1962
↓ 58 callersMethodemit
(eventName: EventName, e?: Payload)
packages/gatsby/src/utils/mett.ts:13
↓ 57 callersMethoditems
* List the types allowed for the array values. * If a given type is .required() then there must be a matching item in the array. * If a type is
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:1509
↓ 54 callersFunctionrunQuery
(queryArgs, nodes = makeNodesUneven())
packages/gatsby/src/schema/__tests__/run-query.js:366
↓ 54 callersFunctiontest
(module)
packages/gatsby/src/utils/webpack.config.js:598
↓ 53 callersFunctionvisit
packages/gatsby-transformer-documentationjs/src/gatsby-node.js:159
↓ 52 callersMethodcreate
()
packages/gatsby/src/utils/tracer/index.ts:6
↓ 52 callersMethodfindAll
* Get all nodes in the store, or all nodes of a specified type (optionally with limit/skip). * Returns slice of result as iterable and total count
packages/gatsby/src/schema/node-model.js:345
↓ 51 callersFunctionbuildObjectType
( config: ComposeObjectTypeConfig<TSource, TContext> )
packages/gatsby/src/schema/types/type-builders.ts:45
↓ 50 callersFunctionderivePath
( path: string, node: Record<string, any>, reporter: Reporter, slugifyOptions?: ISlugifyOptions, get
packages/gatsby-plugin-page-creator/src/derive-path.ts:19
↓ 50 callersMethodequal
* Adds the provided values into the allowed whitelist and marks them as the only valid values allowed.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:920
↓ 50 callersFunctiongetNode
packages/gatsby-source-contentful/src/__tests__/gatsby-node.js:145
↓ 49 callersFunctioncb
(err, val)
packages/gatsby/src/utils/api-runner-node.js:489
↓ 48 callersFunctionbuild
({ parentSpan, fullMetadataBuild = true })
packages/gatsby/src/schema/index.js:112
↓ 48 callersFunctioncallback
(err, stats?: webpack.Stats)
packages/gatsby/src/internal-plugins/functions/gatsby-node.ts:460
↓ 48 callersFunctioncreateContentDigest
(node)
packages/gatsby/src/utils/api-runner-node.js:39
↓ 48 callersFunctionfetchRemoteFile
( args: IFetchRemoteFileOptions )
packages/gatsby-core-utils/src/fetch-remote-file.ts:33
↓ 48 callersMethodoff
(eventName: EventName, callback: MettHandler<EventName, Payload>)
packages/gatsby/src/utils/mett.ts:12
↓ 48 callersFunctiontest
(t)
packages/gatsby/src/utils/eslint-rules-helpers.ts:17
↓ 47 callersFunctionassertPageVisits
(pages)
e2e-tests/trailing-slash/cypress/utils/trailing-slash.js:1
↓ 47 callersFunctiongetDataStore
()
packages/gatsby/src/datastore/datastore.ts:6
↓ 47 callersFunctionresolve
(mdxNode, { pruneLength }: { pruneLength: number })
packages/gatsby-plugin-mdx/src/gatsby-node.ts:180
↓ 46 callersFunctionbootstrapTest
( label, content, query, test, { additionalParameters = {}, pluginOptions = {} } = {} )
packages/gatsby-transformer-remark/src/__tests__/extend-node.js:123
↓ 45 callersMethodcall
Sets up a callback for each batcher item
packages/gatsby/src/utils/batcher.ts:34
↓ 45 callersFunctiongetExampleValueWithoutConflicts
(args)
packages/gatsby/src/schema/infer/__tests__/inference-metadata.ts:33
↓ 44 callersMethodallow
* Whitelists a value
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:829
↓ 44 callersFunctioncreatePluginOptions
( content, imagePaths = `/`, passGetRemarkFileDependency = false )
packages/gatsby-remark-images/src/__tests__/index.js:65
↓ 43 callersFunctionfindNamedTypeName
packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js:120
↓ 42 callersMethodbind
* By default, some Joi methods to function properly need to rely on the Joi instance they are attached to because * they use `this` internally.
packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts:843
↓ 42 callersFunctionfetchGraphql
({ query, errorMap, ignoreGraphQLErrors = false, panicOnError = false, throwGqlErrors = false, thr
packages/gatsby-source-wordpress/src/utils/fetch-graphql.ts:696
next →1–100 of 6,117, ranked by callers