cojson 0.6.2 → 0.6.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.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoValueCore, newRandomSessionID, MAX_RECOMMENDED_TX_SIZE, } from "./coValueCore.js";
|
|
1
|
+
import { CoValueCore, newRandomSessionID, MAX_RECOMMENDED_TX_SIZE, idforHeader, } from "./coValueCore.js";
|
|
2
2
|
import { accountOrAgentIDfromSessionID } from "./typeUtils/accountOrAgentIDfromSessionID.js";
|
|
3
3
|
import { LocalNode } from "./localNode.js";
|
|
4
4
|
import { CoMap, MutableCoMap } from "./coValues/coMap.js";
|
|
@@ -11,7 +11,7 @@ import { rawCoIDtoBytes, rawCoIDfromBytes } from "./ids.js";
|
|
|
11
11
|
import { Group, EVERYONE } from "./coValues/group.js";
|
|
12
12
|
import { base64URLtoBytes, bytesToBase64url } from "./base64url.js";
|
|
13
13
|
import { parseJSON } from "./jsonStringify.js";
|
|
14
|
-
import { Account, Profile } from "./coValues/account.js";
|
|
14
|
+
import { Account, Profile, accountHeaderForInitialAgentSecret } from "./coValues/account.js";
|
|
15
15
|
import { expectGroup } from "./typeUtils/expectGroup.js";
|
|
16
16
|
import { isAccountID } from "./typeUtils/isAccountID.js";
|
|
17
17
|
/** @hidden */
|
|
@@ -34,6 +34,8 @@ export const cojsonInternals = {
|
|
|
34
34
|
parseJSON,
|
|
35
35
|
accountOrAgentIDfromSessionID,
|
|
36
36
|
isAccountID,
|
|
37
|
+
accountHeaderForInitialAgentSecret,
|
|
38
|
+
idforHeader
|
|
37
39
|
};
|
|
38
40
|
export { LocalNode, Group, EVERYONE, CoMap, MutableCoMap, CoList, MutableCoList, CoStream, MutableCoStream, BinaryCoStream, MutableBinaryCoStream, Account, Profile, CoValueCore, ControlledAgent, ControlledAccount, cryptoReady as cojsonReady, MAX_RECOMMENDED_TX_SIZE, };
|
|
39
41
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,kBAAkB,EAClB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EACH,QAAQ,EACR,eAAe,EACf,cAAc,EACd,qBAAqB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,oBAAoB,EACpB,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,EACf,WAAW,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACH,eAAe,EACf,iBAAiB,GACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAsBzD,cAAc;AACd,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,oBAAoB;IACpB,cAAc;IACd,UAAU;IACV,cAAc;IACd,gBAAgB;IAChB,mBAAmB;IACnB,yBAAyB;IACzB,gBAAgB;IAChB,eAAe;IACf,WAAW;IACX,gBAAgB;IAChB,gBAAgB;IAChB,SAAS;IACT,6BAA6B;IAC7B,WAAW;IACX,kCAAkC;IAClC,WAAW;CACd,CAAC;AAEF,OAAO,EACH,SAAS,EACT,KAAK,EAEL,QAAQ,EAER,KAAK,EACL,YAAY,EACZ,MAAM,EACN,aAAa,EACb,QAAQ,EACR,eAAe,EACf,cAAc,EACd,qBAAqB,EAIrB,OAAO,EAIP,OAAO,EAIP,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,WAAW,IAAI,WAAW,EAC1B,uBAAuB,GAS1B,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
CoValueCore,
|
|
3
3
|
newRandomSessionID,
|
|
4
4
|
MAX_RECOMMENDED_TX_SIZE,
|
|
5
|
+
idforHeader,
|
|
5
6
|
} from "./coValueCore.js";
|
|
6
7
|
import { accountOrAgentIDfromSessionID } from "./typeUtils/accountOrAgentIDfromSessionID.js";
|
|
7
8
|
import { LocalNode } from "./localNode.js";
|
|
@@ -36,7 +37,7 @@ import { Group, EVERYONE } from "./coValues/group.js";
|
|
|
36
37
|
import type { Everyone } from "./coValues/group.js";
|
|
37
38
|
import { base64URLtoBytes, bytesToBase64url } from "./base64url.js";
|
|
38
39
|
import { parseJSON } from "./jsonStringify.js";
|
|
39
|
-
import { Account, Profile } from "./coValues/account.js";
|
|
40
|
+
import { Account, Profile, accountHeaderForInitialAgentSecret } from "./coValues/account.js";
|
|
40
41
|
import { expectGroup } from "./typeUtils/expectGroup.js";
|
|
41
42
|
import { isAccountID } from "./typeUtils/isAccountID.js";
|
|
42
43
|
|
|
@@ -80,6 +81,8 @@ export const cojsonInternals = {
|
|
|
80
81
|
parseJSON,
|
|
81
82
|
accountOrAgentIDfromSessionID,
|
|
82
83
|
isAccountID,
|
|
84
|
+
accountHeaderForInitialAgentSecret,
|
|
85
|
+
idforHeader
|
|
83
86
|
};
|
|
84
87
|
|
|
85
88
|
export {
|