infra-cost 0.2.4 → 0.3.1

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,7 +1,24 @@
1
1
  {
2
2
  "name": "infra-cost",
3
- "version": "0.2.4",
3
+ "version": "0.3.1",
4
4
  "description": "Multi-cloud FinOps CLI tool for comprehensive cost analysis and infrastructure optimization across AWS, GCP, Azure, Alibaba Cloud, and Oracle Cloud",
5
+ "keywords": [
6
+ "aws",
7
+ "gcp",
8
+ "azure",
9
+ "cloud-cost",
10
+ "finops",
11
+ "cost-optimization",
12
+ "multi-cloud",
13
+ "cost-analysis",
14
+ "infrastructure",
15
+ "cloud-billing",
16
+ "cost-management",
17
+ "devops",
18
+ "cli-tool",
19
+ "cost-monitoring",
20
+ "budget-tracking"
21
+ ],
5
22
  "author": {
6
23
  "name": "Code Collab",
7
24
  "email": "codecollab.co@gmail.com",
@@ -17,125 +34,100 @@
17
34
  "infra-cost": "./bin/index.js",
18
35
  "aws-cost": "./bin/index.js"
19
36
  },
37
+ "main": "./dist/index.js",
20
38
  "scripts": {
21
- "build": "tsup",
22
- "dev": "tsup --watch",
23
39
  "prebuild": "run-s clean",
24
- "predev": "run-s clean",
40
+ "build": "tsup",
25
41
  "clean": "rm -rf dist",
26
42
  "typecheck": "tsc --noEmit",
27
- "test": "echo \"Error: no test specified\" && exit 1",
28
- "version:check": "node scripts/version-manager.js check",
29
- "version:next": "node scripts/version-manager.js next",
30
- "version:bump:patch": "node scripts/version-manager.js bump patch",
31
- "version:bump:minor": "node scripts/version-manager.js bump minor",
32
- "version:bump:major": "node scripts/version-manager.js bump major",
33
- "version:bump:prerelease": "node scripts/version-manager.js bump prerelease",
34
- "version:set": "node scripts/version-manager.js set",
43
+ "lint": "eslint src --ext .ts",
44
+ "lint:fix": "eslint src --ext .ts --fix",
45
+ "test": "jest",
46
+ "test:watch": "jest --watch",
47
+ "test:coverage": "jest --coverage",
48
+ "dev": "tsup --watch",
49
+ "version:check": "echo \"Current version: $(npm pkg get version | tr -d '\"')\"",
50
+ "version:next": "npm version patch --no-git-tag-version",
51
+ "version:bump:patch": "npm version patch",
52
+ "version:bump:minor": "npm version minor",
53
+ "version:bump:major": "npm version major",
35
54
  "publish:dry": "npm publish --dry-run",
55
+ "publish:latest": "npm publish",
36
56
  "publish:beta": "npm publish --tag beta",
37
- "publish:latest": "npm publish --tag latest",
38
- "prepare-release": "./scripts/prepare-release.sh",
39
- "prepublishOnly": "npm run build",
40
- "postversion": "echo \"Don't forget to push the tag: git push origin v$npm_package_version\"",
41
- "postpublish": "echo \"🎉 Published $(npm pkg get name)@$(npm pkg get version) to npm!\""
57
+ "prepare-release": "npm run build && npm run test && npm run version:bump:patch",
58
+ "postpublish": "echo \"🎉 Published $(npm pkg get name)@$(npm pkg get version) to npm!\"",
59
+ "prepublishOnly": "npm run build"
42
60
  },
43
- "keywords": [
44
- "aws",
45
- "gcp",
46
- "azure",
47
- "alibaba-cloud",
48
- "oracle-cloud",
49
- "multi-cloud",
50
- "cost",
51
- "cli",
52
- "infra-cost",
53
- "cloud-cost",
54
- "cost-analysis",
55
- "typescript"
56
- ],
57
- "license": "MIT",
58
61
  "repository": {
59
62
  "type": "git",
60
63
  "url": "https://github.com/codecollab-co/infra-cost.git"
61
64
  },
62
- "engines": {
63
- "node": ">=12.0"
64
- },
65
65
  "bugs": {
66
66
  "url": "https://github.com/codecollab-co/infra-cost/issues"
67
67
  },
68
- "homepage": "https://github.com/codecollab-co/infra-cost.git#readme",
68
+ "homepage": "https://github.com/codecollab-co/infra-cost#readme",
69
+ "license": "MIT",
70
+ "engines": {
71
+ "node": ">=20.0.0",
72
+ "npm": ">=10.0.0"
73
+ },
69
74
  "dependencies": {
70
- "@aws-sdk/client-budgets": "^3.908.0",
71
- "@aws-sdk/client-cost-explorer": "^3.370.0",
72
- "@aws-sdk/client-ec2": "^3.909.0",
73
- "@aws-sdk/client-iam": "^3.370.0",
74
- "@aws-sdk/client-lambda": "^3.908.0",
75
- "@aws-sdk/client-rds": "^3.908.0",
76
- "@aws-sdk/client-s3": "^3.908.0",
77
- "@aws-sdk/client-sts": "^3.370.0",
78
- "@aws-sdk/credential-providers": "^3.370.0",
79
- "@aws-sdk/shared-ini-file-loader": "^3.370.0",
80
- "axios": "^1.12.2",
81
- "chalk": "^5.2.0",
75
+ "@aws-sdk/client-budgets": "^3.750.0",
76
+ "@aws-sdk/client-cost-explorer": "^3.750.0",
77
+ "@aws-sdk/client-ec2": "^3.750.0",
78
+ "@aws-sdk/client-elastic-load-balancing-v2": "^3.750.0",
79
+ "@aws-sdk/client-iam": "^3.750.0",
80
+ "@aws-sdk/client-lambda": "^3.750.0",
81
+ "@aws-sdk/client-rds": "^3.750.0",
82
+ "@aws-sdk/client-s3": "^3.750.0",
83
+ "@aws-sdk/client-sts": "^3.750.0",
84
+ "@aws-sdk/credential-providers": "^3.750.0",
85
+ "@slack/web-api": "^7.5.0",
86
+ "chalk": "^4.1.2",
82
87
  "cli-progress": "^3.12.0",
83
88
  "cli-table3": "^0.6.5",
84
- "commander": "^10.0.0",
85
- "dayjs": "^1.11.7",
86
- "dotenv": "^16.0.3",
89
+ "commander": "^12.1.0",
90
+ "dayjs": "^1.11.19",
87
91
  "exceljs": "^4.4.0",
88
- "express": "^5.1.0",
92
+ "express": "^5.2.1",
93
+ "fd-slicer": "^1.1.0",
94
+ "ini": "^6.0.0",
89
95
  "moment": "^2.30.1",
90
- "node-fetch": "^3.3.0",
91
- "ora": "^6.1.2",
92
- "puppeteer": "^24.24.1",
93
- "xlsx": "^0.18.5"
96
+ "node-fetch": "^2.7.0",
97
+ "ora": "^9.1.0",
98
+ "pako": "^2.1.0",
99
+ "pend": "^1.2.0",
100
+ "yauzl": "^3.0.0",
101
+ "zod": "^3.23.8"
94
102
  },
95
103
  "devDependencies": {
96
- "@types/cli-progress": "^3.11.6",
97
- "@types/express": "^5.0.3",
98
- "@types/jest": "^30.0.0",
99
- "@types/node": "^18.11.18",
100
- "@types/supertest": "^6.0.3",
101
- "jest": "^30.2.0",
104
+ "@types/jest": "^29.5.12",
105
+ "@types/node": "^22.5.4",
106
+ "@types/yauzl": "^2.10.3",
107
+ "@typescript-eslint/eslint-plugin": "^8.5.0",
108
+ "@typescript-eslint/parser": "^8.5.0",
109
+ "eslint": "^8.57.0",
110
+ "jest": "^29.7.0",
102
111
  "npm-run-all": "^4.1.5",
103
- "supertest": "^7.1.4",
104
- "ts-jest": "^29.4.5",
105
- "ts-node": "^10.9.1",
106
- "tsup": "^6.5.0",
107
- "typescript": "^4.9.4"
108
- },
109
- "peerDependencies": {
110
- "@alicloud/pop-core": "^1.7.12",
111
- "@azure/arm-costmanagement": "^1.0.0",
112
- "@azure/arm-subscriptions": "^5.1.0",
113
- "@azure/identity": "^3.1.0",
114
- "@google-cloud/billing": "^4.1.0",
115
- "@google-cloud/resource-manager": "^5.1.0",
116
- "oci-sdk": "^2.69.0"
112
+ "ts-jest": "^29.2.5",
113
+ "tsup": "^6.7.0",
114
+ "typescript": "^5.6.2"
117
115
  },
118
- "peerDependenciesMeta": {
119
- "@google-cloud/billing": {
120
- "optional": true
121
- },
122
- "@google-cloud/resource-manager": {
123
- "optional": true
124
- },
125
- "@azure/arm-costmanagement": {
126
- "optional": true
127
- },
128
- "@azure/arm-subscriptions": {
129
- "optional": true
130
- },
131
- "@azure/identity": {
132
- "optional": true
133
- },
134
- "@alicloud/pop-core": {
135
- "optional": true
136
- },
137
- "oci-sdk": {
138
- "optional": true
139
- }
116
+ "jest": {
117
+ "preset": "ts-jest",
118
+ "testEnvironment": "node",
119
+ "testMatch": [
120
+ "**/tests/**/*.test.ts"
121
+ ],
122
+ "collectCoverageFrom": [
123
+ "src/**/*.ts",
124
+ "!src/**/*.d.ts"
125
+ ],
126
+ "coverageDirectory": "coverage",
127
+ "coverageReporters": [
128
+ "text",
129
+ "lcov",
130
+ "html"
131
+ ]
140
132
  }
141
133
  }