zachleat 40.0.1 → 42.0.0
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/LICENSE +1 -1
- package/README.md +10 -2
- package/package.json +6 -8
- package/src/cmd.js +1 -1
- package/src/index.js +14 -7
- package/test/test.js +0 -11
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# zachleat
|
|
2
2
|
|
|
3
|
-
Meta package for
|
|
3
|
+
Meta package for Zach Leatherman
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -21,7 +21,15 @@ npx zachleat
|
|
|
21
21
|
### Programmatic
|
|
22
22
|
|
|
23
23
|
```js
|
|
24
|
-
|
|
24
|
+
import zachleat from "zachleat";
|
|
25
|
+
|
|
26
|
+
// or in CommonJS
|
|
27
|
+
// const zachleat = await import("zachleat");
|
|
25
28
|
|
|
26
29
|
zachleat();
|
|
27
30
|
```
|
|
31
|
+
|
|
32
|
+
## Changelog
|
|
33
|
+
|
|
34
|
+
* `v42` Bump `update-notifier` from v5 to [v6](https://github.com/sindresorhus/update-notifier/releases/tag/v6.0.0) (ESM) to [v7](https://github.com/sindresorhus/update-notifier/releases/tag/v7.0.0) (Node 18+)
|
|
35
|
+
* `v41` Upgraded to ESM.
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zachleat",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Meta package for
|
|
3
|
+
"version": "42.0.0",
|
|
4
|
+
"description": "Meta package for Zach Leatherman",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"zachleat": "./src/cmd.js"
|
|
8
8
|
},
|
|
9
|
+
"type": "module",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"default": "node src/cmd.js",
|
|
11
|
-
"test": "
|
|
12
|
+
"test": "node --test"
|
|
12
13
|
},
|
|
13
14
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
15
|
+
"node": ">=18"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
@@ -23,10 +24,7 @@
|
|
|
23
24
|
"url": "https://github.com/zachleat/package-zachleat/issues"
|
|
24
25
|
},
|
|
25
26
|
"homepage": "https://github.com/zachleat/package-zachleat#readme",
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"ava": "^5.1.1"
|
|
28
|
-
},
|
|
29
27
|
"dependencies": {
|
|
30
|
-
"update-notifier": "^
|
|
28
|
+
"update-notifier": "^7.3.1"
|
|
31
29
|
}
|
|
32
30
|
}
|
package/src/cmd.js
CHANGED
package/src/index.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import updateNotifier from "update-notifier";
|
|
2
|
+
import pkg from "../package.json" with { type: "json" };
|
|
3
3
|
|
|
4
4
|
updateNotifier({ pkg }).notify();
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export default function() {
|
|
7
|
+
let intro = `Zach Leatherman (v${pkg.version})`;
|
|
8
|
+
let sep = '-'.repeat(intro.length);
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
console.log( `${intro}
|
|
11
|
+
${sep}
|
|
12
|
+
Web https://zachleat.com/
|
|
13
|
+
11ty https://www.11ty.dev/
|
|
14
|
+
Mastodon https://zachleat.com/@zachleat
|
|
15
|
+
Bluesky https://bsky.app/profile/zachleat.com
|
|
16
|
+
GitHub https://github.com/zachleat
|
|
17
|
+
npm https://www.npmjs.com/~zachleat
|
|
18
|
+
LinkedIn https://www.linkedin.com/in/zachleat/
|
|
12
19
|
` );
|
|
13
20
|
};
|