@socket.tech/dl-common 1.0.3-test.36 → 1.0.3-test.38

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.
@@ -37,7 +37,7 @@ exports.getFileFromS3 = getFileFromS3;
37
37
  const getS3Config = async (deploymentMode, region = "us-east-1", account = __1.Accounts.dl) => {
38
38
  const S3_BUCKET_NAME = deploymentMode == dl_core_1.DeploymentMode.PROD
39
39
  ? `socket-${account}-` + deploymentMode
40
- : `socket-dl-` + deploymentMode;
40
+ : `socket-ll-` + deploymentMode;
41
41
  const S3_RPC_CONFIG_FILE_PATH = deploymentMode + "RpcConfig.json";
42
42
  (0, exports.initS3Client)(region);
43
43
  return await (0, exports.getFileFromS3)(S3_BUCKET_NAME, S3_RPC_CONFIG_FILE_PATH);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socket.tech/dl-common",
3
- "version": "1.0.3-test.36",
3
+ "version": "1.0.3-test.38",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "description": "common utilities for socket data layer.",
@@ -20,11 +20,11 @@
20
20
  "start": "serverless offline start --reloadHandler -s dev",
21
21
  "start:dev": "serverless offline start --reloadHandler -s dev",
22
22
  "deploy": "npm run lint && npx sls deploy -s dev --verbose",
23
- "deploy:prod": "npm run lint && export AWS_PROFILE=dlprod && npx sls deploy -s prod --verbose",
23
+ "deploy:prod": "npm run lint && export AWS_PROFILE=llprod && npx sls deploy -s prod --verbose",
24
24
  "deploy:surge": "npx sls deploy -s surge --verbose",
25
25
  "build": "tsc --project lib.tsconfig.json",
26
26
  "build:clean": "rm -rf tsconfig.build.tsbuildinfo && rm -rf ./dist",
27
- "eslint:check": "npx eslint src --ext ts,js",
27
+ "eslint:check": "npx eslint src/ --ext .ts,.js",
28
28
  "eslint:fix": "npx eslint src --ext ts,js --fix",
29
29
  "lint": "tsc && npm run prettier:fix",
30
30
  "prettier:fix": "npx prettier src dl-common __tests__ --write ./**/*.{ts,js,json,yml,md}",
@@ -32,15 +32,22 @@
32
32
  "format:check": "prettier \"./**\" --ignore-unknown --check",
33
33
  "prepare": "husky install",
34
34
  "publishp": "yarn lint && yarn build",
35
+ "eslint:cachefix":"eslint --fix",
35
36
  "testc": "jest --testPathIgnorePatterns '.db.test.ts$' --coverage",
36
37
  "testdb": "jest --testMatch **/*.db.test.ts --runInBand",
37
38
  "testdbc": "jest --testMatch **/*.db.test.ts --runInBand --coverage",
38
39
  "test": "jest --testPathIgnorePatterns '.db.test.ts$'"
39
40
  },
41
+ "lint-staged": {
42
+ "*.{ts,js}": "eslint --cache --fix",
43
+ "*.{ts,js,css,md}": "prettier --write",
44
+ "*.js": "eslint --cache --fix",
45
+ "*.{js,css,md}": "prettier --write"
46
+ },
40
47
  "dependencies": {
41
48
  "@aws-sdk/client-eventbridge": "^3.449.0",
42
49
  "@aws-sdk/client-kms": "^3.454.0",
43
- "@aws-sdk/client-s3": "^3.465.0",
50
+ "@aws-sdk/client-s3": "^3.550.0",
44
51
  "@aws-sdk/client-secrets-manager": "^3.433.0",
45
52
  "@aws-sdk/client-sqs": "^3.421.0",
46
53
  "@aws-sdk/smithy-client": "^3.329.0",
@@ -65,6 +72,8 @@
65
72
  "@babel/preset-typescript": "^7.23.3",
66
73
  "@commitlint/cli": "^16.2.3",
67
74
  "@commitlint/config-conventional": "^16.2.1",
75
+ "@eslint/eslintrc": "^3.0.2",
76
+ "@eslint/js": "^9.0.0",
68
77
  "@jest/globals": "^29.7.0",
69
78
  "@types/aws-lambda": "^8.10.108",
70
79
  "@types/bn.js": "^5.1.5",
@@ -80,17 +89,18 @@
80
89
  "csv-parse": "^5.5.2",
81
90
  "esbuild": "^0.19.3",
82
91
  "eslint": "^8.0.1",
83
- "eslint-config-prettier": "8.3.0",
84
- "eslint-config-standard-with-typescript": "^39.1.0",
92
+ "eslint-config-prettier": "^9.1.0",
93
+ "eslint-config-standard-with-typescript": "^43.0.1",
85
94
  "eslint-plugin-import": "^2.25.2",
86
95
  "eslint-plugin-jsdoc": "^48.2.3",
87
96
  "eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
88
97
  "eslint-plugin-node": "^11.1.0",
89
98
  "eslint-plugin-promise": "^6.0.0",
90
99
  "eslint-plugin-tsdoc": "^0.2.14",
91
- "husky": "^7.0.4",
100
+ "globals": "^15.0.0",
101
+ "husky": "^8.0.0",
92
102
  "jest": "^29.7.0",
93
- "lint-staged": "^12.3.7",
103
+ "lint-staged": "^15.2.2",
94
104
  "nodemon": "^2.0.15",
95
105
  "prettier": "2.7.1",
96
106
  "serverless": "3.22.0",
@@ -103,6 +113,7 @@
103
113
  "serverless-plugin-aws-alerts": "^1.7.5",
104
114
  "ts-jest": "^29.1.1",
105
115
  "ts-node": "^10.7.0",
106
- "typescript": "*"
116
+ "typescript": "*",
117
+ "typescript-eslint": "^7.6.0"
107
118
  }
108
119
  }