deno_graph icon indicating copy to clipboard operation
deno_graph copied to clipboard

Modules returned by `createGraph` are missing the `local` property

Open johnspurlock opened this issue 4 years ago • 1 comments

Modules returned by createGraph seem to have an undefined local property. Is there a reason it is on the type def if it's known to be unimplemented?

  /** The string path to where the local version of the content is located. For
   * non `file:` URLs, this is the location of the cached content, otherwise it
   * is the absolute path to the local file. */
  local?: string;

johnspurlock avatar Aug 24 '21 15:08 johnspurlock

As mentioned in the README there is currently no JavaScript APIs that allow you to read the cache info to populate the information, but it isn't unimplemented in deno_graph. If you were to supply the API as part of the configuration options, the information returned would be part of the graph.

kitsonk avatar Aug 29 '21 21:08 kitsonk