@jsenv/terminal-recorder 1.5.21 → 1.5.23

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.
@@ -411,6 +411,8 @@ function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
411
411
  return 1;
412
412
  }
413
413
 
414
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
415
+
414
416
  function getDefaultExportFromCjs (x) {
415
417
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
416
418
  }
@@ -435,10 +437,10 @@ function requireHe () {
435
437
  var freeModule = module &&
436
438
  module.exports == freeExports && module;
437
439
 
438
- // Detect free variable `globalThis`, from Node.js or Browserified code,
440
+ // Detect free variable `global`, from Node.js or Browserified code,
439
441
  // and use it as `root`.
440
- var freeGlobal = typeof globalThis == 'object' && globalThis;
441
- if (freeGlobal.globalThis === freeGlobal || freeGlobal.window === freeGlobal) {
442
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal;
443
+ if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
442
444
  root = freeGlobal;
443
445
  }
444
446
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/terminal-recorder",
3
- "version": "1.5.21",
3
+ "version": "1.5.23",
4
4
  "description": "Record terminal output as .svg, .gif, .webm, .mp4",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@jsenv/humanize": "1.6.0",
38
- "@jsenv/server": "16.2.0",
38
+ "@jsenv/server": "16.3.0",
39
39
  "@jsenv/terminal-text-size": "0.0.2",
40
40
  "@playwright/browser-chromium": "1.52.0",
41
41
  "ansi-regex": "6.1.0",