skystream-cli 1.3.8 → 1.4.0

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ const program = new Command();
11
11
  program
12
12
  .name('skystream')
13
13
  .description('SkyStream Plugin Development Kit CLI (Sky Gen 2)')
14
- .version('1.3.8');
14
+ .version('1.4.0');
15
15
  // Schemas
16
16
  const pluginSchema = z.object({
17
17
  packageName: z.string().min(5).regex(/^[a-z0-9._-]+$/),
@@ -573,10 +573,11 @@ program.command('test')
573
573
  globalThis.clearInterval = clearInterval;
574
574
  `;
575
575
  const sandbox = Object.create(null);
576
+ Object.assign(sandbox, context);
577
+ // Ensure Node globals are present
576
578
  sandbox.console = console;
577
579
  sandbox.axios = axios;
578
580
  sandbox.Buffer = Buffer;
579
- sandbox.manifest = manifest;
580
581
  sandbox.setTimeout = setTimeout;
581
582
  sandbox.clearTimeout = clearTimeout;
582
583
  sandbox.setInterval = setInterval;
@@ -588,7 +589,7 @@ program.command('test')
588
589
  const combinedScript = `
589
590
  try {
590
591
  ${jsContent}
591
- } catch (e: any) {
592
+ } catch (e) {
592
593
  console.error("Critical Runtime Error: " + e.stack);
593
594
  }
594
595
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skystream-cli",
3
- "version": "1.3.8",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "description": "SkyStream Plugin Development Kit & Repository Manager",
6
6
  "main": "dist/index.js",