@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,446 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.createGraphqlEngineBundle = createGraphqlEngineBundle;
|
|
6
|
+
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
|
|
7
|
+
var path = _interopRequireWildcard(require("path"));
|
|
8
|
+
var fs = _interopRequireWildcard(require("fs-extra"));
|
|
9
|
+
var _execa = _interopRequireDefault(require("execa"));
|
|
10
|
+
var _webpack = _interopRequireDefault(require("webpack"));
|
|
11
|
+
var _ConcatenatedModule = _interopRequireDefault(require("webpack/lib/optimize/ConcatenatedModule"));
|
|
12
|
+
var _package = require("gatsby/package.json");
|
|
13
|
+
var _printPlugins = require("./print-plugins");
|
|
14
|
+
var _module = _interopRequireDefault(require("module"));
|
|
15
|
+
var _webpackLogging = require("../../utils/webpack/plugins/webpack-logging");
|
|
16
|
+
var _webpackAssetRelocatorLoader = require("@vercel/webpack-asset-relocator-loader");
|
|
17
|
+
var nodeApis = _interopRequireWildcard(require("../../utils/api-node-docs"));
|
|
18
|
+
var _redux = require("../../redux");
|
|
19
|
+
var _path2 = require("gatsby-core-utils/path");
|
|
20
|
+
var _enginesHelpers = require("../../utils/engines-helpers");
|
|
21
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
24
|
+
|
|
25
|
+
const extensions = [`.mjs`, `.js`, `.json`, `.node`, `.ts`, `.tsx`];
|
|
26
|
+
const outputDir = path.posix.join((0, _path2.slash)(process.cwd()), `.cache`, `query-engine`);
|
|
27
|
+
const cacheLocation = path.posix.join((0, _path2.slash)(process.cwd()), `.cache`, `webpack`, `query-engine`);
|
|
28
|
+
function getApisToRemoveForQueryEngine() {
|
|
29
|
+
const apisToKeep = new Set(_printPlugins.schemaCustomizationAPIs);
|
|
30
|
+
apisToKeep.add(`onPluginInit`);
|
|
31
|
+
const apisToRemove = Object.keys(nodeApis).filter(api => !apisToKeep.has(api));
|
|
32
|
+
return apisToRemove;
|
|
33
|
+
}
|
|
34
|
+
const getInternalPackagesCacheDir = functionsTarget => path.posix.join((0, _path2.slash)(process.cwd()), `.cache`, `internal-packages`, `${functionsTarget.platform}-${functionsTarget.arch}`);
|
|
35
|
+
|
|
36
|
+
// Create a directory and JS module where we install internally used packages
|
|
37
|
+
const createInternalPackagesCacheDir = async functionsTarget => {
|
|
38
|
+
const cacheDir = getInternalPackagesCacheDir(functionsTarget);
|
|
39
|
+
await fs.ensureDir(cacheDir);
|
|
40
|
+
const packageJsonPath = path.join(cacheDir, `package.json`);
|
|
41
|
+
if (!fs.existsSync(packageJsonPath)) {
|
|
42
|
+
await fs.emptyDir(cacheDir);
|
|
43
|
+
await fs.outputJson(packageJsonPath, {
|
|
44
|
+
name: `gatsby-internal-packages`,
|
|
45
|
+
description: `This directory contains internal packages installed by Gatsby used to comply with the current platform requirements`,
|
|
46
|
+
version: `1.0.0`,
|
|
47
|
+
private: true,
|
|
48
|
+
author: `Gatsby`,
|
|
49
|
+
license: `MIT`,
|
|
50
|
+
functionsTarget
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
function getLMDBBinaryFromSiteLocation(lmdbPackageName, version, functionsTarget) {
|
|
55
|
+
// Read lmdb's package.json, go through its optional depedencies and validate if there's a prebuilt lmdb module with a compatible binary to our platform and arch
|
|
56
|
+
let packageJson;
|
|
57
|
+
try {
|
|
58
|
+
const modulePath = path.dirname((0, _path2.slash)(require.resolve(`lmdb`))).replace(`/dist`, ``);
|
|
59
|
+
const packageJsonPath = path.join(modulePath, `package.json`);
|
|
60
|
+
packageJson = JSON.parse(fs.readFileSync(packageJsonPath, `utf-8`));
|
|
61
|
+
} catch (e) {
|
|
62
|
+
// If we fail to read lmdb's package.json there's bigger problems here so just skip installation
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
// If there's no lmdb prebuilt package for our arch/platform listed as optional dep no point in trying to install it
|
|
66
|
+
const {
|
|
67
|
+
optionalDependencies = {}
|
|
68
|
+
} = packageJson;
|
|
69
|
+
if (!Object.keys(optionalDependencies).find(p => p === lmdbPackageName)) {
|
|
70
|
+
throw new Error(`Target platform/arch for functions execution (${functionsTarget.platform}/${functionsTarget.arch}) is not supported.`);
|
|
71
|
+
}
|
|
72
|
+
return getPackageLocationFromRequireContext((0, _path2.slash)(require.resolve(`lmdb`)), lmdbPackageName, version);
|
|
73
|
+
}
|
|
74
|
+
function getPackageLocationFromRequireContext(location, packageName, packageVersion) {
|
|
75
|
+
try {
|
|
76
|
+
const requireId = `${packageName}/package.json`;
|
|
77
|
+
const locationRequire = _module.default.createRequire(location);
|
|
78
|
+
const packageJsonLocation = (0, _path2.slash)(locationRequire.resolve(requireId));
|
|
79
|
+
if (packageVersion) {
|
|
80
|
+
// delete locationRequire.cache[requireId]
|
|
81
|
+
const {
|
|
82
|
+
version
|
|
83
|
+
} = JSON.parse(fs.readFileSync(packageJsonLocation, `utf-8`));
|
|
84
|
+
if (packageVersion !== version) {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return path.dirname(packageJsonLocation);
|
|
89
|
+
} catch (e) {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function checkIfInstalledInInternalPackagesCache(packageStatus, functionsTarget) {
|
|
94
|
+
const cacheDir = getInternalPackagesCacheDir(functionsTarget);
|
|
95
|
+
const packageLocationFromInternalPackageCache = getPackageLocationFromRequireContext(path.posix.join(cacheDir, `:internal:`), packageStatus.packageName, packageStatus.packageVersion);
|
|
96
|
+
if (packageLocationFromInternalPackageCache && !path.posix.relative(cacheDir, packageLocationFromInternalPackageCache).startsWith(`..`)) {
|
|
97
|
+
return {
|
|
98
|
+
...packageStatus,
|
|
99
|
+
needToInstall: false,
|
|
100
|
+
packageLocation: packageLocationFromInternalPackageCache
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
...packageStatus,
|
|
105
|
+
needToInstall: true
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Install lmdb's native system module under our internal cache if we detect the current installation
|
|
110
|
+
// isn't using the pre-build binaries
|
|
111
|
+
function checkIfNeedToInstallMissingLmdb(functionsTarget) {
|
|
112
|
+
// lmdb module with prebuilt binaries for target platform
|
|
113
|
+
const lmdbPackageName = `@lmdb/lmdb-${functionsTarget.platform}-${functionsTarget.arch}`;
|
|
114
|
+
const lmdbBinaryFromSiteLocation = getLMDBBinaryFromSiteLocation(lmdbPackageName, _package.dependencies.lmdb, functionsTarget);
|
|
115
|
+
const sharedPackageStatus = {
|
|
116
|
+
needToInstall: true,
|
|
117
|
+
packageName: lmdbPackageName,
|
|
118
|
+
packageVersion: _package.dependencies.lmdb
|
|
119
|
+
};
|
|
120
|
+
if (lmdbBinaryFromSiteLocation) {
|
|
121
|
+
return {
|
|
122
|
+
...sharedPackageStatus,
|
|
123
|
+
needToInstall: false,
|
|
124
|
+
packageLocation: lmdbBinaryFromSiteLocation
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
return checkIfInstalledInInternalPackagesCache(sharedPackageStatus, functionsTarget);
|
|
128
|
+
}
|
|
129
|
+
function checkIfNeedToInstallMissingSharp(functionsTarget, currentTarget) {
|
|
130
|
+
try {
|
|
131
|
+
var _sharp$versions$sharp;
|
|
132
|
+
// check if sharp is resolvable
|
|
133
|
+
const sharp = require(`sharp`);
|
|
134
|
+
if ((0, _isEqual2.default)(functionsTarget, currentTarget)) {
|
|
135
|
+
// if current platform and target is the same as functions target, we need to check if vendored libvips
|
|
136
|
+
// exists in the current sharp installation as it will be needed in lambda
|
|
137
|
+
if (sharp.vendor.installed.includes(sharp.vendor.current)) {
|
|
138
|
+
// vendored libvips is installed, so we can use it
|
|
139
|
+
return undefined;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return checkIfInstalledInInternalPackagesCache({
|
|
143
|
+
needToInstall: true,
|
|
144
|
+
packageName: `sharp`,
|
|
145
|
+
packageVersion: (_sharp$versions$sharp = sharp.versions.sharp) !== null && _sharp$versions$sharp !== void 0 ? _sharp$versions$sharp : require(`sharp/package.json`).version
|
|
146
|
+
}, functionsTarget);
|
|
147
|
+
} catch (e) {
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
async function installMissing(packages, functionsTarget) {
|
|
152
|
+
function shouldInstall(p) {
|
|
153
|
+
return Boolean(p === null || p === void 0 ? void 0 : p.needToInstall);
|
|
154
|
+
}
|
|
155
|
+
const packagesToInstall = packages.filter(shouldInstall);
|
|
156
|
+
if (packagesToInstall.length === 0) {
|
|
157
|
+
return packages;
|
|
158
|
+
}
|
|
159
|
+
await createInternalPackagesCacheDir(functionsTarget);
|
|
160
|
+
const cacheDir = getInternalPackagesCacheDir(functionsTarget);
|
|
161
|
+
const options = {
|
|
162
|
+
stderr: `inherit`,
|
|
163
|
+
cwd: cacheDir,
|
|
164
|
+
env: {
|
|
165
|
+
npm_config_arch: functionsTarget.arch,
|
|
166
|
+
npm_config_platform: functionsTarget.platform,
|
|
167
|
+
// force sharp to download vendored libvips and not skip it if globally installed libvips matches sharp requirements
|
|
168
|
+
// so that produced function is self-sufficient and doesn't rely on function execution environment having (same)
|
|
169
|
+
// globally available libvips
|
|
170
|
+
SHARP_IGNORE_GLOBAL_LIBVIPS: `1`
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
const npmAdditionalCliArgs = [`--no-progress`, `--no-audit`, `--no-fund`, `--loglevel`, `error`, `--color`, `always`, `--legacy-peer-deps`, `--save-exact`,
|
|
174
|
+
// target platform might be different than current and force allows us to install it
|
|
175
|
+
`--force`];
|
|
176
|
+
await (0, _execa.default)(`npm`, [`install`, ...npmAdditionalCliArgs, ...packagesToInstall.map(p => `${p.packageName}@${p.packageVersion}`)], options);
|
|
177
|
+
return packages.map(info => info ? info.needToInstall ? {
|
|
178
|
+
...info,
|
|
179
|
+
needToInstall: false,
|
|
180
|
+
packageLocation: path.posix.join(cacheDir, `node_modules`, info.packageName)
|
|
181
|
+
} : info : undefined);
|
|
182
|
+
}
|
|
183
|
+
async function createGraphqlEngineBundle(rootDir, reporter, isVerbose) {
|
|
184
|
+
var _state$config$pathPre, _process$env$GATSBY_W;
|
|
185
|
+
const state = _redux.store.getState();
|
|
186
|
+
const pathPrefix = state.program.prefixPaths ? (_state$config$pathPre = state.config.pathPrefix) !== null && _state$config$pathPre !== void 0 ? _state$config$pathPre : `` : ``;
|
|
187
|
+
const schemaSnapshotString = await fs.readFile(path.join(rootDir, `.cache`, `schema.gql`), `utf-8`);
|
|
188
|
+
await (0, _printPlugins.printQueryEnginePlugins)();
|
|
189
|
+
const assetRelocatorUseEntry = {
|
|
190
|
+
loader: require.resolve(`@vercel/webpack-asset-relocator-loader`),
|
|
191
|
+
options: {
|
|
192
|
+
outputAssetBase: `assets`
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
const gatsbyPluginTSRequire = _module.default.createRequire(require.resolve(`gatsby-plugin-typescript`));
|
|
196
|
+
const currentTarget = (0, _enginesHelpers.getCurrentPlatformAndTarget)();
|
|
197
|
+
const functionsTarget = (0, _enginesHelpers.getFunctionsTargetPlatformAndTarget)();
|
|
198
|
+
const dynamicAliases = {};
|
|
199
|
+
let forcedLmdbBinaryModule = undefined;
|
|
200
|
+
|
|
201
|
+
// we need to make sure we have internal packages cache directory setup for current lambda target
|
|
202
|
+
// before we attempt to check if we can reuse those packages
|
|
203
|
+
await createInternalPackagesCacheDir(functionsTarget);
|
|
204
|
+
const [lmdbPackageInfo, sharpPackageInfo] = await installMissing([checkIfNeedToInstallMissingLmdb(functionsTarget), checkIfNeedToInstallMissingSharp(functionsTarget, currentTarget)], functionsTarget);
|
|
205
|
+
if (!lmdbPackageInfo) {
|
|
206
|
+
throw new Error(`Failed to find required LMDB binary`);
|
|
207
|
+
} else if (functionsTarget.platform === `linux`) {
|
|
208
|
+
// function execution platform is primarily linux, which is tested the most, so we only force that specific binary
|
|
209
|
+
// to not cause untested code paths
|
|
210
|
+
if (lmdbPackageInfo.needToInstall) {
|
|
211
|
+
throw new Error(`Failed to locate or install LMDB binary for functions execution platform/arch (${functionsTarget.platform}/${functionsTarget.arch})`);
|
|
212
|
+
}
|
|
213
|
+
forcedLmdbBinaryModule = `${lmdbPackageInfo.packageLocation}/node.abi83.glibc.node`;
|
|
214
|
+
}
|
|
215
|
+
if (sharpPackageInfo) {
|
|
216
|
+
if (sharpPackageInfo.needToInstall) {
|
|
217
|
+
throw new Error(`Failed to locate or install Sharp binary for functions execution platform/arch (${functionsTarget.platform}/${functionsTarget.arch})`);
|
|
218
|
+
}
|
|
219
|
+
dynamicAliases[`sharp$`] = sharpPackageInfo.packageLocation;
|
|
220
|
+
}
|
|
221
|
+
const compiler = (0, _webpack.default)({
|
|
222
|
+
name: `Query Engine`,
|
|
223
|
+
// mode: `production`,
|
|
224
|
+
mode: `none`,
|
|
225
|
+
entry: path.join(__dirname, `entry.js`),
|
|
226
|
+
output: {
|
|
227
|
+
path: outputDir,
|
|
228
|
+
filename: `index.js`,
|
|
229
|
+
libraryTarget: `commonjs`
|
|
230
|
+
},
|
|
231
|
+
target: `node`,
|
|
232
|
+
externalsPresets: {
|
|
233
|
+
node: false
|
|
234
|
+
},
|
|
235
|
+
cache: {
|
|
236
|
+
type: `filesystem`,
|
|
237
|
+
name: `graphql-engine`,
|
|
238
|
+
cacheLocation,
|
|
239
|
+
buildDependencies: {
|
|
240
|
+
config: [__filename]
|
|
241
|
+
},
|
|
242
|
+
version: JSON.stringify(functionsTarget)
|
|
243
|
+
},
|
|
244
|
+
// those are required in some runtime paths, but we don't need them
|
|
245
|
+
externals: [`cbor-x`,
|
|
246
|
+
// optional dep of lmdb-store, but we are using `msgpack` (default) encoding, so we don't need it
|
|
247
|
+
`electron`,
|
|
248
|
+
// :shrug: `got` seems to have electron specific code path
|
|
249
|
+
_module.default.builtinModules.reduce((acc, builtinModule) => {
|
|
250
|
+
if (builtinModule === `fs`) {
|
|
251
|
+
acc[builtinModule] = `global _actualFsWrapper`;
|
|
252
|
+
acc[`node:${builtinModule}`] = `global _actualFsWrapper`;
|
|
253
|
+
} else {
|
|
254
|
+
acc[builtinModule] = `commonjs ${builtinModule}`;
|
|
255
|
+
acc[`node:${builtinModule}`] = `commonjs ${builtinModule}`;
|
|
256
|
+
}
|
|
257
|
+
return acc;
|
|
258
|
+
}, {})],
|
|
259
|
+
module: {
|
|
260
|
+
rules: [{
|
|
261
|
+
oneOf: [{
|
|
262
|
+
// specific set of loaders for sharp
|
|
263
|
+
test: /node_modules[/\\]sharp[/\\].*\.[cm]?js$/,
|
|
264
|
+
// it is recommended for Node builds to turn off AMD support
|
|
265
|
+
parser: {
|
|
266
|
+
amd: false
|
|
267
|
+
},
|
|
268
|
+
use: [assetRelocatorUseEntry, {
|
|
269
|
+
loader: require.resolve(`./sharp-bundling-patch`)
|
|
270
|
+
}]
|
|
271
|
+
}, {
|
|
272
|
+
// specific set of loaders for LMBD - our custom patch to massage lmdb to work with relocator -> relocator
|
|
273
|
+
test: /node_modules[/\\]lmdb[/\\].*\.[cm]?js/,
|
|
274
|
+
// it is recommended for Node builds to turn off AMD support
|
|
275
|
+
parser: {
|
|
276
|
+
amd: false
|
|
277
|
+
},
|
|
278
|
+
use: [assetRelocatorUseEntry, {
|
|
279
|
+
loader: require.resolve(`./lmdb-bundling-patch`),
|
|
280
|
+
options: {
|
|
281
|
+
forcedBinaryModule: forcedLmdbBinaryModule
|
|
282
|
+
}
|
|
283
|
+
}]
|
|
284
|
+
}, {
|
|
285
|
+
// specific set of loaders for gatsby-node files - our babel transform that removes lifecycles not needed for engine -> relocator
|
|
286
|
+
test: /gatsby-node\.(cjs|mjs|js|ts)$/,
|
|
287
|
+
// it is recommended for Node builds to turn off AMD support
|
|
288
|
+
parser: {
|
|
289
|
+
amd: false
|
|
290
|
+
},
|
|
291
|
+
use: [assetRelocatorUseEntry, {
|
|
292
|
+
loader: require.resolve(`../../utils/webpack/loaders/webpack-remove-exports-loader`),
|
|
293
|
+
options: {
|
|
294
|
+
remove: getApisToRemoveForQueryEngine(),
|
|
295
|
+
jsx: false
|
|
296
|
+
}
|
|
297
|
+
}]
|
|
298
|
+
}, {
|
|
299
|
+
// generic loader for all other cases than lmdb or gatsby-node - we don't do anything special other than using relocator on it
|
|
300
|
+
// For node binary relocations, include ".node" files as well here
|
|
301
|
+
test: /\.(cjs|mjs|js|ts|node)$/,
|
|
302
|
+
// it is recommended for Node builds to turn off AMD support
|
|
303
|
+
parser: {
|
|
304
|
+
amd: false
|
|
305
|
+
},
|
|
306
|
+
use: assetRelocatorUseEntry
|
|
307
|
+
}]
|
|
308
|
+
}, {
|
|
309
|
+
test: /\.ts$/,
|
|
310
|
+
exclude: /node_modules/,
|
|
311
|
+
use: {
|
|
312
|
+
loader: require.resolve(`babel-loader`),
|
|
313
|
+
options: {
|
|
314
|
+
presets: [gatsbyPluginTSRequire.resolve(`@babel/preset-typescript`)]
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}, {
|
|
318
|
+
test: /\.m?js$/,
|
|
319
|
+
type: `javascript/auto`,
|
|
320
|
+
resolve: {
|
|
321
|
+
byDependency: {
|
|
322
|
+
esm: {
|
|
323
|
+
fullySpecified: false
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}, {
|
|
328
|
+
test: /\.txt/,
|
|
329
|
+
type: `asset/resource`
|
|
330
|
+
}, {
|
|
331
|
+
test: /\.(graphqls?|gqls?)$/,
|
|
332
|
+
use: {
|
|
333
|
+
loader: require.resolve(`graphql-tag/loader`)
|
|
334
|
+
}
|
|
335
|
+
}]
|
|
336
|
+
},
|
|
337
|
+
resolve: {
|
|
338
|
+
extensions,
|
|
339
|
+
alias: {
|
|
340
|
+
...dynamicAliases,
|
|
341
|
+
".cache": process.cwd() + `/.cache/`,
|
|
342
|
+
[require.resolve(`gatsby-cli/lib/reporter/loggers/ink/index.js`)]: false,
|
|
343
|
+
inquirer: false,
|
|
344
|
+
// only load one version of lmdb
|
|
345
|
+
lmdb: require.resolve(`lmdb`),
|
|
346
|
+
"ts-node": require.resolve(`./shims/ts-node`),
|
|
347
|
+
"gatsby-sharp$": require.resolve(`./shims/gatsby-sharp`),
|
|
348
|
+
"graphql-import-node$": require.resolve(`./shims/no-op-module`),
|
|
349
|
+
"graphql-import-node/register$": require.resolve(`./shims/no-op-module`),
|
|
350
|
+
"babel-runtime/helpers/asyncToGenerator": require.resolve(`./shims/no-op-module`) // undeclared dep of yurnalist (but used in code path we don't use)
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
|
|
354
|
+
plugins: [new _webpack.default.EnvironmentPlugin([`GATSBY_CLOUD_IMAGE_CDN`]), new _webpack.default.DefinePlugin({
|
|
355
|
+
"process.env.GATSBY_SKIP_WRITING_SCHEMA_TO_FILE": `true`,
|
|
356
|
+
"process.env.NODE_ENV": JSON.stringify(`production`),
|
|
357
|
+
SCHEMA_SNAPSHOT: JSON.stringify(schemaSnapshotString),
|
|
358
|
+
PATH_PREFIX: JSON.stringify(pathPrefix),
|
|
359
|
+
"process.env.GATSBY_LOGGER": JSON.stringify(`yurnalist`),
|
|
360
|
+
"process.env.GATSBY_SLICES": JSON.stringify(!!process.env.GATSBY_SLICES),
|
|
361
|
+
"process.env.GATSBY_FUNCTIONS_PLATFORM": JSON.stringify(functionsTarget.platform),
|
|
362
|
+
"process.env.GATSBY_FUNCTIONS_ARCH": JSON.stringify(functionsTarget.arch)
|
|
363
|
+
}), ((_process$env$GATSBY_W = process.env.GATSBY_WEBPACK_LOGGING) === null || _process$env$GATSBY_W === void 0 ? void 0 : _process$env$GATSBY_W.includes(`query-engine`)) && new _webpackLogging.WebpackLoggingPlugin(rootDir, reporter, isVerbose)].filter(Boolean)
|
|
364
|
+
});
|
|
365
|
+
return new Promise((resolve, reject) => {
|
|
366
|
+
compiler.run(async (err, stats) => {
|
|
367
|
+
function getResourcePath(webpackModule) {
|
|
368
|
+
if (webpackModule && !(webpackModule instanceof _ConcatenatedModule.default)) {
|
|
369
|
+
return webpackModule.resource;
|
|
370
|
+
}
|
|
371
|
+
if (webpackModule !== null && webpackModule !== void 0 && webpackModule.modules) {
|
|
372
|
+
// ConcatenatedModule is a collection of modules so we have to go deeper to actually get a path,
|
|
373
|
+
// at this point we won't know which one so we just grab first module here
|
|
374
|
+
const [firstSubModule] = webpackModule.modules;
|
|
375
|
+
return getResourcePath(firstSubModule);
|
|
376
|
+
}
|
|
377
|
+
return undefined;
|
|
378
|
+
}
|
|
379
|
+
function iterateModules(webpackModules, compilation) {
|
|
380
|
+
for (const webpackModule of webpackModules) {
|
|
381
|
+
if (webpackModule instanceof _ConcatenatedModule.default) {
|
|
382
|
+
iterateModules(webpackModule.modules, compilation);
|
|
383
|
+
} else {
|
|
384
|
+
const resourcePath = getResourcePath(webpackModule);
|
|
385
|
+
if (resourcePath !== null && resourcePath !== void 0 && resourcePath.includes(`ts-node`)) {
|
|
386
|
+
const importedBy = getResourcePath(compilation.moduleGraph.getIssuer(webpackModule));
|
|
387
|
+
const structuredError = {
|
|
388
|
+
id: `98011`,
|
|
389
|
+
context: {
|
|
390
|
+
package: `ts-node`,
|
|
391
|
+
importedBy,
|
|
392
|
+
advisory: `Gatsby is supporting TypeScript natively (see https://gatsby.dev/typescript). "ts-node" might not be needed anymore at all, consider removing it.`
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
throw structuredError;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
try {
|
|
401
|
+
if (stats !== null && stats !== void 0 && stats.compilation.modules) {
|
|
402
|
+
iterateModules(stats.compilation.modules, stats.compilation);
|
|
403
|
+
}
|
|
404
|
+
if (!(0, _isEqual2.default)(functionsTarget, currentTarget)) {
|
|
405
|
+
const binaryFixingPromises = [];
|
|
406
|
+
// sigh - emitAsset used by relocator seems to corrupt binaries
|
|
407
|
+
// resulting in "ELF file's phentsize not the expected size" errors
|
|
408
|
+
// - see size diff
|
|
409
|
+
// > find . -name node.abi83.glibc.node
|
|
410
|
+
// ./.cache/internal-packages/node_modules/@lmdb/lmdb-linux-x64/node.abi83.glibc.node
|
|
411
|
+
// ./.cache/query-engine/assets/node.abi83.glibc.node
|
|
412
|
+
// > ls -al ./.cache/query-engine/assets/node.abi83.glibc.node
|
|
413
|
+
// -rw-r--r-- 1 misiek 197121 1285429 Mar 14 11:36 ./.cache/query-engine/assets/node.abi83.glibc.node
|
|
414
|
+
// > ls -al ./.cache/internal-packages/node_modules/@lmdb/lmdb-linux-x64/node.abi83.glibc.node
|
|
415
|
+
// -rw-r--r-- 1 misiek 197121 693544 Mar 14 11:35 ./.cache/internal-packages/node_modules/@lmdb/lmdb-linux-x64/node.abi83.glibc.node
|
|
416
|
+
// so this tries to fix it by straight copying it over
|
|
417
|
+
for (const asset of ((_stats$compilation$as = stats === null || stats === void 0 ? void 0 : (_stats$compilation = stats.compilation) === null || _stats$compilation === void 0 ? void 0 : _stats$compilation.assetsInfo) !== null && _stats$compilation$as !== void 0 ? _stats$compilation$as : new Map()).keys()) {
|
|
418
|
+
var _stats$compilation$as, _stats$compilation;
|
|
419
|
+
if (asset !== null && asset !== void 0 && asset.endsWith(`.node`)) {
|
|
420
|
+
const targetRelPath = path.posix.relative(`assets`, asset);
|
|
421
|
+
const assetMeta = (0, _webpackAssetRelocatorLoader.getAssetMeta)(targetRelPath, stats === null || stats === void 0 ? void 0 : stats.compilation);
|
|
422
|
+
const sourcePath = assetMeta === null || assetMeta === void 0 ? void 0 : assetMeta.path;
|
|
423
|
+
if (sourcePath) {
|
|
424
|
+
const dist = path.join(outputDir, asset);
|
|
425
|
+
binaryFixingPromises.push(fs.copyFile(sourcePath, dist));
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
await Promise.all(binaryFixingPromises);
|
|
430
|
+
}
|
|
431
|
+
compiler.close(closeErr => {
|
|
432
|
+
if (err) {
|
|
433
|
+
return reject(err);
|
|
434
|
+
}
|
|
435
|
+
if (closeErr) {
|
|
436
|
+
return reject(closeErr);
|
|
437
|
+
}
|
|
438
|
+
return resolve(stats === null || stats === void 0 ? void 0 : stats.compilation);
|
|
439
|
+
});
|
|
440
|
+
} catch (e) {
|
|
441
|
+
reject(e);
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
//# sourceMappingURL=bundle-webpack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-webpack.js","names":["extensions","outputDir","path","posix","join","slash","process","cwd","cacheLocation","getApisToRemoveForQueryEngine","apisToKeep","Set","schemaCustomizationAPIs","add","apisToRemove","Object","keys","nodeApis","filter","api","has","getInternalPackagesCacheDir","functionsTarget","platform","arch","createInternalPackagesCacheDir","cacheDir","fs","ensureDir","packageJsonPath","existsSync","emptyDir","outputJson","name","description","version","private","author","license","getLMDBBinaryFromSiteLocation","lmdbPackageName","packageJson","modulePath","dirname","require","resolve","replace","JSON","parse","readFileSync","e","undefined","optionalDependencies","find","p","Error","getPackageLocationFromRequireContext","location","packageName","packageVersion","requireId","locationRequire","mod","createRequire","packageJsonLocation","checkIfInstalledInInternalPackagesCache","packageStatus","packageLocationFromInternalPackageCache","relative","startsWith","needToInstall","packageLocation","checkIfNeedToInstallMissingLmdb","lmdbBinaryFromSiteLocation","dependencies","lmdb","sharedPackageStatus","checkIfNeedToInstallMissingSharp","currentTarget","sharp","vendor","installed","includes","current","versions","installMissing","packages","shouldInstall","Boolean","packagesToInstall","length","options","stderr","env","npm_config_arch","npm_config_platform","SHARP_IGNORE_GLOBAL_LIBVIPS","npmAdditionalCliArgs","execa","map","info","createGraphqlEngineBundle","rootDir","reporter","isVerbose","state","store","getState","pathPrefix","program","prefixPaths","config","schemaSnapshotString","readFile","printQueryEnginePlugins","assetRelocatorUseEntry","loader","outputAssetBase","gatsbyPluginTSRequire","getCurrentPlatformAndTarget","getFunctionsTargetPlatformAndTarget","dynamicAliases","forcedLmdbBinaryModule","lmdbPackageInfo","sharpPackageInfo","compiler","webpack","mode","entry","__dirname","output","filename","libraryTarget","target","externalsPresets","node","cache","type","buildDependencies","__filename","stringify","externals","builtinModules","reduce","acc","builtinModule","module","rules","oneOf","test","parser","amd","use","forcedBinaryModule","remove","jsx","exclude","presets","byDependency","esm","fullySpecified","alias","inquirer","plugins","EnvironmentPlugin","DefinePlugin","SCHEMA_SNAPSHOT","PATH_PREFIX","GATSBY_SLICES","GATSBY_WEBPACK_LOGGING","WebpackLoggingPlugin","Promise","reject","run","err","stats","getResourcePath","webpackModule","ConcatenatedModule","resource","modules","firstSubModule","iterateModules","webpackModules","compilation","resourcePath","importedBy","moduleGraph","getIssuer","structuredError","id","context","package","advisory","binaryFixingPromises","asset","assetsInfo","Map","endsWith","targetRelPath","assetMeta","getAssetMeta","sourcePath","dist","push","copyFile","all","close","closeErr"],"sources":["../../../src/schema/graphql-engine/bundle-webpack.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\n\nimport * as path from \"path\"\nimport * as fs from \"fs-extra\"\nimport execa, { Options as ExecaOptions } from \"execa\"\nimport webpack, { Module, NormalModule, Compilation } from \"webpack\"\nimport ConcatenatedModule from \"webpack/lib/optimize/ConcatenatedModule\"\nimport { dependencies } from \"gatsby/package.json\"\nimport { printQueryEnginePlugins } from \"./print-plugins\"\nimport mod from \"module\"\nimport { WebpackLoggingPlugin } from \"../../utils/webpack/plugins/webpack-logging\"\nimport { getAssetMeta } from \"@vercel/webpack-asset-relocator-loader\"\nimport reporter from \"gatsby-cli/lib/reporter\"\nimport { schemaCustomizationAPIs } from \"./print-plugins\"\nimport type { GatsbyNodeAPI } from \"../../redux/types\"\nimport * as nodeApis from \"../../utils/api-node-docs\"\nimport { store } from \"../../redux\"\nimport { PackageJson } from \"../../..\"\nimport { slash } from \"gatsby-core-utils/path\"\nimport { isEqual } from \"lodash\"\nimport {\n IPlatformAndArch,\n getCurrentPlatformAndTarget,\n getFunctionsTargetPlatformAndTarget,\n} from \"../../utils/engines-helpers\"\n\ntype Reporter = typeof reporter\n\nconst extensions = [`.mjs`, `.js`, `.json`, `.node`, `.ts`, `.tsx`]\n\nconst outputDir = path.posix.join(\n slash(process.cwd()),\n `.cache`,\n `query-engine`\n)\nconst cacheLocation = path.posix.join(\n slash(process.cwd()),\n `.cache`,\n `webpack`,\n `query-engine`\n)\n\nfunction getApisToRemoveForQueryEngine(): Array<GatsbyNodeAPI> {\n const apisToKeep = new Set(schemaCustomizationAPIs)\n apisToKeep.add(`onPluginInit`)\n\n const apisToRemove = (Object.keys(nodeApis) as Array<GatsbyNodeAPI>).filter(\n api => !apisToKeep.has(api)\n )\n return apisToRemove\n}\n\nconst getInternalPackagesCacheDir = (\n functionsTarget: IPlatformAndArch\n): string =>\n path.posix.join(\n slash(process.cwd()),\n `.cache`,\n `internal-packages`,\n `${functionsTarget.platform}-${functionsTarget.arch}`\n )\n\n// Create a directory and JS module where we install internally used packages\nconst createInternalPackagesCacheDir = async (\n functionsTarget: IPlatformAndArch\n): Promise<void> => {\n const cacheDir = getInternalPackagesCacheDir(functionsTarget)\n await fs.ensureDir(cacheDir)\n\n const packageJsonPath = path.join(cacheDir, `package.json`)\n\n if (!fs.existsSync(packageJsonPath)) {\n await fs.emptyDir(cacheDir)\n\n await fs.outputJson(packageJsonPath, {\n name: `gatsby-internal-packages`,\n description: `This directory contains internal packages installed by Gatsby used to comply with the current platform requirements`,\n version: `1.0.0`,\n private: true,\n author: `Gatsby`,\n license: `MIT`,\n functionsTarget,\n })\n }\n}\n\nfunction getLMDBBinaryFromSiteLocation(\n lmdbPackageName: string,\n version: string,\n functionsTarget: IPlatformAndArch\n): string | undefined {\n // Read lmdb's package.json, go through its optional depedencies and validate if there's a prebuilt lmdb module with a compatible binary to our platform and arch\n let packageJson: PackageJson\n try {\n const modulePath = path\n .dirname(slash(require.resolve(`lmdb`)))\n .replace(`/dist`, ``)\n const packageJsonPath = path.join(modulePath, `package.json`)\n packageJson = JSON.parse(fs.readFileSync(packageJsonPath, `utf-8`))\n } catch (e) {\n // If we fail to read lmdb's package.json there's bigger problems here so just skip installation\n return undefined\n }\n // If there's no lmdb prebuilt package for our arch/platform listed as optional dep no point in trying to install it\n const { optionalDependencies = {} } = packageJson\n if (!Object.keys(optionalDependencies).find(p => p === lmdbPackageName)) {\n throw new Error(\n `Target platform/arch for functions execution (${functionsTarget.platform}/${functionsTarget.arch}) is not supported.`\n )\n }\n return getPackageLocationFromRequireContext(\n slash(require.resolve(`lmdb`)),\n lmdbPackageName,\n version\n )\n}\n\nfunction getPackageLocationFromRequireContext(\n location: string,\n packageName: string,\n packageVersion?: string\n): string | undefined {\n try {\n const requireId = `${packageName}/package.json`\n const locationRequire = mod.createRequire(location)\n const packageJsonLocation = slash(locationRequire.resolve(requireId))\n\n if (packageVersion) {\n // delete locationRequire.cache[requireId]\n const { version } = JSON.parse(\n fs.readFileSync(packageJsonLocation, `utf-8`)\n )\n if (packageVersion !== version) {\n return undefined\n }\n }\n\n return path.dirname(packageJsonLocation)\n } catch (e) {\n return undefined\n }\n}\n\ninterface ILMDBBinaryPackageStatusBase {\n packageName: string\n needToInstall: boolean\n packageVersion: string\n}\n\ninterface ILMDBBinaryPackageStatusInstalled\n extends ILMDBBinaryPackageStatusBase {\n needToInstall: false\n packageLocation: string\n}\n\ninterface ILMDBBinaryPackageStatusNeedAlternative\n extends ILMDBBinaryPackageStatusBase {\n needToInstall: true\n}\n\ntype IBinaryPackageStatus =\n | ILMDBBinaryPackageStatusInstalled\n | ILMDBBinaryPackageStatusNeedAlternative\n\nfunction checkIfInstalledInInternalPackagesCache(\n packageStatus: IBinaryPackageStatus,\n functionsTarget: IPlatformAndArch\n): IBinaryPackageStatus {\n const cacheDir = getInternalPackagesCacheDir(functionsTarget)\n\n const packageLocationFromInternalPackageCache =\n getPackageLocationFromRequireContext(\n path.posix.join(cacheDir, `:internal:`),\n packageStatus.packageName,\n packageStatus.packageVersion\n )\n\n if (\n packageLocationFromInternalPackageCache &&\n !path.posix\n .relative(cacheDir, packageLocationFromInternalPackageCache)\n .startsWith(`..`)\n ) {\n return {\n ...packageStatus,\n needToInstall: false,\n packageLocation: packageLocationFromInternalPackageCache,\n }\n }\n\n return {\n ...packageStatus,\n needToInstall: true,\n }\n}\n\n// Install lmdb's native system module under our internal cache if we detect the current installation\n// isn't using the pre-build binaries\nfunction checkIfNeedToInstallMissingLmdb(\n functionsTarget: IPlatformAndArch\n): IBinaryPackageStatus {\n // lmdb module with prebuilt binaries for target platform\n const lmdbPackageName = `@lmdb/lmdb-${functionsTarget.platform}-${functionsTarget.arch}`\n\n const lmdbBinaryFromSiteLocation = getLMDBBinaryFromSiteLocation(\n lmdbPackageName,\n dependencies.lmdb,\n functionsTarget\n )\n\n const sharedPackageStatus: ILMDBBinaryPackageStatusNeedAlternative = {\n needToInstall: true,\n packageName: lmdbPackageName,\n packageVersion: dependencies.lmdb,\n }\n\n if (lmdbBinaryFromSiteLocation) {\n return {\n ...sharedPackageStatus,\n needToInstall: false,\n packageLocation: lmdbBinaryFromSiteLocation,\n }\n }\n\n return checkIfInstalledInInternalPackagesCache(\n sharedPackageStatus,\n functionsTarget\n )\n}\n\nfunction checkIfNeedToInstallMissingSharp(\n functionsTarget: IPlatformAndArch,\n currentTarget: IPlatformAndArch\n): IBinaryPackageStatus | undefined {\n try {\n // check if sharp is resolvable\n const sharp: typeof import(\"sharp\") = require(`sharp`)\n\n if (isEqual(functionsTarget, currentTarget)) {\n // if current platform and target is the same as functions target, we need to check if vendored libvips\n // exists in the current sharp installation as it will be needed in lambda\n if (sharp.vendor.installed.includes(sharp.vendor.current)) {\n // vendored libvips is installed, so we can use it\n return undefined\n }\n }\n\n return checkIfInstalledInInternalPackagesCache(\n {\n needToInstall: true,\n packageName: `sharp`,\n packageVersion:\n sharp.versions.sharp ?? require(`sharp/package.json`).version,\n },\n functionsTarget\n )\n } catch (e) {\n return undefined\n }\n}\n\nasync function installMissing(\n packages: Array<IBinaryPackageStatus | undefined>,\n functionsTarget: IPlatformAndArch\n): Promise<Array<IBinaryPackageStatus | undefined>> {\n function shouldInstall(\n p: IBinaryPackageStatus | undefined\n ): p is IBinaryPackageStatus {\n return Boolean(p?.needToInstall)\n }\n\n const packagesToInstall = packages.filter(shouldInstall)\n\n if (packagesToInstall.length === 0) {\n return packages\n }\n\n await createInternalPackagesCacheDir(functionsTarget)\n\n const cacheDir = getInternalPackagesCacheDir(functionsTarget)\n\n const options: ExecaOptions = {\n stderr: `inherit`,\n cwd: cacheDir,\n env: {\n npm_config_arch: functionsTarget.arch,\n npm_config_platform: functionsTarget.platform,\n // force sharp to download vendored libvips and not skip it if globally installed libvips matches sharp requirements\n // so that produced function is self-sufficient and doesn't rely on function execution environment having (same)\n // globally available libvips\n SHARP_IGNORE_GLOBAL_LIBVIPS: `1`,\n },\n }\n\n const npmAdditionalCliArgs = [\n `--no-progress`,\n `--no-audit`,\n `--no-fund`,\n `--loglevel`,\n `error`,\n `--color`,\n `always`,\n `--legacy-peer-deps`,\n `--save-exact`,\n // target platform might be different than current and force allows us to install it\n `--force`,\n ]\n\n await execa(\n `npm`,\n [\n `install`,\n ...npmAdditionalCliArgs,\n ...packagesToInstall.map(p => `${p.packageName}@${p.packageVersion}`),\n ],\n options\n )\n\n return packages.map(info =>\n info\n ? info.needToInstall\n ? {\n ...info,\n needToInstall: false,\n packageLocation: path.posix.join(\n cacheDir,\n `node_modules`,\n info.packageName\n ),\n }\n : info\n : undefined\n )\n}\n\nexport async function createGraphqlEngineBundle(\n rootDir: string,\n reporter: Reporter,\n isVerbose?: boolean\n): Promise<webpack.Compilation | undefined> {\n const state = store.getState()\n const pathPrefix = state.program.prefixPaths\n ? state.config.pathPrefix ?? ``\n : ``\n\n const schemaSnapshotString = await fs.readFile(\n path.join(rootDir, `.cache`, `schema.gql`),\n `utf-8`\n )\n await printQueryEnginePlugins()\n\n const assetRelocatorUseEntry = {\n loader: require.resolve(`@vercel/webpack-asset-relocator-loader`),\n options: {\n outputAssetBase: `assets`,\n },\n }\n\n const gatsbyPluginTSRequire = mod.createRequire(\n require.resolve(`gatsby-plugin-typescript`)\n )\n\n const currentTarget = getCurrentPlatformAndTarget()\n const functionsTarget = getFunctionsTargetPlatformAndTarget()\n\n const dynamicAliases: Record<string, string> = {}\n let forcedLmdbBinaryModule: string | undefined = undefined\n\n // we need to make sure we have internal packages cache directory setup for current lambda target\n // before we attempt to check if we can reuse those packages\n await createInternalPackagesCacheDir(functionsTarget)\n\n const [lmdbPackageInfo, sharpPackageInfo] = await installMissing(\n [\n checkIfNeedToInstallMissingLmdb(functionsTarget),\n checkIfNeedToInstallMissingSharp(functionsTarget, currentTarget),\n ],\n functionsTarget\n )\n\n if (!lmdbPackageInfo) {\n throw new Error(`Failed to find required LMDB binary`)\n } else if (functionsTarget.platform === `linux`) {\n // function execution platform is primarily linux, which is tested the most, so we only force that specific binary\n // to not cause untested code paths\n if (lmdbPackageInfo.needToInstall) {\n throw new Error(\n `Failed to locate or install LMDB binary for functions execution platform/arch (${functionsTarget.platform}/${functionsTarget.arch})`\n )\n }\n\n forcedLmdbBinaryModule = `${lmdbPackageInfo.packageLocation}/node.abi83.glibc.node`\n }\n\n if (sharpPackageInfo) {\n if (sharpPackageInfo.needToInstall) {\n throw new Error(\n `Failed to locate or install Sharp binary for functions execution platform/arch (${functionsTarget.platform}/${functionsTarget.arch})`\n )\n }\n dynamicAliases[`sharp$`] = sharpPackageInfo.packageLocation\n }\n\n const compiler = webpack({\n name: `Query Engine`,\n // mode: `production`,\n mode: `none`,\n entry: path.join(__dirname, `entry.js`),\n output: {\n path: outputDir,\n filename: `index.js`,\n libraryTarget: `commonjs`,\n },\n target: `node`,\n externalsPresets: {\n node: false,\n },\n cache: {\n type: `filesystem`,\n name: `graphql-engine`,\n cacheLocation,\n buildDependencies: {\n config: [__filename],\n },\n version: JSON.stringify(functionsTarget),\n },\n // those are required in some runtime paths, but we don't need them\n externals: [\n `cbor-x`, // optional dep of lmdb-store, but we are using `msgpack` (default) encoding, so we don't need it\n `electron`, // :shrug: `got` seems to have electron specific code path\n mod.builtinModules.reduce((acc, builtinModule) => {\n if (builtinModule === `fs`) {\n acc[builtinModule] = `global _actualFsWrapper`\n acc[`node:${builtinModule}`] = `global _actualFsWrapper`\n } else {\n acc[builtinModule] = `commonjs ${builtinModule}`\n acc[`node:${builtinModule}`] = `commonjs ${builtinModule}`\n }\n\n return acc\n }, {}),\n ],\n module: {\n rules: [\n {\n oneOf: [\n {\n // specific set of loaders for sharp\n test: /node_modules[/\\\\]sharp[/\\\\].*\\.[cm]?js$/,\n // it is recommended for Node builds to turn off AMD support\n parser: { amd: false },\n use: [\n assetRelocatorUseEntry,\n {\n loader: require.resolve(`./sharp-bundling-patch`),\n },\n ],\n },\n {\n // specific set of loaders for LMBD - our custom patch to massage lmdb to work with relocator -> relocator\n test: /node_modules[/\\\\]lmdb[/\\\\].*\\.[cm]?js/,\n // it is recommended for Node builds to turn off AMD support\n parser: { amd: false },\n use: [\n assetRelocatorUseEntry,\n {\n loader: require.resolve(`./lmdb-bundling-patch`),\n options: {\n forcedBinaryModule: forcedLmdbBinaryModule,\n },\n },\n ],\n },\n {\n // specific set of loaders for gatsby-node files - our babel transform that removes lifecycles not needed for engine -> relocator\n test: /gatsby-node\\.(cjs|mjs|js|ts)$/,\n // it is recommended for Node builds to turn off AMD support\n parser: { amd: false },\n use: [\n assetRelocatorUseEntry,\n {\n loader: require.resolve(\n `../../utils/webpack/loaders/webpack-remove-exports-loader`\n ),\n options: {\n remove: getApisToRemoveForQueryEngine(),\n jsx: false,\n },\n },\n ],\n },\n {\n // generic loader for all other cases than lmdb or gatsby-node - we don't do anything special other than using relocator on it\n // For node binary relocations, include \".node\" files as well here\n test: /\\.(cjs|mjs|js|ts|node)$/,\n // it is recommended for Node builds to turn off AMD support\n parser: { amd: false },\n use: assetRelocatorUseEntry,\n },\n ],\n },\n {\n test: /\\.ts$/,\n exclude: /node_modules/,\n use: {\n loader: require.resolve(`babel-loader`),\n options: {\n presets: [\n gatsbyPluginTSRequire.resolve(`@babel/preset-typescript`),\n ],\n },\n },\n },\n {\n test: /\\.m?js$/,\n type: `javascript/auto`,\n resolve: {\n byDependency: {\n esm: {\n fullySpecified: false,\n },\n },\n },\n },\n {\n test: /\\.txt/,\n type: `asset/resource`,\n },\n {\n test: /\\.(graphqls?|gqls?)$/,\n use: {\n loader: require.resolve(`graphql-tag/loader`),\n },\n },\n ],\n },\n resolve: {\n extensions,\n alias: {\n ...dynamicAliases,\n \".cache\": process.cwd() + `/.cache/`,\n\n [require.resolve(`gatsby-cli/lib/reporter/loggers/ink/index.js`)]:\n false,\n inquirer: false,\n // only load one version of lmdb\n lmdb: require.resolve(`lmdb`),\n \"ts-node\": require.resolve(`./shims/ts-node`),\n \"gatsby-sharp$\": require.resolve(`./shims/gatsby-sharp`),\n \"graphql-import-node$\": require.resolve(`./shims/no-op-module`),\n \"graphql-import-node/register$\":\n require.resolve(`./shims/no-op-module`),\n \"babel-runtime/helpers/asyncToGenerator\":\n require.resolve(`./shims/no-op-module`), // undeclared dep of yurnalist (but used in code path we don't use)\n },\n },\n plugins: [\n new webpack.EnvironmentPlugin([`GATSBY_CLOUD_IMAGE_CDN`]),\n new webpack.DefinePlugin({\n \"process.env.GATSBY_SKIP_WRITING_SCHEMA_TO_FILE\": `true`,\n \"process.env.NODE_ENV\": JSON.stringify(`production`),\n SCHEMA_SNAPSHOT: JSON.stringify(schemaSnapshotString),\n PATH_PREFIX: JSON.stringify(pathPrefix),\n \"process.env.GATSBY_LOGGER\": JSON.stringify(`yurnalist`),\n \"process.env.GATSBY_SLICES\": JSON.stringify(\n !!process.env.GATSBY_SLICES\n ),\n \"process.env.GATSBY_FUNCTIONS_PLATFORM\": JSON.stringify(\n functionsTarget.platform\n ),\n \"process.env.GATSBY_FUNCTIONS_ARCH\": JSON.stringify(\n functionsTarget.arch\n ),\n }),\n process.env.GATSBY_WEBPACK_LOGGING?.includes(`query-engine`) &&\n new WebpackLoggingPlugin(rootDir, reporter, isVerbose),\n ].filter(Boolean) as Array<webpack.WebpackPluginInstance>,\n })\n\n return new Promise((resolve, reject) => {\n compiler.run(async (err, stats): Promise<void> => {\n function getResourcePath(\n webpackModule?: Module | NormalModule | ConcatenatedModule | null\n ): string | undefined {\n if (webpackModule && !(webpackModule instanceof ConcatenatedModule)) {\n return (webpackModule as NormalModule).resource\n }\n\n if (webpackModule?.modules) {\n // ConcatenatedModule is a collection of modules so we have to go deeper to actually get a path,\n // at this point we won't know which one so we just grab first module here\n const [firstSubModule] = webpackModule.modules\n return getResourcePath(firstSubModule)\n }\n\n return undefined\n }\n\n function iterateModules(\n webpackModules: Set<Module>,\n compilation: Compilation\n ): void {\n for (const webpackModule of webpackModules) {\n if (webpackModule instanceof ConcatenatedModule) {\n iterateModules(\n (webpackModule as ConcatenatedModule).modules,\n compilation\n )\n } else {\n const resourcePath = getResourcePath(webpackModule)\n if (resourcePath?.includes(`ts-node`)) {\n const importedBy = getResourcePath(\n compilation.moduleGraph.getIssuer(webpackModule)\n )\n const structuredError = {\n id: `98011`,\n context: {\n package: `ts-node`,\n importedBy,\n advisory: `Gatsby is supporting TypeScript natively (see https://gatsby.dev/typescript). \"ts-node\" might not be needed anymore at all, consider removing it.`,\n },\n }\n throw structuredError\n }\n }\n }\n }\n\n try {\n if (stats?.compilation.modules) {\n iterateModules(stats.compilation.modules, stats.compilation)\n }\n\n if (!isEqual(functionsTarget, currentTarget)) {\n const binaryFixingPromises: Array<Promise<void>> = []\n // sigh - emitAsset used by relocator seems to corrupt binaries\n // resulting in \"ELF file's phentsize not the expected size\" errors\n // - see size diff\n // > find . -name node.abi83.glibc.node\n // ./.cache/internal-packages/node_modules/@lmdb/lmdb-linux-x64/node.abi83.glibc.node\n // ./.cache/query-engine/assets/node.abi83.glibc.node\n // > ls -al ./.cache/query-engine/assets/node.abi83.glibc.node\n // -rw-r--r-- 1 misiek 197121 1285429 Mar 14 11:36 ./.cache/query-engine/assets/node.abi83.glibc.node\n // > ls -al ./.cache/internal-packages/node_modules/@lmdb/lmdb-linux-x64/node.abi83.glibc.node\n // -rw-r--r-- 1 misiek 197121 693544 Mar 14 11:35 ./.cache/internal-packages/node_modules/@lmdb/lmdb-linux-x64/node.abi83.glibc.node\n // so this tries to fix it by straight copying it over\n for (const asset of (\n stats?.compilation?.assetsInfo ?? new Map()\n ).keys()) {\n if (asset?.endsWith(`.node`)) {\n const targetRelPath = path.posix.relative(`assets`, asset)\n const assetMeta = getAssetMeta(targetRelPath, stats?.compilation)\n const sourcePath = assetMeta?.path\n if (sourcePath) {\n const dist = path.join(outputDir, asset)\n binaryFixingPromises.push(fs.copyFile(sourcePath, dist))\n }\n }\n }\n\n await Promise.all(binaryFixingPromises)\n }\n\n compiler.close(closeErr => {\n if (err) {\n return reject(err)\n }\n if (closeErr) {\n return reject(closeErr)\n }\n return resolve(stats?.compilation)\n })\n } catch (e) {\n reject(e)\n }\n })\n })\n}\n"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AAEA;AAEA;AAIoC;AAAA;AAxBpC;;AA4BA,MAAMA,UAAU,GAAG,CAAE,MAAK,EAAG,KAAI,EAAG,OAAM,EAAG,OAAM,EAAG,KAAI,EAAG,MAAK,CAAC;AAEnE,MAAMC,SAAS,GAAGC,IAAI,CAACC,KAAK,CAACC,IAAI,CAC/B,IAAAC,YAAK,EAACC,OAAO,CAACC,GAAG,EAAE,CAAC,EACnB,QAAO,EACP,cAAa,CACf;AACD,MAAMC,aAAa,GAAGN,IAAI,CAACC,KAAK,CAACC,IAAI,CACnC,IAAAC,YAAK,EAACC,OAAO,CAACC,GAAG,EAAE,CAAC,EACnB,QAAO,EACP,SAAQ,EACR,cAAa,CACf;AAED,SAASE,6BAA6B,GAAyB;EAC7D,MAAMC,UAAU,GAAG,IAAIC,GAAG,CAACC,qCAAuB,CAAC;EACnDF,UAAU,CAACG,GAAG,CAAE,cAAa,CAAC;EAE9B,MAAMC,YAAY,GAAIC,MAAM,CAACC,IAAI,CAACC,QAAQ,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C,IAAI,CAAC,CAAC;cAC1D;YACF;UACF;UAEA,MAAMhC,OAAO,CAACmC,GAAG,CAACZ,oBAAoB,CAAC;QACzC;QAEArE,QAAQ,CAACkF,KAAK,CAACC,QAAQ,IAAI;UACzB,IAAIlC,GAAG,EAAE;YACP,OAAOF,MAAM,CAACE,GAAG,CAAC;UACpB;UACA,IAAIkC,QAAQ,EAAE;YACZ,OAAOpC,MAAM,CAACoC,QAAQ,CAAC;UACzB;UACA,OAAOnK,OAAO,CAACkI,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAES,WAAW,CAAC;QACpC,CAAC,CAAC;MACJ,CAAC,CAAC,OAAOtI,CAAC,EAAE;QACV0H,MAAM,CAAC1H,CAAC,CAAC;MACX;IACF,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./bootstrap";
|
|
2
|
+
import { ExecutionResult, Source } from "graphql";
|
|
3
|
+
import { IQueryOptions } from "../../query/graphql-runner";
|
|
4
|
+
import type { IGatsbyPage } from "../../redux/types";
|
|
5
|
+
export declare class GraphQLEngine {
|
|
6
|
+
private runnerPromise?;
|
|
7
|
+
constructor({ dbPath }: {
|
|
8
|
+
dbPath: string;
|
|
9
|
+
});
|
|
10
|
+
private setupPathPrefix;
|
|
11
|
+
private _doGetRunner;
|
|
12
|
+
private getRunner;
|
|
13
|
+
ready(): Promise<void>;
|
|
14
|
+
runQuery(query: string | Source, context?: Record<string, any>, opts?: IQueryOptions): Promise<ExecutionResult>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use findEnginePageByPath exported from page-ssr module instead
|
|
17
|
+
*/
|
|
18
|
+
findPageByPath(pathName: string): IGatsbyPage | undefined;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: {
|
|
21
|
+
GraphQLEngine: typeof GraphQLEngine;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|