@meetploy/nextjs 1.4.0 → 1.4.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/dist/dev.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +5 -5
- package/package.json +1 -1
package/dist/dev.js
CHANGED
|
@@ -125,7 +125,7 @@ function stopQueueProcessor() {
|
|
|
125
125
|
queueProcessorInterval = null;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function createDevDB(databaseId, apiUrl) {
|
|
129
129
|
return {
|
|
130
130
|
async dump() {
|
|
131
131
|
const response = await fetch(`${apiUrl}/db`, {
|
|
@@ -450,7 +450,7 @@ export async function initPloyForDev(config) {
|
|
|
450
450
|
const env = {};
|
|
451
451
|
if (bindings.db) {
|
|
452
452
|
for (const [bindingName, databaseId] of Object.entries(bindings.db)) {
|
|
453
|
-
env[bindingName] =
|
|
453
|
+
env[bindingName] = createDevDB(databaseId, apiUrl);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
if (bindings.queue) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { getPloyContext } from "./context.js";
|
|
2
2
|
export { initPloyForDev } from "./dev.js";
|
|
3
|
-
export type { PloyContext, PloyEnv, GetPloyContextOptions, PloyDevConfig, CfProperties, PloyExecutionContext,
|
|
3
|
+
export type { PloyContext, PloyEnv, GetPloyContextOptions, PloyDevConfig, CfProperties, PloyExecutionContext, Database, DBPreparedStatement, DBResult, DBResultMeta, } from "./types.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
1
|
+
import type { Database as DatabaseType, DBPreparedStatement as DBPreparedStatementType, DBResult as DBResultType, DBResultMeta as DBResultMetaType, QueueBinding as QueueBindingType, QueueSendOptions as QueueSendOptionsType, QueueSendResult as QueueSendResultType, QueueBatchMessage as QueueBatchMessageType, QueueSendBatchResult as QueueSendBatchResultType, WorkflowBinding as WorkflowBindingType, WorkflowExecution as WorkflowExecutionType, WorkflowTriggerResult as WorkflowTriggerResultType } from "@meetploy/types";
|
|
2
|
+
export type Database = DatabaseType;
|
|
3
|
+
export type DBPreparedStatement = DBPreparedStatementType;
|
|
4
|
+
export type DBResult<T = unknown> = DBResultType<T>;
|
|
5
|
+
export type DBResultMeta = DBResultMetaType;
|
|
6
6
|
export type QueueBinding = QueueBindingType;
|
|
7
7
|
export type QueueSendOptions = QueueSendOptionsType;
|
|
8
8
|
export type QueueSendResult = QueueSendResultType;
|