@ceramicnetwork/stream-caip10-link 2.0.0-alpha.0 → 2.0.0-alpha.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/README.md +10 -2
- package/lib/caip10-link.d.ts.map +1 -1
- package/lib/caip10-link.js +18 -16
- package/lib/caip10-link.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -13
- package/lib/index.js.map +1 -1
- package/package.json +18 -14
- package/CHANGELOG.md +0 -1311
package/README.md
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
# Ceramic Account Link stream type
|
|
2
|
+

|
|
3
|
+
[](https://lbesson.mit-license.org/)
|
|
4
|
+
[](https://discord.gg/6VRZpGP)
|
|
5
|
+
[](https://twitter.com/ceramicnetwork)
|
|
2
6
|
|
|
3
7
|
> This package contains the Caip-10 Link stream implementation.
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
## Installation
|
|
6
10
|
```shell
|
|
7
11
|
npm install @ceramicnetwork/stream-caip10-link
|
|
8
12
|
```
|
|
9
13
|
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
See the [ceramic developer site](https://developers.ceramic.network/) for more details about how to use this package.
|
|
17
|
+
|
|
10
18
|
## Contributing
|
|
11
19
|
We are happy to accept small and large contributions. Make sure to check out the [Ceramic specifications](https://github.com/ceramicnetwork/specs) for details of how the protocol works.
|
|
12
20
|
|
|
13
21
|
## License
|
|
14
22
|
|
|
15
|
-
Apache-2.0 or MIT
|
|
23
|
+
Apache-2.0 or MIT
|
package/lib/caip10-link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caip10-link.d.ts","sourceRoot":"","sources":["../src/caip10-link.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,UAAU,EACV,MAAM,EAIN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,aAAa,EACd,M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,UAAe,GACpB,OAAO,CAAC,IAAI,CAAC;IAoBV,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAcnE,QAAQ,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC;WAYnE,IAAI,CACf,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,EACtC,IAAI,GAAE,QAAa,GAClB,OAAO,CAAC,UAAU,CAAC;IAiBtB,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa;IAsBvD,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS;IAQvC,YAAY;IAOZ,IAAI,UAAU,IAAI,OAAO,CAExB;CACF"}
|
package/lib/caip10-link.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6,19 +5,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
7
|
var Caip10Link_1;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const did_resolver_1 = require("did-resolver");
|
|
14
|
-
const common_2 = require("@ceramicnetwork/common");
|
|
8
|
+
import { Stream, StreamStatic, SyncOptions, } from '@ceramicnetwork/common';
|
|
9
|
+
import { StreamRef } from '@ceramicnetwork/streamid';
|
|
10
|
+
import { parse } from 'did-resolver';
|
|
11
|
+
import { normalizeAccountId } from '@ceramicnetwork/common';
|
|
15
12
|
const throwReadOnlyError = () => {
|
|
16
13
|
throw new Error('Historical stream commits cannot be modified. Load the stream without specifying a commit to make updates.');
|
|
17
14
|
};
|
|
18
|
-
const DEFAULT_CREATE_OPTS = {
|
|
15
|
+
const DEFAULT_CREATE_OPTS = {
|
|
16
|
+
anchor: false,
|
|
17
|
+
publish: true,
|
|
18
|
+
pin: true,
|
|
19
|
+
sync: SyncOptions.PREFER_CACHE,
|
|
20
|
+
};
|
|
19
21
|
const DEFAULT_UPDATE_OPTS = { anchor: true, publish: true, throwOnInvalidCommit: true };
|
|
20
|
-
const DEFAULT_LOAD_OPTS = { sync:
|
|
21
|
-
let Caip10Link = Caip10Link_1 = class Caip10Link extends
|
|
22
|
+
const DEFAULT_LOAD_OPTS = { sync: SyncOptions.PREFER_CACHE };
|
|
23
|
+
let Caip10Link = Caip10Link_1 = class Caip10Link extends Stream {
|
|
22
24
|
constructor() {
|
|
23
25
|
super(...arguments);
|
|
24
26
|
this._isReadOnly = false;
|
|
@@ -28,7 +30,7 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
28
30
|
}
|
|
29
31
|
static async fromAccount(ceramic, accountId, opts = {}) {
|
|
30
32
|
opts = { ...DEFAULT_CREATE_OPTS, ...opts };
|
|
31
|
-
const normalizedAccountId =
|
|
33
|
+
const normalizedAccountId = normalizeAccountId(accountId);
|
|
32
34
|
const genesisCommit = Caip10Link_1.makeGenesis(normalizedAccountId);
|
|
33
35
|
return Caip10Link_1.fromGenesis(ceramic, genesisCommit, opts);
|
|
34
36
|
}
|
|
@@ -39,8 +41,8 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
39
41
|
async setDid(did, authProvider, opts = {}) {
|
|
40
42
|
opts = { ...DEFAULT_UPDATE_OPTS, ...opts };
|
|
41
43
|
const didStr = typeof did == 'string' ? did.trim() : did.id;
|
|
42
|
-
const parsedDid =
|
|
43
|
-
if (
|
|
44
|
+
const parsedDid = parse(didStr);
|
|
45
|
+
if (parsedDid?.did !== didStr) {
|
|
44
46
|
throw new Error(`DID is not valid: '${didStr}'`);
|
|
45
47
|
}
|
|
46
48
|
const linkProof = await authProvider.createLink(didStr);
|
|
@@ -59,7 +61,7 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
59
61
|
}
|
|
60
62
|
static async load(ceramic, streamId, opts = {}) {
|
|
61
63
|
opts = { ...DEFAULT_LOAD_OPTS, ...opts };
|
|
62
|
-
const streamRef =
|
|
64
|
+
const streamRef = StreamRef.from(streamId);
|
|
63
65
|
if (streamRef.type != Caip10Link_1.STREAM_TYPE_ID) {
|
|
64
66
|
throw new Error(`StreamID ${streamRef.toString()} does not refer to a '${Caip10Link_1.STREAM_TYPE_NAME}' stream, but to a ${streamRef.typeName}`);
|
|
65
67
|
}
|
|
@@ -93,7 +95,7 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
93
95
|
Caip10Link.STREAM_TYPE_NAME = 'caip10-link';
|
|
94
96
|
Caip10Link.STREAM_TYPE_ID = 1;
|
|
95
97
|
Caip10Link = Caip10Link_1 = __decorate([
|
|
96
|
-
|
|
98
|
+
StreamStatic()
|
|
97
99
|
], Caip10Link);
|
|
98
|
-
|
|
100
|
+
export { Caip10Link };
|
|
99
101
|
//# sourceMappingURL=caip10-link.js.map
|
package/lib/caip10-link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caip10-link.js","sourceRoot":"","sources":["../src/caip10-link.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"caip10-link.js","sourceRoot":"","sources":["../src/caip10-link.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAGL,MAAM,EAEN,YAAY,EACZ,WAAW,GAKZ,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAAsB,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAGxE,OAAO,EAAE,KAAK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CAAA;IAChE,CAAC;IAMD,YAAY;QACV,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAAA;QACrC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAA;QAChC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAA;QAC9B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;IACzB,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;CACF,CAAA;AA5KQ,2BAAgB,GAAG,aAAa,CAAA;AAChC,yBAAc,GAAG,CAAC,CAAA;AAFd,UAAU;IADtB,YAAY,EAAiC;GACjC,UAAU,CA6KtB;SA7KY,UAAU"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './caip10-link';
|
|
1
|
+
export * from './caip10-link.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./caip10-link"), exports);
|
|
1
|
+
export * from './caip10-link.js';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceramicnetwork/stream-caip10-link",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "Ceramic AccountLink stream type",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ceramic",
|
|
@@ -10,32 +10,36 @@
|
|
|
10
10
|
"author": "Janko Simonovic <simonovic86@gmail.com>",
|
|
11
11
|
"homepage": "",
|
|
12
12
|
"license": "(Apache-2.0 OR MIT)",
|
|
13
|
-
"main": "lib/index.js",
|
|
14
|
-
"types": "lib/index.d.ts",
|
|
13
|
+
"main": "./lib/index.js",
|
|
14
|
+
"types": "./lib/index.d.ts",
|
|
15
|
+
"type": "module",
|
|
15
16
|
"directories": {
|
|
16
|
-
"lib": "lib"
|
|
17
|
+
"lib": "./lib"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"lib"
|
|
20
21
|
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./lib/index.js"
|
|
24
|
+
},
|
|
25
|
+
"sideEffects": false,
|
|
21
26
|
"scripts": {
|
|
22
27
|
"test": "exit 0",
|
|
23
|
-
"build": "
|
|
28
|
+
"build": "npx tsc --project tsconfig.json",
|
|
24
29
|
"prepublishOnly": "npm run build",
|
|
25
30
|
"prebuild": "npm run clean",
|
|
26
|
-
"lint": "
|
|
27
|
-
"clean": "
|
|
31
|
+
"lint": "npx eslint ./src --ext .js,.jsx,.ts,.tsx",
|
|
32
|
+
"clean": "npx rimraf ./lib"
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@ceramicnetwork/common": "^2.0.0-alpha.
|
|
31
|
-
"@ceramicnetwork/streamid": "^2.0.0-alpha.
|
|
35
|
+
"@ceramicnetwork/common": "^2.0.0-alpha.3",
|
|
36
|
+
"@ceramicnetwork/streamid": "^2.0.0-alpha.3",
|
|
32
37
|
"caip": "~1.0.0",
|
|
33
|
-
"did-resolver": "^3.1.
|
|
38
|
+
"did-resolver": "^3.1.5"
|
|
34
39
|
},
|
|
35
40
|
"devDependencies": {
|
|
36
|
-
"@ceramicnetwork/blockchain-utils-linking": "^2.0.0-alpha.
|
|
37
|
-
"
|
|
38
|
-
"dids": "3.0.0-alpha.0"
|
|
41
|
+
"@ceramicnetwork/blockchain-utils-linking": "^2.0.0-alpha.3",
|
|
42
|
+
"dids": "^3.0.0-alpha.9"
|
|
39
43
|
},
|
|
40
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d4ad7b5937a90588649f92de0190fe43bbf3a7d8"
|
|
41
45
|
}
|