Skip to content

Commit 66fa67a

Browse files
authored
Update code-style-lint.yml (aws-solutions#425)
* Update code-style-lint.yml only=dev is no longer supported and it is invalid config with npm i * Replace AxiosRequestConfig with RawAxiosRequestConfig In 1.2.3 AxiosRequestConfig interface has been refactored with RawAxiosRequestConfig. Committing package-lock.json for repeatable builds to prevent similar issues Reference: https://github.com/axios/axios/releases/tag/v1.2.3 Co-authored-by: Garvit Singh <[email protected]>
1 parent e4689f5 commit 66fa67a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/code-style-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232
with:
3333
node-version: ${{ matrix.node-version }}
3434
- run: |
35-
cd source && npm i --only=dev
35+
cd source && npm i
3636
npx --y eslint . --ext .ts

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ demo-ui-config.js
2525
# System Files
2626
**/.DS_Store
2727
**/.vscode
28+
**/.idea

source/custom-resource/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import EC2, { DescribeRegionsRequest } from "aws-sdk/clients/ec2";
55
import S3, { CreateBucketRequest, PutBucketEncryptionRequest, PutBucketPolicyRequest } from "aws-sdk/clients/s3";
66
import SecretsManager from "aws-sdk/clients/secretsmanager";
7-
import axios, { AxiosRequestConfig, AxiosResponse } from "axios";
7+
import axios, { RawAxiosRequestConfig, AxiosResponse } from "axios";
88
import { createHash } from "crypto";
99
import moment from "moment";
1010
import { v4 } from "uuid";
@@ -240,7 +240,7 @@ async function sendCloudFormationResponse(
240240
Data: response.Data,
241241
});
242242

243-
const config: AxiosRequestConfig = {
243+
const config: RawAxiosRequestConfig = {
244244
headers: {
245245
"Content-Type": "",
246246
"Content-Length": responseBody.length,
@@ -292,7 +292,7 @@ async function sendAnonymousMetric(
292292

293293
const payloadStr = JSON.stringify(payload);
294294

295-
const config: AxiosRequestConfig = {
295+
const config: RawAxiosRequestConfig = {
296296
headers: {
297297
"content-type": "application/json",
298298
"content-length": payloadStr.length,

0 commit comments

Comments
 (0)