const fetch = require('node-fetch');

exports.sourceNodes = ({ actions, createContentDigest }, configOptions) => {
  const { createNode } = actions;

  return (
    // Fetch a response from the apiUrl
    fetch(configOptions.url)
      // Parse the response as JSON
      .then((response) => response.text())
      // Process the JSON data into a node
      .then((data) => {
        console.log(data, 'THIS ONE WORKS');
        createNode({
          id: '1',
          internal: {
            type: 'SparkIconSetV14',
            content: data,
            contentDigest: createContentDigest(data),
          },
        });
      })
  );
};

@@ -141,16 +141,87 @@
 actions;
+%0A  // eslint-disable-next-line no-unused-vars%0A  const amber = 'a,mber';
 %0A%0A  retu
@@ -444,53 +444,8 @@
 %3E %7B%0A
-        console.log(data, 'THIS ONE WORKS');%0A
     

use const instead of log