@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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { BitStream, RomProcessingConstants, Op, RegisterType, Address, ChunkFileUtils, BlockReaderConstants, createTableEntry, ChunkFile, BinType, createChunkFileFromDbFile, createChunkFileFromDbBlock, LocationWrapper, CompressionRegistry, Word, Byte, StatusFlags, AddressSpace, AddressType, MemberType, readJsonFile, getDirectory, TypedNumber, AsmBlock, Long, crc32_buffer, DbRootUtils } from '@gaialabs/shared';
1
+ import { BitStream, MemberType, Address, AddressSpace, AddressType, RomProcessingConstants, ChunkFileUtils, Op, RegisterType, BlockReaderConstants, createTableEntry, ChunkFile, BinType, createChunkFileFromDbFile, createChunkFileFromDbBlock, LocationWrapper, CompressionRegistry, Word, Byte, StatusFlags, readJsonFile, getDirectory, TypedNumber, AsmBlock, Long, crc32_buffer, DbRootUtils } from '@gaialabs/shared';
2
2
 
3
3
  // src/rom/project.ts
4
4
  var QuintetLZ = class _QuintetLZ {
@@ -1978,7 +1978,16 @@ var PostProcessor = class {
1978
1978
  };
1979
1979
 
1980
1980
  // src/rom/extraction/writer.ts
1981
- var NEWLINE = process && process.platform === "win32" ? "\r\n" : "\n";
1981
+ var isWindows = (() => {
1982
+ if (typeof process !== "undefined" && process.platform) {
1983
+ return process.platform === "win32";
1984
+ }
1985
+ if (typeof navigator !== "undefined" && navigator.userAgent) {
1986
+ return navigator.userAgent.includes("Windows");
1987
+ }
1988
+ return false;
1989
+ })();
1990
+ var NEWLINE = isWindows ? "\r\n" : "\n";
1982
1991
  var ObjectType = /* @__PURE__ */ ((ObjectType2) => {
1983
1992
  ObjectType2["TableEntryArray"] = "TableEntryArray";
1984
1993
  ObjectType2["StructDef"] = "StructDef";
@@ -2074,7 +2083,7 @@ var BlockWriter = class {
2074
2083
  }
2075
2084
  }
2076
2085
  }
2077
- if (process.platform !== "win32") {
2086
+ if (!isWindows) {
2078
2087
  content = content.replace(/\r/g, "");
2079
2088
  }
2080
2089
  return content;
@@ -4013,7 +4022,7 @@ var SpriteMap = class _SpriteMap {
4013
4022
  };
4014
4023
 
4015
4024
  // src/index.ts
4016
- var GAIA_CORE_VERSION = "0.1.2";
4025
+ var GAIA_CORE_VERSION = "0.1.4";
4017
4026
  var isPlatformBrowser = typeof window !== "undefined";
4018
4027
  var isPlatformNode = typeof process !== "undefined" && process.versions?.node;
4019
4028
  var isPlatformWebWorker = typeof importScripts !== "undefined";