unified-video-framework 1.4.381 → 1.4.382

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.381",
3
+ "version": "1.4.382",
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",
@@ -13,14 +13,18 @@ function fixImports(filePath) {
13
13
 
14
14
  // Fix core imports - remove .js extension for webpack compatibility
15
15
  if (filePath.includes(path.join('packages', 'web', 'dist'))) {
16
- // Remove .js extension from core imports (webpack can't resolve them in node_modules)
16
+ // Remove .js extension from ALL core imports (webpack can't resolve them in node_modules)
17
17
  content = content.replace(
18
- /from\s+["']\.\.\/\.\.\/core\/dist\/index\.js["']/g,
19
- 'from "../../core/dist/index"'
18
+ /from\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
19
+ 'from "../../core/dist/$1"'
20
20
  );
21
21
  content = content.replace(
22
- /import\s+["']\.\.\/\.\.\/core\/dist\/index\.js["']/g,
23
- 'import "../../core/dist/index"'
22
+ /import\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
23
+ 'import "../../core/dist/$1"'
24
+ );
25
+ content = content.replace(
26
+ /export\s+\*\s+from\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
27
+ 'export * from "../../core/dist/$1"'
24
28
  );
25
29
 
26
30
  // Fix relative imports within the same package to include .js extension
@@ -38,14 +42,18 @@ function fixImports(filePath) {
38
42
  }
39
43
  );
40
44
  } else if (filePath.includes(path.join('packages', 'react-native', 'dist'))) {
41
- // Remove .js extension from core imports
45
+ // Remove .js extension from ALL core imports
46
+ content = content.replace(
47
+ /from\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
48
+ 'from "../../core/dist/$1"'
49
+ );
42
50
  content = content.replace(
43
- /from\s+["']\.\.\/\.\.\/core\/dist\/index\.js["']/g,
44
- 'from "../../core/dist/index"'
51
+ /import\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
52
+ 'import "../../core/dist/$1"'
45
53
  );
46
54
  content = content.replace(
47
- /import\s+["']\.\.\/\.\.\/core\/dist\/index\.js["']/g,
48
- 'import "../../core/dist/index"'
55
+ /export\s+\*\s+from\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
56
+ 'export * from "../../core/dist/$1"'
49
57
  );
50
58
 
51
59
  // Fix relative imports within the same package to include .js extension