full site update
This commit is contained in:
24
node_modules/astro/dist/assets/fonts/implementations/url-proxy.js
generated
vendored
Normal file
24
node_modules/astro/dist/assets/fonts/implementations/url-proxy.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
function createUrlProxy({
|
||||
contentResolver,
|
||||
hasher,
|
||||
dataCollector,
|
||||
urlResolver
|
||||
}) {
|
||||
return {
|
||||
proxy({ url: originalUrl, type, data, collectPreload, init }) {
|
||||
const hash = `${hasher.hashString(contentResolver.resolve(originalUrl))}.${type}`;
|
||||
const url = urlResolver.resolve(hash);
|
||||
dataCollector.collect({
|
||||
url: originalUrl,
|
||||
hash,
|
||||
preload: collectPreload ? { url, type } : null,
|
||||
data,
|
||||
init
|
||||
});
|
||||
return url;
|
||||
}
|
||||
};
|
||||
}
|
||||
export {
|
||||
createUrlProxy
|
||||
};
|
Reference in New Issue
Block a user