@powerhousedao/shared 6.0.0-dev.160 → 6.0.0-dev.162
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/clis/index.d.mts +45 -2
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +53 -1
- package/dist/clis/index.mjs.map +1 -1
- package/dist/connect/index.d.ts +4 -4
- package/dist/document-model/index.js +3 -3
- package/dist/document-model/index.js.map +1 -1
- package/package.json +1 -1
package/dist/connect/index.d.ts
CHANGED
|
@@ -301,7 +301,7 @@ declare const runtimeEnvSchema: z.ZodObject<{
|
|
|
301
301
|
PH_CONNECT_RENOWN_CHAIN_ID: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
|
|
302
302
|
}, "strip", z.ZodTypeAny, {
|
|
303
303
|
PH_CONNECT_VERSION: string;
|
|
304
|
-
PH_CONNECT_LOG_LEVEL: "
|
|
304
|
+
PH_CONNECT_LOG_LEVEL: "debug" | "info" | "warn" | "error";
|
|
305
305
|
PH_CONNECT_REQUIRES_HARD_REFRESH: boolean;
|
|
306
306
|
PH_CONNECT_WARN_OUTDATED_APP: boolean;
|
|
307
307
|
PH_CONNECT_STUDIO_MODE: boolean;
|
|
@@ -349,7 +349,7 @@ declare const runtimeEnvSchema: z.ZodObject<{
|
|
|
349
349
|
PH_CONNECT_SENTRY_DSN?: string | undefined;
|
|
350
350
|
}, {
|
|
351
351
|
PH_CONNECT_VERSION?: string | undefined;
|
|
352
|
-
PH_CONNECT_LOG_LEVEL?: "
|
|
352
|
+
PH_CONNECT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | undefined;
|
|
353
353
|
PH_CONNECT_REQUIRES_HARD_REFRESH?: boolean | "true" | "false" | undefined;
|
|
354
354
|
PH_CONNECT_WARN_OUTDATED_APP?: boolean | "true" | "false" | undefined;
|
|
355
355
|
PH_CONNECT_STUDIO_MODE?: boolean | "true" | "false" | undefined;
|
|
@@ -674,7 +674,7 @@ declare const connectEnvSchema: z.ZodObject<{
|
|
|
674
674
|
PH_CONNECT_RENOWN_CHAIN_ID: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>>;
|
|
675
675
|
}, "strip", z.ZodTypeAny, {
|
|
676
676
|
PH_CONNECT_VERSION: string;
|
|
677
|
-
PH_CONNECT_LOG_LEVEL: "
|
|
677
|
+
PH_CONNECT_LOG_LEVEL: "debug" | "info" | "warn" | "error";
|
|
678
678
|
PH_CONNECT_REQUIRES_HARD_REFRESH: boolean;
|
|
679
679
|
PH_CONNECT_WARN_OUTDATED_APP: boolean;
|
|
680
680
|
PH_CONNECT_STUDIO_MODE: boolean;
|
|
@@ -730,7 +730,7 @@ declare const connectEnvSchema: z.ZodObject<{
|
|
|
730
730
|
PH_SENTRY_PROJECT?: string | undefined;
|
|
731
731
|
}, {
|
|
732
732
|
PH_CONNECT_VERSION?: string | undefined;
|
|
733
|
-
PH_CONNECT_LOG_LEVEL?: "
|
|
733
|
+
PH_CONNECT_LOG_LEVEL?: "debug" | "info" | "warn" | "error" | undefined;
|
|
734
734
|
PH_CONNECT_REQUIRES_HARD_REFRESH?: boolean | "true" | "false" | undefined;
|
|
735
735
|
PH_CONNECT_WARN_OUTDATED_APP?: boolean | "true" | "false" | undefined;
|
|
736
736
|
PH_CONNECT_STUDIO_MODE?: boolean | "true" | "false" | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZodError, z } from "zod";
|
|
2
|
-
import
|
|
2
|
+
import { stringify } from "safe-stable-stringify";
|
|
3
3
|
import { createHash } from "sha1-uint8array";
|
|
4
4
|
import { zocker } from "zocker";
|
|
5
5
|
import JSZip from "jszip";
|
|
@@ -37,7 +37,7 @@ function buildOperationSignatureParams({ documentId, signer, action, previousSta
|
|
|
37
37
|
documentId,
|
|
38
38
|
scope,
|
|
39
39
|
type,
|
|
40
|
-
|
|
40
|
+
stringify(action.input)
|
|
41
41
|
].join("")),
|
|
42
42
|
previousStateHash
|
|
43
43
|
];
|
|
@@ -1675,7 +1675,7 @@ function baseCreateDocument(createState, initialState) {
|
|
|
1675
1675
|
};
|
|
1676
1676
|
}
|
|
1677
1677
|
function hashDocumentStateForScope(document, scope = "global") {
|
|
1678
|
-
return hashBrowser(
|
|
1678
|
+
return hashBrowser(stringify(document.state[scope] || ""));
|
|
1679
1679
|
}
|
|
1680
1680
|
function readOnly(value) {
|
|
1681
1681
|
return Object.freeze(value);
|