@depup/gatsby 5.16.1-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +142 -0
- package/adapters.js +31 -0
- package/apis.json +73 -0
- package/cache-dir/.eslintrc.json +10 -0
- package/cache-dir/api-runner-browser-plugins.js +14 -0
- package/cache-dir/api-runner-browser.js +52 -0
- package/cache-dir/api-runner-ssr.js +88 -0
- package/cache-dir/api-ssr-docs.js +207 -0
- package/cache-dir/app.js +249 -0
- package/cache-dir/blank.css +0 -0
- package/cache-dir/commonjs/api-runner-browser-plugins.js +17 -0
- package/cache-dir/commonjs/api-runner-browser-plugins.js.map +1 -0
- package/cache-dir/commonjs/api-runner-browser.js +49 -0
- package/cache-dir/commonjs/api-runner-browser.js.map +1 -0
- package/cache-dir/commonjs/api-runner-ssr.js +88 -0
- package/cache-dir/commonjs/api-runner-ssr.js.map +1 -0
- package/cache-dir/commonjs/api-ssr-docs.js +210 -0
- package/cache-dir/commonjs/api-ssr-docs.js.map +1 -0
- package/cache-dir/commonjs/app.js +197 -0
- package/cache-dir/commonjs/app.js.map +1 -0
- package/cache-dir/commonjs/context-utils.js +25 -0
- package/cache-dir/commonjs/context-utils.js.map +1 -0
- package/cache-dir/commonjs/create-content-digest-browser-shim.js +4 -0
- package/cache-dir/commonjs/create-content-digest-browser-shim.js.map +1 -0
- package/cache-dir/commonjs/css-to-object.js +21 -0
- package/cache-dir/commonjs/css-to-object.js.map +1 -0
- package/cache-dir/commonjs/debug-log.js +11 -0
- package/cache-dir/commonjs/debug-log.js.map +1 -0
- package/cache-dir/commonjs/default-html.js +33 -0
- package/cache-dir/commonjs/default-html.js.map +1 -0
- package/cache-dir/commonjs/dev-loader.js +247 -0
- package/cache-dir/commonjs/dev-loader.js.map +1 -0
- package/cache-dir/commonjs/develop-static-entry.js +129 -0
- package/cache-dir/commonjs/develop-static-entry.js.map +1 -0
- package/cache-dir/commonjs/dummy.js +8 -0
- package/cache-dir/commonjs/dummy.js.map +1 -0
- package/cache-dir/commonjs/emitter.js +10 -0
- package/cache-dir/commonjs/emitter.js.map +1 -0
- package/cache-dir/commonjs/ensure-resources.js +107 -0
- package/cache-dir/commonjs/ensure-resources.js.map +1 -0
- package/cache-dir/commonjs/error-overlay-handler.js +35 -0
- package/cache-dir/commonjs/error-overlay-handler.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/accordion.js +80 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/accordion.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/build-error.js +44 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/build-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/code-frame.js +38 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/code-frame.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/dev-ssr-error.js +52 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/dev-ssr-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/error-boundary.js +31 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/error-boundary.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/getserverdata-error.js +47 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/getserverdata-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/graphql-errors.js +77 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/graphql-errors.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/hooks.js +93 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/hooks.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/overlay.js +147 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/overlay.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/runtime-errors.js +110 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/runtime-errors.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/use-id.js +50 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/use-id.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/focus-trap.js +2879 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/focus-trap.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/keys.js +84 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/keys.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/lock-body.js +48 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/lock-body.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/match.js +44 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/match.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/index.js +182 -0
- package/cache-dir/commonjs/fast-refresh-overlay/index.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/style.js +418 -0
- package/cache-dir/commonjs/fast-refresh-overlay/style.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/utils.js +75 -0
- package/cache-dir/commonjs/fast-refresh-overlay/utils.js.map +1 -0
- package/cache-dir/commonjs/find-path.js +145 -0
- package/cache-dir/commonjs/find-path.js.map +1 -0
- package/cache-dir/commonjs/gatsby-browser-entry.js +52 -0
- package/cache-dir/commonjs/gatsby-browser-entry.js.map +1 -0
- package/cache-dir/commonjs/head/components/fire-callback-in-effect.js +18 -0
- package/cache-dir/commonjs/head/components/fire-callback-in-effect.js.map +1 -0
- package/cache-dir/commonjs/head/components/head-components.js +72 -0
- package/cache-dir/commonjs/head/components/head-components.js.map +1 -0
- package/cache-dir/commonjs/head/constants.js +13 -0
- package/cache-dir/commonjs/head/constants.js.map +1 -0
- package/cache-dir/commonjs/head/head-export-handler-for-browser.js +144 -0
- package/cache-dir/commonjs/head/head-export-handler-for-browser.js.map +1 -0
- package/cache-dir/commonjs/head/head-export-handler-for-ssr.js +225 -0
- package/cache-dir/commonjs/head/head-export-handler-for-ssr.js.map +1 -0
- package/cache-dir/commonjs/head/utils.js +264 -0
- package/cache-dir/commonjs/head/utils.js.map +1 -0
- package/cache-dir/commonjs/loader.js +861 -0
- package/cache-dir/commonjs/loader.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/index.js +25 -0
- package/cache-dir/commonjs/loading-indicator/index.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/indicator.js +63 -0
- package/cache-dir/commonjs/loading-indicator/indicator.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/style.js +103 -0
- package/cache-dir/commonjs/loading-indicator/style.js.map +1 -0
- package/cache-dir/commonjs/navigation.js +260 -0
- package/cache-dir/commonjs/navigation.js.map +1 -0
- package/cache-dir/commonjs/normalize-page-path.js +22 -0
- package/cache-dir/commonjs/normalize-page-path.js.map +1 -0
- package/cache-dir/commonjs/page-renderer.js +59 -0
- package/cache-dir/commonjs/page-renderer.js.map +1 -0
- package/cache-dir/commonjs/pages.json +1 -0
- package/cache-dir/commonjs/polyfill-entry.js +7 -0
- package/cache-dir/commonjs/polyfill-entry.js.map +1 -0
- package/cache-dir/commonjs/prefetch.js +67 -0
- package/cache-dir/commonjs/prefetch.js.map +1 -0
- package/cache-dir/commonjs/production-app.js +256 -0
- package/cache-dir/commonjs/production-app.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer-dev.js +26 -0
- package/cache-dir/commonjs/public-page-renderer-dev.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer-prod.js +30 -0
- package/cache-dir/commonjs/public-page-renderer-prod.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer.js +11 -0
- package/cache-dir/commonjs/public-page-renderer.js.map +1 -0
- package/cache-dir/commonjs/query-result-store.js +160 -0
- package/cache-dir/commonjs/query-result-store.js.map +1 -0
- package/cache-dir/commonjs/react-dom-utils.js +34 -0
- package/cache-dir/commonjs/react-dom-utils.js.map +1 -0
- package/cache-dir/commonjs/react-lifecycles-compat.js +4 -0
- package/cache-dir/commonjs/react-lifecycles-compat.js.map +1 -0
- package/cache-dir/commonjs/redirect-utils.js +25 -0
- package/cache-dir/commonjs/redirect-utils.js.map +1 -0
- package/cache-dir/commonjs/redirects.json +1 -0
- package/cache-dir/commonjs/register-service-worker.js +66 -0
- package/cache-dir/commonjs/register-service-worker.js.map +1 -0
- package/cache-dir/commonjs/root.js +105 -0
- package/cache-dir/commonjs/root.js.map +1 -0
- package/cache-dir/commonjs/route-announcer-props.js +24 -0
- package/cache-dir/commonjs/route-announcer-props.js.map +1 -0
- package/cache-dir/commonjs/server-utils/writable-as-promise.js +42 -0
- package/cache-dir/commonjs/server-utils/writable-as-promise.js.map +1 -0
- package/cache-dir/commonjs/shadow-portal.js +36 -0
- package/cache-dir/commonjs/shadow-portal.js.map +1 -0
- package/cache-dir/commonjs/slice/context.js +15 -0
- package/cache-dir/commonjs/slice/context.js.map +1 -0
- package/cache-dir/commonjs/slice/inline-slice.js +34 -0
- package/cache-dir/commonjs/slice/inline-slice.js.map +1 -0
- package/cache-dir/commonjs/slice/server-slice-renderer.js +29 -0
- package/cache-dir/commonjs/slice/server-slice-renderer.js.map +1 -0
- package/cache-dir/commonjs/slice/server-slice.js +54 -0
- package/cache-dir/commonjs/slice/server-slice.js.map +1 -0
- package/cache-dir/commonjs/slice.js +124 -0
- package/cache-dir/commonjs/slice.js.map +1 -0
- package/cache-dir/commonjs/socketIo.js +62 -0
- package/cache-dir/commonjs/socketIo.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/child_process.js +8 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/child_process.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/fs.js +7 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/fs.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http.js +9 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http2.js +7 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http2.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/https.js +9 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/https.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js +55 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js.map +1 -0
- package/cache-dir/commonjs/ssr-develop-static-entry.js +366 -0
- package/cache-dir/commonjs/ssr-develop-static-entry.js.map +1 -0
- package/cache-dir/commonjs/static-entry.js +544 -0
- package/cache-dir/commonjs/static-entry.js.map +1 -0
- package/cache-dir/commonjs/static-query.js +74 -0
- package/cache-dir/commonjs/static-query.js.map +1 -0
- package/cache-dir/commonjs/strip-prefix.js +22 -0
- package/cache-dir/commonjs/strip-prefix.js.map +1 -0
- package/cache-dir/context-utils.js +29 -0
- package/cache-dir/create-content-digest-browser-shim.js +1 -0
- package/cache-dir/css-to-object.js +19 -0
- package/cache-dir/debug-log.js +13 -0
- package/cache-dir/default-html.js +36 -0
- package/cache-dir/dev-loader.js +280 -0
- package/cache-dir/develop-static-entry.js +129 -0
- package/cache-dir/dummy.js +2 -0
- package/cache-dir/emitter.js +4 -0
- package/cache-dir/ensure-resources.js +119 -0
- package/cache-dir/error-overlay-handler.js +36 -0
- package/cache-dir/fast-refresh-overlay/components/accordion.js +83 -0
- package/cache-dir/fast-refresh-overlay/components/build-error.js +46 -0
- package/cache-dir/fast-refresh-overlay/components/code-frame.js +38 -0
- package/cache-dir/fast-refresh-overlay/components/dev-ssr-error.js +66 -0
- package/cache-dir/fast-refresh-overlay/components/error-boundary.js +28 -0
- package/cache-dir/fast-refresh-overlay/components/getserverdata-error.js +53 -0
- package/cache-dir/fast-refresh-overlay/components/graphql-errors.js +100 -0
- package/cache-dir/fast-refresh-overlay/components/hooks.js +102 -0
- package/cache-dir/fast-refresh-overlay/components/overlay.js +143 -0
- package/cache-dir/fast-refresh-overlay/components/runtime-errors.js +139 -0
- package/cache-dir/fast-refresh-overlay/components/use-id.js +56 -0
- package/cache-dir/fast-refresh-overlay/helpers/focus-trap.js +3561 -0
- package/cache-dir/fast-refresh-overlay/helpers/keys.js +80 -0
- package/cache-dir/fast-refresh-overlay/helpers/lock-body.js +52 -0
- package/cache-dir/fast-refresh-overlay/helpers/match.js +42 -0
- package/cache-dir/fast-refresh-overlay/index.js +147 -0
- package/cache-dir/fast-refresh-overlay/style.js +413 -0
- package/cache-dir/fast-refresh-overlay/utils.js +81 -0
- package/cache-dir/find-path.js +160 -0
- package/cache-dir/gatsby-browser-entry.js +27 -0
- package/cache-dir/head/components/fire-callback-in-effect.js +12 -0
- package/cache-dir/head/components/head-components.js +86 -0
- package/cache-dir/head/constants.js +15 -0
- package/cache-dir/head/head-export-handler-for-browser.js +170 -0
- package/cache-dir/head/head-export-handler-for-ssr.js +237 -0
- package/cache-dir/head/utils.js +287 -0
- package/cache-dir/loader.js +977 -0
- package/cache-dir/loading-indicator/index.js +19 -0
- package/cache-dir/loading-indicator/indicator.js +65 -0
- package/cache-dir/loading-indicator/style.js +99 -0
- package/cache-dir/navigation.js +257 -0
- package/cache-dir/normalize-page-path.js +17 -0
- package/cache-dir/page-renderer.js +59 -0
- package/cache-dir/page-ssr/index.d.ts +76 -0
- package/cache-dir/pages.json +1 -0
- package/cache-dir/polyfill-entry.js +5 -0
- package/cache-dir/prefetch.js +80 -0
- package/cache-dir/production-app.js +340 -0
- package/cache-dir/public-page-renderer-dev.js +21 -0
- package/cache-dir/public-page-renderer-prod.js +25 -0
- package/cache-dir/public-page-renderer.js +9 -0
- package/cache-dir/query-engine/index.d.ts +31 -0
- package/cache-dir/query-result-store.js +197 -0
- package/cache-dir/react-dom-utils.js +38 -0
- package/cache-dir/react-lifecycles-compat.js +1 -0
- package/cache-dir/redirect-utils.js +22 -0
- package/cache-dir/redirects.json +1 -0
- package/cache-dir/register-service-worker.js +64 -0
- package/cache-dir/root.js +147 -0
- package/cache-dir/route-announcer-props.js +18 -0
- package/cache-dir/server-utils/writable-as-promise.js +41 -0
- package/cache-dir/shadow-portal.js +28 -0
- package/cache-dir/slice/context.js +13 -0
- package/cache-dir/slice/inline-slice.js +34 -0
- package/cache-dir/slice/server-slice-renderer.js +28 -0
- package/cache-dir/slice/server-slice.js +52 -0
- package/cache-dir/slice.js +158 -0
- package/cache-dir/socketIo.js +58 -0
- package/cache-dir/ssr-builtin-trackers/child_process.js +4 -0
- package/cache-dir/ssr-builtin-trackers/fs.js +3 -0
- package/cache-dir/ssr-builtin-trackers/http.js +3 -0
- package/cache-dir/ssr-builtin-trackers/http2.js +3 -0
- package/cache-dir/ssr-builtin-trackers/https.js +3 -0
- package/cache-dir/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js +64 -0
- package/cache-dir/ssr-develop-static-entry.js +428 -0
- package/cache-dir/static-entry.js +594 -0
- package/cache-dir/static-query.js +91 -0
- package/cache-dir/strip-prefix.js +20 -0
- package/changes.json +454 -0
- package/cli.js +3 -0
- package/dist/bin/gatsby.js +5 -0
- package/dist/bin/gatsby.js.map +1 -0
- package/dist/bootstrap/__mocks__/get-config/ts/gatsby-config.d.ts +3 -0
- package/dist/bootstrap/__mocks__/resolve-module-exports.d.ts +1 -0
- package/dist/bootstrap/create-graphql-runner.d.ts +10 -0
- package/dist/bootstrap/create-graphql-runner.js +71 -0
- package/dist/bootstrap/create-graphql-runner.js.map +1 -0
- package/dist/bootstrap/get-config-file.d.ts +4 -0
- package/dist/bootstrap/get-config-file.js +152 -0
- package/dist/bootstrap/get-config-file.js.map +1 -0
- package/dist/bootstrap/index.d.ts +12 -0
- package/dist/bootstrap/index.js +56 -0
- package/dist/bootstrap/index.js.map +1 -0
- package/dist/bootstrap/load-config/index.d.ts +7 -0
- package/dist/bootstrap/load-config/index.js +73 -0
- package/dist/bootstrap/load-config/index.js.map +1 -0
- package/dist/bootstrap/load-plugins/index.d.ts +3 -0
- package/dist/bootstrap/load-plugins/index.js +79 -0
- package/dist/bootstrap/load-plugins/index.js.map +1 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.d.ts +2 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.js +105 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.js.map +1 -0
- package/dist/bootstrap/load-plugins/process-plugin.d.ts +2 -0
- package/dist/bootstrap/load-plugins/process-plugin.js +81 -0
- package/dist/bootstrap/load-plugins/process-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.d.ts +13 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.js +75 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/types.d.ts +48 -0
- package/dist/bootstrap/load-plugins/types.js +4 -0
- package/dist/bootstrap/load-plugins/types.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.d.ts +8 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.js +38 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.d.ts +1 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.js +20 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/create-id.d.ts +10 -0
- package/dist/bootstrap/load-plugins/utils/create-id.js +16 -0
- package/dist/bootstrap/load-plugins/utils/create-id.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.d.ts +2 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.js +41 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/get-api.d.ts +12 -0
- package/dist/bootstrap/load-plugins/utils/get-api.js +12 -0
- package/dist/bootstrap/load-plugins/utils/get-api.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/normalize.d.ts +5 -0
- package/dist/bootstrap/load-plugins/utils/normalize.js +33 -0
- package/dist/bootstrap/load-plugins/utils/normalize.js.map +1 -0
- package/dist/bootstrap/load-plugins/validate.d.ts +41 -0
- package/dist/bootstrap/load-plugins/validate.js +369 -0
- package/dist/bootstrap/load-plugins/validate.js.map +1 -0
- package/dist/bootstrap/load-themes/index.d.ts +17 -0
- package/dist/bootstrap/load-themes/index.js +186 -0
- package/dist/bootstrap/load-themes/index.js.map +1 -0
- package/dist/bootstrap/log-line-function.d.ts +0 -0
- package/dist/bootstrap/log-line-function.js +19 -0
- package/dist/bootstrap/log-line-function.js.map +1 -0
- package/dist/bootstrap/prefer-default.d.ts +1 -0
- package/dist/bootstrap/prefer-default.js +7 -0
- package/dist/bootstrap/prefer-default.js.map +1 -0
- package/dist/bootstrap/redirects-writer.d.ts +2 -0
- package/dist/bootstrap/redirects-writer.js +59 -0
- package/dist/bootstrap/redirects-writer.js.map +1 -0
- package/dist/bootstrap/remove-stale-jobs.d.ts +2 -0
- package/dist/bootstrap/remove-stale-jobs.js +31 -0
- package/dist/bootstrap/remove-stale-jobs.js.map +1 -0
- package/dist/bootstrap/requires-writer.d.ts +11 -0
- package/dist/bootstrap/requires-writer.js +260 -0
- package/dist/bootstrap/requires-writer.js.map +1 -0
- package/dist/bootstrap/resolve-js-file-path.d.ts +14 -0
- package/dist/bootstrap/resolve-js-file-path.js +58 -0
- package/dist/bootstrap/resolve-js-file-path.js.map +1 -0
- package/dist/bootstrap/resolve-module-exports.d.ts +20 -0
- package/dist/bootstrap/resolve-module-exports.js +188 -0
- package/dist/bootstrap/resolve-module-exports.js.map +1 -0
- package/dist/bootstrap/schema-hot-reloader.d.ts +3 -0
- package/dist/bootstrap/schema-hot-reloader.js +60 -0
- package/dist/bootstrap/schema-hot-reloader.js.map +1 -0
- package/dist/cache/cache-fs.d.ts +1 -0
- package/dist/cache/cache-fs.js +270 -0
- package/dist/cache/cache-fs.js.map +1 -0
- package/dist/cache/json-file-store.d.ts +8 -0
- package/dist/cache/json-file-store.js +144 -0
- package/dist/cache/json-file-store.js.map +1 -0
- package/dist/cache/wrap-callback.d.ts +0 -0
- package/dist/cache/wrap-callback.js +49 -0
- package/dist/cache/wrap-callback.js.map +1 -0
- package/dist/commands/build-html.d.ts +69 -0
- package/dist/commands/build-html.js +652 -0
- package/dist/commands/build-html.js.map +1 -0
- package/dist/commands/build-javascript.d.ts +4 -0
- package/dist/commands/build-javascript.js +18 -0
- package/dist/commands/build-javascript.js.map +1 -0
- package/dist/commands/build-utils.d.ts +8 -0
- package/dist/commands/build-utils.js +186 -0
- package/dist/commands/build-utils.js.map +1 -0
- package/dist/commands/build.d.ts +1 -0
- package/dist/commands/build.js +505 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/clean.d.ts +1 -0
- package/dist/commands/clean.js +29 -0
- package/dist/commands/clean.js.map +1 -0
- package/dist/commands/develop-process.d.ts +1 -0
- package/dist/commands/develop-process.js +120 -0
- package/dist/commands/develop-process.js.map +1 -0
- package/dist/commands/develop-static.d.ts +3 -0
- package/dist/commands/develop-static.js +22 -0
- package/dist/commands/develop-static.js.map +1 -0
- package/dist/commands/develop.d.ts +2 -0
- package/dist/commands/develop.js +273 -0
- package/dist/commands/develop.js.map +1 -0
- package/dist/commands/feedback.d.ts +1 -0
- package/dist/commands/feedback.js +17 -0
- package/dist/commands/feedback.js.map +1 -0
- package/dist/commands/repl.d.ts +1 -0
- package/dist/commands/repl.js +58 -0
- package/dist/commands/repl.js.map +1 -0
- package/dist/commands/serve.d.ts +1 -0
- package/dist/commands/serve.js +282 -0
- package/dist/commands/serve.js.map +1 -0
- package/dist/commands/types.d.ts +54 -0
- package/dist/commands/types.js +23 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +7 -0
- package/dist/constants.js.map +1 -0
- package/dist/datastore/common/iterable.d.ts +51 -0
- package/dist/datastore/common/iterable.js +217 -0
- package/dist/datastore/common/iterable.js.map +1 -0
- package/dist/datastore/common/query.d.ts +69 -0
- package/dist/datastore/common/query.js +219 -0
- package/dist/datastore/common/query.js.map +1 -0
- package/dist/datastore/datastore.d.ts +2 -0
- package/dist/datastore/datastore.js +23 -0
- package/dist/datastore/datastore.js.map +1 -0
- package/dist/datastore/in-memory/in-memory-datastore.d.ts +2 -0
- package/dist/datastore/in-memory/in-memory-datastore.js +75 -0
- package/dist/datastore/in-memory/in-memory-datastore.js.map +1 -0
- package/dist/datastore/in-memory/indexing.d.ts +80 -0
- package/dist/datastore/in-memory/indexing.js +994 -0
- package/dist/datastore/in-memory/indexing.js.map +1 -0
- package/dist/datastore/in-memory/run-fast-filters.d.ts +27 -0
- package/dist/datastore/in-memory/run-fast-filters.js +276 -0
- package/dist/datastore/in-memory/run-fast-filters.js.map +1 -0
- package/dist/datastore/index.d.ts +20 -0
- package/dist/datastore/index.js +34 -0
- package/dist/datastore/index.js.map +1 -0
- package/dist/datastore/lmdb/lmdb-datastore.d.ts +14 -0
- package/dist/datastore/lmdb/lmdb-datastore.js +261 -0
- package/dist/datastore/lmdb/lmdb-datastore.js.map +1 -0
- package/dist/datastore/lmdb/query/common.d.ts +23 -0
- package/dist/datastore/lmdb/query/common.js +127 -0
- package/dist/datastore/lmdb/query/common.js.map +1 -0
- package/dist/datastore/lmdb/query/create-index.d.ts +25 -0
- package/dist/datastore/lmdb/query/create-index.js +239 -0
- package/dist/datastore/lmdb/query/create-index.js.map +1 -0
- package/dist/datastore/lmdb/query/filter-using-index.d.ts +43 -0
- package/dist/datastore/lmdb/query/filter-using-index.js +577 -0
- package/dist/datastore/lmdb/query/filter-using-index.js.map +1 -0
- package/dist/datastore/lmdb/query/run-query.d.ts +9 -0
- package/dist/datastore/lmdb/query/run-query.js +285 -0
- package/dist/datastore/lmdb/query/run-query.js.map +1 -0
- package/dist/datastore/lmdb/query/suggest-index.d.ts +15 -0
- package/dist/datastore/lmdb/query/suggest-index.js +93 -0
- package/dist/datastore/lmdb/query/suggest-index.js.map +1 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.d.ts +3 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.js +21 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.js.map +1 -0
- package/dist/datastore/lmdb/updates/nodes.d.ts +5 -0
- package/dist/datastore/lmdb/updates/nodes.js +33 -0
- package/dist/datastore/lmdb/updates/nodes.js.map +1 -0
- package/dist/datastore/types.d.ts +47 -0
- package/dist/datastore/types.js +4 -0
- package/dist/datastore/types.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/gatsby-node.js +42 -0
- package/dist/internal-plugins/bundle-optimisations/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/index.js +3 -0
- package/dist/internal-plugins/bundle-optimisations/index.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/package.json +10 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/fetch.js +4 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/fetch.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/no-op.js +3 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/no-op.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js +4 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js +6 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/gatsby-node.js +30 -0
- package/dist/internal-plugins/dev-404-page/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/index.js +3 -0
- package/dist/internal-plugins/dev-404-page/index.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/package.json +11 -0
- package/dist/internal-plugins/dev-404-page/raw_dev-404-page.js +262 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.d.ts +3 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.js +74 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.js.map +1 -0
- package/dist/internal-plugins/functions/config.d.ts +20 -0
- package/dist/internal-plugins/functions/config.js +96 -0
- package/dist/internal-plugins/functions/config.js.map +1 -0
- package/dist/internal-plugins/functions/gatsby-node.d.ts +3 -0
- package/dist/internal-plugins/functions/gatsby-node.js +452 -0
- package/dist/internal-plugins/functions/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/functions/index.js +3 -0
- package/dist/internal-plugins/functions/index.js.map +1 -0
- package/dist/internal-plugins/functions/middleware.d.ts +11 -0
- package/dist/internal-plugins/functions/middleware.js +160 -0
- package/dist/internal-plugins/functions/middleware.js.map +1 -0
- package/dist/internal-plugins/functions/package.json +11 -0
- package/dist/internal-plugins/internal-data-bridge/gatsby-node.js +191 -0
- package/dist/internal-plugins/internal-data-bridge/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/internal-data-bridge/index.js +3 -0
- package/dist/internal-plugins/internal-data-bridge/index.js.map +1 -0
- package/dist/internal-plugins/internal-data-bridge/package.json +11 -0
- package/dist/internal-plugins/load-babel-config/gatsby-node.js +37 -0
- package/dist/internal-plugins/load-babel-config/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/load-babel-config/index.js +3 -0
- package/dist/internal-plugins/load-babel-config/index.js.map +1 -0
- package/dist/internal-plugins/load-babel-config/package.json +11 -0
- package/dist/internal-plugins/partytown/gatsby-browser.js +23 -0
- package/dist/internal-plugins/partytown/gatsby-browser.js.map +1 -0
- package/dist/internal-plugins/partytown/gatsby-node.d.ts +2 -0
- package/dist/internal-plugins/partytown/gatsby-node.js +60 -0
- package/dist/internal-plugins/partytown/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/partytown/gatsby-ssr.js +39 -0
- package/dist/internal-plugins/partytown/gatsby-ssr.js.map +1 -0
- package/dist/internal-plugins/partytown/index.js +3 -0
- package/dist/internal-plugins/partytown/index.js.map +1 -0
- package/dist/internal-plugins/partytown/package.json +12 -0
- package/dist/internal-plugins/partytown/proxy.d.ts +3 -0
- package/dist/internal-plugins/partytown/proxy.js +26 -0
- package/dist/internal-plugins/partytown/proxy.js.map +1 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.d.ts +2 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.js +8 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.js.map +1 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.d.ts +2 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js +28 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/gatsby-node.js +50 -0
- package/dist/internal-plugins/prod-404-500/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/index.js +3 -0
- package/dist/internal-plugins/prod-404-500/index.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/package.json +11 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/create-page.js +31 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/create-page.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/gatsby-node.js +31 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/index.js +273 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/index.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/package.json +11 -0
- package/dist/internal.d.ts +5 -0
- package/dist/internal.js +34 -0
- package/dist/internal.js.map +1 -0
- package/dist/joi-schemas/joi.d.ts +5 -0
- package/dist/joi-schemas/joi.js +122 -0
- package/dist/joi-schemas/joi.js.map +1 -0
- package/dist/query/error-parser.d.ts +19 -0
- package/dist/query/error-parser.js +163 -0
- package/dist/query/error-parser.js.map +1 -0
- package/dist/query/file-parser.js +584 -0
- package/dist/query/file-parser.js.map +1 -0
- package/dist/query/graphql-errors-codeframe.d.ts +1 -0
- package/dist/query/graphql-errors-codeframe.js +20 -0
- package/dist/query/graphql-errors-codeframe.js.map +1 -0
- package/dist/query/graphql-errors.js +278 -0
- package/dist/query/graphql-errors.js.map +1 -0
- package/dist/query/graphql-runner.d.ts +39 -0
- package/dist/query/graphql-runner.js +221 -0
- package/dist/query/graphql-runner.js.map +1 -0
- package/dist/query/graphql-span-tracer.d.ts +19 -0
- package/dist/query/graphql-span-tracer.js +63 -0
- package/dist/query/graphql-span-tracer.js.map +1 -0
- package/dist/query/index.d.ts +32 -0
- package/dist/query/index.js +301 -0
- package/dist/query/index.js.map +1 -0
- package/dist/query/query-compiler.js +433 -0
- package/dist/query/query-compiler.js.map +1 -0
- package/dist/query/query-runner.d.ts +13 -0
- package/dist/query/query-runner.js +176 -0
- package/dist/query/query-runner.js.map +1 -0
- package/dist/query/query-watcher.d.ts +17 -0
- package/dist/query/query-watcher.js +250 -0
- package/dist/query/query-watcher.js.map +1 -0
- package/dist/query/transform-document.d.ts +6 -0
- package/dist/query/transform-document.js +131 -0
- package/dist/query/transform-document.js.map +1 -0
- package/dist/query/types.d.ts +35 -0
- package/dist/query/types.js +4 -0
- package/dist/query/types.js.map +1 -0
- package/dist/query/utils.d.ts +4 -0
- package/dist/query/utils.js +20 -0
- package/dist/query/utils.js.map +1 -0
- package/dist/redux/actions/add-page-dependency.d.ts +7 -0
- package/dist/redux/actions/add-page-dependency.js +52 -0
- package/dist/redux/actions/add-page-dependency.js.map +1 -0
- package/dist/redux/actions/index.d.ts +16 -0
- package/dist/redux/actions/index.js +21 -0
- package/dist/redux/actions/index.js.map +1 -0
- package/dist/redux/actions/internal.d.ts +124 -0
- package/dist/redux/actions/internal.js +394 -0
- package/dist/redux/actions/internal.js.map +1 -0
- package/dist/redux/actions/public.js +1354 -0
- package/dist/redux/actions/public.js.map +1 -0
- package/dist/redux/actions/restricted.d.ts +332 -0
- package/dist/redux/actions/restricted.js +521 -0
- package/dist/redux/actions/restricted.js.map +1 -0
- package/dist/redux/index.d.ts +20 -0
- package/dist/redux/index.js +125 -0
- package/dist/redux/index.js.map +1 -0
- package/dist/redux/persist.d.ts +5 -0
- package/dist/redux/persist.js +191 -0
- package/dist/redux/persist.js.map +1 -0
- package/dist/redux/plugin-runner.d.ts +1 -0
- package/dist/redux/plugin-runner.js +45 -0
- package/dist/redux/plugin-runner.js.map +1 -0
- package/dist/redux/reducers/adapter.d.ts +6 -0
- package/dist/redux/reducers/adapter.js +22 -0
- package/dist/redux/reducers/adapter.js.map +1 -0
- package/dist/redux/reducers/babelrc.d.ts +9 -0
- package/dist/redux/reducers/babelrc.js +104 -0
- package/dist/redux/reducers/babelrc.js.map +1 -0
- package/dist/redux/reducers/components-using-slices.d.ts +2 -0
- package/dist/redux/reducers/components-using-slices.js +15 -0
- package/dist/redux/reducers/components-using-slices.js.map +1 -0
- package/dist/redux/reducers/components.d.ts +2 -0
- package/dist/redux/reducers/components.js +104 -0
- package/dist/redux/reducers/components.js.map +1 -0
- package/dist/redux/reducers/config.d.ts +2 -0
- package/dist/redux/reducers/config.js +16 -0
- package/dist/redux/reducers/config.js.map +1 -0
- package/dist/redux/reducers/definitions.d.ts +2 -0
- package/dist/redux/reducers/definitions.js +14 -0
- package/dist/redux/reducers/definitions.js.map +1 -0
- package/dist/redux/reducers/flattened-plugins.d.ts +17 -0
- package/dist/redux/reducers/flattened-plugins.js +14 -0
- package/dist/redux/reducers/flattened-plugins.js.map +1 -0
- package/dist/redux/reducers/functions.d.ts +2 -0
- package/dist/redux/reducers/functions.js +14 -0
- package/dist/redux/reducers/functions.js.map +1 -0
- package/dist/redux/reducers/html.d.ts +25 -0
- package/dist/redux/reducers/html.js +384 -0
- package/dist/redux/reducers/html.js.map +1 -0
- package/dist/redux/reducers/index.d.ts +45 -0
- package/dist/redux/reducers/index.js +86 -0
- package/dist/redux/reducers/index.js.map +1 -0
- package/dist/redux/reducers/inference-metadata.d.ts +7 -0
- package/dist/redux/reducers/inference-metadata.js +174 -0
- package/dist/redux/reducers/inference-metadata.js.map +1 -0
- package/dist/redux/reducers/jobs.d.ts +5 -0
- package/dist/redux/reducers/jobs.js +65 -0
- package/dist/redux/reducers/jobs.js.map +1 -0
- package/dist/redux/reducers/jobsv2.d.ts +6 -0
- package/dist/redux/reducers/jobsv2.js +88 -0
- package/dist/redux/reducers/jobsv2.js.map +1 -0
- package/dist/redux/reducers/last-action.d.ts +2 -0
- package/dist/redux/reducers/last-action.js +7 -0
- package/dist/redux/reducers/last-action.js.map +1 -0
- package/dist/redux/reducers/node-manifest.d.ts +2 -0
- package/dist/redux/reducers/node-manifest.js +58 -0
- package/dist/redux/reducers/node-manifest.js.map +1 -0
- package/dist/redux/reducers/nodes-by-type.d.ts +2 -0
- package/dist/redux/reducers/nodes-by-type.js +53 -0
- package/dist/redux/reducers/nodes-by-type.js.map +1 -0
- package/dist/redux/reducers/nodes-touched.d.ts +3 -0
- package/dist/redux/reducers/nodes-touched.js +18 -0
- package/dist/redux/reducers/nodes-touched.js.map +1 -0
- package/dist/redux/reducers/nodes.d.ts +2 -0
- package/dist/redux/reducers/nodes.js +30 -0
- package/dist/redux/reducers/nodes.js.map +1 -0
- package/dist/redux/reducers/page-data-stats.d.ts +2 -0
- package/dist/redux/reducers/page-data-stats.js +15 -0
- package/dist/redux/reducers/page-data-stats.js.map +1 -0
- package/dist/redux/reducers/pages.d.ts +2 -0
- package/dist/redux/reducers/pages.js +43 -0
- package/dist/redux/reducers/pages.js.map +1 -0
- package/dist/redux/reducers/pending-page-data-writes.d.ts +5 -0
- package/dist/redux/reducers/pending-page-data-writes.js +66 -0
- package/dist/redux/reducers/pending-page-data-writes.js.map +1 -0
- package/dist/redux/reducers/program.d.ts +2 -0
- package/dist/redux/reducers/program.js +62 -0
- package/dist/redux/reducers/program.js.map +1 -0
- package/dist/redux/reducers/queries.d.ts +26 -0
- package/dist/redux/reducers/queries.js +403 -0
- package/dist/redux/reducers/queries.js.map +1 -0
- package/dist/redux/reducers/redirects.d.ts +2 -0
- package/dist/redux/reducers/redirects.js +39 -0
- package/dist/redux/reducers/redirects.js.map +1 -0
- package/dist/redux/reducers/remote-file-allowed-urls.d.ts +2 -0
- package/dist/redux/reducers/remote-file-allowed-urls.js +19 -0
- package/dist/redux/reducers/remote-file-allowed-urls.js.map +1 -0
- package/dist/redux/reducers/resolved-nodes.d.ts +2 -0
- package/dist/redux/reducers/resolved-nodes.js +45 -0
- package/dist/redux/reducers/resolved-nodes.js.map +1 -0
- package/dist/redux/reducers/schema-customization.d.ts +23 -0
- package/dist/redux/reducers/schema-customization.js +103 -0
- package/dist/redux/reducers/schema-customization.js.map +1 -0
- package/dist/redux/reducers/schema.d.ts +3 -0
- package/dist/redux/reducers/schema.js +17 -0
- package/dist/redux/reducers/schema.js.map +1 -0
- package/dist/redux/reducers/set-request-headers.d.ts +7 -0
- package/dist/redux/reducers/set-request-headers.js +24 -0
- package/dist/redux/reducers/set-request-headers.js.map +1 -0
- package/dist/redux/reducers/slices-by-template.d.ts +2 -0
- package/dist/redux/reducers/slices-by-template.js +16 -0
- package/dist/redux/reducers/slices-by-template.js.map +1 -0
- package/dist/redux/reducers/slices.d.ts +2 -0
- package/dist/redux/reducers/slices.js +22 -0
- package/dist/redux/reducers/slices.js.map +1 -0
- package/dist/redux/reducers/stateful-source-plugins.d.ts +5 -0
- package/dist/redux/reducers/stateful-source-plugins.js +20 -0
- package/dist/redux/reducers/stateful-source-plugins.js.map +1 -0
- package/dist/redux/reducers/static-queries-by-template.d.ts +2 -0
- package/dist/redux/reducers/static-queries-by-template.js +19 -0
- package/dist/redux/reducers/static-queries-by-template.js.map +1 -0
- package/dist/redux/reducers/static-query-components.d.ts +2 -0
- package/dist/redux/reducers/static-query-components.js +18 -0
- package/dist/redux/reducers/static-query-components.js.map +1 -0
- package/dist/redux/reducers/status.d.ts +7 -0
- package/dist/redux/reducers/status.js +57 -0
- package/dist/redux/reducers/status.js.map +1 -0
- package/dist/redux/reducers/telemetry.d.ts +2 -0
- package/dist/redux/reducers/telemetry.js +46 -0
- package/dist/redux/reducers/telemetry.js.map +1 -0
- package/dist/redux/reducers/type-owners.d.ts +5 -0
- package/dist/redux/reducers/type-owners.js +102 -0
- package/dist/redux/reducers/type-owners.js.map +1 -0
- package/dist/redux/reducers/visited-page.d.ts +2 -0
- package/dist/redux/reducers/visited-page.js +31 -0
- package/dist/redux/reducers/visited-page.js.map +1 -0
- package/dist/redux/reducers/webpack-compilation-hash.d.ts +2 -0
- package/dist/redux/reducers/webpack-compilation-hash.js +14 -0
- package/dist/redux/reducers/webpack-compilation-hash.js.map +1 -0
- package/dist/redux/reducers/webpack.d.ts +2 -0
- package/dist/redux/reducers/webpack.js +27 -0
- package/dist/redux/reducers/webpack.js.map +1 -0
- package/dist/redux/save-state.js +19 -0
- package/dist/redux/save-state.js.map +1 -0
- package/dist/redux/types.d.ts +1337 -0
- package/dist/redux/types.js +326 -0
- package/dist/redux/types.js.map +1 -0
- package/dist/schema/context.d.ts +14 -0
- package/dist/schema/context.js +38 -0
- package/dist/schema/context.js.map +1 -0
- package/dist/schema/extensions/index.js +205 -0
- package/dist/schema/extensions/index.js.map +1 -0
- package/dist/schema/graphql-engine/bootstrap.d.ts +2 -0
- package/dist/schema/graphql-engine/bootstrap.js +12 -0
- package/dist/schema/graphql-engine/bootstrap.js.map +1 -0
- package/dist/schema/graphql-engine/bundle-webpack.d.ts +5 -0
- package/dist/schema/graphql-engine/bundle-webpack.js +446 -0
- package/dist/schema/graphql-engine/bundle-webpack.js.map +1 -0
- package/dist/schema/graphql-engine/entry.d.ts +23 -0
- package/dist/schema/graphql-engine/entry.js +204 -0
- package/dist/schema/graphql-engine/entry.js.map +1 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.d.ts +1 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.js +72 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.js.map +1 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.d.ts +0 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.js +6 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.js.map +1 -0
- package/dist/schema/graphql-engine/print-plugins.d.ts +2 -0
- package/dist/schema/graphql-engine/print-plugins.js +145 -0
- package/dist/schema/graphql-engine/print-plugins.js.map +1 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.d.ts +1 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.js +8 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.js.map +1 -0
- package/dist/schema/graphql-engine/shims/gatsby-sharp.js +10 -0
- package/dist/schema/graphql-engine/shims/gatsby-sharp.js.map +1 -0
- package/dist/schema/graphql-engine/shims/no-op-module.js +3 -0
- package/dist/schema/graphql-engine/shims/no-op-module.js.map +1 -0
- package/dist/schema/graphql-engine/shims/ts-node.js +17 -0
- package/dist/schema/graphql-engine/shims/ts-node.js.map +1 -0
- package/dist/schema/graphql-engine/standalone-regenerate.d.ts +2 -0
- package/dist/schema/graphql-engine/standalone-regenerate.js +73 -0
- package/dist/schema/graphql-engine/standalone-regenerate.js.map +1 -0
- package/dist/schema/index.js +189 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/infer/add-inferred-fields.js +413 -0
- package/dist/schema/infer/add-inferred-fields.js.map +1 -0
- package/dist/schema/infer/build-example-data.d.ts +5 -0
- package/dist/schema/infer/build-example-data.js +199 -0
- package/dist/schema/infer/build-example-data.js.map +1 -0
- package/dist/schema/infer/index.js +121 -0
- package/dist/schema/infer/index.js.map +1 -0
- package/dist/schema/infer/inference-metadata.d.ts +72 -0
- package/dist/schema/infer/inference-metadata.js +280 -0
- package/dist/schema/infer/inference-metadata.js.map +1 -0
- package/dist/schema/infer/is-file.d.ts +1 -0
- package/dist/schema/infer/is-file.js +65 -0
- package/dist/schema/infer/is-file.js.map +1 -0
- package/dist/schema/infer/type-conflict-reporter.d.ts +28 -0
- package/dist/schema/infer/type-conflict-reporter.js +104 -0
- package/dist/schema/infer/type-conflict-reporter.js.map +1 -0
- package/dist/schema/node-model.js +784 -0
- package/dist/schema/node-model.js.map +1 -0
- package/dist/schema/print.d.ts +20 -0
- package/dist/schema/print.js +279 -0
- package/dist/schema/print.js.map +1 -0
- package/dist/schema/resolvers.d.ts +40 -0
- package/dist/schema/resolvers.js +569 -0
- package/dist/schema/resolvers.js.map +1 -0
- package/dist/schema/schema-composer.d.ts +3 -0
- package/dist/schema/schema-composer.js +31 -0
- package/dist/schema/schema-composer.js.map +1 -0
- package/dist/schema/schema.js +1295 -0
- package/dist/schema/schema.js.map +1 -0
- package/dist/schema/type-definitions.d.ts +47 -0
- package/dist/schema/type-definitions.js +4 -0
- package/dist/schema/type-definitions.js.map +1 -0
- package/dist/schema/types/built-in-types.d.ts +5 -0
- package/dist/schema/types/built-in-types.js +139 -0
- package/dist/schema/types/built-in-types.js.map +1 -0
- package/dist/schema/types/date.d.ts +37 -0
- package/dist/schema/types/date.js +225 -0
- package/dist/schema/types/date.js.map +1 -0
- package/dist/schema/types/derived-types.d.ts +45 -0
- package/dist/schema/types/derived-types.js +108 -0
- package/dist/schema/types/derived-types.js.map +1 -0
- package/dist/schema/types/filter.d.ts +12 -0
- package/dist/schema/types/filter.js +105 -0
- package/dist/schema/types/filter.js.map +1 -0
- package/dist/schema/types/media.d.ts +2 -0
- package/dist/schema/types/media.js +10 -0
- package/dist/schema/types/media.js.map +1 -0
- package/dist/schema/types/node-interface.d.ts +14 -0
- package/dist/schema/types/node-interface.js +103 -0
- package/dist/schema/types/node-interface.js.map +1 -0
- package/dist/schema/types/pagination.d.ts +16 -0
- package/dist/schema/types/pagination.js +198 -0
- package/dist/schema/types/pagination.js.map +1 -0
- package/dist/schema/types/remote-file-interface.d.ts +3 -0
- package/dist/schema/types/remote-file-interface.js +34 -0
- package/dist/schema/types/remote-file-interface.js.map +1 -0
- package/dist/schema/types/sort.d.ts +24 -0
- package/dist/schema/types/sort.js +178 -0
- package/dist/schema/types/sort.js.map +1 -0
- package/dist/schema/types/type-builders.d.ts +36 -0
- package/dist/schema/types/type-builders.js +61 -0
- package/dist/schema/types/type-builders.js.map +1 -0
- package/dist/schema/types/type-defs.js +86 -0
- package/dist/schema/types/type-defs.js.map +1 -0
- package/dist/schema/types/utils.d.ts +33 -0
- package/dist/schema/types/utils.js +153 -0
- package/dist/schema/types/utils.js.map +1 -0
- package/dist/schema/utils.d.ts +28 -0
- package/dist/schema/utils.js +149 -0
- package/dist/schema/utils.js.map +1 -0
- package/dist/services/build-schema.d.ts +2 -0
- package/dist/services/build-schema.js +24 -0
- package/dist/services/build-schema.js.map +1 -0
- package/dist/services/calculate-dirty-queries.d.ts +5 -0
- package/dist/services/calculate-dirty-queries.js +44 -0
- package/dist/services/calculate-dirty-queries.js.map +1 -0
- package/dist/services/create-pages.d.ts +5 -0
- package/dist/services/create-pages.js +108 -0
- package/dist/services/create-pages.js.map +1 -0
- package/dist/services/customize-schema.d.ts +2 -0
- package/dist/services/customize-schema.js +26 -0
- package/dist/services/customize-schema.js.map +1 -0
- package/dist/services/extract-queries.d.ts +2 -0
- package/dist/services/extract-queries.js +24 -0
- package/dist/services/extract-queries.js.map +1 -0
- package/dist/services/graphql-typegen.d.ts +2 -0
- package/dist/services/graphql-typegen.js +46 -0
- package/dist/services/graphql-typegen.js.map +1 -0
- package/dist/services/index.d.ts +19 -0
- package/dist/services/index.js +68 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/initialize.d.ts +14 -0
- package/dist/services/initialize.js +519 -0
- package/dist/services/initialize.js.map +1 -0
- package/dist/services/listen-for-mutations.d.ts +2 -0
- package/dist/services/listen-for-mutations.js +59 -0
- package/dist/services/listen-for-mutations.js.map +1 -0
- package/dist/services/listen-to-webpack.d.ts +3 -0
- package/dist/services/listen-to-webpack.js +17 -0
- package/dist/services/listen-to-webpack.js.map +1 -0
- package/dist/services/post-bootstrap.d.ts +2 -0
- package/dist/services/post-bootstrap.js +29 -0
- package/dist/services/post-bootstrap.js.map +1 -0
- package/dist/services/recompile.d.ts +3 -0
- package/dist/services/recompile.js +67 -0
- package/dist/services/recompile.js.map +1 -0
- package/dist/services/run-mutation-batch.d.ts +2 -0
- package/dist/services/run-mutation-batch.js +12 -0
- package/dist/services/run-mutation-batch.js.map +1 -0
- package/dist/services/run-page-queries.d.ts +2 -0
- package/dist/services/run-page-queries.js +38 -0
- package/dist/services/run-page-queries.js.map +1 -0
- package/dist/services/run-slice-queries.d.ts +2 -0
- package/dist/services/run-slice-queries.js +40 -0
- package/dist/services/run-slice-queries.js.map +1 -0
- package/dist/services/run-static-queries.d.ts +2 -0
- package/dist/services/run-static-queries.js +38 -0
- package/dist/services/run-static-queries.js.map +1 -0
- package/dist/services/source-nodes.d.ts +5 -0
- package/dist/services/source-nodes.js +47 -0
- package/dist/services/source-nodes.js.map +1 -0
- package/dist/services/start-webpack-server.d.ts +9 -0
- package/dist/services/start-webpack-server.js +103 -0
- package/dist/services/start-webpack-server.js.map +1 -0
- package/dist/services/types.d.ts +53 -0
- package/dist/services/types.js +4 -0
- package/dist/services/types.js.map +1 -0
- package/dist/services/write-out-redirects.d.ts +2 -0
- package/dist/services/write-out-redirects.js +20 -0
- package/dist/services/write-out-redirects.js.map +1 -0
- package/dist/services/write-out-requires.d.ts +2 -0
- package/dist/services/write-out-requires.js +27 -0
- package/dist/services/write-out-requires.js.map +1 -0
- package/dist/state-machines/data-layer/actions.d.ts +11 -0
- package/dist/state-machines/data-layer/actions.js +38 -0
- package/dist/state-machines/data-layer/actions.js.map +1 -0
- package/dist/state-machines/data-layer/index.d.ts +24 -0
- package/dist/state-machines/data-layer/index.js +152 -0
- package/dist/state-machines/data-layer/index.js.map +1 -0
- package/dist/state-machines/data-layer/services.d.ts +3 -0
- package/dist/state-machines/data-layer/services.js +14 -0
- package/dist/state-machines/data-layer/services.js.map +1 -0
- package/dist/state-machines/data-layer/types.d.ts +27 -0
- package/dist/state-machines/data-layer/types.js +4 -0
- package/dist/state-machines/data-layer/types.js.map +1 -0
- package/dist/state-machines/develop/actions.d.ts +68 -0
- package/dist/state-machines/develop/actions.js +259 -0
- package/dist/state-machines/develop/actions.js.map +1 -0
- package/dist/state-machines/develop/index.d.ts +5 -0
- package/dist/state-machines/develop/index.js +372 -0
- package/dist/state-machines/develop/index.js.map +1 -0
- package/dist/state-machines/develop/services.d.ts +3 -0
- package/dist/state-machines/develop/services.js +22 -0
- package/dist/state-machines/develop/services.js.map +1 -0
- package/dist/state-machines/index.d.ts +7 -0
- package/dist/state-machines/index.js +21 -0
- package/dist/state-machines/index.js.map +1 -0
- package/dist/state-machines/query-running/actions.d.ts +9 -0
- package/dist/state-machines/query-running/actions.js +55 -0
- package/dist/state-machines/query-running/actions.js.map +1 -0
- package/dist/state-machines/query-running/index.d.ts +7 -0
- package/dist/state-machines/query-running/index.js +142 -0
- package/dist/state-machines/query-running/index.js.map +1 -0
- package/dist/state-machines/query-running/services.d.ts +3 -0
- package/dist/state-machines/query-running/services.js +17 -0
- package/dist/state-machines/query-running/services.js.map +1 -0
- package/dist/state-machines/query-running/types.d.ts +26 -0
- package/dist/state-machines/query-running/types.js +4 -0
- package/dist/state-machines/query-running/types.js.map +1 -0
- package/dist/state-machines/waiting/actions.d.ts +11 -0
- package/dist/state-machines/waiting/actions.js +36 -0
- package/dist/state-machines/waiting/actions.js.map +1 -0
- package/dist/state-machines/waiting/index.d.ts +12 -0
- package/dist/state-machines/waiting/index.js +145 -0
- package/dist/state-machines/waiting/index.js.map +1 -0
- package/dist/state-machines/waiting/services.d.ts +3 -0
- package/dist/state-machines/waiting/services.js +10 -0
- package/dist/state-machines/waiting/services.js.map +1 -0
- package/dist/state-machines/waiting/types.d.ts +12 -0
- package/dist/state-machines/waiting/types.js +4 -0
- package/dist/state-machines/waiting/types.js.map +1 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/adapter/constants.d.ts +5 -0
- package/dist/utils/adapter/constants.js +31 -0
- package/dist/utils/adapter/constants.js.map +1 -0
- package/dist/utils/adapter/create-headers.d.ts +10 -0
- package/dist/utils/adapter/create-headers.js +94 -0
- package/dist/utils/adapter/create-headers.js.map +1 -0
- package/dist/utils/adapter/get-route-path.d.ts +3 -0
- package/dist/utils/adapter/get-route-path.js +22 -0
- package/dist/utils/adapter/get-route-path.js.map +1 -0
- package/dist/utils/adapter/init.d.ts +3 -0
- package/dist/utils/adapter/init.js +183 -0
- package/dist/utils/adapter/init.js.map +1 -0
- package/dist/utils/adapter/manager.d.ts +9 -0
- package/dist/utils/adapter/manager.js +554 -0
- package/dist/utils/adapter/manager.js.map +1 -0
- package/dist/utils/adapter/no-op-manager.d.ts +2 -0
- package/dist/utils/adapter/no-op-manager.js +18 -0
- package/dist/utils/adapter/no-op-manager.js.map +1 -0
- package/dist/utils/adapter/types.d.ts +282 -0
- package/dist/utils/adapter/types.js +4 -0
- package/dist/utils/adapter/types.js.map +1 -0
- package/dist/utils/api-browser-docs.d.ts +272 -0
- package/dist/utils/api-browser-docs.js +318 -0
- package/dist/utils/api-browser-docs.js.map +1 -0
- package/dist/utils/api-node-docs.d.ts +470 -0
- package/dist/utils/api-node-docs.js +519 -0
- package/dist/utils/api-node-docs.js.map +1 -0
- package/dist/utils/api-node-helpers-docs.js +322 -0
- package/dist/utils/api-node-helpers-docs.js.map +1 -0
- package/dist/utils/api-runner-error-parser.d.ts +5 -0
- package/dist/utils/api-runner-error-parser.js +63 -0
- package/dist/utils/api-runner-error-parser.js.map +1 -0
- package/dist/utils/api-runner-node.js +663 -0
- package/dist/utils/api-runner-node.js.map +1 -0
- package/dist/utils/app-data.d.ts +2 -0
- package/dist/utils/app-data.js +15 -0
- package/dist/utils/app-data.js.map +1 -0
- package/dist/utils/assert-store.d.ts +2 -0
- package/dist/utils/assert-store.js +12 -0
- package/dist/utils/assert-store.js.map +1 -0
- package/dist/utils/babel/babel-module-exports-helpers.d.ts +22 -0
- package/dist/utils/babel/babel-module-exports-helpers.js +48 -0
- package/dist/utils/babel/babel-module-exports-helpers.js.map +1 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.d.ts +10 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.js +48 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.js.map +1 -0
- package/dist/utils/babel/babel-plugin-remove-api.d.ts +5 -0
- package/dist/utils/babel/babel-plugin-remove-api.js +148 -0
- package/dist/utils/babel/babel-plugin-remove-api.js.map +1 -0
- package/dist/utils/babel/find-slices.d.ts +8 -0
- package/dist/utils/babel/find-slices.js +68 -0
- package/dist/utils/babel/find-slices.js.map +1 -0
- package/dist/utils/babel-loader-helpers.d.ts +19 -0
- package/dist/utils/babel-loader-helpers.js +158 -0
- package/dist/utils/babel-loader-helpers.js.map +1 -0
- package/dist/utils/babel-loader.d.ts +8 -0
- package/dist/utils/babel-loader.js +158 -0
- package/dist/utils/babel-loader.js.map +1 -0
- package/dist/utils/babel-parse-to-ast.d.ts +4 -0
- package/dist/utils/babel-parse-to-ast.js +34 -0
- package/dist/utils/babel-parse-to-ast.js.map +1 -0
- package/dist/utils/batcher.d.ts +15 -0
- package/dist/utils/batcher.js +46 -0
- package/dist/utils/batcher.js.map +1 -0
- package/dist/utils/browserslist.d.ts +2 -0
- package/dist/utils/browserslist.js +38 -0
- package/dist/utils/browserslist.js.map +1 -0
- package/dist/utils/cache-lmdb.d.ts +19 -0
- package/dist/utils/cache-lmdb.js +88 -0
- package/dist/utils/cache-lmdb.js.map +1 -0
- package/dist/utils/cache.d.ts +17 -0
- package/dist/utils/cache.js +77 -0
- package/dist/utils/cache.js.map +1 -0
- package/dist/utils/call-deferred-api.d.ts +8 -0
- package/dist/utils/call-deferred-api.js +35 -0
- package/dist/utils/call-deferred-api.js.map +1 -0
- package/dist/utils/changed-pages.d.ts +6 -0
- package/dist/utils/changed-pages.js +45 -0
- package/dist/utils/changed-pages.js.map +1 -0
- package/dist/utils/clear-require-cache.d.ts +1 -0
- package/dist/utils/clear-require-cache.js +24 -0
- package/dist/utils/clear-require-cache.js.map +1 -0
- package/dist/utils/client-assets-for-template.d.ts +9 -0
- package/dist/utils/client-assets-for-template.js +141 -0
- package/dist/utils/client-assets-for-template.js.map +1 -0
- package/dist/utils/create-node-id.d.ts +24 -0
- package/dist/utils/create-node-id.js +67 -0
- package/dist/utils/create-node-id.js.map +1 -0
- package/dist/utils/create-schema-customization.d.ts +6 -0
- package/dist/utils/create-schema-customization.js +25 -0
- package/dist/utils/create-schema-customization.js.map +1 -0
- package/dist/utils/detect-node-mutations.d.ts +4 -0
- package/dist/utils/detect-node-mutations.js +134 -0
- package/dist/utils/detect-node-mutations.js.map +1 -0
- package/dist/utils/detect-port-in-use-and-prompt.d.ts +1 -0
- package/dist/utils/detect-port-in-use-and-prompt.js +31 -0
- package/dist/utils/detect-port-in-use-and-prompt.js.map +1 -0
- package/dist/utils/dev-ssr/parse-error.d.ts +22 -0
- package/dist/utils/dev-ssr/parse-error.js +119 -0
- package/dist/utils/dev-ssr/parse-error.js.map +1 -0
- package/dist/utils/dev-ssr/render-dev-html-child.d.ts +13 -0
- package/dist/utils/dev-ssr/render-dev-html-child.js +47 -0
- package/dist/utils/dev-ssr/render-dev-html-child.js.map +1 -0
- package/dist/utils/dev-ssr/render-dev-html.d.ts +23 -0
- package/dist/utils/dev-ssr/render-dev-html.js +227 -0
- package/dist/utils/dev-ssr/render-dev-html.js.map +1 -0
- package/dist/utils/develop-preload-headers.d.ts +7 -0
- package/dist/utils/develop-preload-headers.js +64 -0
- package/dist/utils/develop-preload-headers.js.map +1 -0
- package/dist/utils/did-you-mean.d.ts +3 -0
- package/dist/utils/did-you-mean.js +21 -0
- package/dist/utils/did-you-mean.js.map +1 -0
- package/dist/utils/engine-context.d.ts +5 -0
- package/dist/utils/engine-context.js +19 -0
- package/dist/utils/engine-context.js.map +1 -0
- package/dist/utils/engines-fs-provider.d.ts +9 -0
- package/dist/utils/engines-fs-provider.js +24 -0
- package/dist/utils/engines-fs-provider.js.map +1 -0
- package/dist/utils/engines-helpers.d.ts +10 -0
- package/dist/utils/engines-helpers.js +48 -0
- package/dist/utils/engines-helpers.js.map +1 -0
- package/dist/utils/ensure-file-content.d.ts +1 -0
- package/dist/utils/ensure-file-content.js +19 -0
- package/dist/utils/ensure-file-content.js.map +1 -0
- package/dist/utils/eslint/required.js +10 -0
- package/dist/utils/eslint/required.js.map +1 -0
- package/dist/utils/eslint-config.d.ts +3 -0
- package/dist/utils/eslint-config.js +136 -0
- package/dist/utils/eslint-config.js.map +1 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.d.ts +1 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.js +183 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.js.map +1 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.d.ts +1 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.js +75 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.js.map +1 -0
- package/dist/utils/eslint-rules-helpers.d.ts +4 -0
- package/dist/utils/eslint-rules-helpers.js +22 -0
- package/dist/utils/eslint-rules-helpers.js.map +1 -0
- package/dist/utils/express-middlewares.d.ts +4 -0
- package/dist/utils/express-middlewares.js +57 -0
- package/dist/utils/express-middlewares.js.map +1 -0
- package/dist/utils/extract-undefined-global.d.ts +4 -0
- package/dist/utils/extract-undefined-global.js +15 -0
- package/dist/utils/extract-undefined-global.js.map +1 -0
- package/dist/utils/fast-refresh-module.d.ts +22 -0
- package/dist/utils/fast-refresh-module.js +53 -0
- package/dist/utils/fast-refresh-module.js.map +1 -0
- package/dist/utils/feedback.d.ts +5 -0
- package/dist/utils/feedback.js +159 -0
- package/dist/utils/feedback.js.map +1 -0
- package/dist/utils/find-page-by-path.d.ts +2 -0
- package/dist/utils/find-page-by-path.js +96 -0
- package/dist/utils/find-page-by-path.js.map +1 -0
- package/dist/utils/flags.d.ts +41 -0
- package/dist/utils/flags.js +92 -0
- package/dist/utils/flags.js.map +1 -0
- package/dist/utils/gatsby-cloud-config.d.ts +4 -0
- package/dist/utils/gatsby-cloud-config.js +15 -0
- package/dist/utils/gatsby-cloud-config.js.map +1 -0
- package/dist/utils/gatsby-dependents.d.ts +8 -0
- package/dist/utils/gatsby-dependents.js +51 -0
- package/dist/utils/gatsby-dependents.js.map +1 -0
- package/dist/utils/gatsby-webpack-stats-extractor.d.ts +7 -0
- package/dist/utils/gatsby-webpack-stats-extractor.js +136 -0
- package/dist/utils/gatsby-webpack-stats-extractor.js.map +1 -0
- package/dist/utils/gatsby-webpack-virtual-modules.d.ts +6 -0
- package/dist/utils/gatsby-webpack-virtual-modules.js +45 -0
- package/dist/utils/gatsby-webpack-virtual-modules.js.map +1 -0
- package/dist/utils/get-cache.d.ts +2 -0
- package/dist/utils/get-cache.js +18 -0
- package/dist/utils/get-cache.js.map +1 -0
- package/dist/utils/get-latest-gatsby-files.d.ts +8 -0
- package/dist/utils/get-latest-gatsby-files.js +93 -0
- package/dist/utils/get-latest-gatsby-files.js.map +1 -0
- package/dist/utils/get-page-data.d.ts +3 -0
- package/dist/utils/get-page-data.js +88 -0
- package/dist/utils/get-page-data.js.map +1 -0
- package/dist/utils/get-public-path.d.ts +5 -0
- package/dist/utils/get-public-path.js +19 -0
- package/dist/utils/get-public-path.js.map +1 -0
- package/dist/utils/get-server-data.d.ts +19 -0
- package/dist/utils/get-server-data.js +29 -0
- package/dist/utils/get-server-data.js.map +1 -0
- package/dist/utils/get-ssl-cert.d.ts +9 -0
- package/dist/utils/get-ssl-cert.js +95 -0
- package/dist/utils/get-ssl-cert.js.map +1 -0
- package/dist/utils/get-static-dir.d.ts +12 -0
- package/dist/utils/get-static-dir.js +60 -0
- package/dist/utils/get-static-dir.js.map +1 -0
- package/dist/utils/get-value-at.d.ts +1 -0
- package/dist/utils/get-value-at.js +22 -0
- package/dist/utils/get-value-at.js.map +1 -0
- package/dist/utils/graphql-typegen/file-writes.d.ts +5 -0
- package/dist/utils/graphql-typegen/file-writes.js +63 -0
- package/dist/utils/graphql-typegen/file-writes.js.map +1 -0
- package/dist/utils/graphql-typegen/ts-codegen.d.ts +5 -0
- package/dist/utils/graphql-typegen/ts-codegen.js +136 -0
- package/dist/utils/graphql-typegen/ts-codegen.js.map +1 -0
- package/dist/utils/graphql-typegen/utils.d.ts +11 -0
- package/dist/utils/graphql-typegen/utils.js +70 -0
- package/dist/utils/graphql-typegen/utils.js.map +1 -0
- package/dist/utils/handle-flags.d.ts +8 -0
- package/dist/utils/handle-flags.js +212 -0
- package/dist/utils/handle-flags.js.map +1 -0
- package/dist/utils/import-gatsby-plugin.d.ts +11 -0
- package/dist/utils/import-gatsby-plugin.js +40 -0
- package/dist/utils/import-gatsby-plugin.js.map +1 -0
- package/dist/utils/is-32-bit-integer.d.ts +1 -0
- package/dist/utils/is-32-bit-integer.js +8 -0
- package/dist/utils/is-32-bit-integer.js.map +1 -0
- package/dist/utils/is-near-match.d.ts +1 -0
- package/dist/utils/is-near-match.js +10 -0
- package/dist/utils/is-near-match.js.map +1 -0
- package/dist/utils/jobs/manager.d.ts +34 -0
- package/dist/utils/jobs/manager.js +313 -0
- package/dist/utils/jobs/manager.js.map +1 -0
- package/dist/utils/jobs/types.d.ts +63 -0
- package/dist/utils/jobs/types.js +32 -0
- package/dist/utils/jobs/types.js.map +1 -0
- package/dist/utils/jobs/worker-messaging.d.ts +10 -0
- package/dist/utils/jobs/worker-messaging.js +114 -0
- package/dist/utils/jobs/worker-messaging.js.map +1 -0
- package/dist/utils/js-chunk-names.d.ts +1 -0
- package/dist/utils/js-chunk-names.js +72 -0
- package/dist/utils/js-chunk-names.js.map +1 -0
- package/dist/utils/loading-indicator.d.ts +3 -0
- package/dist/utils/loading-indicator.js +44 -0
- package/dist/utils/loading-indicator.js.map +1 -0
- package/dist/utils/local-eslint-config-finder.d.ts +1 -0
- package/dist/utils/local-eslint-config-finder.js +31 -0
- package/dist/utils/local-eslint-config-finder.js.map +1 -0
- package/dist/utils/merge-gatsby-config.d.ts +28 -0
- package/dist/utils/merge-gatsby-config.js +43 -0
- package/dist/utils/merge-gatsby-config.js.map +1 -0
- package/dist/utils/mett.d.ts +10 -0
- package/dist/utils/mett.js +42 -0
- package/dist/utils/mett.js.map +1 -0
- package/dist/utils/module-resolver.d.ts +2 -0
- package/dist/utils/module-resolver.js +24 -0
- package/dist/utils/module-resolver.js.map +1 -0
- package/dist/utils/node-manifest.d.ts +46 -0
- package/dist/utils/node-manifest.js +367 -0
- package/dist/utils/node-manifest.js.map +1 -0
- package/dist/utils/nodes.d.ts +13 -0
- package/dist/utils/nodes.js +62 -0
- package/dist/utils/nodes.js.map +1 -0
- package/dist/utils/normalize-path.d.ts +2 -0
- package/dist/utils/normalize-path.js +11 -0
- package/dist/utils/normalize-path.js.map +1 -0
- package/dist/utils/page-data-helpers.d.ts +23 -0
- package/dist/utils/page-data-helpers.js +76 -0
- package/dist/utils/page-data-helpers.js.map +1 -0
- package/dist/utils/page-data.d.ts +39 -0
- package/dist/utils/page-data.js +366 -0
- package/dist/utils/page-data.js.map +1 -0
- package/dist/utils/page-mode.d.ts +18 -0
- package/dist/utils/page-mode.js +124 -0
- package/dist/utils/page-mode.js.map +1 -0
- package/dist/utils/page-ssr-module/bundle-webpack.d.ts +18 -0
- package/dist/utils/page-ssr-module/bundle-webpack.js +209 -0
- package/dist/utils/page-ssr-module/bundle-webpack.js.map +1 -0
- package/dist/utils/page-ssr-module/entry.d.ts +61 -0
- package/dist/utils/page-ssr-module/entry.js +344 -0
- package/dist/utils/page-ssr-module/entry.js.map +1 -0
- package/dist/utils/page-ssr-module/lambda.d.ts +3 -0
- package/dist/utils/page-ssr-module/lambda.js +401 -0
- package/dist/utils/page-ssr-module/lambda.js.map +1 -0
- package/dist/utils/parcel/compile-gatsby-files.d.ts +26 -0
- package/dist/utils/parcel/compile-gatsby-files.js +271 -0
- package/dist/utils/parcel/compile-gatsby-files.js.map +1 -0
- package/dist/utils/path.d.ts +5 -0
- package/dist/utils/path.js +55 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/prepare-regex.d.ts +1 -0
- package/dist/utils/prepare-regex.js +13 -0
- package/dist/utils/prepare-regex.js.map +1 -0
- package/dist/utils/prepare-urls.d.ts +7 -0
- package/dist/utils/prepare-urls.js +58 -0
- package/dist/utils/prepare-urls.js.map +1 -0
- package/dist/utils/print-instructions.d.ts +2 -0
- package/dist/utils/print-instructions.js +42 -0
- package/dist/utils/print-instructions.js.map +1 -0
- package/dist/utils/rank-route.d.ts +1 -0
- package/dist/utils/rank-route.js +26 -0
- package/dist/utils/rank-route.js.map +1 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.d.ts +1 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.js +23 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.js.map +1 -0
- package/dist/utils/report-once.d.ts +1 -0
- package/dist/utils/report-once.js +17 -0
- package/dist/utils/report-once.js.map +1 -0
- package/dist/utils/sanitize-node.d.ts +12 -0
- package/dist/utils/sanitize-node.js +87 -0
- package/dist/utils/sanitize-node.js.map +1 -0
- package/dist/utils/show-experiment-notice.d.ts +6 -0
- package/dist/utils/show-experiment-notice.js +51 -0
- package/dist/utils/show-experiment-notice.js.map +1 -0
- package/dist/utils/slices/stitching.d.ts +4 -0
- package/dist/utils/slices/stitching.js +92 -0
- package/dist/utils/slices/stitching.js.map +1 -0
- package/dist/utils/slices.d.ts +2 -0
- package/dist/utils/slices.js +9 -0
- package/dist/utils/slices.js.map +1 -0
- package/dist/utils/source-nodes-api-runner.d.ts +8 -0
- package/dist/utils/source-nodes-api-runner.js +23 -0
- package/dist/utils/source-nodes-api-runner.js.map +1 -0
- package/dist/utils/source-nodes.d.ts +11 -0
- package/dist/utils/source-nodes.js +150 -0
- package/dist/utils/source-nodes.js.map +1 -0
- package/dist/utils/stack-trace-utils.d.ts +24 -0
- package/dist/utils/stack-trace-utils.js +113 -0
- package/dist/utils/stack-trace-utils.js.map +1 -0
- package/dist/utils/start-server.d.ts +22 -0
- package/dist/utils/start-server.js +722 -0
- package/dist/utils/start-server.js.map +1 -0
- package/dist/utils/state-machine-logging.d.ts +4 -0
- package/dist/utils/state-machine-logging.js +47 -0
- package/dist/utils/state-machine-logging.js.map +1 -0
- package/dist/utils/static-query-utils.d.ts +13 -0
- package/dist/utils/static-query-utils.js +57 -0
- package/dist/utils/static-query-utils.js.map +1 -0
- package/dist/utils/test-import-error.d.ts +1 -0
- package/dist/utils/test-import-error.js +18 -0
- package/dist/utils/test-import-error.js.map +1 -0
- package/dist/utils/tracer/index.d.ts +12 -0
- package/dist/utils/tracer/index.js +42 -0
- package/dist/utils/tracer/index.js.map +1 -0
- package/dist/utils/tracer/jaeger-local.d.ts +4 -0
- package/dist/utils/tracer/jaeger-local.js +32 -0
- package/dist/utils/tracer/jaeger-local.js.map +1 -0
- package/dist/utils/tracer/zipkin-local.d.ts +11 -0
- package/dist/utils/tracer/zipkin-local.js +87 -0
- package/dist/utils/tracer/zipkin-local.js.map +1 -0
- package/dist/utils/tracer/zipkin-types.d.js +14 -0
- package/dist/utils/tracer/zipkin-types.d.js.map +1 -0
- package/dist/utils/validate-component.d.ts +23 -0
- package/dist/utils/validate-component.js +99 -0
- package/dist/utils/validate-component.js.map +1 -0
- package/dist/utils/validate-engines/child.d.ts +1 -0
- package/dist/utils/validate-engines/child.js +74 -0
- package/dist/utils/validate-engines/child.js.map +1 -0
- package/dist/utils/validate-engines/index.d.ts +2 -0
- package/dist/utils/validate-engines/index.js +48 -0
- package/dist/utils/validate-engines/index.js.map +1 -0
- package/dist/utils/wait-until-jobs-complete.d.ts +2 -0
- package/dist/utils/wait-until-jobs-complete.js +30 -0
- package/dist/utils/wait-until-jobs-complete.js.map +1 -0
- package/dist/utils/webpack/bundle.d.ts +9 -0
- package/dist/utils/webpack/bundle.js +41 -0
- package/dist/utils/webpack/bundle.js.map +1 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.d.ts +9 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.js +55 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.js.map +1 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.js +22 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.js.map +1 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.js +127 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.js.map +1 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.js +40 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.js.map +1 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.d.ts +25 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.js +111 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.js.map +1 -0
- package/dist/utils/webpack/plugins/corejs-resolver.d.ts +12 -0
- package/dist/utils/webpack/plugins/corejs-resolver.js +66 -0
- package/dist/utils/webpack/plugins/corejs-resolver.js.map +1 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.d.ts +22 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.js +88 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.js.map +1 -0
- package/dist/utils/webpack/plugins/partial-hydration.d.ts +26 -0
- package/dist/utils/webpack/plugins/partial-hydration.js +362 -0
- package/dist/utils/webpack/plugins/partial-hydration.js.map +1 -0
- package/dist/utils/webpack/plugins/static-query-mapper.d.ts +13 -0
- package/dist/utils/webpack/plugins/static-query-mapper.js +235 -0
- package/dist/utils/webpack/plugins/static-query-mapper.js.map +1 -0
- package/dist/utils/webpack/plugins/webpack-logging.d.ts +12 -0
- package/dist/utils/webpack/plugins/webpack-logging.js +51 -0
- package/dist/utils/webpack/plugins/webpack-logging.js.map +1 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.d.ts +12 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.js +25 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.js.map +1 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.d.ts +7 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.js +37 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.js.map +1 -0
- package/dist/utils/webpack-error-utils.d.ts +24 -0
- package/dist/utils/webpack-error-utils.js +112 -0
- package/dist/utils/webpack-error-utils.js.map +1 -0
- package/dist/utils/webpack-plugins.d.ts +46 -0
- package/dist/utils/webpack-plugins.js +61 -0
- package/dist/utils/webpack-plugins.js.map +1 -0
- package/dist/utils/webpack-status.d.ts +3 -0
- package/dist/utils/webpack-status.js +21 -0
- package/dist/utils/webpack-status.js.map +1 -0
- package/dist/utils/webpack-utils.d.ts +121 -0
- package/dist/utils/webpack-utils.js +574 -0
- package/dist/utils/webpack-utils.js.map +1 -0
- package/dist/utils/webpack.config.js +804 -0
- package/dist/utils/webpack.config.js.map +1 -0
- package/dist/utils/websocket-manager.d.ts +39 -0
- package/dist/utils/websocket-manager.js +183 -0
- package/dist/utils/websocket-manager.js.map +1 -0
- package/dist/utils/worker/child/index.d.ts +5 -0
- package/dist/utils/worker/child/index.js +35 -0
- package/dist/utils/worker/child/index.js.map +1 -0
- package/dist/utils/worker/child/load-config-and-plugins.d.ts +2 -0
- package/dist/utils/worker/child/load-config-and-plugins.js +28 -0
- package/dist/utils/worker/child/load-config-and-plugins.js.map +1 -0
- package/dist/utils/worker/child/queries.d.ts +7 -0
- package/dist/utils/worker/child/queries.js +84 -0
- package/dist/utils/worker/child/queries.js.map +1 -0
- package/dist/utils/worker/child/render-html.d.ts +49 -0
- package/dist/utils/worker/child/render-html.js +562 -0
- package/dist/utils/worker/child/render-html.js.map +1 -0
- package/dist/utils/worker/child/schema.d.ts +2 -0
- package/dist/utils/worker/child/schema.js +41 -0
- package/dist/utils/worker/child/schema.js.map +1 -0
- package/dist/utils/worker/child/state.d.ts +2 -0
- package/dist/utils/worker/child/state.js +13 -0
- package/dist/utils/worker/child/state.js.map +1 -0
- package/dist/utils/worker/messaging.d.ts +16 -0
- package/dist/utils/worker/messaging.js +9 -0
- package/dist/utils/worker/messaging.js.map +1 -0
- package/dist/utils/worker/pool.d.ts +10 -0
- package/dist/utils/worker/pool.js +122 -0
- package/dist/utils/worker/pool.js.map +1 -0
- package/dist/utils/worker/reporter.d.ts +3 -0
- package/dist/utils/worker/reporter.js +26 -0
- package/dist/utils/worker/reporter.js.map +1 -0
- package/dist/utils/worker/types.d.ts +3 -0
- package/dist/utils/worker/types.js +4 -0
- package/dist/utils/worker/types.js.map +1 -0
- package/graphql.d.ts +2 -0
- package/graphql.js +6 -0
- package/index.d.ts +1906 -0
- package/internal.d.ts +4 -0
- package/internal.js +5 -0
- package/ipc.json +3 -0
- package/package.json +744 -0
- package/reporter.d.ts +4 -0
- package/reporter.js +3 -0
- package/scripts/postinstall.js +7 -0
- package/utils.js +1 -0
- package/webpack.d.ts +3 -0
- package/webpack.js +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/internal-plugins/bundle-optimisations/index.js"],"sourcesContent":["// noop\n"],"mappings":"AAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch.js","names":["module","exports","global","fetch"],"sources":["../../../../src/internal-plugins/bundle-optimisations/polyfills/fetch.js"],"sourcesContent":["module.exports = global.fetch\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAGC,MAAM,CAACC,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-op.js","names":[],"sources":["../../../../src/internal-plugins/bundle-optimisations/polyfills/no-op.js"],"sourcesContent":["// empty file\n"],"mappings":"AAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-assign.js","names":["module","exports","Object","assign"],"sources":["../../../../src/internal-plugins/bundle-optimisations/polyfills/object-assign.js"],"sourcesContent":["module.exports = Object.assign\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAGC,MAAM,CAACC,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatwg-fetch.js","names":["module","exports","fetch","global"],"sources":["../../../../src/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js"],"sourcesContent":["module.exports = {\n fetch: global.fetch,\n}\n"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG;EACfC,KAAK,EAAEC,MAAM,CAACD;AAChB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const path = require(`path`);
|
|
4
|
+
const fs = require(`fs-extra`);
|
|
5
|
+
const chokidar = require(`chokidar`);
|
|
6
|
+
exports.createPagesStatefully = async ({
|
|
7
|
+
store,
|
|
8
|
+
actions
|
|
9
|
+
}, options, done) => {
|
|
10
|
+
if (process.env.NODE_ENV !== `production`) {
|
|
11
|
+
const {
|
|
12
|
+
program
|
|
13
|
+
} = store.getState();
|
|
14
|
+
const {
|
|
15
|
+
createPage
|
|
16
|
+
} = actions;
|
|
17
|
+
const source = path.join(__dirname, `./raw_dev-404-page.js`);
|
|
18
|
+
const destination = path.join(program.directory, `.cache`, `dev-404-page.js`);
|
|
19
|
+
const copy = () => fs.copy(source, destination);
|
|
20
|
+
await copy();
|
|
21
|
+
createPage({
|
|
22
|
+
component: destination,
|
|
23
|
+
path: `/dev-404-page/`
|
|
24
|
+
});
|
|
25
|
+
chokidar.watch(source).on(`change`, () => copy()).on(`ready`, () => done());
|
|
26
|
+
} else {
|
|
27
|
+
done();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=gatsby-node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gatsby-node.js","names":["path","require","fs","chokidar","exports","createPagesStatefully","store","actions","options","done","process","env","NODE_ENV","program","getState","createPage","source","join","__dirname","destination","directory","copy","component","watch","on"],"sources":["../../../src/internal-plugins/dev-404-page/gatsby-node.js"],"sourcesContent":["const path = require(`path`)\nconst fs = require(`fs-extra`)\nconst chokidar = require(`chokidar`)\n\nexports.createPagesStatefully = async ({ store, actions }, options, done) => {\n if (process.env.NODE_ENV !== `production`) {\n const { program } = store.getState()\n const { createPage } = actions\n const source = path.join(__dirname, `./raw_dev-404-page.js`)\n const destination = path.join(\n program.directory,\n `.cache`,\n `dev-404-page.js`\n )\n const copy = () => fs.copy(source, destination)\n await copy()\n createPage({\n component: destination,\n path: `/dev-404-page/`,\n })\n chokidar\n .watch(source)\n .on(`change`, () => copy())\n .on(`ready`, () => done())\n } else {\n done()\n }\n}\n"],"mappings":";;AAAA,MAAMA,IAAI,GAAGC,OAAO,CAAE,MAAK,CAAC;AAC5B,MAAMC,EAAE,GAAGD,OAAO,CAAE,UAAS,CAAC;AAC9B,MAAME,QAAQ,GAAGF,OAAO,CAAE,UAAS,CAAC;AAEpCG,OAAO,CAACC,qBAAqB,GAAG,OAAO;EAAEC,KAAK;EAAEC;AAAQ,CAAC,EAAEC,OAAO,EAAEC,IAAI,KAAK;EAC3E,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAM,YAAW,EAAE;IACzC,MAAM;MAAEC;IAAQ,CAAC,GAAGP,KAAK,CAACQ,QAAQ,EAAE;IACpC,MAAM;MAAEC;IAAW,CAAC,GAAGR,OAAO;IAC9B,MAAMS,MAAM,GAAGhB,IAAI,CAACiB,IAAI,CAACC,SAAS,EAAG,uBAAsB,CAAC;IAC5D,MAAMC,WAAW,GAAGnB,IAAI,CAACiB,IAAI,CAC3BJ,OAAO,CAACO,SAAS,EAChB,QAAO,EACP,iBAAgB,CAClB;IACD,MAAMC,IAAI,GAAG,MAAMnB,EAAE,CAACmB,IAAI,CAACL,MAAM,EAAEG,WAAW,CAAC;IAC/C,MAAME,IAAI,EAAE;IACZN,UAAU,CAAC;MACTO,SAAS,EAAEH,WAAW;MACtBnB,IAAI,EAAG;IACT,CAAC,CAAC;IACFG,QAAQ,CACLoB,KAAK,CAACP,MAAM,CAAC,CACbQ,EAAE,CAAE,QAAO,EAAE,MAAMH,IAAI,EAAE,CAAC,CAC1BG,EAAE,CAAE,OAAM,EAAE,MAAMf,IAAI,EAAE,CAAC;EAC9B,CAAC,MAAM;IACLA,IAAI,EAAE;EACR;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/internal-plugins/dev-404-page/index.js"],"sourcesContent":["// noop\n"],"mappings":"AAAA;AAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dev-404-page",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Internal plugin to add a 404 page in development with helpful information",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
|
|
10
|
+
"license": "MIT"
|
|
11
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import PropTypes from "prop-types"
|
|
3
|
+
import { graphql, Link, navigate } from "gatsby"
|
|
4
|
+
import queryString from "query-string"
|
|
5
|
+
|
|
6
|
+
class Dev404Page extends React.Component {
|
|
7
|
+
static propTypes = {
|
|
8
|
+
data: PropTypes.object,
|
|
9
|
+
custom404: PropTypes.element,
|
|
10
|
+
location: PropTypes.object,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
constructor(props) {
|
|
14
|
+
super(props)
|
|
15
|
+
const { data, location } = this.props
|
|
16
|
+
const pagePaths = data.allSitePage.nodes.map(node => node.path)
|
|
17
|
+
const urlState = queryString.parse(location.search)
|
|
18
|
+
|
|
19
|
+
const initialPagePathSearchTerms = urlState.filter ? urlState.filter : ``
|
|
20
|
+
|
|
21
|
+
this.state = {
|
|
22
|
+
hasMounted: false,
|
|
23
|
+
showCustom404: process.env.GATSBY_DISABLE_CUSTOM_404 || false,
|
|
24
|
+
initPagePaths: pagePaths,
|
|
25
|
+
pagePathSearchTerms: initialPagePathSearchTerms,
|
|
26
|
+
pagePaths: this.getFilteredPagePaths(
|
|
27
|
+
pagePaths,
|
|
28
|
+
initialPagePathSearchTerms
|
|
29
|
+
),
|
|
30
|
+
}
|
|
31
|
+
this.showCustom404 = this.showCustom404.bind(this)
|
|
32
|
+
this.handlePagePathSearch = this.handlePagePathSearch.bind(this)
|
|
33
|
+
this.handleSearchTermChange = this.handleSearchTermChange.bind(this)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
componentDidMount() {
|
|
37
|
+
this.setState({
|
|
38
|
+
hasMounted: true,
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
showCustom404() {
|
|
43
|
+
this.setState({ showCustom404: true })
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
handleSearchTermChange(event) {
|
|
47
|
+
const searchValue = event.target.value
|
|
48
|
+
|
|
49
|
+
this.setSearchUrl(searchValue)
|
|
50
|
+
|
|
51
|
+
this.setState({
|
|
52
|
+
pagePathSearchTerms: searchValue,
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
handlePagePathSearch(event) {
|
|
57
|
+
event.preventDefault()
|
|
58
|
+
const allPagePaths = [...this.state.initPagePaths]
|
|
59
|
+
this.setState({
|
|
60
|
+
pagePaths: this.getFilteredPagePaths(
|
|
61
|
+
allPagePaths,
|
|
62
|
+
this.state.pagePathSearchTerms
|
|
63
|
+
),
|
|
64
|
+
})
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
getFilteredPagePaths(allPagePaths, pagePathSearchTerms) {
|
|
68
|
+
const searchTerm = new RegExp(`${pagePathSearchTerms}`)
|
|
69
|
+
return allPagePaths.filter(pagePath => searchTerm.test(pagePath))
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
setSearchUrl(searchValue) {
|
|
73
|
+
const {
|
|
74
|
+
location: { pathname, search },
|
|
75
|
+
} = this.props
|
|
76
|
+
|
|
77
|
+
const searchMap = queryString.parse(search)
|
|
78
|
+
searchMap.filter = searchValue
|
|
79
|
+
|
|
80
|
+
const newSearch = queryString.stringify(searchMap)
|
|
81
|
+
|
|
82
|
+
if (search !== `?${newSearch}`) {
|
|
83
|
+
navigate(`${pathname}?${newSearch}`, { replace: true })
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
render() {
|
|
88
|
+
if (!this.state.hasMounted) {
|
|
89
|
+
return null
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const { pathname } = this.props.location
|
|
93
|
+
let newFilePath
|
|
94
|
+
let newAPIPath
|
|
95
|
+
if (pathname === `/`) {
|
|
96
|
+
newFilePath = `src/pages/index.js`
|
|
97
|
+
} else if (pathname.slice(0, 4) === `/api`) {
|
|
98
|
+
newAPIPath = `src${pathname}.js`
|
|
99
|
+
} else if (pathname.slice(-1) === `/`) {
|
|
100
|
+
newFilePath = `src/pages${pathname.slice(0, -1)}.js`
|
|
101
|
+
} else {
|
|
102
|
+
newFilePath = `src/pages${pathname}.js`
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return this.state.showCustom404 ? (
|
|
106
|
+
this.props.custom404
|
|
107
|
+
) : (
|
|
108
|
+
<div>
|
|
109
|
+
<h1>Gatsby.js development 404 page</h1>
|
|
110
|
+
<p>
|
|
111
|
+
There's not a page or function yet at{` `}
|
|
112
|
+
<code>{pathname}</code>
|
|
113
|
+
</p>
|
|
114
|
+
{this.props.custom404 ? (
|
|
115
|
+
<p>
|
|
116
|
+
<button onClick={this.showCustom404}>
|
|
117
|
+
Preview custom 404 page
|
|
118
|
+
</button>
|
|
119
|
+
</p>
|
|
120
|
+
) : (
|
|
121
|
+
<p>
|
|
122
|
+
{`A custom 404 page wasn't detected - if you would like to add one, create a component in your site directory at `}
|
|
123
|
+
<code>src/pages/404.js</code>.
|
|
124
|
+
</p>
|
|
125
|
+
)}
|
|
126
|
+
{newFilePath && (
|
|
127
|
+
<div>
|
|
128
|
+
<h2>Create a page at this url</h2>
|
|
129
|
+
<p>
|
|
130
|
+
Create a React.js component like the following in your site
|
|
131
|
+
directory at
|
|
132
|
+
{` `}"<code>{newFilePath}</code>"{` `}
|
|
133
|
+
and then refresh to show the new page component you created.
|
|
134
|
+
</p>
|
|
135
|
+
<pre
|
|
136
|
+
style={{
|
|
137
|
+
border: `1px solid lightgray`,
|
|
138
|
+
padding: `8px`,
|
|
139
|
+
maxWidth: `80ch`,
|
|
140
|
+
background: `#f3f3f3`,
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
143
|
+
<code
|
|
144
|
+
dangerouslySetInnerHTML={{
|
|
145
|
+
__html: `import * as React from "react"
|
|
146
|
+
|
|
147
|
+
export default function Component () {
|
|
148
|
+
return "Hello world"
|
|
149
|
+
}`,
|
|
150
|
+
}}
|
|
151
|
+
/>
|
|
152
|
+
</pre>
|
|
153
|
+
</div>
|
|
154
|
+
)}
|
|
155
|
+
{newAPIPath && (
|
|
156
|
+
<div>
|
|
157
|
+
<h2>Create an API function at this url</h2>
|
|
158
|
+
<p>
|
|
159
|
+
Create a javascript file like the following in your site directory
|
|
160
|
+
at
|
|
161
|
+
{` `}"<code>{newAPIPath}</code>"{` `}
|
|
162
|
+
and refresh to execute the new API function you created.
|
|
163
|
+
</p>
|
|
164
|
+
<pre
|
|
165
|
+
style={{
|
|
166
|
+
border: `1px solid lightgray`,
|
|
167
|
+
padding: `8px`,
|
|
168
|
+
maxWidth: `80ch`,
|
|
169
|
+
background: `#f3f3f3`,
|
|
170
|
+
}}
|
|
171
|
+
>
|
|
172
|
+
<code
|
|
173
|
+
dangerouslySetInnerHTML={{
|
|
174
|
+
__html: `
|
|
175
|
+
export default function API (req, res) {
|
|
176
|
+
res.json({ hello: "world" })
|
|
177
|
+
}`,
|
|
178
|
+
}}
|
|
179
|
+
/>
|
|
180
|
+
</pre>
|
|
181
|
+
</div>
|
|
182
|
+
)}
|
|
183
|
+
{this.state.initPagePaths.length > 0 && (
|
|
184
|
+
<div>
|
|
185
|
+
<hr />
|
|
186
|
+
<p>
|
|
187
|
+
If you were trying to reach another page or function, perhaps you
|
|
188
|
+
can find it below.
|
|
189
|
+
</p>
|
|
190
|
+
<h2>Functions ({this.props.data.allSiteFunction.nodes.length})</h2>
|
|
191
|
+
<ul>
|
|
192
|
+
{this.props.data.allSiteFunction.nodes.map(node => {
|
|
193
|
+
const functionRoute = `/api/${node.functionRoute}`
|
|
194
|
+
return (
|
|
195
|
+
<li key={functionRoute}>
|
|
196
|
+
<a href={functionRoute}>{functionRoute}</a>
|
|
197
|
+
</li>
|
|
198
|
+
)
|
|
199
|
+
})}
|
|
200
|
+
</ul>
|
|
201
|
+
<h2>
|
|
202
|
+
Pages (
|
|
203
|
+
{this.state.pagePaths.length != this.state.initPagePaths.length
|
|
204
|
+
? `${this.state.pagePaths.length}/${this.state.initPagePaths.length}`
|
|
205
|
+
: this.state.initPagePaths.length}
|
|
206
|
+
)
|
|
207
|
+
</h2>
|
|
208
|
+
|
|
209
|
+
<form onSubmit={this.handlePagePathSearch}>
|
|
210
|
+
<label>
|
|
211
|
+
Search:
|
|
212
|
+
<input
|
|
213
|
+
type="text"
|
|
214
|
+
id="search"
|
|
215
|
+
placeholder="Search pages..."
|
|
216
|
+
value={this.state.pagePathSearchTerms}
|
|
217
|
+
onChange={this.handleSearchTermChange}
|
|
218
|
+
/>
|
|
219
|
+
</label>
|
|
220
|
+
<input type="submit" value="Submit" />
|
|
221
|
+
</form>
|
|
222
|
+
<ul>
|
|
223
|
+
{this.state.pagePaths.map(
|
|
224
|
+
(pagePath, index) =>
|
|
225
|
+
index < 100 && (
|
|
226
|
+
<li key={pagePath}>
|
|
227
|
+
<Link to={pagePath}>{pagePath}</Link>
|
|
228
|
+
</li>
|
|
229
|
+
)
|
|
230
|
+
)}
|
|
231
|
+
{this.state.pagePaths.length > 100 && (
|
|
232
|
+
<p style={{ fontWeight: `bold` }}>
|
|
233
|
+
... and {this.state.pagePaths.length - 100} more.
|
|
234
|
+
</p>
|
|
235
|
+
)}
|
|
236
|
+
</ul>
|
|
237
|
+
</div>
|
|
238
|
+
)}
|
|
239
|
+
</div>
|
|
240
|
+
)
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export default Dev404Page
|
|
245
|
+
|
|
246
|
+
// ESLint is complaining about the backslash in regex
|
|
247
|
+
/* eslint-disable */
|
|
248
|
+
export const pagesQuery = graphql`
|
|
249
|
+
query PagesQuery {
|
|
250
|
+
allSiteFunction {
|
|
251
|
+
nodes {
|
|
252
|
+
functionRoute
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
allSitePage(filter: { path: { regex: "/^(?!\/dev-404-page).+$/" } }) {
|
|
256
|
+
nodes {
|
|
257
|
+
path
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
`
|
|
262
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _gatsbyCoreUtils = require("gatsby-core-utils");
|
|
6
|
+
const APIFunctionLoader = async function () {
|
|
7
|
+
const params = new URLSearchParams(this.resourceQuery);
|
|
8
|
+
const matchPath = params.get(`matchPath`);
|
|
9
|
+
const modulePath = (0, _gatsbyCoreUtils.slash)(this.resourcePath);
|
|
10
|
+
return (/* javascript */`
|
|
11
|
+
const preferDefault = m => (m && m.default) || m
|
|
12
|
+
|
|
13
|
+
const functionModule = require('${(0, _gatsbyCoreUtils.slash)(modulePath)}');
|
|
14
|
+
const functionToExecute = preferDefault(functionModule);
|
|
15
|
+
const matchPath = '${matchPath}';
|
|
16
|
+
const { match: reachMatch } = require('${(0, _gatsbyCoreUtils.slash)(require.resolve(`@gatsbyjs/reach-router`))}');
|
|
17
|
+
const { urlencoded, text, json, raw } = require('${(0, _gatsbyCoreUtils.slash)(require.resolve(`body-parser`))}')
|
|
18
|
+
const multer = require('${(0, _gatsbyCoreUtils.slash)(require.resolve(`multer`))}')
|
|
19
|
+
const { createConfig } = require('${(0, _gatsbyCoreUtils.slash)(require.resolve(`./config`))}')
|
|
20
|
+
|
|
21
|
+
function functionWrapper(req, res) {
|
|
22
|
+
if (matchPath) {
|
|
23
|
+
let functionPath = req.originalUrl
|
|
24
|
+
|
|
25
|
+
functionPath = functionPath.replace(new RegExp('^/*' + PREFIX_TO_STRIP), '')
|
|
26
|
+
functionPath = functionPath.replace(new RegExp('^/*api/?'), '')
|
|
27
|
+
|
|
28
|
+
const matchResult = reachMatch(matchPath, functionPath)
|
|
29
|
+
if (matchResult) {
|
|
30
|
+
req.params = matchResult.params
|
|
31
|
+
if (req.params['*']) {
|
|
32
|
+
// TODO(v6): Remove this backwards compatability for v3
|
|
33
|
+
req.params['0'] = req.params['*']
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// handle body parsing if request stream was not yet consumed
|
|
39
|
+
const { config } = createConfig(functionModule?.config)
|
|
40
|
+
const middlewares =
|
|
41
|
+
req.readableEnded
|
|
42
|
+
? []
|
|
43
|
+
: [
|
|
44
|
+
multer().any(),
|
|
45
|
+
raw(config?.bodyParser?.raw ?? { limit: '100kb' }),
|
|
46
|
+
text(config?.bodyParser?.text ?? { limit: '100kb' }),
|
|
47
|
+
urlencoded(config?.bodyParser?.urlencoded ?? { limit: '100kb', extended: true }),
|
|
48
|
+
json(config?.bodyParser?.json ?? { limit: '100kb' })
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
let i = 0
|
|
52
|
+
function runMiddlewareOrFunction() {
|
|
53
|
+
if (i >= middlewares.length) {
|
|
54
|
+
functionToExecute(req, res);
|
|
55
|
+
} else {
|
|
56
|
+
middlewares[i++](req, res, runMiddlewareOrFunction)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
runMiddlewareOrFunction()
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
module.exports = typeof functionToExecute === 'function'
|
|
65
|
+
? {
|
|
66
|
+
default: functionWrapper,
|
|
67
|
+
config: functionModule?.config
|
|
68
|
+
} : functionModule
|
|
69
|
+
`
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
var _default = APIFunctionLoader;
|
|
73
|
+
exports.default = _default;
|
|
74
|
+
//# sourceMappingURL=api-function-webpack-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-function-webpack-loader.js","names":["APIFunctionLoader","params","URLSearchParams","resourceQuery","matchPath","get","modulePath","slash","resourcePath","require","resolve"],"sources":["../../../src/internal-plugins/functions/api-function-webpack-loader.ts"],"sourcesContent":["import { slash } from \"gatsby-core-utils\"\nimport type { LoaderDefinition } from \"webpack\"\n\nconst APIFunctionLoader: LoaderDefinition = async function () {\n const params = new URLSearchParams(this.resourceQuery)\n const matchPath = params.get(`matchPath`)\n\n const modulePath = slash(this.resourcePath)\n\n return /* javascript */ `\n const preferDefault = m => (m && m.default) || m\n\n const functionModule = require('${slash(modulePath)}');\n const functionToExecute = preferDefault(functionModule);\n const matchPath = '${matchPath}';\n const { match: reachMatch } = require('${slash(\n require.resolve(`@gatsbyjs/reach-router`)\n )}');\n const { urlencoded, text, json, raw } = require('${slash(\n require.resolve(`body-parser`)\n )}')\n const multer = require('${slash(require.resolve(`multer`))}')\n const { createConfig } = require('${slash(require.resolve(`./config`))}')\n\n function functionWrapper(req, res) {\n if (matchPath) {\n let functionPath = req.originalUrl\n\n functionPath = functionPath.replace(new RegExp('^/*' + PREFIX_TO_STRIP), '')\n functionPath = functionPath.replace(new RegExp('^/*api/?'), '')\n\n const matchResult = reachMatch(matchPath, functionPath)\n if (matchResult) {\n req.params = matchResult.params\n if (req.params['*']) {\n // TODO(v6): Remove this backwards compatability for v3\n req.params['0'] = req.params['*']\n }\n }\n }\n\n // handle body parsing if request stream was not yet consumed\n const { config } = createConfig(functionModule?.config)\n const middlewares = \n req.readableEnded \n ? [] \n : [\n multer().any(),\n raw(config?.bodyParser?.raw ?? { limit: '100kb' }),\n text(config?.bodyParser?.text ?? { limit: '100kb' }),\n urlencoded(config?.bodyParser?.urlencoded ?? { limit: '100kb', extended: true }),\n json(config?.bodyParser?.json ?? { limit: '100kb' })\n ]\n\n let i = 0\n function runMiddlewareOrFunction() {\n if (i >= middlewares.length) {\n functionToExecute(req, res);\n } else {\n middlewares[i++](req, res, runMiddlewareOrFunction)\n }\n }\n\n\n runMiddlewareOrFunction() \n }\n\n module.exports = typeof functionToExecute === 'function' \n ? {\n default: functionWrapper,\n config: functionModule?.config\n } : functionModule\n `\n}\n\nexport default APIFunctionLoader\n"],"mappings":";;;;AAAA;AAGA,MAAMA,iBAAmC,GAAG,kBAAkB;EAC5D,MAAMC,MAAM,GAAG,IAAIC,eAAe,CAAC,IAAI,CAACC,aAAa,CAAC;EACtD,MAAMC,SAAS,GAAGH,MAAM,CAACI,GAAG,CAAE,WAAU,CAAC;EAEzC,MAAMC,UAAU,GAAG,IAAAC,sBAAK,EAAC,IAAI,CAACC,YAAY,CAAC;EAE3C,OAAO,iBAAkB;AAC3B;AACA;AACA,oCAAoC,IAAAD,sBAAK,EAACD,UAAU,CAAE;AACtD;AACA,uBAAuBF,SAAU;AACjC,2CAA2C,IAAAG,sBAAK,EAC5CE,OAAO,CAACC,OAAO,CAAE,wBAAuB,CAAC,CACzC;AACJ,qDAAqD,IAAAH,sBAAK,EACtDE,OAAO,CAACC,OAAO,CAAE,aAAY,CAAC,CAC9B;AACJ,4BAA4B,IAAAH,sBAAK,EAACE,OAAO,CAACC,OAAO,CAAE,QAAO,CAAC,CAAE;AAC7D,sCAAsC,IAAAH,sBAAK,EAACE,OAAO,CAACC,OAAO,CAAE,UAAS,CAAC,CAAE;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAAG;AACH,CAAC;AAAA,eAEcV,iBAAiB;AAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { GatsbyFunctionBodyParserCommonMiddlewareConfig, GatsbyFunctionBodyParserUrlencodedConfig } from "gatsby";
|
|
2
|
+
export interface IGatsbyBodyParserConfigProcessed {
|
|
3
|
+
json: GatsbyFunctionBodyParserCommonMiddlewareConfig;
|
|
4
|
+
raw: GatsbyFunctionBodyParserCommonMiddlewareConfig;
|
|
5
|
+
text: GatsbyFunctionBodyParserCommonMiddlewareConfig;
|
|
6
|
+
urlencoded: GatsbyFunctionBodyParserUrlencodedConfig;
|
|
7
|
+
}
|
|
8
|
+
export interface IGatsbyFunctionConfigProcessed {
|
|
9
|
+
bodyParser: IGatsbyBodyParserConfigProcessed;
|
|
10
|
+
}
|
|
11
|
+
export interface IAPIFunctionWarning {
|
|
12
|
+
property: string | null;
|
|
13
|
+
original: any;
|
|
14
|
+
expectedType: string;
|
|
15
|
+
replacedWith: any;
|
|
16
|
+
}
|
|
17
|
+
export declare function createConfig(userConfig: unknown): {
|
|
18
|
+
config: IGatsbyFunctionConfigProcessed;
|
|
19
|
+
warnings: Array<IAPIFunctionWarning>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.createConfig = createConfig;
|
|
6
|
+
var _joi = _interopRequireDefault(require("joi"));
|
|
7
|
+
const DEFAULT_LIMIT = `100kb`;
|
|
8
|
+
|
|
9
|
+
// similar to `GatsbyFunctionBodyParserConfig` and `IGatsbyFunctionConfigProcessed`
|
|
10
|
+
// from index.d.ts, just with fields required (not optional).
|
|
11
|
+
// `createConfig()` will fill in defaults
|
|
12
|
+
|
|
13
|
+
const defaultBodyParserOptions = {
|
|
14
|
+
limit: DEFAULT_LIMIT
|
|
15
|
+
};
|
|
16
|
+
const defaultUrlEncoded = {
|
|
17
|
+
extended: true
|
|
18
|
+
};
|
|
19
|
+
const defaultConfig = {
|
|
20
|
+
bodyParser: {
|
|
21
|
+
text: defaultBodyParserOptions,
|
|
22
|
+
raw: defaultBodyParserOptions,
|
|
23
|
+
json: defaultBodyParserOptions,
|
|
24
|
+
urlencoded: {
|
|
25
|
+
...defaultBodyParserOptions,
|
|
26
|
+
...defaultUrlEncoded
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
let warnings = [];
|
|
31
|
+
function bodyParserConfigFailover(property, expectedType) {
|
|
32
|
+
return function actualFailover(_, {
|
|
33
|
+
original
|
|
34
|
+
}) {
|
|
35
|
+
warnings.push({
|
|
36
|
+
property: `bodyParser.${property}`,
|
|
37
|
+
original,
|
|
38
|
+
expectedType,
|
|
39
|
+
replacedWith: defaultConfig.bodyParser[property]
|
|
40
|
+
});
|
|
41
|
+
return defaultConfig.bodyParser[property];
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const functionConfigSchema = _joi.default.object().keys({
|
|
45
|
+
bodyParser: _joi.default.object().keys({
|
|
46
|
+
json: _joi.default.object().keys({
|
|
47
|
+
type: _joi.default.string(),
|
|
48
|
+
limit: _joi.default.alternatives(_joi.default.string(), _joi.default.number())
|
|
49
|
+
}).default(defaultConfig.bodyParser.json).failover(bodyParserConfigFailover(`json`, `{\n type?: string\n limit?: string | number\n}`)).unknown(false),
|
|
50
|
+
text: _joi.default.object().keys({
|
|
51
|
+
type: _joi.default.string(),
|
|
52
|
+
limit: _joi.default.alternatives(_joi.default.string(), _joi.default.number())
|
|
53
|
+
}).unknown(false).default(defaultConfig.bodyParser.text).failover(bodyParserConfigFailover(`text`, `{\n type?: string\n limit?: string | number\n}`)),
|
|
54
|
+
raw: _joi.default.object().keys({
|
|
55
|
+
type: _joi.default.string(),
|
|
56
|
+
limit: _joi.default.alternatives(_joi.default.string(), _joi.default.number())
|
|
57
|
+
}).unknown(false).default(defaultConfig.bodyParser.raw).failover(bodyParserConfigFailover(`raw`, `{\n type?: string\n limit?: string | number\n}`)),
|
|
58
|
+
urlencoded: _joi.default.object().keys({
|
|
59
|
+
type: _joi.default.string(),
|
|
60
|
+
limit: _joi.default.alternatives(_joi.default.string(), _joi.default.number()),
|
|
61
|
+
extended: _joi.default.boolean().required()
|
|
62
|
+
}).unknown(false).default(defaultConfig.bodyParser.urlencoded).failover(bodyParserConfigFailover(`urlencoded`, `{\n type?: string\n limit: string | number\n extended: boolean\n}`))
|
|
63
|
+
}).unknown(false).default(defaultConfig.bodyParser).failover((_, {
|
|
64
|
+
original
|
|
65
|
+
}) => {
|
|
66
|
+
warnings.push({
|
|
67
|
+
property: `bodyParser`,
|
|
68
|
+
original,
|
|
69
|
+
expectedType: `{\n text?: GatsbyFunctionBodyParserCommonMiddlewareConfig\n json?: GatsbyFunctionBodyParserCommonMiddlewareConfig\n raw?: GatsbyFunctionBodyParserCommonMiddlewareConfig\n urlencoded?: GatsbyFunctionBodyParserUrlencodedConfig\n}`,
|
|
70
|
+
replacedWith: defaultConfig.bodyParser
|
|
71
|
+
});
|
|
72
|
+
return defaultConfig.bodyParser;
|
|
73
|
+
})
|
|
74
|
+
}).unknown(false).default(defaultConfig).failover((_, {
|
|
75
|
+
original
|
|
76
|
+
}) => {
|
|
77
|
+
warnings.push({
|
|
78
|
+
property: null,
|
|
79
|
+
original,
|
|
80
|
+
expectedType: `{\n bodyParser?: GatsbyFunctionBodyParserConfig\n}`,
|
|
81
|
+
replacedWith: defaultConfig
|
|
82
|
+
});
|
|
83
|
+
return defaultConfig;
|
|
84
|
+
});
|
|
85
|
+
function createConfig(userConfig) {
|
|
86
|
+
warnings = [];
|
|
87
|
+
const {
|
|
88
|
+
value
|
|
89
|
+
} = functionConfigSchema.validate(userConfig);
|
|
90
|
+
const config = value;
|
|
91
|
+
return {
|
|
92
|
+
config,
|
|
93
|
+
warnings
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","names":["DEFAULT_LIMIT","defaultBodyParserOptions","limit","defaultUrlEncoded","extended","defaultConfig","bodyParser","text","raw","json","urlencoded","warnings","bodyParserConfigFailover","property","expectedType","actualFailover","_","original","push","replacedWith","functionConfigSchema","Joi","object","keys","type","string","alternatives","number","default","failover","unknown","boolean","required","createConfig","userConfig","value","validate","config"],"sources":["../../../src/internal-plugins/functions/config.ts"],"sourcesContent":["import Joi from \"joi\"\nimport type {\n GatsbyFunctionBodyParserCommonMiddlewareConfig,\n GatsbyFunctionBodyParserUrlencodedConfig,\n} from \"gatsby\"\n\nconst DEFAULT_LIMIT = `100kb`\n\n// similar to `GatsbyFunctionBodyParserConfig` and `IGatsbyFunctionConfigProcessed`\n// from index.d.ts, just with fields required (not optional).\n// `createConfig()` will fill in defaults\nexport interface IGatsbyBodyParserConfigProcessed {\n json: GatsbyFunctionBodyParserCommonMiddlewareConfig\n raw: GatsbyFunctionBodyParserCommonMiddlewareConfig\n text: GatsbyFunctionBodyParserCommonMiddlewareConfig\n urlencoded: GatsbyFunctionBodyParserUrlencodedConfig\n}\nexport interface IGatsbyFunctionConfigProcessed {\n bodyParser: IGatsbyBodyParserConfigProcessed\n}\n\nconst defaultBodyParserOptions: GatsbyFunctionBodyParserCommonMiddlewareConfig =\n {\n limit: DEFAULT_LIMIT,\n }\nconst defaultUrlEncoded = { extended: true }\nconst defaultConfig = {\n bodyParser: {\n text: defaultBodyParserOptions,\n raw: defaultBodyParserOptions,\n json: defaultBodyParserOptions,\n urlencoded: { ...defaultBodyParserOptions, ...defaultUrlEncoded },\n },\n}\n\nexport interface IAPIFunctionWarning {\n property: string | null\n original: any\n expectedType: string\n replacedWith: any\n}\n\nlet warnings: Array<IAPIFunctionWarning> = []\n\nfunction bodyParserConfigFailover(\n property: keyof IGatsbyBodyParserConfigProcessed,\n expectedType: string\n): any {\n return function actualFailover(_, { original }): any {\n warnings.push({\n property: `bodyParser.${property}`,\n original,\n expectedType,\n replacedWith: defaultConfig.bodyParser[property],\n })\n\n return defaultConfig.bodyParser[property]\n }\n}\n\nconst functionConfigSchema: Joi.ObjectSchema<IGatsbyFunctionConfigProcessed> =\n Joi.object()\n .keys({\n bodyParser: Joi.object()\n .keys({\n json: Joi.object()\n .keys({\n type: Joi.string(),\n limit: Joi.alternatives(Joi.string(), Joi.number()),\n })\n .default(defaultConfig.bodyParser.json)\n .failover(\n bodyParserConfigFailover(\n `json`,\n `{\\n type?: string\\n limit?: string | number\\n}`\n )\n )\n .unknown(false),\n text: Joi.object()\n .keys({\n type: Joi.string(),\n limit: Joi.alternatives(Joi.string(), Joi.number()),\n })\n .unknown(false)\n .default(defaultConfig.bodyParser.text)\n .failover(\n bodyParserConfigFailover(\n `text`,\n `{\\n type?: string\\n limit?: string | number\\n}`\n )\n ),\n raw: Joi.object()\n .keys({\n type: Joi.string(),\n limit: Joi.alternatives(Joi.string(), Joi.number()),\n })\n .unknown(false)\n .default(defaultConfig.bodyParser.raw)\n .failover(\n bodyParserConfigFailover(\n `raw`,\n `{\\n type?: string\\n limit?: string | number\\n}`\n )\n ),\n urlencoded: Joi.object()\n .keys({\n type: Joi.string(),\n limit: Joi.alternatives(Joi.string(), Joi.number()),\n extended: Joi.boolean().required(),\n })\n .unknown(false)\n .default(defaultConfig.bodyParser.urlencoded)\n .failover(\n bodyParserConfigFailover(\n `urlencoded`,\n `{\\n type?: string\\n limit: string | number\\n extended: boolean\\n}`\n )\n ),\n })\n .unknown(false)\n .default(defaultConfig.bodyParser)\n .failover((_, { original }) => {\n warnings.push({\n property: `bodyParser`,\n original,\n expectedType: `{\\n text?: GatsbyFunctionBodyParserCommonMiddlewareConfig\\n json?: GatsbyFunctionBodyParserCommonMiddlewareConfig\\n raw?: GatsbyFunctionBodyParserCommonMiddlewareConfig\\n urlencoded?: GatsbyFunctionBodyParserUrlencodedConfig\\n}`,\n replacedWith: defaultConfig.bodyParser,\n })\n return defaultConfig.bodyParser\n }),\n })\n .unknown(false)\n .default(defaultConfig)\n .failover((_, { original }) => {\n warnings.push({\n property: null,\n original,\n expectedType: `{\\n bodyParser?: GatsbyFunctionBodyParserConfig\\n}`,\n replacedWith: defaultConfig,\n })\n return defaultConfig\n })\n\nexport function createConfig(userConfig: unknown): {\n config: IGatsbyFunctionConfigProcessed\n warnings: Array<IAPIFunctionWarning>\n} {\n warnings = []\n const { value } = functionConfigSchema.validate(userConfig)\n const config = value as IGatsbyFunctionConfigProcessed\n return { config, warnings }\n}\n"],"mappings":";;;;;AAAA;AAMA,MAAMA,aAAa,GAAI,OAAM;;AAE7B;AACA;AACA;;AAWA,MAAMC,wBAAwE,GAC5E;EACEC,KAAK,EAAEF;AACT,CAAC;AACH,MAAMG,iBAAiB,GAAG;EAAEC,QAAQ,EAAE;AAAK,CAAC;AAC5C,MAAMC,aAAa,GAAG;EACpBC,UAAU,EAAE;IACVC,IAAI,EAAEN,wBAAwB;IAC9BO,GAAG,EAAEP,wBAAwB;IAC7BQ,IAAI,EAAER,wBAAwB;IAC9BS,UAAU,EAAE;MAAE,GAAGT,wBAAwB;MAAE,GAAGE;IAAkB;EAClE;AACF,CAAC;AASD,IAAIQ,QAAoC,GAAG,EAAE;AAE7C,SAASC,wBAAwB,CAC/BC,QAAgD,EAChDC,YAAoB,EACf;EACL,OAAO,SAASC,cAAc,CAACC,CAAC,EAAE;IAAEC;EAAS,CAAC,EAAO;IACnDN,QAAQ,CAACO,IAAI,CAAC;MACZL,QAAQ,EAAG,cAAaA,QAAS,EAAC;MAClCI,QAAQ;MACRH,YAAY;MACZK,YAAY,EAAEd,aAAa,CAACC,UAAU,CAACO,QAAQ;IACjD,CAAC,CAAC;IAEF,OAAOR,aAAa,CAACC,UAAU,CAACO,QAAQ,CAAC;EAC3C,CAAC;AACH;AAEA,MAAMO,oBAAsE,GAC1EC,YAAG,CAACC,MAAM,EAAE,CACTC,IAAI,CAAC;EACJjB,UAAU,EAAEe,YAAG,CAACC,MAAM,EAAE,CACrBC,IAAI,CAAC;IACJd,IAAI,EAAEY,YAAG,CAACC,MAAM,EAAE,CACfC,IAAI,CAAC;MACJC,IAAI,EAAEH,YAAG,CAACI,MAAM,EAAE;MAClBvB,KAAK,EAAEmB,YAAG,CAACK,YAAY,CAACL,YAAG,CAACI,MAAM,EAAE,EAAEJ,YAAG,CAACM,MAAM,EAAE;IACpD,CAAC,CAAC,CACDC,OAAO,CAACvB,aAAa,CAACC,UAAU,CAACG,IAAI,CAAC,CACtCoB,QAAQ,CACPjB,wBAAwB,CACrB,MAAK,EACL,kDAAiD,CACnD,CACF,CACAkB,OAAO,CAAC,KAAK,CAAC;IACjBvB,IAAI,EAAEc,YAAG,CAACC,MAAM,EAAE,CACfC,IAAI,CAAC;MACJC,IAAI,EAAEH,YAAG,CAACI,MAAM,EAAE;MAClBvB,KAAK,EAAEmB,YAAG,CAACK,YAAY,CAACL,YAAG,CAACI,MAAM,EAAE,EAAEJ,YAAG,CAACM,MAAM,EAAE;IACpD,CAAC,CAAC,CACDG,OAAO,CAAC,KAAK,CAAC,CACdF,OAAO,CAACvB,aAAa,CAACC,UAAU,CAACC,IAAI,CAAC,CACtCsB,QAAQ,CACPjB,wBAAwB,CACrB,MAAK,EACL,kDAAiD,CACnD,CACF;IACHJ,GAAG,EAAEa,YAAG,CAACC,MAAM,EAAE,CACdC,IAAI,CAAC;MACJC,IAAI,EAAEH,YAAG,CAACI,MAAM,EAAE;MAClBvB,KAAK,EAAEmB,YAAG,CAACK,YAAY,CAACL,YAAG,CAACI,MAAM,EAAE,EAAEJ,YAAG,CAACM,MAAM,EAAE;IACpD,CAAC,CAAC,CACDG,OAAO,CAAC,KAAK,CAAC,CACdF,OAAO,CAACvB,aAAa,CAACC,UAAU,CAACE,GAAG,CAAC,CACrCqB,QAAQ,CACPjB,wBAAwB,CACrB,KAAI,EACJ,kDAAiD,CACnD,CACF;IACHF,UAAU,EAAEW,YAAG,CAACC,MAAM,EAAE,CACrBC,IAAI,CAAC;MACJC,IAAI,EAAEH,YAAG,CAACI,MAAM,EAAE;MAClBvB,KAAK,EAAEmB,YAAG,CAACK,YAAY,CAACL,YAAG,CAACI,MAAM,EAAE,EAAEJ,YAAG,CAACM,MAAM,EAAE,CAAC;MACnDvB,QAAQ,EAAEiB,YAAG,CAACU,OAAO,EAAE,CAACC,QAAQ;IAClC,CAAC,CAAC,CACDF,OAAO,CAAC,KAAK,CAAC,CACdF,OAAO,CAACvB,aAAa,CAACC,UAAU,CAACI,UAAU,CAAC,CAC5CmB,QAAQ,CACPjB,wBAAwB,CACrB,YAAW,EACX,sEAAqE,CACvE;EAEP,CAAC,CAAC,CACDkB,OAAO,CAAC,KAAK,CAAC,CACdF,OAAO,CAACvB,aAAa,CAACC,UAAU,CAAC,CACjCuB,QAAQ,CAAC,CAACb,CAAC,EAAE;IAAEC;EAAS,CAAC,KAAK;IAC7BN,QAAQ,CAACO,IAAI,CAAC;MACZL,QAAQ,EAAG,YAAW;MACtBI,QAAQ;MACRH,YAAY,EAAG,yOAAwO;MACvPK,YAAY,EAAEd,aAAa,CAACC;IAC9B,CAAC,CAAC;IACF,OAAOD,aAAa,CAACC,UAAU;EACjC,CAAC;AACL,CAAC,CAAC,CACDwB,OAAO,CAAC,KAAK,CAAC,CACdF,OAAO,CAACvB,aAAa,CAAC,CACtBwB,QAAQ,CAAC,CAACb,CAAC,EAAE;EAAEC;AAAS,CAAC,KAAK;EAC7BN,QAAQ,CAACO,IAAI,CAAC;IACZL,QAAQ,EAAE,IAAI;IACdI,QAAQ;IACRH,YAAY,EAAG,qDAAoD;IACnEK,YAAY,EAAEd;EAChB,CAAC,CAAC;EACF,OAAOA,aAAa;AACtB,CAAC,CAAC;AAEC,SAAS4B,YAAY,CAACC,UAAmB,EAG9C;EACAvB,QAAQ,GAAG,EAAE;EACb,MAAM;IAAEwB;EAAM,CAAC,GAAGf,oBAAoB,CAACgB,QAAQ,CAACF,UAAU,CAAC;EAC3D,MAAMG,MAAM,GAAGF,KAAuC;EACtD,OAAO;IAAEE,MAAM;IAAE1B;EAAS,CAAC;AAC7B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CreateDevServerArgs, ParentSpanPluginArgs } from "gatsby";
|
|
2
|
+
export declare function onPreBootstrap({ reporter, store, parentSpan, }: ParentSpanPluginArgs): Promise<void>;
|
|
3
|
+
export declare function onCreateDevServer({ reporter, app, store, }: CreateDevServerArgs): Promise<void>;
|