@interncom/diplomatic 0.0.8 → 0.0.9
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.d.ts +3 -3
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { localStorageStore } from "./localStorageStore";
|
|
|
4
4
|
import DiplomaticClient from "./client";
|
|
5
5
|
import libsodiumCrypto from "./crypto";
|
|
6
6
|
import { btoh, htob } from "./shared/lib";
|
|
7
|
-
import type
|
|
8
|
-
export { useClientState, StateManager, useStateWatcher, localStorageStore, DiplomaticClient, libsodiumCrypto, btoh, htob, };
|
|
9
|
-
export type { IOp,
|
|
7
|
+
import { type IOp, Verb } from "./shared/types";
|
|
8
|
+
export { useClientState, StateManager, useStateWatcher, localStorageStore, DiplomaticClient, libsodiumCrypto, btoh, htob, Verb, };
|
|
9
|
+
export type { IOp, };
|
package/dist/index.mjs
CHANGED
|
@@ -8409,6 +8409,13 @@ var msgpack = {
|
|
|
8409
8409
|
var webClientAPI = new DiplomaticClientAPI(msgpack, crypto_default);
|
|
8410
8410
|
var api_default = webClientAPI;
|
|
8411
8411
|
|
|
8412
|
+
// ../shared/types.ts
|
|
8413
|
+
var Verb = /* @__PURE__ */ ((Verb2) => {
|
|
8414
|
+
Verb2[Verb2["DELETE"] = 0] = "DELETE";
|
|
8415
|
+
Verb2[Verb2["UPSERT"] = 1] = "UPSERT";
|
|
8416
|
+
return Verb2;
|
|
8417
|
+
})(Verb || {});
|
|
8418
|
+
|
|
8412
8419
|
// ../shared/ops.ts
|
|
8413
8420
|
function genUpsertOp(type, body, version = 0) {
|
|
8414
8421
|
return {
|
|
@@ -8603,6 +8610,7 @@ var DiplomaticClient = class {
|
|
|
8603
8610
|
export {
|
|
8604
8611
|
DiplomaticClient,
|
|
8605
8612
|
StateManager,
|
|
8613
|
+
Verb,
|
|
8606
8614
|
btoh,
|
|
8607
8615
|
htob,
|
|
8608
8616
|
crypto_default as libsodiumCrypto,
|