@xiangyang9999/my-text 1.0.1 → 1.0.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/README.md +38 -24
- package/content.txt +36 -22
- package/metadata.json +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,36 +1,50 @@
|
|
|
1
1
|
# @xiangyang9999/my-text
|
|
2
2
|
|
|
3
|
-
文本版本:`1.0.
|
|
4
|
-
更新时间:`2026-09-
|
|
3
|
+
文本版本:`1.0.2`
|
|
4
|
+
更新时间:`2026-09-21T11:41:46.479Z`
|
|
5
5
|
|
|
6
6
|
## 内容
|
|
7
7
|
|
|
8
|
-
<pre>gq "
|
|
9
|
-
artifactInfo: g.V(1793616L)
|
|
10
|
-
.valueMap(true,'storageId','repositoryId','artifactPath')
|
|
11
|
-
.toList(),
|
|
8
|
+
<pre>gq "def db = g.getGraph();
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
if (!(db instanceof org.janusgraph.core.JanusGraph)) {
|
|
11
|
+
return [status:'STOP', graphClass:db.getClass().getName()];
|
|
12
|
+
}
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
def tx = db.buildTransaction()
|
|
15
|
+
.readOnly()
|
|
16
|
+
.checkExternalVertexExistence(true)
|
|
17
|
+
.checkInternalVertexExistence(true)
|
|
18
|
+
.skipDBCacheRead()
|
|
19
|
+
.start();
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.toList(),
|
|
21
|
+
try {
|
|
22
|
+
def q = tx.traversal();
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
def artifactIds = q.V(1793616L)
|
|
27
25
|
.hasLabel('Artifact')
|
|
28
26
|
.has('storageId','product-uat-storage')
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
.id().toList();
|
|
28
|
+
|
|
29
|
+
def components = q.V(16299944L).toList();
|
|
30
|
+
|
|
31
|
+
def details = components.collect { v ->
|
|
32
|
+
[
|
|
33
|
+
id: v.id(),
|
|
34
|
+
label: v.label(),
|
|
35
|
+
uuidValues: v.values('uuid').toList(),
|
|
36
|
+
nameValues: v.values('name').toList(),
|
|
37
|
+
purlValues: v.values('purl').toList(),
|
|
38
|
+
sha1Values: v.values('sha1sum').toList()
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return [
|
|
43
|
+
artifactIds: artifactIds,
|
|
44
|
+
checkedComponentCount: components.size(),
|
|
45
|
+
componentDetails: details
|
|
46
|
+
];
|
|
47
|
+
} finally {
|
|
48
|
+
tx.rollback();
|
|
49
|
+
}"
|
|
36
50
|
</pre>
|
package/content.txt
CHANGED
|
@@ -1,28 +1,42 @@
|
|
|
1
|
-
gq "
|
|
2
|
-
artifactInfo: g.V(1793616L)
|
|
3
|
-
.valueMap(true,'storageId','repositoryId','artifactPath')
|
|
4
|
-
.toList(),
|
|
1
|
+
gq "def db = g.getGraph();
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
if (!(db instanceof org.janusgraph.core.JanusGraph)) {
|
|
4
|
+
return [status:'STOP', graphClass:db.getClass().getName()];
|
|
5
|
+
}
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
def tx = db.buildTransaction()
|
|
8
|
+
.readOnly()
|
|
9
|
+
.checkExternalVertexExistence(true)
|
|
10
|
+
.checkInternalVertexExistence(true)
|
|
11
|
+
.skipDBCacheRead()
|
|
12
|
+
.start();
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.toList(),
|
|
14
|
+
try {
|
|
15
|
+
def q = tx.traversal();
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
def artifactIds = q.V(1793616L)
|
|
20
18
|
.hasLabel('Artifact')
|
|
21
19
|
.has('storageId','product-uat-storage')
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
.id().toList();
|
|
21
|
+
|
|
22
|
+
def components = q.V(16299944L).toList();
|
|
23
|
+
|
|
24
|
+
def details = components.collect { v ->
|
|
25
|
+
[
|
|
26
|
+
id: v.id(),
|
|
27
|
+
label: v.label(),
|
|
28
|
+
uuidValues: v.values('uuid').toList(),
|
|
29
|
+
nameValues: v.values('name').toList(),
|
|
30
|
+
purlValues: v.values('purl').toList(),
|
|
31
|
+
sha1Values: v.values('sha1sum').toList()
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return [
|
|
36
|
+
artifactIds: artifactIds,
|
|
37
|
+
checkedComponentCount: components.size(),
|
|
38
|
+
componentDetails: details
|
|
39
|
+
];
|
|
40
|
+
} finally {
|
|
41
|
+
tx.rollback();
|
|
42
|
+
}"
|
package/metadata.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@xiangyang9999/my-text",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"updatedAt": "2026-09-
|
|
5
|
-
"bytes":
|
|
6
|
-
"sha256": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"updatedAt": "2026-09-21T11:41:46.479Z",
|
|
5
|
+
"bytes": 944,
|
|
6
|
+
"sha256": "3e64d4aa6760a08de3903ea69884c2ec5e62f11ad70a66f42a0f27b22a3cca83"
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiangyang9999/my-text",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Text channel updated at 2026-09-
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Text channel updated at 2026-09-21T11:41:46.479Z",
|
|
5
5
|
"files": [
|
|
6
6
|
"content.txt",
|
|
7
7
|
"metadata.json",
|