@jupiterone/integration-sdk-cli 17.2.1 → 17.2.2-canary-1188-2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupiterone/integration-sdk-cli",
3
- "version": "17.2.1",
3
+ "version": "17.2.2-canary-1188-2.0",
4
4
  "description": "The SDK for developing JupiterOne integrations",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "plop": "plop --plopfile dist/src/generator/newIntegration.js"
26
26
  },
27
27
  "dependencies": {
28
- "@jupiterone/integration-sdk-core": "^17.2.1",
29
- "@jupiterone/integration-sdk-runtime": "^17.2.1",
28
+ "@jupiterone/integration-sdk-core": "^17.2.2-canary-1188-2.0",
29
+ "@jupiterone/integration-sdk-runtime": "^17.2.2-canary-1188-2.0",
30
30
  "chalk": "^4",
31
31
  "commander": "^9.4.0",
32
32
  "ejs": "^3.1.9",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@jupiterone/data-model": "^0.62.0",
47
- "@jupiterone/integration-sdk-private-test-utils": "^17.2.1",
47
+ "@jupiterone/integration-sdk-private-test-utils": "^17.2.2-canary-1188-2.0",
48
48
  "@pollyjs/adapter-node-http": "^6.0.5",
49
49
  "@pollyjs/core": "^6.0.5",
50
50
  "@pollyjs/persister-fs": "^6.0.5",
@@ -60,5 +60,5 @@
60
60
  "peerDependencies": {
61
61
  "@jupiterone/data-model": ">= 0.62.0"
62
62
  },
63
- "gitHead": "7a21455358e5eca047711830d9cd5376fd3ee6fb"
63
+ "gitHead": "1a4e14d9616177db44ee8d3f32b8704103be9d5b"
64
64
  }
@@ -167,7 +167,10 @@ test('should use JUPITERONE_API_KEY value in Authorization request header', asyn
167
167
  job,
168
168
  baseUrl: 'https://api.us.jupiterone.io',
169
169
  onSyncJobCreateResponse(req, res) {
170
- expect(req.headers['Authorization']).toEqual('Bearer testing-key');
170
+ // node-fetch used by platform-sdk-fetch stores headers as arrays
171
+ const authHeader = req.headers['Authorization'];
172
+ const authValue = Array.isArray(authHeader) ? authHeader[0] : authHeader;
173
+ expect(authValue).toEqual('Bearer testing-key');
171
174
  },
172
175
  });
173
176
 
@@ -35,9 +35,12 @@ export async function validateQueries(
35
35
  let overallResults: ParseAndValidateRawQueriesResults = [];
36
36
 
37
37
  for (const queryBatch of queryBatches) {
38
- const result = await apiClient.post('/j1ql/validate', {
39
- queries: queryBatch,
40
- });
38
+ const result = await apiClient.post<ParseAndValidateRawQueriesResults>(
39
+ '/j1ql/validate',
40
+ {
41
+ queries: queryBatch,
42
+ },
43
+ );
41
44
 
42
45
  overallResults = overallResults.concat(result.data);
43
46
  }