Commit d1da039f authored by Jiwon Kwon's avatar Jiwon Kwon
Browse files

refactor: update url dectecting logic

parent 1b4ad836
Loading
Loading
Loading
Loading
+2039 −656

File changed.

Preview size limit exceeded, changes collapsed.

+3 −3
Original line number Diff line number Diff line
@@ -157,9 +157,9 @@ const scalarTypes: Record<string, ScalarType> = {
              : ""
          )
        )
        : ${v}["@id"].startsWith("/") && options.baseUrl
          ? new URL(options.baseUrl + ${v}["@id"])
          : new URL(${v}["@id"])`;
        : URL.canParse(${v}["@id"]) && options.baseUrl
          ? new URL(${v}["@id"])
          : new URL(${v}["@id"], options.baseUrl)`;
    },
  },
  "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString": {