unified-video-framework 1.4.385 → 1.4.386

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unified-video-framework",
3
- "version": "1.4.385",
3
+ "version": "1.4.386",
4
4
  "description": "Cross-platform video player framework supporting iOS, Android, Web, Smart TVs (Samsung/LG), Roku, and more",
5
5
  "main": "packages/core/dist/index.js",
6
6
  "types": "packages/core/dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { DRMType } from "../../../core/dist.js";
1
+ import { DRMType } from "../../../core/dist/index.js";
2
2
  export class DRMHelper {
3
3
  static detectBestDRM() {
4
4
  const ua = navigator.userAgent.toLowerCase();
@@ -28,6 +28,24 @@ function fixImports(filePath) {
28
28
  'import "../../core/dist/index.js"'
29
29
  );
30
30
 
31
+ // Fix imports to core/dist to use index.js (both with and without .js)
32
+ content = content.replace(
33
+ /from\s+["']\.\.\/\.\.\/\.\.\/core\/dist\.js["']/g,
34
+ 'from "../../../core/dist/index.js"'
35
+ );
36
+ content = content.replace(
37
+ /from\s+["']\.\.\/\.\.\/\.\.\/core\/dist["']/g,
38
+ 'from "../../../core/dist/index.js"'
39
+ );
40
+ content = content.replace(
41
+ /from\s+["']\.\.\/\.\.\/core\/dist\.js["']/g,
42
+ 'from "../../core/dist/index.js"'
43
+ );
44
+ content = content.replace(
45
+ /from\s+["']\.\.\/\.\.\/core\/dist["']/g,
46
+ 'from "../../core/dist/index.js"'
47
+ );
48
+
31
49
  // Fix relative imports within the same package to include .js extension
32
50
  content = content.replace(
33
51
  /from\s+["']\.\/([^"']+)(?<!\.js)["']/g,
@@ -36,6 +54,10 @@ function fixImports(filePath) {
36
54
  content = content.replace(
37
55
  /from\s+["']\.\.?\/([^"']+)(?<!\.js)["']/g,
38
56
  (match, p1) => {
57
+ // Skip if it's already been handled (ends with index.js)
58
+ if (p1.includes('index.js')) {
59
+ return match;
60
+ }
39
61
  if (p1.includes('/')) {
40
62
  return `from "../${p1.replace(/([^\/]+)$/, '$1.js')}"`;
41
63
  }
@@ -58,6 +80,24 @@ function fixImports(filePath) {
58
80
  'import "../../core/dist/index.js"'
59
81
  );
60
82
 
83
+ // Fix imports to core/dist to use index.js (both with and without .js)
84
+ content = content.replace(
85
+ /from\s+["']\.\.\/\.\.\/\.\.\/core\/dist\.js["']/g,
86
+ 'from "../../../core/dist/index.js"'
87
+ );
88
+ content = content.replace(
89
+ /from\s+["']\.\.\/\.\.\/\.\.\/core\/dist["']/g,
90
+ 'from "../../../core/dist/index.js"'
91
+ );
92
+ content = content.replace(
93
+ /from\s+["']\.\.\/\.\.\/core\/dist\.js["']/g,
94
+ 'from "../../core/dist/index.js"'
95
+ );
96
+ content = content.replace(
97
+ /from\s+["']\.\.\/\.\.\/core\/dist["']/g,
98
+ 'from "../../core/dist/index.js"'
99
+ );
100
+
61
101
  // Fix relative imports within the same package to include .js extension
62
102
  content = content.replace(
63
103
  /from\s+["']\.\/([^"']+)(?<!\.js)["']/g,
@@ -66,6 +106,10 @@ function fixImports(filePath) {
66
106
  content = content.replace(
67
107
  /from\s+["']\.\.?\/([^"']+)(?<!\.js)["']/g,
68
108
  (match, p1) => {
109
+ // Skip if it's already been handled (ends with index.js)
110
+ if (p1.includes('index.js')) {
111
+ return match;
112
+ }
69
113
  if (p1.includes('/')) {
70
114
  return `from "../${p1.replace(/([^\/]+)$/, '$1.js')}"`;
71
115
  }