@usesocial/cli 0.18.2 → 0.18.3
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/CHANGELOG.md +6 -0
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @usesocial/cli
|
|
2
2
|
|
|
3
|
+
## 0.18.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107](https://github.com/usesocial/monorepo/pull/107) [`24bd270`](https://github.com/usesocial/monorepo/commit/24bd270d5b6b9d19814a38de565f18ccc44bb3cf) Thanks [@CyrusNuevoDia](https://github.com/CyrusNuevoDia)! - Make usage-credit settlement durable when provider requests succeed.
|
|
8
|
+
|
|
3
9
|
## 0.18.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.mjs
CHANGED
|
@@ -11283,12 +11283,19 @@ pgTable("proxy_call_logs", {
|
|
|
11283
11283
|
retryAfterSeconds: integer("retry_after_seconds"),
|
|
11284
11284
|
costBPS: integer("cost_bps").notNull().default(0),
|
|
11285
11285
|
billedBPS: integer("billed_bps").notNull().default(0),
|
|
11286
|
+
usageUnits: integer("usage_units").notNull().default(0),
|
|
11287
|
+
entityId: text$1("entity_id"),
|
|
11288
|
+
meteringLockId: text$1("metering_lock_id"),
|
|
11289
|
+
meteringLockExpiresAt: timestamptz("metering_lock_expires_at"),
|
|
11290
|
+
meteredAt: timestamptz("metered_at"),
|
|
11286
11291
|
latencyMs: integer("latency_ms").notNull(),
|
|
11287
11292
|
createdAt: timestamptz("created_at").notNull().defaultNow()
|
|
11288
11293
|
}, (table) => [
|
|
11289
11294
|
index("proxy_call_logs_user_created_idx").on(table.userId, table.createdAt.desc()),
|
|
11290
11295
|
index("proxy_call_logs_user_platform_created_idx").on(table.userId, table.platform, table.createdAt.desc()),
|
|
11291
11296
|
index("proxy_call_logs_user_billing_period_idx").on(table.userId, table.createdAt).where(sql`${table.responseStatus} >= 200 and ${table.responseStatus} < 300`),
|
|
11297
|
+
uniqueIndex("proxy_call_logs_metering_lock_id_key").on(table.meteringLockId).where(sql`${table.meteringLockId} is not null`),
|
|
11298
|
+
index("proxy_call_logs_pending_metering_idx").on(table.createdAt).where(sql`${table.meteredAt} is null and ${table.billedBPS} > 0 and ${table.usageUnits} > 0`),
|
|
11292
11299
|
check("proxy_call_logs_surface_check", sqlCheckIn(table.surface, PROXY_SURFACES)),
|
|
11293
11300
|
check("proxy_call_logs_cache_status_check", sqlCheckIn(table.cacheStatus, PROXY_CACHE_STATUSES))
|
|
11294
11301
|
]);
|
|
@@ -24272,7 +24279,7 @@ function createEnv(opts) {
|
|
|
24272
24279
|
}
|
|
24273
24280
|
//#endregion
|
|
24274
24281
|
//#region package.json
|
|
24275
|
-
var version$1 = "0.18.
|
|
24282
|
+
var version$1 = "0.18.3";
|
|
24276
24283
|
//#endregion
|
|
24277
24284
|
//#region src/lib/env.ts
|
|
24278
24285
|
const URLWithTrailingSlash = url().transform(ensureTrailingSlash);
|