@jsenv/core 39.5.11 → 39.5.13

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/jsenv_core.js +20 -10
  2. package/package.json +20 -20
@@ -328,18 +328,23 @@ const ANSI = createAnsi({
328
328
  });
329
329
 
330
330
  function isUnicodeSupported() {
331
+ const {env} = process$1;
332
+ const {TERM, TERM_PROGRAM} = env;
333
+
331
334
  if (process$1.platform !== 'win32') {
332
- return process$1.env.TERM !== 'linux'; // Linux console (kernel)
335
+ return TERM !== 'linux'; // Linux console (kernel)
333
336
  }
334
337
 
335
- return Boolean(process$1.env.WT_SESSION) // Windows Terminal
336
- || Boolean(process$1.env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
337
- || process$1.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
338
- || process$1.env.TERM_PROGRAM === 'Terminus-Sublime'
339
- || process$1.env.TERM_PROGRAM === 'vscode'
340
- || process$1.env.TERM === 'xterm-256color'
341
- || process$1.env.TERM === 'alacritty'
342
- || process$1.env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
338
+ return Boolean(env.WT_SESSION) // Windows Terminal
339
+ || Boolean(env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
340
+ || env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
341
+ || TERM_PROGRAM === 'Terminus-Sublime'
342
+ || TERM_PROGRAM === 'vscode'
343
+ || TERM === 'xterm-256color'
344
+ || TERM === 'alacritty'
345
+ || TERM === 'rxvt-unicode'
346
+ || TERM === 'rxvt-unicode-256color'
347
+ || env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
343
348
  }
344
349
 
345
350
  // see also https://github.com/sindresorhus/figures
@@ -4148,7 +4153,12 @@ const registerDirectoryLifecycle = (
4148
4153
  });
4149
4154
  });
4150
4155
  } catch (e) {
4151
- if (e.code === "ENOENT" || e.code === "EACCES") {
4156
+ if (
4157
+ e.code === "ENOENT" ||
4158
+ e.code === "EACCES" ||
4159
+ e.code === "EPERM" ||
4160
+ e.code === "ENOTDIR"
4161
+ ) {
4152
4162
  return;
4153
4163
  }
4154
4164
  throw e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "39.5.11",
3
+ "version": "39.5.13",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -46,9 +46,9 @@
46
46
  "scripts": {
47
47
  "eslint": "npx eslint .",
48
48
  "test": "node --conditions=development ./scripts/test/test.mjs",
49
+ "test:packages": "npm run test -- ./packages/",
49
50
  "build": "node --conditions=development ./scripts/build/build.mjs",
50
- "packages:test": "npm run test -- ./packages/",
51
- "workspace:build": "npm run build --workspaces --if-present --conditions=developement",
51
+ "build:packages": "npm run build --workspaces --if-present --conditions=developement",
52
52
  "monorepo:sync_packages_versions": "node ./scripts/monorepo/sync_packages_versions.mjs",
53
53
  "monorepo:publish": "node ./scripts/monorepo/publish_packages.mjs",
54
54
  "monorepo:upgrade_versions": "node ./scripts/monorepo/upgrade_external_versions.mjs",
@@ -59,8 +59,8 @@
59
59
  "prettier": "prettier --write .",
60
60
  "test:snapshot_clear": "npx @jsenv/filesystem clear **/tests/**/side_effects/",
61
61
  "test:ci": "CI=1 npm run test",
62
+ "test:packages:ci": "CI=1 npm run workspace:test",
62
63
  "test:only_dev_server_errors": "node --conditions=development ./tests/dev_server/errors/dev_errors_snapshots.test.mjs",
63
- "workspace:test:ci": "CI=1 npm run workspace:test",
64
64
  "dev": "node --conditions=development ./scripts/dev/dev.mjs",
65
65
  "playwright:install": "npx playwright install-deps && npx playwright install",
66
66
  "https:setup": "npx @jsenv/https-local setup",
@@ -69,28 +69,27 @@
69
69
  "dependencies": {
70
70
  "@financial-times/polyfill-useragent-normaliser": "1.10.2",
71
71
  "@jsenv/abort": "4.3.0",
72
- "@jsenv/ast": "6.2.17",
72
+ "@jsenv/ast": "6.3.0",
73
73
  "@jsenv/filesystem": "4.10.11",
74
74
  "@jsenv/humanize": "1.2.8",
75
75
  "@jsenv/importmap": "1.2.1",
76
76
  "@jsenv/integrity": "0.0.2",
77
- "@jsenv/js-module-fallback": "1.3.38",
77
+ "@jsenv/js-module-fallback": "1.3.40",
78
78
  "@jsenv/node-esm-resolution": "1.0.6",
79
- "@jsenv/plugin-bundling": "2.7.9",
80
- "@jsenv/plugin-minification": "1.5.6",
81
- "@jsenv/plugin-supervisor": "1.5.19",
82
- "@jsenv/plugin-transpilation": "1.4.22",
79
+ "@jsenv/plugin-bundling": "2.7.11",
80
+ "@jsenv/plugin-minification": "1.5.7",
81
+ "@jsenv/plugin-supervisor": "1.5.21",
82
+ "@jsenv/plugin-transpilation": "1.4.24",
83
83
  "@jsenv/runtime-compat": "1.3.1",
84
84
  "@jsenv/server": "15.3.1",
85
- "@jsenv/sourcemap": "1.2.23",
85
+ "@jsenv/sourcemap": "1.2.24",
86
86
  "@jsenv/url-meta": "8.5.2",
87
87
  "@jsenv/urls": "2.5.2",
88
88
  "@jsenv/utils": "2.1.2",
89
- "string-width": "7.2.0",
90
- "anchor-markdown-header": "0.7.0"
89
+ "string-width": "7.2.0"
91
90
  },
92
91
  "devDependencies": {
93
- "@babel/plugin-syntax-import-attributes": "7.24.7",
92
+ "@babel/plugin-syntax-import-attributes": "7.25.6",
94
93
  "@babel/plugin-syntax-optional-chaining-assign": "7.24.7",
95
94
  "@eslint/compat": "1.1.1",
96
95
  "@jsenv/assert": "workspace:*",
@@ -104,14 +103,15 @@
104
103
  "@jsenv/plugin-as-js-classic": "workspace:*",
105
104
  "@jsenv/snapshot": "workspace:*",
106
105
  "@jsenv/test": "workspace:*",
107
- "@playwright/browser-chromium": "1.46.1",
108
- "@playwright/browser-firefox": "1.46.1",
109
- "@playwright/browser-webkit": "1.46.1",
106
+ "@playwright/browser-chromium": "1.47.1",
107
+ "@playwright/browser-firefox": "1.47.1",
108
+ "@playwright/browser-webkit": "1.47.1",
109
+ "anchor-markdown-header": "0.7.0",
110
110
  "babel-plugin-transform-async-to-promises": "0.8.18",
111
- "eslint": "9.9.0",
112
- "marked": "14.0.0",
111
+ "eslint": "9.10.0",
112
+ "marked": "14.1.2",
113
113
  "open": "10.1.0",
114
- "playwright": "1.46.1",
114
+ "playwright": "1.47.1",
115
115
  "prettier": "3.3.3",
116
116
  "prettier-plugin-organize-imports": "4.0.0",
117
117
  "strip-ansi": "7.1.0"