unified-video-framework 1.4.380 → 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.
@@ -1,8 +1,8 @@
1
- export * from "../../core/dist/index.js";
2
- export { WebPlayer } from "./WebPlayer.js";
3
- export { WebPlayerView } from "./react/WebPlayerView.js";
4
- export { SecureVideoPlayer } from "./SecureVideoPlayer.js";
5
- export { WebDRMProtection } from "./drm/WebDRMProtection.js";
6
- export * from "./react/EPG.js";
7
- export const VERSION = '1.0.0';
1
+ export * from "../../core/dist/index.js";
2
+ export { WebPlayer } from "./WebPlayer.js";
3
+ export { WebPlayerView } from "./react/WebPlayerView.js";
4
+ export { SecureVideoPlayer } from "./SecureVideoPlayer.js";
5
+ export { WebDRMProtection } from "./drm/WebDRMProtection.js";
6
+ export * from "./react/EPG.js";
7
+ export const VERSION = '1.0.0';
8
8
  //# sourceMappingURL=index.js.map
@@ -11,9 +11,21 @@ const path = require('path');
11
11
  function fixImports(filePath) {
12
12
  let content = fs.readFileSync(filePath, 'utf8');
13
13
 
14
- // Keep relative imports to ../../core/dist - they work in node_modules
14
+ // Fix core imports - remove .js extension for webpack compatibility
15
15
  if (filePath.includes(path.join('packages', 'web', 'dist'))) {
16
- // No changes needed for core imports - relative paths work fine
16
+ // Remove .js extension from ALL core imports (webpack can't resolve them in node_modules)
17
+ content = content.replace(
18
+ /from\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
19
+ 'from "../../core/dist/$1"'
20
+ );
21
+ content = content.replace(
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"'
28
+ );
17
29
 
18
30
  // Fix relative imports within the same package to include .js extension
19
31
  content = content.replace(
@@ -30,7 +42,19 @@ function fixImports(filePath) {
30
42
  }
31
43
  );
32
44
  } else if (filePath.includes(path.join('packages', 'react-native', 'dist'))) {
33
- // No changes needed for core imports - relative paths work fine
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
+ );
50
+ content = content.replace(
51
+ /import\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
52
+ 'import "../../core/dist/$1"'
53
+ );
54
+ content = content.replace(
55
+ /export\s+\*\s+from\s+["']\.\.\/\.\.\/core\/dist\/([^"']+)\.js["']/g,
56
+ 'export * from "../../core/dist/$1"'
57
+ );
34
58
 
35
59
  // Fix relative imports within the same package to include .js extension
36
60
  content = content.replace(