@next2d/view-generator 4.0.5 → 4.1.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 +7 -1
  2. package/package.json +7 -10
package/dist/index.js CHANGED
@@ -1,8 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- import pc from "picocolors";
4
3
  import path from "path";
5
4
  import fs from "fs";
5
+ const colorEnabled = typeof process !== "undefined"
6
+ && Boolean(process.stdout && process.stdout.isTTY)
7
+ && !process.env.NO_COLOR;
8
+ const pc = {
9
+ "red": (text) => colorEnabled ? `\x1b[31m${text}\x1b[39m` : text,
10
+ "green": (text) => colorEnabled ? `\x1b[32m${text}\x1b[39m` : text
11
+ };
6
12
  const recommendeVersion = 22;
7
13
  const version = process.versions.node;
8
14
  if (recommendeVersion > parseInt(version.split(".")[0])) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/view-generator",
3
- "version": "4.0.5",
3
+ "version": "4.1.0",
4
4
  "description": "Generate the View class required for routing.",
5
5
  "author": "Toshiyuki Ienaga<ienaga@next2d.app>",
6
6
  "license": "MIT",
@@ -28,17 +28,14 @@
28
28
  "@next2d/view-generator": "dist/index.js"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/node": "^26.1.0",
32
- "@eslint/eslintrc": "^3.3.5",
31
+ "@types/node": "^26.1.2",
32
+ "@eslint/eslintrc": "^3.3.6",
33
33
  "@eslint/js": "^10.0.1",
34
- "@typescript-eslint/eslint-plugin": "^8.62.1",
35
- "@typescript-eslint/parser": "^8.62.1",
36
- "eslint": "^10.6.0",
34
+ "@typescript-eslint/eslint-plugin": "^8.65.0",
35
+ "@typescript-eslint/parser": "^8.65.0",
36
+ "eslint": "^10.8.0",
37
37
  "eslint-plugin-unused-imports": "^4.4.1",
38
- "globals": "^17.7.0",
38
+ "globals": "^17.8.0",
39
39
  "typescript": "^6.0.3"
40
- },
41
- "dependencies": {
42
- "picocolors": "^1.1.1"
43
40
  }
44
41
  }