@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,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.trackRequestedQueryRun = exports.spawnWebpackListener = exports.spawnMutationListener = exports.setRecompiledFiles = exports.schemaTypegen = exports.saveDbState = exports.resetRecompileCount = exports.panicBecauseOfInfiniteLoop = exports.panic = exports.markSourceFilesDirty = exports.markSourceFilesClean = exports.markQueryFilesDirty = exports.markNodesDirty = exports.markNodesClean = exports.logError = exports.incrementRecompileCount = exports.finishParentSpan = exports.definitionsTypegen = exports.clearWebhookBody = exports.clearPendingQueryRuns = exports.callApi = exports.buildActions = exports.assignWebhookBody = exports.assignStoreAndWorkerPool = exports.assignServiceResult = exports.assignServers = exports.addNodeMutation = void 0;
|
|
6
|
+
var _xstate = require("xstate");
|
|
7
|
+
var _actions = require("../../redux/actions");
|
|
8
|
+
var _listenForMutations = require("../../services/listen-for-mutations");
|
|
9
|
+
var _saveState = require("../../redux/save-state");
|
|
10
|
+
var _reporter = _interopRequireDefault(require("gatsby-cli/lib/reporter"));
|
|
11
|
+
var _redux = require("../../redux");
|
|
12
|
+
var _types = require("../../redux/types");
|
|
13
|
+
var _listenToWebpack = require("../../services/listen-to-webpack");
|
|
14
|
+
var _callDeferredApi = require("../../utils/call-deferred-api");
|
|
15
|
+
var _fileWrites = require("../../utils/graphql-typegen/file-writes");
|
|
16
|
+
var _tsCodegen = require("../../utils/graphql-typegen/ts-codegen");
|
|
17
|
+
/**
|
|
18
|
+
* Handler for when we're inside handlers that should be able to mutate nodes
|
|
19
|
+
* Instead of queueing, we call it right away
|
|
20
|
+
*/
|
|
21
|
+
const callApi = ({
|
|
22
|
+
store
|
|
23
|
+
}, event) => (0, _callDeferredApi.callRealApi)(event.payload, store);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Event handler used in all states where we're not ready to process node
|
|
27
|
+
* mutations. Instead we add it to a batch to process when we're next idle
|
|
28
|
+
*/
|
|
29
|
+
exports.callApi = callApi;
|
|
30
|
+
const addNodeMutation = (0, _xstate.assign)({
|
|
31
|
+
nodeMutationBatch: ({
|
|
32
|
+
nodeMutationBatch = []
|
|
33
|
+
}, {
|
|
34
|
+
payload
|
|
35
|
+
}) => {
|
|
36
|
+
// It's not pretty, but it's much quicker than concat
|
|
37
|
+
nodeMutationBatch.push(payload);
|
|
38
|
+
return nodeMutationBatch;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
exports.addNodeMutation = addNodeMutation;
|
|
42
|
+
const assignStoreAndWorkerPool = (0, _xstate.assign)((_context, event) => {
|
|
43
|
+
const {
|
|
44
|
+
store,
|
|
45
|
+
workerPool
|
|
46
|
+
} = event.data;
|
|
47
|
+
return {
|
|
48
|
+
store,
|
|
49
|
+
workerPool
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
exports.assignStoreAndWorkerPool = assignStoreAndWorkerPool;
|
|
53
|
+
const setQueryRunningFinished = async () => {
|
|
54
|
+
_redux.store.dispatch(_actions.actions.setProgramStatus(_types.ProgramStatus.BOOTSTRAP_QUERY_RUNNING_FINISHED));
|
|
55
|
+
};
|
|
56
|
+
const markQueryFilesDirty = (0, _xstate.assign)({
|
|
57
|
+
queryFilesDirty: true
|
|
58
|
+
});
|
|
59
|
+
exports.markQueryFilesDirty = markQueryFilesDirty;
|
|
60
|
+
const markSourceFilesDirty = (0, _xstate.assign)((context, event) => {
|
|
61
|
+
var _context$changedSourc, _event$payload;
|
|
62
|
+
const prev = (_context$changedSourc = context.changedSourceFiles) !== null && _context$changedSourc !== void 0 ? _context$changedSourc : new Set();
|
|
63
|
+
return {
|
|
64
|
+
sourceFilesDirty: true,
|
|
65
|
+
changedSourceFiles: prev.add((_event$payload = event.payload) !== null && _event$payload !== void 0 ? _event$payload : event.file)
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
exports.markSourceFilesDirty = markSourceFilesDirty;
|
|
69
|
+
const markSourceFilesClean = (0, _xstate.assign)({
|
|
70
|
+
sourceFilesDirty: false,
|
|
71
|
+
changedSourceFiles: () => new Set()
|
|
72
|
+
});
|
|
73
|
+
exports.markSourceFilesClean = markSourceFilesClean;
|
|
74
|
+
const setRecompiledFiles = (0, _xstate.assign)(context => {
|
|
75
|
+
return {
|
|
76
|
+
recompiledFiles: context.changedSourceFiles
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
exports.setRecompiledFiles = setRecompiledFiles;
|
|
80
|
+
const markNodesDirty = (0, _xstate.assign)({
|
|
81
|
+
nodesMutatedDuringQueryRun: true
|
|
82
|
+
});
|
|
83
|
+
exports.markNodesDirty = markNodesDirty;
|
|
84
|
+
const markNodesClean = (0, _xstate.assign)({
|
|
85
|
+
nodesMutatedDuringQueryRun: false
|
|
86
|
+
});
|
|
87
|
+
exports.markNodesClean = markNodesClean;
|
|
88
|
+
const incrementRecompileCount = (0, _xstate.assign)({
|
|
89
|
+
nodesMutatedDuringQueryRunRecompileCount: ({
|
|
90
|
+
nodesMutatedDuringQueryRunRecompileCount: count = 0
|
|
91
|
+
}) => {
|
|
92
|
+
_reporter.default.verbose(`Re-running queries because nodes mutated during query run. Count: ${count + 1}`);
|
|
93
|
+
return count + 1;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
exports.incrementRecompileCount = incrementRecompileCount;
|
|
97
|
+
const resetRecompileCount = (0, _xstate.assign)({
|
|
98
|
+
nodesMutatedDuringQueryRunRecompileCount: 0,
|
|
99
|
+
nodesMutatedDuringQueryRun: false
|
|
100
|
+
});
|
|
101
|
+
exports.resetRecompileCount = resetRecompileCount;
|
|
102
|
+
const assignServiceResult = (0, _xstate.assign)((_context, {
|
|
103
|
+
data
|
|
104
|
+
}) => data);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* This spawns the service that listens to the `emitter` for various mutation events
|
|
108
|
+
*/
|
|
109
|
+
exports.assignServiceResult = assignServiceResult;
|
|
110
|
+
const spawnMutationListener = (0, _xstate.assign)({
|
|
111
|
+
// @ts-ignore - TODO: Fixing this seems more involved: https://xstate.js.org/docs/guides/typescript.html#troubleshooting & https://github.com/statelyai/xstate/issues/2664
|
|
112
|
+
mutationListener: () => (0, _xstate.spawn)(_listenForMutations.listenForMutations, `listen-for-mutations`)
|
|
113
|
+
});
|
|
114
|
+
exports.spawnMutationListener = spawnMutationListener;
|
|
115
|
+
const assignServers = (0, _xstate.assign)((_context, {
|
|
116
|
+
data
|
|
117
|
+
}) => {
|
|
118
|
+
return {
|
|
119
|
+
...data
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
exports.assignServers = assignServers;
|
|
123
|
+
const spawnWebpackListener = (0, _xstate.assign)({
|
|
124
|
+
// @ts-ignore - TODO: Fixing this seems more involved: https://xstate.js.org/docs/guides/typescript.html#troubleshooting & https://github.com/statelyai/xstate/issues/2664
|
|
125
|
+
webpackListener: ({
|
|
126
|
+
compiler
|
|
127
|
+
}) => {
|
|
128
|
+
if (!compiler) {
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
return (0, _xstate.spawn)((0, _listenToWebpack.createWebpackWatcher)(compiler));
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
exports.spawnWebpackListener = spawnWebpackListener;
|
|
135
|
+
const assignWebhookBody = (0, _xstate.assign)({
|
|
136
|
+
webhookBody: (_context, {
|
|
137
|
+
payload
|
|
138
|
+
}) => payload === null || payload === void 0 ? void 0 : payload.webhookBody,
|
|
139
|
+
webhookSourcePluginName: (_context, {
|
|
140
|
+
payload
|
|
141
|
+
}) => payload === null || payload === void 0 ? void 0 : payload.pluginName
|
|
142
|
+
});
|
|
143
|
+
exports.assignWebhookBody = assignWebhookBody;
|
|
144
|
+
const clearWebhookBody = (0, _xstate.assign)({
|
|
145
|
+
webhookBody: undefined,
|
|
146
|
+
webhookSourcePluginName: undefined
|
|
147
|
+
});
|
|
148
|
+
exports.clearWebhookBody = clearWebhookBody;
|
|
149
|
+
const finishParentSpan = ({
|
|
150
|
+
parentSpan
|
|
151
|
+
}) => parentSpan === null || parentSpan === void 0 ? void 0 : parentSpan.finish();
|
|
152
|
+
exports.finishParentSpan = finishParentSpan;
|
|
153
|
+
const saveDbState = () => (0, _saveState.saveState)();
|
|
154
|
+
exports.saveDbState = saveDbState;
|
|
155
|
+
const logError = (_context, event) => {
|
|
156
|
+
_reporter.default.error(event.data);
|
|
157
|
+
};
|
|
158
|
+
exports.logError = logError;
|
|
159
|
+
const panic = (_context, event) => {
|
|
160
|
+
_reporter.default.panic(event.data);
|
|
161
|
+
};
|
|
162
|
+
exports.panic = panic;
|
|
163
|
+
const panicBecauseOfInfiniteLoop = () => {
|
|
164
|
+
_reporter.default.panic(_reporter.default.stripIndent(`
|
|
165
|
+
Panicking because nodes appear to be being changed every time we run queries. This would cause the site to recompile infinitely.
|
|
166
|
+
Check custom resolvers to see if they are unconditionally creating or mutating nodes on every query.
|
|
167
|
+
This may happen if they create nodes with a field that is different every time, such as a timestamp or unique id.`));
|
|
168
|
+
};
|
|
169
|
+
exports.panicBecauseOfInfiniteLoop = panicBecauseOfInfiniteLoop;
|
|
170
|
+
const trackRequestedQueryRun = (0, _xstate.assign)({
|
|
171
|
+
pendingQueryRuns: (context, {
|
|
172
|
+
payload
|
|
173
|
+
}) => {
|
|
174
|
+
const pendingQueryRuns = context.pendingQueryRuns || new Set();
|
|
175
|
+
if (payload !== null && payload !== void 0 && payload.pagePath) {
|
|
176
|
+
pendingQueryRuns.add(payload.pagePath);
|
|
177
|
+
}
|
|
178
|
+
return pendingQueryRuns;
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
exports.trackRequestedQueryRun = trackRequestedQueryRun;
|
|
182
|
+
const clearPendingQueryRuns = (0, _xstate.assign)(() => {
|
|
183
|
+
return {
|
|
184
|
+
pendingQueryRuns: new Set()
|
|
185
|
+
};
|
|
186
|
+
});
|
|
187
|
+
exports.clearPendingQueryRuns = clearPendingQueryRuns;
|
|
188
|
+
const schemaTypegen = async (context, event) => {
|
|
189
|
+
const schema = event.payload.payload;
|
|
190
|
+
const directory = context.program.directory;
|
|
191
|
+
context.reporter.verbose(`Re-Generating schema.graphql`);
|
|
192
|
+
try {
|
|
193
|
+
await (0, _fileWrites.writeGraphQLSchema)(directory, schema);
|
|
194
|
+
} catch (err) {
|
|
195
|
+
context.reporter.panicOnBuild({
|
|
196
|
+
id: `12100`,
|
|
197
|
+
context: {
|
|
198
|
+
sourceMessage: err
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
exports.schemaTypegen = schemaTypegen;
|
|
204
|
+
const definitionsTypegen = async (context, event) => {
|
|
205
|
+
const definitions = event.payload.payload;
|
|
206
|
+
const {
|
|
207
|
+
schema,
|
|
208
|
+
config
|
|
209
|
+
} = context.store.getState();
|
|
210
|
+
const directory = context.program.directory;
|
|
211
|
+
const graphqlTypegenOptions = config.graphqlTypegen;
|
|
212
|
+
if (!graphqlTypegenOptions) {
|
|
213
|
+
throw new Error(`graphqlTypegen option is falsy. This should never happen.`);
|
|
214
|
+
}
|
|
215
|
+
context.reporter.verbose(`Re-Generating fragments.graphql & TS Types`);
|
|
216
|
+
try {
|
|
217
|
+
await (0, _fileWrites.writeGraphQLFragments)(directory, definitions);
|
|
218
|
+
await (0, _tsCodegen.writeTypeScriptTypes)(directory, schema, definitions, graphqlTypegenOptions);
|
|
219
|
+
} catch (err) {
|
|
220
|
+
context.reporter.panicOnBuild({
|
|
221
|
+
id: `12100`,
|
|
222
|
+
context: {
|
|
223
|
+
sourceMessage: err
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
exports.definitionsTypegen = definitionsTypegen;
|
|
229
|
+
const buildActions = {
|
|
230
|
+
callApi,
|
|
231
|
+
markNodesDirty,
|
|
232
|
+
addNodeMutation,
|
|
233
|
+
spawnMutationListener,
|
|
234
|
+
assignStoreAndWorkerPool,
|
|
235
|
+
assignServiceResult,
|
|
236
|
+
assignServers,
|
|
237
|
+
markQueryFilesDirty,
|
|
238
|
+
assignWebhookBody,
|
|
239
|
+
clearWebhookBody,
|
|
240
|
+
finishParentSpan,
|
|
241
|
+
spawnWebpackListener,
|
|
242
|
+
markSourceFilesDirty,
|
|
243
|
+
markSourceFilesClean,
|
|
244
|
+
setRecompiledFiles,
|
|
245
|
+
markNodesClean,
|
|
246
|
+
incrementRecompileCount,
|
|
247
|
+
resetRecompileCount,
|
|
248
|
+
panicBecauseOfInfiniteLoop,
|
|
249
|
+
saveDbState,
|
|
250
|
+
setQueryRunningFinished,
|
|
251
|
+
panic,
|
|
252
|
+
logError,
|
|
253
|
+
trackRequestedQueryRun,
|
|
254
|
+
clearPendingQueryRuns,
|
|
255
|
+
schemaTypegen,
|
|
256
|
+
definitionsTypegen
|
|
257
|
+
};
|
|
258
|
+
exports.buildActions = buildActions;
|
|
259
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","names":["callApi","store","event","callRealApi","payload","addNodeMutation","assign","nodeMutationBatch","push","assignStoreAndWorkerPool","_context","workerPool","data","setQueryRunningFinished","dispatch","actions","setProgramStatus","ProgramStatus","BOOTSTRAP_QUERY_RUNNING_FINISHED","markQueryFilesDirty","queryFilesDirty","markSourceFilesDirty","context","prev","changedSourceFiles","Set","sourceFilesDirty","add","file","markSourceFilesClean","setRecompiledFiles","recompiledFiles","markNodesDirty","nodesMutatedDuringQueryRun","markNodesClean","incrementRecompileCount","nodesMutatedDuringQueryRunRecompileCount","count","reporter","verbose","resetRecompileCount","assignServiceResult","spawnMutationListener","mutationListener","spawn","listenForMutations","assignServers","spawnWebpackListener","webpackListener","compiler","undefined","createWebpackWatcher","assignWebhookBody","webhookBody","webhookSourcePluginName","pluginName","clearWebhookBody","finishParentSpan","parentSpan","finish","saveDbState","saveState","logError","error","panic","panicBecauseOfInfiniteLoop","stripIndent","trackRequestedQueryRun","pendingQueryRuns","pagePath","clearPendingQueryRuns","schemaTypegen","schema","directory","program","writeGraphQLSchema","err","panicOnBuild","id","sourceMessage","definitionsTypegen","definitions","config","getState","graphqlTypegenOptions","graphqlTypegen","Error","writeGraphQLFragments","writeTypeScriptTypes","buildActions"],"sources":["../../../src/state-machines/develop/actions.ts"],"sourcesContent":["import {\n assign,\n AnyEventObject,\n ActionFunction,\n spawn,\n DoneEventObject,\n} from \"xstate\"\nimport { IBuildContext } from \"../../services\"\nimport { actions } from \"../../redux/actions\"\nimport { listenForMutations } from \"../../services/listen-for-mutations\"\nimport { DataLayerResult } from \"../data-layer\"\nimport { saveState } from \"../../redux/save-state\"\nimport reporter from \"gatsby-cli/lib/reporter\"\nimport { store } from \"../../redux\"\nimport { ProgramStatus } from \"../../redux/types\"\nimport { createWebpackWatcher } from \"../../services/listen-to-webpack\"\nimport { callRealApi } from \"../../utils/call-deferred-api\"\nimport {\n writeGraphQLFragments,\n writeGraphQLSchema,\n} from \"../../utils/graphql-typegen/file-writes\"\nimport { writeTypeScriptTypes } from \"../../utils/graphql-typegen/ts-codegen\"\n/**\n * Handler for when we're inside handlers that should be able to mutate nodes\n * Instead of queueing, we call it right away\n */\nexport const callApi: ActionFunction<IBuildContext, AnyEventObject> = (\n { store },\n event\n) => callRealApi(event.payload, store)\n\n/**\n * Event handler used in all states where we're not ready to process node\n * mutations. Instead we add it to a batch to process when we're next idle\n */\nexport const addNodeMutation = assign<IBuildContext, AnyEventObject>({\n nodeMutationBatch: ({ nodeMutationBatch = [] }, { payload }) => {\n // It's not pretty, but it's much quicker than concat\n nodeMutationBatch.push(payload)\n return nodeMutationBatch\n },\n})\n\nexport const assignStoreAndWorkerPool = assign<IBuildContext, DoneEventObject>(\n (_context, event) => {\n const { store, workerPool } = event.data\n return {\n store,\n workerPool,\n }\n }\n)\n\nconst setQueryRunningFinished = async (): Promise<void> => {\n store.dispatch(\n actions.setProgramStatus(ProgramStatus.BOOTSTRAP_QUERY_RUNNING_FINISHED)\n )\n}\n\nexport const markQueryFilesDirty = assign<IBuildContext>({\n queryFilesDirty: true,\n})\n\nexport const markSourceFilesDirty = assign<IBuildContext, AnyEventObject>(\n (context, event) => {\n const prev = context.changedSourceFiles ?? new Set()\n return {\n sourceFilesDirty: true,\n changedSourceFiles: prev.add(event.payload ?? event.file),\n }\n }\n)\n\nexport const markSourceFilesClean = assign<IBuildContext>({\n sourceFilesDirty: false,\n changedSourceFiles: () => new Set(),\n})\n\nexport const setRecompiledFiles = assign<IBuildContext, AnyEventObject>(\n context => {\n return {\n recompiledFiles: context.changedSourceFiles,\n }\n }\n)\n\nexport const markNodesDirty = assign<IBuildContext>({\n nodesMutatedDuringQueryRun: true,\n})\n\nexport const markNodesClean = assign<IBuildContext>({\n nodesMutatedDuringQueryRun: false,\n})\n\nexport const incrementRecompileCount = assign<IBuildContext>({\n nodesMutatedDuringQueryRunRecompileCount: ({\n nodesMutatedDuringQueryRunRecompileCount: count = 0,\n }) => {\n reporter.verbose(\n `Re-running queries because nodes mutated during query run. Count: ${\n count + 1\n }`\n )\n return count + 1\n },\n})\n\nexport const resetRecompileCount = assign<IBuildContext>({\n nodesMutatedDuringQueryRunRecompileCount: 0,\n nodesMutatedDuringQueryRun: false,\n})\n\nexport const assignServiceResult = assign<IBuildContext, DoneEventObject>(\n (_context, { data }): DataLayerResult => data\n)\n\n/**\n * This spawns the service that listens to the `emitter` for various mutation events\n */\nexport const spawnMutationListener = assign<IBuildContext>({\n // @ts-ignore - TODO: Fixing this seems more involved: https://xstate.js.org/docs/guides/typescript.html#troubleshooting & https://github.com/statelyai/xstate/issues/2664\n mutationListener: () => spawn(listenForMutations, `listen-for-mutations`),\n})\n\nexport const assignServers = assign<IBuildContext, AnyEventObject>(\n (_context, { data }) => {\n return {\n ...data,\n }\n }\n)\n\nexport const spawnWebpackListener = assign<IBuildContext, AnyEventObject>({\n // @ts-ignore - TODO: Fixing this seems more involved: https://xstate.js.org/docs/guides/typescript.html#troubleshooting & https://github.com/statelyai/xstate/issues/2664\n webpackListener: ({ compiler }) => {\n if (!compiler) {\n return undefined\n }\n return spawn(createWebpackWatcher(compiler))\n },\n})\n\nexport const assignWebhookBody = assign<IBuildContext, AnyEventObject>({\n webhookBody: (_context, { payload }) => payload?.webhookBody,\n webhookSourcePluginName: (_context, { payload }) => payload?.pluginName,\n})\n\nexport const clearWebhookBody = assign<IBuildContext, AnyEventObject>({\n webhookBody: undefined,\n webhookSourcePluginName: undefined,\n})\n\nexport const finishParentSpan = ({ parentSpan }: IBuildContext): void =>\n parentSpan?.finish()\n\nexport const saveDbState = (): Promise<void> => saveState()\n\nexport const logError: ActionFunction<IBuildContext, AnyEventObject> = (\n _context,\n event\n) => {\n reporter.error(event.data)\n}\n\nexport const panic: ActionFunction<IBuildContext, AnyEventObject> = (\n _context,\n event\n) => {\n reporter.panic(event.data)\n}\n\nexport const panicBecauseOfInfiniteLoop: ActionFunction<\n IBuildContext,\n AnyEventObject\n> = () => {\n reporter.panic(\n reporter.stripIndent(`\n Panicking because nodes appear to be being changed every time we run queries. This would cause the site to recompile infinitely.\n Check custom resolvers to see if they are unconditionally creating or mutating nodes on every query.\n This may happen if they create nodes with a field that is different every time, such as a timestamp or unique id.`)\n )\n}\n\nexport const trackRequestedQueryRun = assign<IBuildContext, AnyEventObject>({\n pendingQueryRuns: (context, { payload }) => {\n const pendingQueryRuns = context.pendingQueryRuns || new Set<string>()\n if (payload?.pagePath) {\n pendingQueryRuns.add(payload.pagePath)\n }\n return pendingQueryRuns\n },\n})\n\nexport const clearPendingQueryRuns = assign<IBuildContext>(() => {\n return {\n pendingQueryRuns: new Set<string>(),\n }\n})\n\nexport const schemaTypegen: ActionFunction<\n IBuildContext,\n AnyEventObject\n> = async (context, event) => {\n const schema = event.payload.payload\n const directory = context.program.directory\n\n context.reporter!.verbose(`Re-Generating schema.graphql`)\n\n try {\n await writeGraphQLSchema(directory, schema)\n } catch (err) {\n context.reporter!.panicOnBuild({\n id: `12100`,\n context: {\n sourceMessage: err,\n },\n })\n }\n}\n\nexport const definitionsTypegen: ActionFunction<\n IBuildContext,\n AnyEventObject\n> = async (context, event) => {\n const definitions = event.payload.payload\n const { schema, config } = context.store!.getState()\n const directory = context.program.directory\n const graphqlTypegenOptions = config.graphqlTypegen\n\n if (!graphqlTypegenOptions) {\n throw new Error(`graphqlTypegen option is falsy. This should never happen.`)\n }\n\n context.reporter!.verbose(`Re-Generating fragments.graphql & TS Types`)\n\n try {\n await writeGraphQLFragments(directory, definitions)\n await writeTypeScriptTypes(\n directory,\n schema,\n definitions,\n graphqlTypegenOptions\n )\n } catch (err) {\n context.reporter!.panicOnBuild({\n id: `12100`,\n context: {\n sourceMessage: err,\n },\n })\n }\n}\n\nexport const buildActions = {\n callApi,\n markNodesDirty,\n addNodeMutation,\n spawnMutationListener,\n assignStoreAndWorkerPool,\n assignServiceResult,\n assignServers,\n markQueryFilesDirty,\n assignWebhookBody,\n clearWebhookBody,\n finishParentSpan,\n spawnWebpackListener,\n markSourceFilesDirty,\n markSourceFilesClean,\n setRecompiledFiles,\n markNodesClean,\n incrementRecompileCount,\n resetRecompileCount,\n panicBecauseOfInfiniteLoop,\n saveDbState,\n setQueryRunningFinished,\n panic,\n logError,\n trackRequestedQueryRun,\n clearPendingQueryRuns,\n schemaTypegen,\n definitionsTypegen,\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IBuildContext } from "../../services";
|
|
2
|
+
export declare const developMachine: import("xstate").StateMachine<IBuildContext, any, any, {
|
|
3
|
+
value: any;
|
|
4
|
+
context: IBuildContext;
|
|
5
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, any, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.developMachine = void 0;
|
|
5
|
+
var _xstate = require("xstate");
|
|
6
|
+
var _actions = require("./actions");
|
|
7
|
+
var _services = require("./services");
|
|
8
|
+
const RECOMPILE_PANIC_LIMIT = 6;
|
|
9
|
+
const getGraphqlTypegenConfig = ctx => !!ctx.store.getState().config.graphqlTypegen;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* This is the top-level state machine for the `gatsby develop` command
|
|
13
|
+
*/
|
|
14
|
+
const developConfig = {
|
|
15
|
+
predictableActionArguments: true,
|
|
16
|
+
id: `build`,
|
|
17
|
+
initial: `initializing`,
|
|
18
|
+
// These are mutation events, sent to this machine by the mutation listener
|
|
19
|
+
// in `services/listen-for-mutations.ts`
|
|
20
|
+
on: {
|
|
21
|
+
// These are deferred node mutations, mainly `createNode`
|
|
22
|
+
ADD_NODE_MUTATION: {
|
|
23
|
+
actions: `addNodeMutation`
|
|
24
|
+
},
|
|
25
|
+
// Sent when webpack or chokidar sees a changed file
|
|
26
|
+
SOURCE_FILE_CHANGED: {
|
|
27
|
+
actions: `markSourceFilesDirty`
|
|
28
|
+
},
|
|
29
|
+
// These are calls to the refresh endpoint. Also used by Gatsby Preview.
|
|
30
|
+
// Saves the webhook body from the event into context, then reloads data
|
|
31
|
+
WEBHOOK_RECEIVED: {
|
|
32
|
+
target: `reloadingData`,
|
|
33
|
+
actions: `assignWebhookBody`
|
|
34
|
+
},
|
|
35
|
+
QUERY_RUN_REQUESTED: {
|
|
36
|
+
actions: `trackRequestedQueryRun`
|
|
37
|
+
},
|
|
38
|
+
SET_SCHEMA: {
|
|
39
|
+
actions: `schemaTypegen`,
|
|
40
|
+
cond: ctx => getGraphqlTypegenConfig(ctx) && !ctx.shouldRunInitialTypegen
|
|
41
|
+
},
|
|
42
|
+
SET_GRAPHQL_DEFINITIONS: {
|
|
43
|
+
actions: `definitionsTypegen`,
|
|
44
|
+
cond: ctx => getGraphqlTypegenConfig(ctx) && !ctx.shouldRunInitialTypegen
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
states: {
|
|
48
|
+
// Here we handle the initial bootstrap
|
|
49
|
+
initializing: {
|
|
50
|
+
on: {
|
|
51
|
+
// Ignore mutation events because we'll be running everything anyway
|
|
52
|
+
ADD_NODE_MUTATION: undefined,
|
|
53
|
+
SOURCE_FILE_CHANGED: undefined,
|
|
54
|
+
WEBHOOK_RECEIVED: undefined
|
|
55
|
+
},
|
|
56
|
+
invoke: {
|
|
57
|
+
id: `initialize`,
|
|
58
|
+
src: `initialize`,
|
|
59
|
+
onDone: {
|
|
60
|
+
target: `initializingData`,
|
|
61
|
+
actions: [`assignStoreAndWorkerPool`, `spawnMutationListener`]
|
|
62
|
+
},
|
|
63
|
+
onError: {
|
|
64
|
+
actions: `panic`
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
// Sourcing nodes, customising and inferring schema, then running createPages
|
|
69
|
+
initializingData: {
|
|
70
|
+
on: {
|
|
71
|
+
// We need to run mutations immediately when in this state
|
|
72
|
+
ADD_NODE_MUTATION: {
|
|
73
|
+
actions: `callApi`
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
invoke: {
|
|
77
|
+
id: `initialize-data`,
|
|
78
|
+
src: `initializeData`,
|
|
79
|
+
data: ({
|
|
80
|
+
parentSpan,
|
|
81
|
+
store,
|
|
82
|
+
webhookBody,
|
|
83
|
+
program,
|
|
84
|
+
reporter
|
|
85
|
+
}) => {
|
|
86
|
+
return {
|
|
87
|
+
parentSpan,
|
|
88
|
+
store,
|
|
89
|
+
webhookBody,
|
|
90
|
+
shouldRunCreatePagesStatefully: true,
|
|
91
|
+
deferNodeMutation: true,
|
|
92
|
+
program,
|
|
93
|
+
reporter
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
onDone: {
|
|
97
|
+
actions: [`assignServiceResult`, `clearWebhookBody`, `finishParentSpan`],
|
|
98
|
+
target: `runningPostBootstrap`
|
|
99
|
+
},
|
|
100
|
+
onError: {
|
|
101
|
+
actions: `logError`,
|
|
102
|
+
target: `waiting`
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
runningPostBootstrap: {
|
|
107
|
+
invoke: {
|
|
108
|
+
id: `post-bootstrap`,
|
|
109
|
+
src: `postBootstrap`,
|
|
110
|
+
onDone: `runningQueries`
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
// Running page and static queries and generating the SSRed HTML and page data
|
|
114
|
+
runningQueries: {
|
|
115
|
+
on: {
|
|
116
|
+
SOURCE_FILE_CHANGED: {
|
|
117
|
+
actions: [(0, _xstate.forwardTo)(`run-queries`), `markSourceFilesDirty`]
|
|
118
|
+
},
|
|
119
|
+
ADD_NODE_MUTATION: {
|
|
120
|
+
actions: [`markNodesDirty`, `callApi`]
|
|
121
|
+
},
|
|
122
|
+
QUERY_RUN_REQUESTED: {
|
|
123
|
+
actions: (0, _xstate.forwardTo)(`run-queries`)
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
invoke: {
|
|
127
|
+
id: `run-queries`,
|
|
128
|
+
src: `runQueries`,
|
|
129
|
+
// This is all the data that we're sending to the child machine
|
|
130
|
+
data: ({
|
|
131
|
+
program,
|
|
132
|
+
store,
|
|
133
|
+
parentSpan,
|
|
134
|
+
gatsbyNodeGraphQLFunction,
|
|
135
|
+
graphqlRunner,
|
|
136
|
+
websocketManager,
|
|
137
|
+
pendingQueryRuns,
|
|
138
|
+
reporter
|
|
139
|
+
}) => {
|
|
140
|
+
return {
|
|
141
|
+
program,
|
|
142
|
+
store,
|
|
143
|
+
parentSpan,
|
|
144
|
+
gatsbyNodeGraphQLFunction,
|
|
145
|
+
graphqlRunner,
|
|
146
|
+
websocketManager,
|
|
147
|
+
pendingQueryRuns,
|
|
148
|
+
reporter
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
onDone: [{
|
|
152
|
+
// If we're at the recompile limit and nodes were mutated again then panic
|
|
153
|
+
target: `waiting`,
|
|
154
|
+
actions: `panicBecauseOfInfiniteLoop`,
|
|
155
|
+
cond: ({
|
|
156
|
+
nodesMutatedDuringQueryRun = false,
|
|
157
|
+
nodesMutatedDuringQueryRunRecompileCount = 0
|
|
158
|
+
}) => nodesMutatedDuringQueryRun && nodesMutatedDuringQueryRunRecompileCount >= RECOMPILE_PANIC_LIMIT
|
|
159
|
+
}, {
|
|
160
|
+
// Nodes were mutated while querying, so we need to re-run everything
|
|
161
|
+
target: `recreatingPages`,
|
|
162
|
+
cond: ({
|
|
163
|
+
nodesMutatedDuringQueryRun
|
|
164
|
+
}) => !!nodesMutatedDuringQueryRun,
|
|
165
|
+
actions: [`markNodesClean`, `incrementRecompileCount`, `clearPendingQueryRuns`]
|
|
166
|
+
}, {
|
|
167
|
+
// If we have no compiler (i.e. it's first run), then spin up the
|
|
168
|
+
// webpack and socket.io servers
|
|
169
|
+
target: `startingDevServers`,
|
|
170
|
+
actions: [`setQueryRunningFinished`, `clearPendingQueryRuns`],
|
|
171
|
+
cond: ({
|
|
172
|
+
compiler
|
|
173
|
+
}) => !compiler
|
|
174
|
+
}, {
|
|
175
|
+
// If source files have changed, then recompile the JS bundle
|
|
176
|
+
target: `recompiling`,
|
|
177
|
+
cond: ({
|
|
178
|
+
sourceFilesDirty
|
|
179
|
+
}) => !!sourceFilesDirty,
|
|
180
|
+
actions: [`clearPendingQueryRuns`]
|
|
181
|
+
}, {
|
|
182
|
+
// ...otherwise just wait.
|
|
183
|
+
target: `waiting`,
|
|
184
|
+
actions: [`clearPendingQueryRuns`]
|
|
185
|
+
}],
|
|
186
|
+
onError: {
|
|
187
|
+
actions: [`logError`, `clearPendingQueryRuns`],
|
|
188
|
+
target: `waiting`
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
exit: (0, _xstate.assign)({
|
|
192
|
+
shouldRunInitialTypegen: false
|
|
193
|
+
})
|
|
194
|
+
},
|
|
195
|
+
// Recompile the JS bundle
|
|
196
|
+
recompiling: {
|
|
197
|
+
// Important: mark source files as clean when recompiling starts
|
|
198
|
+
// Doing this `onDone` will wipe all file change events that occur **during** recompilation
|
|
199
|
+
// See https://github.com/gatsbyjs/gatsby/issues/27609
|
|
200
|
+
entry: [`setRecompiledFiles`, `markSourceFilesClean`],
|
|
201
|
+
invoke: {
|
|
202
|
+
src: `recompile`,
|
|
203
|
+
onDone: {
|
|
204
|
+
target: `waiting`
|
|
205
|
+
},
|
|
206
|
+
onError: {
|
|
207
|
+
actions: `logError`,
|
|
208
|
+
target: `waiting`
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
// Spin up webpack and socket.io
|
|
213
|
+
startingDevServers: {
|
|
214
|
+
invoke: {
|
|
215
|
+
src: `startWebpackServer`,
|
|
216
|
+
onDone: [{
|
|
217
|
+
target: `initialGraphQLTypegen`,
|
|
218
|
+
cond: ctx => getGraphqlTypegenConfig(ctx)
|
|
219
|
+
}, {
|
|
220
|
+
target: `waiting`
|
|
221
|
+
}],
|
|
222
|
+
onError: {
|
|
223
|
+
actions: `panic`,
|
|
224
|
+
target: `waiting`
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
exit: [`assignServers`, `spawnWebpackListener`, `markSourceFilesClean`]
|
|
228
|
+
},
|
|
229
|
+
initialGraphQLTypegen: {
|
|
230
|
+
invoke: {
|
|
231
|
+
src: `graphQLTypegen`,
|
|
232
|
+
onDone: {
|
|
233
|
+
target: `waiting`
|
|
234
|
+
},
|
|
235
|
+
onError: {
|
|
236
|
+
actions: `logError`,
|
|
237
|
+
target: `waiting`
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
// Idle, waiting for events that make us rebuild
|
|
242
|
+
waiting: {
|
|
243
|
+
always: [{
|
|
244
|
+
target: `runningQueries`,
|
|
245
|
+
cond: ({
|
|
246
|
+
pendingQueryRuns
|
|
247
|
+
}) => !!pendingQueryRuns && pendingQueryRuns.size > 0
|
|
248
|
+
}],
|
|
249
|
+
entry: [`saveDbState`, `resetRecompileCount`],
|
|
250
|
+
on: {
|
|
251
|
+
// Forward these events to the child machine, so it can handle batching
|
|
252
|
+
ADD_NODE_MUTATION: {
|
|
253
|
+
actions: (0, _xstate.forwardTo)(`waiting`)
|
|
254
|
+
},
|
|
255
|
+
SOURCE_FILE_CHANGED: {
|
|
256
|
+
actions: [(0, _xstate.forwardTo)(`waiting`), `markSourceFilesDirty`]
|
|
257
|
+
},
|
|
258
|
+
// This event is sent from the child
|
|
259
|
+
EXTRACT_QUERIES_NOW: {
|
|
260
|
+
target: `runningQueries`
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
invoke: {
|
|
264
|
+
id: `waiting`,
|
|
265
|
+
src: `waitForMutations`,
|
|
266
|
+
// Send existing queued mutations to the child machine, which will execute them
|
|
267
|
+
data: ({
|
|
268
|
+
store,
|
|
269
|
+
nodeMutationBatch = [],
|
|
270
|
+
sourceFilesDirty
|
|
271
|
+
}) => {
|
|
272
|
+
return {
|
|
273
|
+
store,
|
|
274
|
+
nodeMutationBatch,
|
|
275
|
+
sourceFilesDirty,
|
|
276
|
+
runningBatch: []
|
|
277
|
+
};
|
|
278
|
+
},
|
|
279
|
+
// "done" means we need to rebuild
|
|
280
|
+
onDone: {
|
|
281
|
+
actions: `assignServiceResult`,
|
|
282
|
+
target: `recreatingPages`
|
|
283
|
+
},
|
|
284
|
+
onError: {
|
|
285
|
+
actions: `panic`
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
// Almost the same as initializing data, but skips various first-run stuff
|
|
290
|
+
reloadingData: {
|
|
291
|
+
on: {
|
|
292
|
+
// We need to run mutations immediately when in this state
|
|
293
|
+
ADD_NODE_MUTATION: {
|
|
294
|
+
actions: `callApi`
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
invoke: {
|
|
298
|
+
src: `reloadData`,
|
|
299
|
+
data: ({
|
|
300
|
+
parentSpan,
|
|
301
|
+
store,
|
|
302
|
+
webhookBody,
|
|
303
|
+
webhookSourcePluginName,
|
|
304
|
+
program,
|
|
305
|
+
reporter
|
|
306
|
+
}) => {
|
|
307
|
+
return {
|
|
308
|
+
parentSpan,
|
|
309
|
+
store,
|
|
310
|
+
webhookBody,
|
|
311
|
+
webhookSourcePluginName,
|
|
312
|
+
refresh: true,
|
|
313
|
+
deferNodeMutation: true,
|
|
314
|
+
shouldRunCreatePagesStatefully: false,
|
|
315
|
+
program,
|
|
316
|
+
reporter
|
|
317
|
+
};
|
|
318
|
+
},
|
|
319
|
+
onDone: {
|
|
320
|
+
actions: [`assignServiceResult`, `clearWebhookBody`, `finishParentSpan`],
|
|
321
|
+
target: `runningQueries`
|
|
322
|
+
},
|
|
323
|
+
onError: {
|
|
324
|
+
actions: `logError`,
|
|
325
|
+
target: `waiting`
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
// Rebuild pages if a node has been mutated outside of sourceNodes
|
|
330
|
+
recreatingPages: {
|
|
331
|
+
on: {
|
|
332
|
+
// We need to run mutations immediately when in this state
|
|
333
|
+
ADD_NODE_MUTATION: {
|
|
334
|
+
actions: `callApi`
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
invoke: {
|
|
338
|
+
id: `recreate-pages`,
|
|
339
|
+
src: `recreatePages`,
|
|
340
|
+
data: ({
|
|
341
|
+
parentSpan,
|
|
342
|
+
store,
|
|
343
|
+
program,
|
|
344
|
+
reporter
|
|
345
|
+
}) => {
|
|
346
|
+
return {
|
|
347
|
+
parentSpan,
|
|
348
|
+
store,
|
|
349
|
+
program,
|
|
350
|
+
deferNodeMutation: true,
|
|
351
|
+
shouldRunCreatePagesStatefully: false,
|
|
352
|
+
reporter
|
|
353
|
+
};
|
|
354
|
+
},
|
|
355
|
+
onDone: {
|
|
356
|
+
actions: `assignServiceResult`,
|
|
357
|
+
target: `runningQueries`
|
|
358
|
+
},
|
|
359
|
+
onError: {
|
|
360
|
+
actions: `logError`,
|
|
361
|
+
target: `waiting`
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
const developMachine = (0, _xstate.createMachine)(developConfig, {
|
|
368
|
+
services: _services.developServices,
|
|
369
|
+
actions: _actions.buildActions
|
|
370
|
+
});
|
|
371
|
+
exports.developMachine = developMachine;
|
|
372
|
+
//# sourceMappingURL=index.js.map
|