pull/1017/head
Zef Hemel 2024-08-03 20:46:34 +02:00
parent 102e6d10eb
commit 49f52e42d0
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives {
.map((p) => ({
name: p,
contentType: this.assetBundle.getMimeType(p),
created: this.assetBundle.getMtime(p),
lastModified: this.assetBundle.getMtime(p),
perm: "ro",
size: -1,
@ -31,6 +32,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives {
data,
meta: {
contentType: this.assetBundle.getMimeType(name),
created: this.assetBundle.getMtime(name),
lastModified: this.assetBundle.getMtime(name),
size: data.byteLength,
perm: "ro",
@ -45,6 +47,7 @@ export class AssetBundlePlugSpacePrimitives implements SpacePrimitives {
const data = this.assetBundle.readFileSync(name);
return Promise.resolve({
contentType: this.assetBundle.getMimeType(name),
created: this.assetBundle.getMtime(name),
lastModified: this.assetBundle.getMtime(name),
size: data.byteLength,
perm: "ro",