@zuzjs/flare 0.2.29 → 0.2.30
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/index.cjs +2 -2
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -203,6 +203,16 @@ interface AuthConfigResponse {
|
|
|
203
203
|
ssr: Record<string, any>;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
type FlareSentinel = {
|
|
207
|
+
__op: string;
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Create an increment/decrement sentinel for atomic server-side $inc.
|
|
212
|
+
* Example: `doc.update({ score: increment(1) })` or `increment(-5)` for decrement.
|
|
213
|
+
*/
|
|
214
|
+
declare function increment(value: number): FlareSentinel;
|
|
215
|
+
|
|
206
216
|
/**
|
|
207
217
|
* Initialize and connect to FlareServer
|
|
208
218
|
* Returns a singleton instance
|
|
@@ -217,4 +227,4 @@ declare const getFlare: () => FlareClient | null;
|
|
|
217
227
|
*/
|
|
218
228
|
declare const disconnectFlare: () => void;
|
|
219
229
|
|
|
220
|
-
export { type AuthConfigResponse, type CsrfProxyConfig, FlareClient, FlareConfig, FlareError, FlareErrors, FlareResponseCodes, type FlareTimestampInput, ServerTimeStamp, ServerTimeStampField, buildFlareHeaders, connectApp, createCsrfProxy, createCsrfProxyHandler, FlareClient as default, diffMs, disconnectFlare, extractCsrfFromRequest, formatLocalDateTime, getDocumentTimestamp, getFlare, timeAgo, toDate };
|
|
230
|
+
export { type AuthConfigResponse, type CsrfProxyConfig, FlareClient, FlareConfig, FlareError, FlareErrors, FlareResponseCodes, type FlareTimestampInput, ServerTimeStamp, ServerTimeStampField, buildFlareHeaders, connectApp, createCsrfProxy, createCsrfProxyHandler, FlareClient as default, diffMs, disconnectFlare, extractCsrfFromRequest, formatLocalDateTime, getDocumentTimestamp, getFlare, increment, timeAgo, toDate };
|
package/dist/index.d.ts
CHANGED
|
@@ -203,6 +203,16 @@ interface AuthConfigResponse {
|
|
|
203
203
|
ssr: Record<string, any>;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
type FlareSentinel = {
|
|
207
|
+
__op: string;
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Create an increment/decrement sentinel for atomic server-side $inc.
|
|
212
|
+
* Example: `doc.update({ score: increment(1) })` or `increment(-5)` for decrement.
|
|
213
|
+
*/
|
|
214
|
+
declare function increment(value: number): FlareSentinel;
|
|
215
|
+
|
|
206
216
|
/**
|
|
207
217
|
* Initialize and connect to FlareServer
|
|
208
218
|
* Returns a singleton instance
|
|
@@ -217,4 +227,4 @@ declare const getFlare: () => FlareClient | null;
|
|
|
217
227
|
*/
|
|
218
228
|
declare const disconnectFlare: () => void;
|
|
219
229
|
|
|
220
|
-
export { type AuthConfigResponse, type CsrfProxyConfig, FlareClient, FlareConfig, FlareError, FlareErrors, FlareResponseCodes, type FlareTimestampInput, ServerTimeStamp, ServerTimeStampField, buildFlareHeaders, connectApp, createCsrfProxy, createCsrfProxyHandler, FlareClient as default, diffMs, disconnectFlare, extractCsrfFromRequest, formatLocalDateTime, getDocumentTimestamp, getFlare, timeAgo, toDate };
|
|
230
|
+
export { type AuthConfigResponse, type CsrfProxyConfig, FlareClient, FlareConfig, FlareError, FlareErrors, FlareResponseCodes, type FlareTimestampInput, ServerTimeStamp, ServerTimeStampField, buildFlareHeaders, connectApp, createCsrfProxy, createCsrfProxyHandler, FlareClient as default, diffMs, disconnectFlare, extractCsrfFromRequest, formatLocalDateTime, getDocumentTimestamp, getFlare, increment, timeAgo, toDate };
|