@openfairygui/backend 0.2.0-alpha.25 → 0.2.0-alpha.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_runtime = require("./runtime-D3bShb1X.cjs");
2
+ const require_runtime = require("./runtime-BxbnisWJ.cjs");
3
3
  //#region src/storage.ts
4
4
  var StorageFileStat = class {
5
5
  constructor(kind) {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { i as BACKEND_CONTRACT_VERSION, n as BACKEND_CAPABILITY_SCHEMA_VERSION, r as BACKEND_COMPATIBILITY_POLICY, t as BackendRuntime } from "./runtime-CqGK_D9A.mjs";
1
+ import { i as BACKEND_CONTRACT_VERSION, n as BACKEND_CAPABILITY_SCHEMA_VERSION, r as BACKEND_COMPATIBILITY_POLICY, t as BackendRuntime } from "./runtime-griAoBRA.mjs";
2
2
  //#region src/storage.ts
3
3
  var StorageFileStat = class {
4
4
  constructor(kind) {
package/dist/node.cjs CHANGED
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_runtime = require("./runtime-D3bShb1X.cjs");
24
+ const require_runtime = require("./runtime-BxbnisWJ.cjs");
25
25
  let node_fs_promises = require("node:fs/promises");
26
26
  node_fs_promises = __toESM(node_fs_promises);
27
27
  let node_path = require("node:path");
package/dist/node.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as BackendRuntime } from "./runtime-CqGK_D9A.mjs";
1
+ import { t as BackendRuntime } from "./runtime-griAoBRA.mjs";
2
2
  import fs from "node:fs/promises";
3
3
  import path from "node:path";
4
4
  //#region src/node.ts
@@ -240,7 +240,7 @@ function projectSourceFiles(project) {
240
240
  const branches = /* @__PURE__ */ new Set();
241
241
  for (const resource of pkg.resources) {
242
242
  if (resource.branch) branches.add(resource.branch);
243
- const fileName = resource.kind === "component" ? `${resource.name}.xml` : resource.fileName ?? resource.file ?? "";
243
+ const fileName = resource.kind === "component" ? `${resource.name}.xml` : resource.fileName ?? (resource.kind === "image" ? "" : resource.file) ?? "";
244
244
  if (!fileName) continue;
245
245
  result.set(`${pkg.id}/${resource.id}`, {
246
246
  packageName: pkg.name,
@@ -239,7 +239,7 @@ function projectSourceFiles(project) {
239
239
  const branches = /* @__PURE__ */ new Set();
240
240
  for (const resource of pkg.resources) {
241
241
  if (resource.branch) branches.add(resource.branch);
242
- const fileName = resource.kind === "component" ? `${resource.name}.xml` : resource.fileName ?? resource.file ?? "";
242
+ const fileName = resource.kind === "component" ? `${resource.name}.xml` : resource.fileName ?? (resource.kind === "image" ? "" : resource.file) ?? "";
243
243
  if (!fileName) continue;
244
244
  result.set(`${pkg.id}/${resource.id}`, {
245
245
  packageName: pkg.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfairygui/backend",
3
- "version": "0.2.0-alpha.25",
3
+ "version": "0.2.0-alpha.26",
4
4
  "description": "FairyGUI Headless Authoring SDK — stateful backend runtime and session services.",
5
5
  "author": "OpenFairyGUI Contributors",
6
6
  "license": "MIT",
@@ -52,8 +52,8 @@
52
52
  "runtime"
53
53
  ],
54
54
  "dependencies": {
55
- "@openfairygui/core": "0.2.0-alpha.25",
56
- "@openfairygui/functions": "0.2.0-alpha.25"
55
+ "@openfairygui/core": "0.2.0-alpha.26",
56
+ "@openfairygui/functions": "0.2.0-alpha.26"
57
57
  },
58
58
  "devDependencies": {
59
59
  "ava": "^7.0.0",
@@ -45,7 +45,7 @@ function projectSourceFiles(project: UamProject): Map<string, ProjectSourceFile>
45
45
  if (resource.branch) branches.add(resource.branch);
46
46
  const fileName = resource.kind === 'component'
47
47
  ? `${resource.name}.xml`
48
- : resource.fileName ?? resource.file ?? '';
48
+ : resource.fileName ?? (resource.kind === 'image' ? '' : resource.file) ?? '';
49
49
  if (!fileName) continue;
50
50
  result.set(`${pkg.id}/${resource.id}`, {
51
51
  packageName: pkg.name,