@coderline/alphatab 1.3.0-alpha.143 → 1.3.0-alpha.147

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/alphaTab.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0-alpha.143 (develop, build 143)
2
+ * alphaTab v1.3.0-alpha.147 (develop, build 147)
3
3
  *
4
4
  * Copyright © 2022, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -40150,20 +40150,25 @@
40150
40150
  * @target web
40151
40151
  */
40152
40152
  static detectScriptFile() {
40153
- // normal browser include as <script>
40154
- if ('document' in Environment.globalThis && document.currentScript) {
40155
- return document.currentScript.src;
40156
- }
40157
40153
  // browser include as ES6 import
40158
40154
  // <script type="module">
40159
40155
  // import * as alphaTab from 'dist/alphaTab.js';
40160
40156
  try {
40161
40157
  // @ts-ignore
40162
- return {};
40158
+ const importUrl = {};
40159
+ // avoid using file:// urls in case of
40160
+ // bundlers like webpack
40161
+ if (importUrl && importUrl.indexOf('file://') === -1) {
40162
+ return importUrl;
40163
+ }
40163
40164
  }
40164
40165
  catch (e) {
40165
40166
  // ignore potential errors
40166
40167
  }
40168
+ // normal browser include as <script>
40169
+ if ('document' in Environment.globalThis && document.currentScript) {
40170
+ return document.currentScript.src;
40171
+ }
40167
40172
  return null;
40168
40173
  }
40169
40174
  /**
@@ -40413,7 +40418,8 @@
40413
40418
  }
40414
40419
  try {
40415
40420
  // @ts-ignore
40416
- if ('url' in {}) {
40421
+ const url = {};
40422
+ if (url) {
40417
40423
  return WebPlatform.BrowserModule;
40418
40424
  }
40419
40425
  }
@@ -40591,8 +40597,8 @@
40591
40597
  // </auto-generated>
40592
40598
  class VersionInfo {
40593
40599
  }
40594
- VersionInfo.version = '1.3.0-alpha.143';
40595
- VersionInfo.date = '2022-01-16T16:58:40.348Z';
40600
+ VersionInfo.version = '1.3.0-alpha.147';
40601
+ VersionInfo.date = '2022-01-20T20:47:33.495Z';
40596
40602
 
40597
40603
  var index$5 = /*#__PURE__*/Object.freeze({
40598
40604
  __proto__: null,