which-os 1.7.4 → 1.7.6

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/dist/cjs/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { program as commander } from 'commander';
3
- import { inspect } from 'node:util';
4
- import fs from 'node:fs';
3
+ import { inspect } from 'util';
4
+ import fs from 'fs';
5
5
  import * as whichOS from './which-os.js';
6
6
  const { description, name, version } = JSON.parse(fs.readFileSync('../package.json', 'utf-8'));
7
7
  const capitalize = (name) => `${name.charAt(0).toUpperCase()}${name.slice(1)}`;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  /// <reference types="node" resolution-mode="require"/>
3
- import os from 'node:os';
3
+ import os from 'os';
4
4
  interface OSInfo {
5
5
  arch: string;
6
6
  constants: {
@@ -1,5 +1,5 @@
1
- import os from 'node:os';
2
- import process from 'node:process';
1
+ import os from 'os';
2
+ import process from 'process';
3
3
  const platform = os.platform();
4
4
  export function getOsInfo() {
5
5
  return Object.entries(os)
package/dist/esm/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { program as commander } from 'commander';
3
- import { inspect } from 'node:util';
4
- import fs from 'node:fs';
3
+ import { inspect } from 'util';
4
+ import fs from 'fs';
5
5
  import * as whichOS from './which-os.js';
6
6
  const { description, name, version } = JSON.parse(fs.readFileSync('../package.json', 'utf-8'));
7
7
  const capitalize = (name) => `${name.charAt(0).toUpperCase()}${name.slice(1)}`;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  /// <reference types="node" resolution-mode="require"/>
3
- import os from 'node:os';
3
+ import os from 'os';
4
4
  interface OSInfo {
5
5
  arch: string;
6
6
  constants: {
@@ -1,5 +1,5 @@
1
- import os from 'node:os';
2
- import process from 'node:process';
1
+ import os from 'os';
2
+ import process from 'process';
3
3
  const platform = os.platform();
4
4
  export function getOsInfo() {
5
5
  return Object.entries(os)
package/package.json CHANGED
@@ -42,6 +42,6 @@
42
42
  "start": "node --loader ts-node/esm src/cli.ts"
43
43
  },
44
44
  "type": "module",
45
- "version": "1.7.4",
46
- "gitHead": "f5f0454db2f6aeaa318671672096f4bf5692d712"
45
+ "version": "1.7.6",
46
+ "gitHead": "8b94379f8a847970418b0b30edcd80065fa3469a"
47
47
  }