@jupiterone/cli 8.13.0 → 8.13.4
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/package.json +4 -4
- package/src/__tests__/cli-export.test.ts +18 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupiterone/cli",
|
|
3
|
-
"version": "8.13.
|
|
3
|
+
"version": "8.13.4",
|
|
4
4
|
"description": "The JupiterOne cli",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test": "jest"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@jupiterone/integration-sdk-core": "^8.13.
|
|
28
|
-
"@jupiterone/integration-sdk-runtime": "^8.13.
|
|
27
|
+
"@jupiterone/integration-sdk-core": "^8.13.4",
|
|
28
|
+
"@jupiterone/integration-sdk-runtime": "^8.13.4",
|
|
29
29
|
"@lifeomic/attempt": "^3.0.3",
|
|
30
30
|
"commander": "^5.0.0",
|
|
31
31
|
"globby": "^11.0.1",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"csvtojson": "^2.0.10",
|
|
44
44
|
"memfs": "^3.2.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "02b687d6076ab91fd3e3ff5b8a26fbc4694f7800"
|
|
47
47
|
}
|
|
@@ -65,18 +65,18 @@ test('should export assets', async () => {
|
|
|
65
65
|
]),
|
|
66
66
|
).resolves.toEqual(expect.anything());
|
|
67
67
|
expect(Object.values(vol.toJSON())).toMatchInlineSnapshot(`
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
Array [
|
|
69
|
+
"[{\\"id\\":\\"entity-1\\",\\"name\\":\\"Entity 1\\",\\"displayName\\":\\"Entity 1\\",\\"createdOn\\":1591831808891,\\"_class\\":\\"Entity\\",\\"_type\\":\\"entity_type_1\\",\\"_key\\":\\"entity-1\\",\\"tag.Production\\":\\"{\\\\\\"object\\\\\\":{\\\\\\"innerProp\\\\\\":\\\\\\"foobar\\\\\\"}}\\"}]",
|
|
70
|
+
"[{\\"id\\":\\"entity-2\\",\\"name\\":\\"Entity 2\\",\\"displayName\\":\\"Entity 2\\",\\"createdOn\\":1591831808892,\\"_class\\":\\"Entity\\",\\"_type\\":\\"entity_type_2\\",\\"_key\\":\\"entity-2\\"}]",
|
|
71
|
+
"[{\\"_key\\":\\"entity-1|has|entity-2\\",\\"_type\\":\\"entity_type_1_has_2\\",\\"_class\\":\\"HAS\\",\\"_fromEntityKey\\":\\"entity-1\\",\\"_toEntityKey\\":\\"entity-2\\",\\"displayName\\":\\"HAS\\"}]",
|
|
72
|
+
"id,name,displayName,createdOn,_class,_type,_key,tag.Production
|
|
73
|
+
entity-1,Entity 1,Entity 1,1591831808891,Entity,entity_type_1,entity-1,\\"{\\"\\"object\\"\\":{\\"\\"innerProp\\"\\":\\"\\"foobar\\"\\"}}\\"",
|
|
74
|
+
"id,name,displayName,createdOn,_class,_type,_key
|
|
75
|
+
entity-2,Entity 2,Entity 2,1591831808892,Entity,entity_type_2,entity-2",
|
|
76
|
+
"_key,_type,_class,_fromEntityKey,_toEntityKey,displayName
|
|
77
|
+
entity-1|has|entity-2,entity_type_1_has_2,HAS,entity-1,entity-2,HAS",
|
|
78
|
+
]
|
|
79
|
+
`);
|
|
80
80
|
expect(mockedCreateApiClient).toBeCalledWith({
|
|
81
81
|
accessToken: 'apiKey',
|
|
82
82
|
account: 'account',
|
|
@@ -123,12 +123,12 @@ test('should only export relationships when specified', async () => {
|
|
|
123
123
|
]),
|
|
124
124
|
).resolves.toEqual(expect.anything());
|
|
125
125
|
expect(Object.values(vol.toJSON())).toMatchInlineSnapshot(`
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
Array [
|
|
127
|
+
"[{\\"_key\\":\\"entity-1|has|entity-2\\",\\"_type\\":\\"entity_type_1_has_2\\",\\"_class\\":\\"HAS\\",\\"_fromEntityKey\\":\\"entity-1\\",\\"_toEntityKey\\":\\"entity-2\\",\\"displayName\\":\\"HAS\\"}]",
|
|
128
|
+
"_key,_type,_class,_fromEntityKey,_toEntityKey,displayName
|
|
129
|
+
entity-1|has|entity-2,entity_type_1_has_2,HAS,entity-1,entity-2,HAS",
|
|
130
|
+
]
|
|
131
|
+
`);
|
|
132
132
|
});
|
|
133
133
|
test('should only export entities when specified', async () => {
|
|
134
134
|
mockedAxios.get
|