diff --git a/.gitignore b/.gitignore index 56d96cd..e075fe7 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ hfuzz_target hfuzz_workspace **/*.so **/.DS_Store +.cache diff --git a/js/packages/metaplex/.cache/.eslintrc.json b/js/packages/metaplex/.cache/.eslintrc.json deleted file mode 100644 index 7396d0e..0000000 --- a/js/packages/metaplex/.cache/.eslintrc.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "env": { - "browser": true - }, - "globals": { - "__PATH_PREFIX__": false, - "___emitter": false - } -} diff --git a/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/async-requires.js b/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/async-requires.js deleted file mode 100644 index 25a6de3..0000000 --- a/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/async-requires.js +++ /dev/null @@ -1,9 +0,0 @@ -// prefer default export if available -const preferDefault = m => (m && m.default) || m - -exports.components = { - "component---src-pages-404-tsx": () => import("./../../../src/pages/404.tsx" /* webpackChunkName: "component---src-pages-404-tsx" */), - "component---src-pages-contact-tsx": () => import("./../../../src/pages/contact.tsx" /* webpackChunkName: "component---src-pages-contact-tsx" */), - "component---src-pages-index-tsx": () => import("./../../../src/pages/index.tsx" /* webpackChunkName: "component---src-pages-index-tsx" */) -} - diff --git a/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/match-paths.json b/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/match-paths.json deleted file mode 100644 index 0637a08..0000000 --- a/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/match-paths.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/sync-requires.js b/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/sync-requires.js deleted file mode 100644 index 355d9d3..0000000 --- a/js/packages/metaplex/.cache/_this_is_virtual_fs_path_/$virtual/sync-requires.js +++ /dev/null @@ -1,11 +0,0 @@ - -// prefer default export if available -const preferDefault = m => (m && m.default) || m - - -exports.components = { - "component---src-pages-404-tsx": preferDefault(require("/Users/jprince/Documents/other/metaplex/js/packages/metaplex/src/pages/404.tsx")), - "component---src-pages-contact-tsx": preferDefault(require("/Users/jprince/Documents/other/metaplex/js/packages/metaplex/src/pages/contact.tsx")), - "component---src-pages-index-tsx": preferDefault(require("/Users/jprince/Documents/other/metaplex/js/packages/metaplex/src/pages/index.tsx")) -} - diff --git a/js/packages/metaplex/.cache/api-runner-browser-plugins.js b/js/packages/metaplex/.cache/api-runner-browser-plugins.js deleted file mode 100755 index 92a14b9..0000000 --- a/js/packages/metaplex/.cache/api-runner-browser-plugins.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = [{ - plugin: require('../../../node_modules/gatsby-plugin-image/gatsby-browser.js'), - options: {"plugins":[]}, - },{ - plugin: require('../../../node_modules/gatsby-plugin-manifest/gatsby-browser.js'), - options: {"plugins":[],"background_color":"#000000","icon":"src/images/icon.png","legacy":true,"theme_color_in_head":true,"cache_busting_mode":"query","crossOrigin":"anonymous","include_favicon":true,"cacheDigest":"7df75940c5c4611dd59c4b1856069d9e"}, - },{ - plugin: require('../gatsby-browser.js'), - options: {"plugins":[]}, - }] diff --git a/js/packages/metaplex/.cache/api-runner-browser.js b/js/packages/metaplex/.cache/api-runner-browser.js deleted file mode 100644 index 0adf777..0000000 --- a/js/packages/metaplex/.cache/api-runner-browser.js +++ /dev/null @@ -1,55 +0,0 @@ -const plugins = require(`./api-runner-browser-plugins`) -const { - getResourceURLsForPathname, - loadPage, - loadPageSync, -} = require(`./loader`).publicLoader - -exports.apiRunner = (api, args = {}, defaultReturn, argTransform) => { - // Hooks for gatsby-cypress's API handler - if (process.env.CYPRESS_SUPPORT) { - if (window.___apiHandler) { - window.___apiHandler(api) - } else if (window.___resolvedAPIs) { - window.___resolvedAPIs.push(api) - } else { - window.___resolvedAPIs = [api] - } - } - - let results = plugins.map(plugin => { - if (!plugin.plugin[api]) { - return undefined - } - - args.getResourceURLsForPathname = getResourceURLsForPathname - args.loadPage = loadPage - args.loadPageSync = loadPageSync - - const result = plugin.plugin[api](args, plugin.options) - if (result && argTransform) { - args = argTransform({ args, result, plugin }) - } - return result - }) - - // Filter out undefined results. - results = results.filter(result => typeof result !== `undefined`) - - if (results.length > 0) { - return results - } else if (defaultReturn) { - return [defaultReturn] - } else { - return [] - } -} - -exports.apiRunnerAsync = (api, args, defaultReturn) => - plugins.reduce( - (previous, next) => - next.plugin[api] - ? previous.then(() => next.plugin[api](args, next.options)) - : previous, - Promise.resolve() - ) diff --git a/js/packages/metaplex/.cache/api-runner-ssr.js b/js/packages/metaplex/.cache/api-runner-ssr.js deleted file mode 100644 index 6a04ab4..0000000 --- a/js/packages/metaplex/.cache/api-runner-ssr.js +++ /dev/null @@ -1,65 +0,0 @@ -var plugins = [{ - name: 'gatsby-plugin-image', - plugin: require('/Users/jprince/Documents/other/metaplex/js/node_modules/gatsby-plugin-image/gatsby-ssr'), - options: {"plugins":[]}, - },{ - name: 'gatsby-plugin-react-helmet', - plugin: require('/Users/jprince/Documents/other/metaplex/js/node_modules/gatsby-plugin-react-helmet/gatsby-ssr'), - options: {"plugins":[]}, - },{ - name: 'gatsby-plugin-manifest', - plugin: require('/Users/jprince/Documents/other/metaplex/js/node_modules/gatsby-plugin-manifest/gatsby-ssr'), - options: {"plugins":[],"background_color":"#000000","icon":"src/images/icon.png","legacy":true,"theme_color_in_head":true,"cache_busting_mode":"query","crossOrigin":"anonymous","include_favicon":true,"cacheDigest":"7df75940c5c4611dd59c4b1856069d9e"}, - }] -// During bootstrap, we write requires at top of this file which looks like: -// var plugins = [ -// { -// plugin: require("/path/to/plugin1/gatsby-ssr.js"), -// options: { ... }, -// }, -// { -// plugin: require("/path/to/plugin2/gatsby-ssr.js"), -// options: { ... }, -// }, -// ] - -const apis = require(`./api-ssr-docs`) - -// Run the specified API in any plugins that have implemented it -module.exports = (api, args, defaultReturn, argTransform) => { - if (!apis[api]) { - console.log(`This API doesn't exist`, api) - } - - // Run each plugin in series. - // eslint-disable-next-line no-undef - let results = plugins.map(plugin => { - if (!plugin.plugin[api]) { - return undefined - } - try { - const result = plugin.plugin[api](args, plugin.options) - if (result && argTransform) { - args = argTransform({ args, result }) - } - return result - } catch (e) { - if (plugin.name !== `default-site-plugin`) { - // default-site-plugin is user code and will print proper stack trace, - // so no point in annotating error message pointing out which plugin is root of the problem - e.message += ` (from plugin: ${plugin.name})` - } - - throw e - } - }) - - // Filter out undefined results. - results = results.filter(result => typeof result !== `undefined`) - - if (results.length > 0) { - return results - } else { - return [defaultReturn] - } -} diff --git a/js/packages/metaplex/.cache/api-ssr-docs.js b/js/packages/metaplex/.cache/api-ssr-docs.js deleted file mode 100644 index 2fead5c..0000000 --- a/js/packages/metaplex/.cache/api-ssr-docs.js +++ /dev/null @@ -1,205 +0,0 @@ -/** - * Object containing options defined in `gatsby-config.js` - * @typedef {object} pluginOptions - */ - -/** - * Replace the default server renderer. This is useful for integration with - * Redux, css-in-js libraries, etc. that need custom setups for server - * rendering. - * @param {object} $0 - * @param {string} $0.pathname The pathname of the page currently being rendered. - * @param {ReactNode} $0.bodyComponent The React element to be rendered as the page body - * @param {function} $0.replaceBodyHTMLString Call this with the HTML string - * you render. **WARNING** if multiple plugins implement this API it's the - * last plugin that "wins". TODO implement an automated warning against this. - * @param {function} $0.setHeadComponents Takes an array of components as its - * first argument which are added to the `headComponents` array which is passed - * to the `html.js` component. - * @param {function} $0.setHtmlAttributes Takes an object of props which will - * spread into the `` component. - * @param {function} $0.setBodyAttributes Takes an object of props which will - * spread into the `` component. - * @param {function} $0.setPreBodyComponents Takes an array of components as its - * first argument which are added to the `preBodyComponents` array which is passed - * to the `html.js` component. - * @param {function} $0.setPostBodyComponents Takes an array of components as its - * first argument which are added to the `postBodyComponents` array which is passed - * to the `html.js` component. - * @param {function} $0.setBodyProps Takes an object of data which - * is merged with other body props and passed to `html.js` as `bodyProps`. - * @param {pluginOptions} pluginOptions - * @example - * // From gatsby-plugin-glamor - * const { renderToString } = require("react-dom/server") - * const inline = require("glamor-inline") - * - * exports.replaceRenderer = ({ bodyComponent, replaceBodyHTMLString }) => { - * const bodyHTML = renderToString(bodyComponent) - * const inlinedHTML = inline(bodyHTML) - * - * replaceBodyHTMLString(inlinedHTML) - * } - */ -exports.replaceRenderer = true - -/** - * Called after every page Gatsby server renders while building HTML so you can - * set head and body components to be rendered in your `html.js`. - * - * Gatsby does a two-pass render for HTML. It loops through your pages first - * rendering only the body and then takes the result body HTML string and - * passes it as the `body` prop to your `html.js` to complete the render. - * - * It's often handy to be able to send custom components to your `html.js`. - * For example, it's a very common pattern for React.js libraries that - * support server rendering to pull out data generated during the render to - * add to your HTML. - * - * Using this API over [`replaceRenderer`](#replaceRenderer) is preferable as - * multiple plugins can implement this API where only one plugin can take - * over server rendering. However, if your plugin requires taking over server - * rendering then that's the one to - * use - * @param {object} $0 - * @param {string} $0.pathname The pathname of the page currently being rendered. - * @param {function} $0.setHeadComponents Takes an array of components as its - * first argument which are added to the `headComponents` array which is passed - * to the `html.js` component. - * @param {function} $0.setHtmlAttributes Takes an object of props which will - * spread into the `` component. - * @param {function} $0.setBodyAttributes Takes an object of props which will - * spread into the `` component. - * @param {function} $0.setPreBodyComponents Takes an array of components as its - * first argument which are added to the `preBodyComponents` array which is passed - * to the `html.js` component. - * @param {function} $0.setPostBodyComponents Takes an array of components as its - * first argument which are added to the `postBodyComponents` array which is passed - * to the `html.js` component. - * @param {function} $0.setBodyProps Takes an object of data which - * is merged with other body props and passed to `html.js` as `bodyProps`. - * @param {pluginOptions} pluginOptions - * @example - * // Import React so that you can use JSX in HeadComponents - * const React = require("react") - * - * const HtmlAttributes = { - * lang: "en" - * } - * - * const HeadComponents = [ - *