@gaialabs/core 0.1.2 → 0.1.4

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.d.mts CHANGED
@@ -875,7 +875,7 @@ declare class SpriteMap {
875
875
  * - Compression: QuintetLZ compression algorithm
876
876
  * - Sprites: Sprite animation system
877
877
  */
878
- declare const GAIA_CORE_VERSION = "0.1.2";
878
+ declare const GAIA_CORE_VERSION = "0.1.4";
879
879
  declare const isPlatformBrowser: boolean;
880
880
  declare const isPlatformNode: string | false;
881
881
  declare const isPlatformWebWorker: boolean;
package/dist/index.d.ts CHANGED
@@ -875,7 +875,7 @@ declare class SpriteMap {
875
875
  * - Compression: QuintetLZ compression algorithm
876
876
  * - Sprites: Sprite animation system
877
877
  */
878
- declare const GAIA_CORE_VERSION = "0.1.2";
878
+ declare const GAIA_CORE_VERSION = "0.1.4";
879
879
  declare const isPlatformBrowser: boolean;
880
880
  declare const isPlatformNode: string | false;
881
881
  declare const isPlatformWebWorker: boolean;
package/dist/index.js CHANGED
@@ -1980,7 +1980,16 @@ var PostProcessor = class {
1980
1980
  };
1981
1981
 
1982
1982
  // src/rom/extraction/writer.ts
1983
- var NEWLINE = process && process.platform === "win32" ? "\r\n" : "\n";
1983
+ var isWindows = (() => {
1984
+ if (typeof process !== "undefined" && process.platform) {
1985
+ return process.platform === "win32";
1986
+ }
1987
+ if (typeof navigator !== "undefined" && navigator.userAgent) {
1988
+ return navigator.userAgent.includes("Windows");
1989
+ }
1990
+ return false;
1991
+ })();
1992
+ var NEWLINE = isWindows ? "\r\n" : "\n";
1984
1993
  var ObjectType = /* @__PURE__ */ ((ObjectType2) => {
1985
1994
  ObjectType2["TableEntryArray"] = "TableEntryArray";
1986
1995
  ObjectType2["StructDef"] = "StructDef";
@@ -2076,7 +2085,7 @@ var BlockWriter = class {
2076
2085
  }
2077
2086
  }
2078
2087
  }
2079
- if (process.platform !== "win32") {
2088
+ if (!isWindows) {
2080
2089
  content = content.replace(/\r/g, "");
2081
2090
  }
2082
2091
  return content;
@@ -4015,7 +4024,7 @@ var SpriteMap = class _SpriteMap {
4015
4024
  };
4016
4025
 
4017
4026
  // src/index.ts
4018
- var GAIA_CORE_VERSION = "0.1.2";
4027
+ var GAIA_CORE_VERSION = "0.1.4";
4019
4028
  var isPlatformBrowser = typeof window !== "undefined";
4020
4029
  var isPlatformNode = typeof process !== "undefined" && process.versions?.node;
4021
4030
  var isPlatformWebWorker = typeof importScripts !== "undefined";