@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 CHANGED
@@ -1,36 +1,50 @@
1
1
  # @xiangyang9999/my-text
2
2
 
3
- 文本版本:`1.0.1`
4
- 更新时间:`2026-09-21T10:57:14.337Z`
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
- targetInfo: g.V(16299944L)
14
- .valueMap(true,'uuid','name','version','purl','sha1sum','created','lastUpdated')
15
- .toList(),
10
+ if (!(db instanceof org.janusgraph.core.JanusGraph)) {
11
+ return [status:'STOP', graphClass:db.getClass().getName()];
12
+ }
16
13
 
17
- linkCount: g.V(1793616L)
18
- .out('ArtifactHasComponents')
19
- .hasId(16299944L)
20
- .count().next(),
14
+ def tx = db.buildTransaction()
15
+ .readOnly()
16
+ .checkExternalVertexExistence(true)
17
+ .checkInternalVertexExistence(true)
18
+ .skipDBCacheRead()
19
+ .start();
21
20
 
22
- sha1Values: g.V(16299944L)
23
- .values('sha1sum')
24
- .toList(),
21
+ try {
22
+ def q = tx.traversal();
25
23
 
26
- currentMissingUuidTargets: g.V(1793616L)
24
+ def artifactIds = q.V(1793616L)
27
25
  .hasLabel('Artifact')
28
26
  .has('storageId','product-uat-storage')
29
- .out('ArtifactHasComponents')
30
- .hasNot('uuid')
31
- .dedup()
32
- .limit(5)
33
- .valueMap(true,'name','version','purl','sha1sum')
34
- .toList()
35
- ]"
27
+ .id().toList();
28
+
29
+ def components = q.V(16299944L).toList();
30
+
31
+ def details = components.collect { v -&gt;
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
- targetInfo: g.V(16299944L)
7
- .valueMap(true,'uuid','name','version','purl','sha1sum','created','lastUpdated')
8
- .toList(),
3
+ if (!(db instanceof org.janusgraph.core.JanusGraph)) {
4
+ return [status:'STOP', graphClass:db.getClass().getName()];
5
+ }
9
6
 
10
- linkCount: g.V(1793616L)
11
- .out('ArtifactHasComponents')
12
- .hasId(16299944L)
13
- .count().next(),
7
+ def tx = db.buildTransaction()
8
+ .readOnly()
9
+ .checkExternalVertexExistence(true)
10
+ .checkInternalVertexExistence(true)
11
+ .skipDBCacheRead()
12
+ .start();
14
13
 
15
- sha1Values: g.V(16299944L)
16
- .values('sha1sum')
17
- .toList(),
14
+ try {
15
+ def q = tx.traversal();
18
16
 
19
- currentMissingUuidTargets: g.V(1793616L)
17
+ def artifactIds = q.V(1793616L)
20
18
  .hasLabel('Artifact')
21
19
  .has('storageId','product-uat-storage')
22
- .out('ArtifactHasComponents')
23
- .hasNot('uuid')
24
- .dedup()
25
- .limit(5)
26
- .valueMap(true,'name','version','purl','sha1sum')
27
- .toList()
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.1",
4
- "updatedAt": "2026-09-21T10:57:14.337Z",
5
- "bytes": 682,
6
- "sha256": "cfe1ff032a3074ab0b32ef1b416c898ddf4547946e5a93cd4042b24378f8d363"
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.1",
4
- "description": "Text channel updated at 2026-09-21T10:57:14.337Z",
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",