@coderline/alphatab 1.6.0-alpha.1442 → 1.6.0-alpha.1444

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab v1.6.0-alpha.1442 (develop, build 1442)
2
+ * alphaTab v1.6.0-alpha.1444 (develop, build 1444)
3
3
  *
4
4
  * Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -61275,9 +61275,9 @@ class VersionInfo {
61275
61275
  print(`build date: ${VersionInfo.date}`);
61276
61276
  }
61277
61277
  }
61278
- VersionInfo.version = '1.6.0-alpha.1442';
61279
- VersionInfo.date = '2025-06-10T02:18:21.369Z';
61280
- VersionInfo.commit = '3bb7ee99d57c7413b05610c815bc6746b4341184';
61278
+ VersionInfo.version = '1.6.0-alpha.1444';
61279
+ VersionInfo.date = '2025-06-11T15:11:50.582Z';
61280
+ VersionInfo.commit = '17557bdb7620020690fced1bc051d8a683a02c2b';
61281
61281
 
61282
61282
  /**
61283
61283
  * A factory for custom layout engines.
@@ -61769,17 +61769,27 @@ class Environment {
61769
61769
  * @target web
61770
61770
  */
61771
61771
  static detectWebPlatform() {
61772
- try {
61773
- // Credit of the node.js detection goes to
61774
- // https://github.com/iliakan/detect-node
61775
- // MIT License
61776
- // Copyright (c) 2017 Ilya Kantor
61777
- // tslint:disable-next-line: strict-type-predicates
61778
- if (Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]') {
61779
- return WebPlatform.NodeJs;
61772
+ // There might be polyfills or platforms like Electron which have a global process object defined even in the browser.
61773
+ // We need to differenciate between those platforms and a real nodejs
61774
+ // the webPlatform is currently only relevant on the main process side and not within workers/worklets
61775
+ // so it is OK if we wrongly detect node.js inside them.
61776
+ const isBrowserLike =
61777
+ // browser UI thread
61778
+ typeof Environment.globalThis.Window !== 'undefined' &&
61779
+ Environment.globalThis instanceof Environment.globalThis.Window;
61780
+ if (!isBrowserLike) {
61781
+ try {
61782
+ // Credit of the node.js detection goes to
61783
+ // https://github.com/iliakan/detect-node
61784
+ // MIT License
61785
+ // Copyright (c) 2017 Ilya Kantor
61786
+ // tslint:disable-next-line: strict-type-predicates
61787
+ if (Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]') {
61788
+ return WebPlatform.NodeJs;
61789
+ }
61790
+ }
61791
+ catch (e) {
61780
61792
  }
61781
- }
61782
- catch (e) {
61783
61793
  }
61784
61794
  try {
61785
61795
  // @ts-ignore
@@ -61842,7 +61852,7 @@ class Environment {
61842
61852
  }
61843
61853
  // Solidjs unwrap: the symbol required to access the raw object is unfortunately hidden and we cannot unwrap it without importing
61844
61854
  // import { unwrap } from "solid-js/store"
61845
- // alternative for users is to replace this method during runtime.
61855
+ // alternative for users is to replace this method during runtime.
61846
61856
  return object;
61847
61857
  }
61848
61858
  }
package/dist/alphaTab.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab v1.6.0-alpha.1442 (develop, build 1442)
2
+ * alphaTab v1.6.0-alpha.1444 (develop, build 1444)
3
3
  *
4
4
  * Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -61281,9 +61281,9 @@
61281
61281
  print(`build date: ${VersionInfo.date}`);
61282
61282
  }
61283
61283
  }
61284
- VersionInfo.version = '1.6.0-alpha.1442';
61285
- VersionInfo.date = '2025-06-10T02:18:21.369Z';
61286
- VersionInfo.commit = '3bb7ee99d57c7413b05610c815bc6746b4341184';
61284
+ VersionInfo.version = '1.6.0-alpha.1444';
61285
+ VersionInfo.date = '2025-06-11T15:11:50.582Z';
61286
+ VersionInfo.commit = '17557bdb7620020690fced1bc051d8a683a02c2b';
61287
61287
 
61288
61288
  /**
61289
61289
  * A factory for custom layout engines.
@@ -61775,17 +61775,27 @@
61775
61775
  * @target web
61776
61776
  */
61777
61777
  static detectWebPlatform() {
61778
- try {
61779
- // Credit of the node.js detection goes to
61780
- // https://github.com/iliakan/detect-node
61781
- // MIT License
61782
- // Copyright (c) 2017 Ilya Kantor
61783
- // tslint:disable-next-line: strict-type-predicates
61784
- if (Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]') {
61785
- return exports.WebPlatform.NodeJs;
61778
+ // There might be polyfills or platforms like Electron which have a global process object defined even in the browser.
61779
+ // We need to differenciate between those platforms and a real nodejs
61780
+ // the webPlatform is currently only relevant on the main process side and not within workers/worklets
61781
+ // so it is OK if we wrongly detect node.js inside them.
61782
+ const isBrowserLike =
61783
+ // browser UI thread
61784
+ typeof Environment.globalThis.Window !== 'undefined' &&
61785
+ Environment.globalThis instanceof Environment.globalThis.Window;
61786
+ if (!isBrowserLike) {
61787
+ try {
61788
+ // Credit of the node.js detection goes to
61789
+ // https://github.com/iliakan/detect-node
61790
+ // MIT License
61791
+ // Copyright (c) 2017 Ilya Kantor
61792
+ // tslint:disable-next-line: strict-type-predicates
61793
+ if (Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]') {
61794
+ return exports.WebPlatform.NodeJs;
61795
+ }
61796
+ }
61797
+ catch (e) {
61786
61798
  }
61787
- }
61788
- catch (e) {
61789
61799
  }
61790
61800
  try {
61791
61801
  // @ts-ignore
@@ -61848,7 +61858,7 @@
61848
61858
  }
61849
61859
  // Solidjs unwrap: the symbol required to access the raw object is unfortunately hidden and we cannot unwrap it without importing
61850
61860
  // import { unwrap } from "solid-js/store"
61851
- // alternative for users is to replace this method during runtime.
61861
+ // alternative for users is to replace this method during runtime.
61852
61862
  return object;
61853
61863
  }
61854
61864
  }