my-timezone 1.7.9 → 1.7.10
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/cli.js +2 -2
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -5,9 +5,9 @@ import { program as commander } from 'commander';
|
|
|
5
5
|
import { MyTimezone } from './MyTimezone.js';
|
|
6
6
|
const __dirname = import.meta.dirname;
|
|
7
7
|
const packageJsonPath = path.join(__dirname, '../package.json');
|
|
8
|
-
const {
|
|
8
|
+
const { description, name, version } = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
9
9
|
commander
|
|
10
|
-
.name(
|
|
10
|
+
.name(name)
|
|
11
11
|
.version(version)
|
|
12
12
|
.description(`${description}\nUse a city name or longitude value as location.`)
|
|
13
13
|
.option('-o, --offline', 'Work offline (default is false)')
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"axios": "1.12.2",
|
|
6
6
|
"commander": "14.0.1",
|
|
7
|
-
"ntpclient": "1.8.
|
|
7
|
+
"ntpclient": "1.8.10"
|
|
8
8
|
},
|
|
9
9
|
"description": "Get the exact time based on your location.",
|
|
10
10
|
"devDependencies": {
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"test": "vitest run"
|
|
33
33
|
},
|
|
34
34
|
"type": "module",
|
|
35
|
-
"version": "1.7.
|
|
36
|
-
"gitHead": "
|
|
35
|
+
"version": "1.7.10",
|
|
36
|
+
"gitHead": "37497fa0d58d87475b5fe85111163a63ae11d998"
|
|
37
37
|
}
|