@renown/sdk 0.8.0 → 0.9.0
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/package.json +6 -6
- package/src/common.ts +3 -3
- package/src/event/event.browser.ts +1 -1
- package/src/index.browser.ts +2 -2
- package/src/index.node.ts +2 -2
- package/src/init.browser.ts +4 -4
- package/src/init.node.ts +4 -4
- package/src/storage/storage.browser.ts +1 -1
- package/src/storage/storage.node.ts +1 -1
- package/src/types.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renown/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"private": false,
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"document-model": "2.
|
|
31
|
+
"document-model": "2.21.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"document-model": "2.
|
|
34
|
+
"document-model": "2.21.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
37
|
+
"build:tsc": "tsc -p tsconfig.node.json --noEmit && tsc -p tsconfig.browser.json --noEmit",
|
|
38
|
+
"build:tsc:node": "tsc -p tsconfig.node.json --noEmit",
|
|
39
|
+
"build:tsc:browser": "tsc -p tsconfig.browser.json --noEmit",
|
|
40
40
|
"build": "tsc -p tsconfig.node.json && tsc -p tsconfig.browser.json",
|
|
41
41
|
"build:browser": "tsc -p tsconfig.browser.json",
|
|
42
42
|
"build:node": "tsc -p tsconfig.node.json",
|
package/src/common.ts
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
RenownEvents,
|
|
6
6
|
RenownStorage,
|
|
7
7
|
User,
|
|
8
|
-
} from "./types";
|
|
9
|
-
import { DEFAULT_RENOWN_URL } from "./constants";
|
|
10
|
-
import { parsePkhDid } from "./utils";
|
|
8
|
+
} from "./types.js";
|
|
9
|
+
import { DEFAULT_RENOWN_URL } from "./constants.js";
|
|
10
|
+
import { parsePkhDid } from "./utils.js";
|
|
11
11
|
|
|
12
12
|
export class Renown implements IRenown {
|
|
13
13
|
#baseUrl: string;
|
package/src/index.browser.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { initRenown } from "./init.browser.js";
|
|
2
|
+
export * from "./types.js";
|
package/src/index.node.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { initRenown } from "./init.node.js";
|
|
2
|
+
export * from "./types.js";
|
package/src/init.browser.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Renown } from "./common";
|
|
2
|
-
import { RenownEvents, RenownStorageMap } from "./types";
|
|
3
|
-
import { BrowserEventEmitter } from "./event/event.browser";
|
|
4
|
-
import { BrowserStorage } from "./storage/storage.browser";
|
|
1
|
+
import { Renown } from "./common.js";
|
|
2
|
+
import { RenownEvents, RenownStorageMap } from "./types.js";
|
|
3
|
+
import { BrowserEventEmitter } from "./event/event.browser.js";
|
|
4
|
+
import { BrowserStorage } from "./storage/storage.browser.js";
|
|
5
5
|
|
|
6
6
|
export function initRenown(
|
|
7
7
|
connectId: string,
|
package/src/init.node.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Renown } from "./common";
|
|
2
|
-
import { NodeEventEmitter } from "./event/event.node";
|
|
3
|
-
import { NodeStorage } from "./storage/storage.node";
|
|
4
|
-
import { RenownEvents, RenownStorageMap } from "./types";
|
|
1
|
+
import { Renown } from "./common.js";
|
|
2
|
+
import { NodeEventEmitter } from "./event/event.node.js";
|
|
3
|
+
import { NodeStorage } from "./storage/storage.node.js";
|
|
4
|
+
import { RenownEvents, RenownStorageMap } from "./types.js";
|
|
5
5
|
|
|
6
6
|
export function initRenown(
|
|
7
7
|
connectId: string,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writeFileSync, readFileSync, existsSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import { BaseStorage } from "./common";
|
|
3
|
+
import { BaseStorage } from "./common.js";
|
|
4
4
|
|
|
5
5
|
export class NodeStorage<
|
|
6
6
|
T extends Record<string, unknown> = Record<string, unknown>,
|
package/src/types.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { User as EditorUser } from "document-model
|
|
2
|
-
import { CREDENTIAL_TYPES } from "./constants";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { User as EditorUser } from "document-model";
|
|
2
|
+
import { CREDENTIAL_TYPES } from "./constants.js";
|
|
3
|
+
import { IEventEmitter } from "./event/types.js";
|
|
4
|
+
import { IStorage } from "./storage/common.js";
|
|
5
5
|
|
|
6
6
|
export type User = EditorUser & {
|
|
7
7
|
did: string;
|