@marginfront/sdk 0.1.1 → 0.1.2

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/dist/cli/index.js CHANGED
@@ -1397,12 +1397,78 @@ function trackEventCommand() {
1397
1397
  });
1398
1398
  }
1399
1399
 
1400
+ // package.json
1401
+ var package_default = {
1402
+ name: "@marginfront/sdk",
1403
+ version: "0.1.2",
1404
+ description: "Official Node.js SDK for MarginFront - usage-based billing, invoicing, and analytics",
1405
+ main: "dist/index.js",
1406
+ module: "dist/index.mjs",
1407
+ types: "dist/index.d.ts",
1408
+ exports: {
1409
+ ".": {
1410
+ types: "./dist/index.d.ts",
1411
+ import: "./dist/index.mjs",
1412
+ require: "./dist/index.js"
1413
+ }
1414
+ },
1415
+ bin: {
1416
+ mf: "dist/cli/index.js"
1417
+ },
1418
+ files: [
1419
+ "dist"
1420
+ ],
1421
+ scripts: {
1422
+ build: "tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean",
1423
+ test: "vitest",
1424
+ lint: "eslint src/",
1425
+ prepublishOnly: "npm run build"
1426
+ },
1427
+ keywords: [
1428
+ "marginfront",
1429
+ "billing",
1430
+ "usage-based",
1431
+ "invoicing",
1432
+ "sdk",
1433
+ "api",
1434
+ "metering",
1435
+ "subscriptions"
1436
+ ],
1437
+ author: "MarginFront",
1438
+ license: "MIT",
1439
+ repository: {
1440
+ type: "git",
1441
+ url: "https://github.com/Lowcountry-AI/platform",
1442
+ directory: "packages/sdk"
1443
+ },
1444
+ homepage: "https://marginfront.com",
1445
+ bugs: {
1446
+ url: "https://github.com/Lowcountry-AI/platform/issues"
1447
+ },
1448
+ engines: {
1449
+ node: ">=16.0.0"
1450
+ },
1451
+ dependencies: {
1452
+ axios: "^1.6.0",
1453
+ commander: "^12.0.0"
1454
+ },
1455
+ devDependencies: {
1456
+ "@types/node": "^20.0.0",
1457
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
1458
+ "@typescript-eslint/parser": "^6.21.0",
1459
+ eslint: "^8.57.1",
1460
+ tsup: "^8.0.0",
1461
+ typescript: "^5.3.0",
1462
+ vitest: "^1.0.0"
1463
+ }
1464
+ };
1465
+
1400
1466
  // src/cli/index.ts
1401
1467
  var WARNING = `
1402
1468
  \x1B[33m\u26A0\uFE0F CLI mode \u2014 for testing only.\x1B[0m
1403
1469
  \x1B[33m .env.marginfront.cli is NOT used when the SDK is imported as a library.\x1B[0m
1404
1470
  `;
1405
- var program = new import_commander3.Command().name("mf").description("MarginFront SDK CLI (testing tool)").version("0.0.1").hook("preAction", () => {
1471
+ var program = new import_commander3.Command().name("mf").description("MarginFront SDK CLI (testing tool)").version(package_default.version).hook("preAction", () => {
1406
1472
  console.log(WARNING);
1407
1473
  });
1408
1474
  program.addCommand(verifyCommand());
@@ -115,12 +115,78 @@ function trackEventCommand() {
115
115
  });
116
116
  }
117
117
 
118
+ // package.json
119
+ var package_default = {
120
+ name: "@marginfront/sdk",
121
+ version: "0.1.2",
122
+ description: "Official Node.js SDK for MarginFront - usage-based billing, invoicing, and analytics",
123
+ main: "dist/index.js",
124
+ module: "dist/index.mjs",
125
+ types: "dist/index.d.ts",
126
+ exports: {
127
+ ".": {
128
+ types: "./dist/index.d.ts",
129
+ import: "./dist/index.mjs",
130
+ require: "./dist/index.js"
131
+ }
132
+ },
133
+ bin: {
134
+ mf: "dist/cli/index.js"
135
+ },
136
+ files: [
137
+ "dist"
138
+ ],
139
+ scripts: {
140
+ build: "tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean",
141
+ test: "vitest",
142
+ lint: "eslint src/",
143
+ prepublishOnly: "npm run build"
144
+ },
145
+ keywords: [
146
+ "marginfront",
147
+ "billing",
148
+ "usage-based",
149
+ "invoicing",
150
+ "sdk",
151
+ "api",
152
+ "metering",
153
+ "subscriptions"
154
+ ],
155
+ author: "MarginFront",
156
+ license: "MIT",
157
+ repository: {
158
+ type: "git",
159
+ url: "https://github.com/Lowcountry-AI/platform",
160
+ directory: "packages/sdk"
161
+ },
162
+ homepage: "https://marginfront.com",
163
+ bugs: {
164
+ url: "https://github.com/Lowcountry-AI/platform/issues"
165
+ },
166
+ engines: {
167
+ node: ">=16.0.0"
168
+ },
169
+ dependencies: {
170
+ axios: "^1.6.0",
171
+ commander: "^12.0.0"
172
+ },
173
+ devDependencies: {
174
+ "@types/node": "^20.0.0",
175
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
176
+ "@typescript-eslint/parser": "^6.21.0",
177
+ eslint: "^8.57.1",
178
+ tsup: "^8.0.0",
179
+ typescript: "^5.3.0",
180
+ vitest: "^1.0.0"
181
+ }
182
+ };
183
+
118
184
  // src/cli/index.ts
119
185
  var WARNING = `
120
186
  \x1B[33m\u26A0\uFE0F CLI mode \u2014 for testing only.\x1B[0m
121
187
  \x1B[33m .env.marginfront.cli is NOT used when the SDK is imported as a library.\x1B[0m
122
188
  `;
123
- var program = new Command3().name("mf").description("MarginFront SDK CLI (testing tool)").version("0.0.1").hook("preAction", () => {
189
+ var program = new Command3().name("mf").description("MarginFront SDK CLI (testing tool)").version(package_default.version).hook("preAction", () => {
124
190
  console.log(WARNING);
125
191
  });
126
192
  program.addCommand(verifyCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marginfront/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Official Node.js SDK for MarginFront - usage-based billing, invoicing, and analytics",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",