which-os 1.10.6 → 1.10.8

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/cli.js +1 -3
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -2,11 +2,9 @@
2
2
  import { inspect } from 'node:util';
3
3
  import fs from 'node:fs';
4
4
  import path from 'node:path';
5
- import { fileURLToPath } from 'node:url';
6
5
  import { program as commander } from 'commander';
7
6
  import * as whichOS from './which-os.js';
8
- const __filename = fileURLToPath(import.meta.url);
9
- const __dirname = path.dirname(__filename);
7
+ const __dirname = import.meta.dirname;
10
8
  const packageJsonPath = path.join(__dirname, '../package.json');
11
9
  const { description, name, version } = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
12
10
  const capitalize = (name) => `${name.charAt(0).toUpperCase()}${name.slice(1)}`;
package/package.json CHANGED
@@ -2,12 +2,12 @@
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "bin": "dist/cli.js",
4
4
  "dependencies": {
5
- "commander": "14.0.0"
5
+ "commander": "14.0.1"
6
6
  },
7
7
  "description": "Get informations about your OS",
8
8
  "devDependencies": {
9
9
  "rimraf": "6.0.1",
10
- "typescript": "5.8.3"
10
+ "typescript": "5.9.2"
11
11
  },
12
12
  "engines": {
13
13
  "node": ">= 18.0"
@@ -33,6 +33,6 @@
33
33
  "start": "node --loader ts-node/esm src/cli.ts"
34
34
  },
35
35
  "type": "module",
36
- "version": "1.10.6",
37
- "gitHead": "b834177d548b327ae16488fc9c8a55ba4cae02b3"
36
+ "version": "1.10.8",
37
+ "gitHead": "2cf3cb6bf3ce3afcf194f4cab6e77c114cc3a66c"
38
38
  }