@yarn-tool/table 2.0.12 → 2.0.14

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.14](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/table@2.0.13...@yarn-tool/table@2.0.14) (2024-05-03)
7
+
8
+
9
+
10
+ ### 🛠 Build System
11
+
12
+ * update typescript ([ffa656a](https://github.com/bluelovers/ws-yarn-workspaces/commit/ffa656aefe53966db445d52234eb0efe4651e3dd))
13
+
14
+
15
+ ### 📌 Dependencies
16
+
17
+ * update deps ([f731d88](https://github.com/bluelovers/ws-yarn-workspaces/commit/f731d88db6e63d180e2db2e493beb42e84eb8e16))
18
+
19
+
20
+ ### 🔖 Miscellaneous
21
+
22
+ * . ([36485c8](https://github.com/bluelovers/ws-yarn-workspaces/commit/36485c8036c339e010dafcf52dd36f559e2d35fd))
23
+
24
+
25
+
26
+ ## [2.0.13](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/table@2.0.12...@yarn-tool/table@2.0.13) (2022-11-14)
27
+
28
+
29
+
30
+ ### 📌 Dependencies
31
+
32
+ * update deps ([faff44f](https://github.com/bluelovers/ws-yarn-workspaces/commit/faff44f1f5ad5066c747ea8d5d66fa10049c17fe))
33
+
34
+
35
+
6
36
  ## [2.0.12](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/table@2.0.11...@yarn-tool/table@2.0.12) (2022-10-28)
7
37
 
8
38
 
package/lib/core.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Created by user on 2020/6/11.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createDependencyTable = void 0;
6
+ exports.createDependencyTable = createDependencyTable;
7
7
  const tslib_1 = require("tslib");
8
8
  const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
9
9
  function createDependencyTable(options) {
@@ -30,5 +30,4 @@ function createDependencyTable(options) {
30
30
  ...options,
31
31
  });
32
32
  }
33
- exports.createDependencyTable = createDependencyTable;
34
33
  //# sourceMappingURL=core.js.map
package/lib/core.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["core.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,oEAA4D;AAE5D,SAAgB,qBAAqB,CAAC,OAAiC;IAEtE,OAAO,IAAI,oBAAK,CAAC;QAChB,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;QAC9C,oDAAoD;QACpD,KAAK,EAAE;YACN,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,EAAE;YACd,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;YACV,YAAY,EAAE,EAAE;YAChB,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,EAAE;YAClB,IAAI,EAAE,EAAE;YACR,UAAU,EAAE,EAAE;YACd,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,KAAK,EAAE,EAAE;YACT,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;SACV;QACD,GAAG,OAAO;KACV,CAAC,CAAC;AACJ,CAAC;AAxBD,sDAwBC","sourcesContent":["/**\n * Created by user on 2020/6/11.\n */\n\nimport Table, { TableConstructorOptions } from 'cli-table3';\n\nexport function createDependencyTable(options?: TableConstructorOptions)\n{\n\treturn new Table({\n\t\tcolAligns: ['left', 'right', 'right', 'right'],\n\t\t//colAligns: ['left', 'center', 'center', 'center'],\n\t\tchars: {\n\t\t\ttop: '',\n\t\t\t'top-mid': '',\n\t\t\t'top-left': '',\n\t\t\t'top-right': '',\n\t\t\tbottom: '',\n\t\t\t'bottom-mid': '',\n\t\t\t'bottom-left': '',\n\t\t\t'bottom-right': '',\n\t\t\tleft: '',\n\t\t\t'left-mid': '',\n\t\t\tmid: '',\n\t\t\t'mid-mid': '',\n\t\t\tright: '',\n\t\t\t'right-mid': '',\n\t\t\tmiddle: '',\n\t\t},\n\t\t...options,\n\t});\n}\n"]}
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["core.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAIH,sDAwBC;;AA1BD,oEAA4D;AAE5D,SAAgB,qBAAqB,CAAC,OAAiC;IAEtE,OAAO,IAAI,oBAAK,CAAC;QAChB,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;QAC9C,oDAAoD;QACpD,KAAK,EAAE;YACN,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,EAAE;YACd,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;YACV,YAAY,EAAE,EAAE;YAChB,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,EAAE;YAClB,IAAI,EAAE,EAAE;YACR,UAAU,EAAE,EAAE;YACd,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,KAAK,EAAE,EAAE;YACT,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;SACV;QACD,GAAG,OAAO;KACV,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Created by user on 2020/6/11.\n */\n\nimport Table, { TableConstructorOptions } from 'cli-table3';\n\nexport function createDependencyTable(options?: TableConstructorOptions)\n{\n\treturn new Table({\n\t\tcolAligns: ['left', 'right', 'right', 'right'],\n\t\t//colAligns: ['left', 'center', 'center', 'center'],\n\t\tchars: {\n\t\t\ttop: '',\n\t\t\t'top-mid': '',\n\t\t\t'top-left': '',\n\t\t\t'top-right': '',\n\t\t\tbottom: '',\n\t\t\t'bottom-mid': '',\n\t\t\t'bottom-left': '',\n\t\t\t'bottom-right': '',\n\t\t\tleft: '',\n\t\t\t'left-mid': '',\n\t\t\tmid: '',\n\t\t\t'mid-mid': '',\n\t\t\tright: '',\n\t\t\t'right-mid': '',\n\t\t\tmiddle: '',\n\t\t},\n\t\t...options,\n\t});\n}\n"]}
package/lib/deps-table.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Created by user on 2020/6/11.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.toDependencyTable = void 0;
6
+ exports.toDependencyTable = toDependencyTable;
7
7
  const semver_diff_1 = require("@yarn-tool/semver-diff");
8
8
  const core_1 = require("./core");
9
9
  function toDependencyTable(args) {
@@ -18,6 +18,5 @@ function toDependencyTable(args) {
18
18
  rows.forEach(row => table.push(row));
19
19
  return table;
20
20
  }
21
- exports.toDependencyTable = toDependencyTable;
22
21
  exports.default = toDependencyTable;
23
22
  //# sourceMappingURL=deps-table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deps-table.js","sourceRoot":"","sources":["deps-table.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wDAAiF;AAEjF,iCAA+C;AAE/C,SAAgB,iBAAiB,CAAC,IAIjC;IAEA,MAAM,KAAK,GAAG,IAAA,4BAAqB,EAAC;QACnC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;KAC9C,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAClC,MAAM,EAAE,GAAG,IAAA,0BAAY,EAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,OAAc,CAAC,CAAC;QACjF,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAU,CAAC,CAAC,CAAC;IAC5C,OAAO,KAAK,CAAC;AACd,CAAC;AAjBD,8CAiBC;AAED,kBAAe,iBAAiB,CAAA","sourcesContent":["/**\n * Created by user on 2020/6/11.\n */\n\nimport { IOptionsParseVersionsDiff, colorizeDiff } from '@yarn-tool/semver-diff';\nimport { IDependency } from './types';\nimport { createDependencyTable } from './core';\n\nexport function toDependencyTable(args: {\n\tfrom: IDependency,\n\tto: IDependency,\n\toptions?: IOptionsParseVersionsDiff,\n})\n{\n\tconst table = createDependencyTable({\n\t\tcolAligns: ['left', 'right', 'right', 'right'],\n\t});\n\tconst rows = Object.keys(args.to).map(dep =>\n\t{\n\t\tconst from = args.from[dep] || '';\n\t\tconst to = colorizeDiff(args.from[dep], args.to[dep] || '', args.options as any);\n\t\treturn [dep, from, '→', to];\n\t});\n\trows.forEach(row => table.push(row as any));\n\treturn table;\n}\n\nexport default toDependencyTable\n"]}
1
+ {"version":3,"file":"deps-table.js","sourceRoot":"","sources":["deps-table.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAMH,8CAiBC;AArBD,wDAAiF;AAEjF,iCAA+C;AAE/C,SAAgB,iBAAiB,CAAC,IAIjC;IAEA,MAAM,KAAK,GAAG,IAAA,4BAAqB,EAAC;QACnC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;KAC9C,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAClC,MAAM,EAAE,GAAG,IAAA,0BAAY,EAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,OAAc,CAAC,CAAC;QACjF,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAU,CAAC,CAAC,CAAC;IAC5C,OAAO,KAAK,CAAC;AACd,CAAC;AAED,kBAAe,iBAAiB,CAAA","sourcesContent":["/**\n * Created by user on 2020/6/11.\n */\n\nimport { IOptionsParseVersionsDiff, colorizeDiff } from '@yarn-tool/semver-diff';\nimport { IDependency } from './types';\nimport { createDependencyTable } from './core';\n\nexport function toDependencyTable(args: {\n\tfrom: IDependency,\n\tto: IDependency,\n\toptions?: IOptionsParseVersionsDiff,\n})\n{\n\tconst table = createDependencyTable({\n\t\tcolAligns: ['left', 'right', 'right', 'right'],\n\t});\n\tconst rows = Object.keys(args.to).map(dep =>\n\t{\n\t\tconst from = args.from[dep] || '';\n\t\tconst to = colorizeDiff(args.from[dep], args.to[dep] || '', args.options as any);\n\t\treturn [dep, from, '→', to];\n\t});\n\trows.forEach(row => table.push(row as any));\n\treturn table;\n}\n\nexport default toDependencyTable\n"]}
package/lib/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.applyStyleBorderless = void 0;
3
+ exports.applyStyleBorderless = applyStyleBorderless;
4
4
  function applyStyleBorderless(table) {
5
5
  Object.assign(table.options, {
6
6
  chars: {
@@ -23,5 +23,4 @@ function applyStyleBorderless(table) {
23
23
  });
24
24
  return table;
25
25
  }
26
- exports.applyStyleBorderless = applyStyleBorderless;
27
26
  //# sourceMappingURL=style.js.map
package/lib/style.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["style.ts"],"names":[],"mappings":";;;AAKA,SAAgB,oBAAoB,CAAC,KAAY;IAEhD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE;QAC5B,KAAK,EAAE;YACN,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,EAAE;YACd,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;YACV,YAAY,EAAE,EAAE;YAChB,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,EAAE;YAClB,IAAI,EAAE,EAAE;YACR,UAAU,EAAE,EAAE;YACd,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,KAAK,EAAE,EAAE;YACT,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;SACV;KACD,CAAC,CAAA;IAEF,OAAO,KAAK,CAAA;AACb,CAAC;AAvBD,oDAuBC","sourcesContent":["/**\n * Created by user on 2020/6/13.\n */\nimport { Table } from 'cli-table3';\n\nexport function applyStyleBorderless(table: Table)\n{\n\tObject.assign(table.options, {\n\t\tchars: {\n\t\t\ttop: '',\n\t\t\t'top-mid': '',\n\t\t\t'top-left': '',\n\t\t\t'top-right': '',\n\t\t\tbottom: '',\n\t\t\t'bottom-mid': '',\n\t\t\t'bottom-left': '',\n\t\t\t'bottom-right': '',\n\t\t\tleft: '',\n\t\t\t'left-mid': '',\n\t\t\tmid: '',\n\t\t\t'mid-mid': '',\n\t\t\tright: '',\n\t\t\t'right-mid': '',\n\t\t\tmiddle: '',\n\t\t},\n\t})\n\n\treturn table\n}\n"]}
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["style.ts"],"names":[],"mappings":";;AAKA,oDAuBC;AAvBD,SAAgB,oBAAoB,CAAC,KAAY;IAEhD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE;QAC5B,KAAK,EAAE;YACN,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,EAAE;YACd,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;YACV,YAAY,EAAE,EAAE;YAChB,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,EAAE;YAClB,IAAI,EAAE,EAAE;YACR,UAAU,EAAE,EAAE;YACd,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,KAAK,EAAE,EAAE;YACT,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;SACV;KACD,CAAC,CAAA;IAEF,OAAO,KAAK,CAAA;AACb,CAAC","sourcesContent":["/**\n * Created by user on 2020/6/13.\n */\nimport { Table } from 'cli-table3';\n\nexport function applyStyleBorderless(table: Table)\n{\n\tObject.assign(table.options, {\n\t\tchars: {\n\t\t\ttop: '',\n\t\t\t'top-mid': '',\n\t\t\t'top-left': '',\n\t\t\t'top-right': '',\n\t\t\tbottom: '',\n\t\t\t'bottom-mid': '',\n\t\t\t'bottom-left': '',\n\t\t\t'bottom-right': '',\n\t\t\tleft: '',\n\t\t\t'left-mid': '',\n\t\t\tmid: '',\n\t\t\t'mid-mid': '',\n\t\t\tright: '',\n\t\t\t'right-mid': '',\n\t\t\tmiddle: '',\n\t\t},\n\t})\n\n\treturn table\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/table",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "description": "shared cli table utils for yarn-tool",
5
5
  "homepage": "https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/@yarn-tool/table#readme",
6
6
  "bugs": {
@@ -19,6 +19,7 @@
19
19
  "lint": "npx eslint **/*.ts",
20
20
  "test": "jest",
21
21
  "test:jest": "jest --coverage",
22
+ "test:jest:coverage": "yarn run test:jest -- --coverage",
22
23
  "test:jest:snapshot": "yarn run test:jest -- -u",
23
24
  "test:mocha": "npx mocha --require ts-node/register \"!(node_modules)/**/*.{test,spec}.{ts,tsx}\"",
24
25
  "test:snapshot": "yarn run test -- -u",
@@ -32,16 +33,17 @@
32
33
  "ncu": "npx yarn-tool ncu -u",
33
34
  "sort-package-json": "npx yarn-tool sort",
34
35
  "tsc:default": "tsc -p tsconfig.json",
35
- "tsc:esm": "tsc -p tsconfig.esm.json"
36
+ "tsc:esm": "tsc -p tsconfig.esm.json",
37
+ "tsc:showConfig": "ynpx get-current-tsconfig -p"
36
38
  },
37
39
  "dependencies": {
38
40
  "@ts-type/package-dts": "^2.0.8",
39
- "@yarn-tool/semver-diff": "^2.0.10",
40
- "cli-table3": "^0.6.3",
41
+ "@yarn-tool/semver-diff": "^2.0.12",
42
+ "cli-table3": "^0.6.4",
41
43
  "tslib": ">=2"
42
44
  },
43
45
  "publishConfig": {
44
46
  "access": "public"
45
47
  },
46
- "gitHead": "39eb95e4e4843dc78aca551c0ed3cddcf88438e1"
48
+ "gitHead": "089606f66f3c5501a8f3fdfc42e5a85b57f4d0e9"
47
49
  }