MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / resolvePath

Method resolvePath

tools/generate-classes/SchemaCache.js:109–115  ·  view source on GitHub ↗
(base, name)

Source from the content-addressed store, hash-verified

107 }
108
109 resolvePath(base, name) {
110 if (base.startsWith("http")) {
111 return new URL(name, base).href;
112 } else {
113 return path.resolve(base, name);
114 }
115 }
116}
117
118module.exports = SchemaCache;

Callers 3

loadMethod · 0.95
loadExtensionMethod · 0.95
resolveRelativePathMethod · 0.95

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected