expose-kit 0.10.1 → 0.10.2

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/index.js CHANGED
@@ -2223,9 +2223,17 @@ ${calmGradienrain(`Expose Kit v${VERSION}`)}
2223
2223
 
2224
2224
  // index.ts
2225
2225
  import { readFileSync as readFileSync12 } from "fs";
2226
+ import updateNotifier from "update-notifier";
2226
2227
  var __filename = fileURLToPath(import.meta.url);
2227
2228
  var __dirname = dirname11(__filename);
2228
2229
  var pkg = JSON.parse(readFileSync12(join11(__dirname, "package.json"), "utf8"));
2230
+ var notifier = updateNotifier({
2231
+ pkg,
2232
+ updateCheckInterval: 0
2233
+ });
2234
+ if (notifier.update) {
2235
+ console.log(`${chalk4.yellow("Update available:")} ${notifier.update.latest}`);
2236
+ }
2229
2237
  console.log(showCredit(pkg.version));
2230
2238
  console.log();
2231
2239
  var program2 = new Command();
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expose-kit",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "author": "EdamAmex <edame8080@gmail.com> (https://github.com/EdamAme-x)",
@@ -42,9 +42,11 @@
42
42
  "@babel/types": "^7.28.5",
43
43
  "@types/babel__generator": "^7.27.0",
44
44
  "@types/babel__traverse": "^7.28.0",
45
+ "@types/update-notifier": "^6.0.8",
45
46
  "chalk": "^5.6.2",
46
47
  "commander": "^14.0.2",
47
- "loading-cli": "^1.1.2"
48
+ "loading-cli": "^1.1.2",
49
+ "update-notifier": "^7.3.1"
48
50
  },
49
51
  "bin": {
50
52
  "expose": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expose-kit",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "author": "EdamAmex <edame8080@gmail.com> (https://github.com/EdamAme-x)",
@@ -42,9 +42,11 @@
42
42
  "@babel/types": "^7.28.5",
43
43
  "@types/babel__generator": "^7.27.0",
44
44
  "@types/babel__traverse": "^7.28.0",
45
+ "@types/update-notifier": "^6.0.8",
45
46
  "chalk": "^5.6.2",
46
47
  "commander": "^14.0.2",
47
- "loading-cli": "^1.1.2"
48
+ "loading-cli": "^1.1.2",
49
+ "update-notifier": "^7.3.1"
48
50
  },
49
51
  "bin": {
50
52
  "expose": "dist/index.js",