@staff0rd/assist 0.309.0 → 0.310.1
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/README.md +1 -1
- package/dist/commands/sessions/web/bundle.js +178 -94
- package/dist/index.js +11 -3
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.310.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -43,6 +43,7 @@ var package_default = {
|
|
|
43
43
|
url: "https://github.com/staff0rd/assist"
|
|
44
44
|
},
|
|
45
45
|
dependencies: {
|
|
46
|
+
"@xterm/addon-webgl": "^0.19.0",
|
|
46
47
|
"better-sqlite3": "^12.8.0",
|
|
47
48
|
blessed: "^0.1.81",
|
|
48
49
|
"blessed-contrib": "^4.11.0",
|
|
@@ -11688,6 +11689,11 @@ function buildMentionMap(rows, resolve16) {
|
|
|
11688
11689
|
return map;
|
|
11689
11690
|
}
|
|
11690
11691
|
|
|
11692
|
+
// src/commands/netcap/activityPermalink.ts
|
|
11693
|
+
function activityPermalink(urn) {
|
|
11694
|
+
return urn ? `https://www.linkedin.com/feed/update/${urn}/` : void 0;
|
|
11695
|
+
}
|
|
11696
|
+
|
|
11691
11697
|
// src/commands/netcap/activityUrnDate.ts
|
|
11692
11698
|
function activityUrnDate(urn) {
|
|
11693
11699
|
if (!urn) return void 0;
|
|
@@ -11754,6 +11760,7 @@ function buildPost(raw, mentionMap, author) {
|
|
|
11754
11760
|
links: dedupeLinks(raw.links),
|
|
11755
11761
|
relatedPosts,
|
|
11756
11762
|
activityUrn: relatedPosts[0],
|
|
11763
|
+
permalink: activityPermalink(relatedPosts[0]),
|
|
11757
11764
|
postedAt: activityUrnDate(relatedPosts[0]),
|
|
11758
11765
|
author: resolveAuthor(mentionMap, author)
|
|
11759
11766
|
};
|
|
@@ -11895,6 +11902,7 @@ function buildVoyagerPost(update3, profiles) {
|
|
|
11895
11902
|
links: links2,
|
|
11896
11903
|
relatedPosts: activityUrn ? [activityUrn] : [],
|
|
11897
11904
|
activityUrn,
|
|
11905
|
+
permalink: activityPermalink(activityUrn),
|
|
11898
11906
|
postedAt: activityUrnDate(activityUrn),
|
|
11899
11907
|
author
|
|
11900
11908
|
};
|
|
@@ -12028,8 +12036,8 @@ function registerNetcap(program2) {
|
|
|
12028
12036
|
"-f, --filter <pattern>",
|
|
12029
12037
|
"Only forward requests whose URL contains this substring"
|
|
12030
12038
|
).action((options2) => netcap(options2));
|
|
12031
|
-
command.command("extract [file]").description(
|
|
12032
|
-
"Extract LinkedIn posts (text, author, mentions, links) from a netcap capture file to posts.json"
|
|
12039
|
+
command.command("extract-linkedin-posts [file]").description(
|
|
12040
|
+
"Extract LinkedIn posts (text, author, mentions, links, permalink) from a netcap capture file to posts.json"
|
|
12033
12041
|
).action((file) => netcapExtract(file));
|
|
12034
12042
|
}
|
|
12035
12043
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@staff0rd/assist",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.310.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"url": "https://github.com/staff0rd/assist"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
+
"@xterm/addon-webgl": "^0.19.0",
|
|
40
41
|
"better-sqlite3": "^12.8.0",
|
|
41
42
|
"blessed": "^0.1.81",
|
|
42
43
|
"blessed-contrib": "^4.11.0",
|