jazz-run 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +3 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
@@ -6,7 +6,8 @@ import { Console, Effect } from "effect";
|
|
6
6
|
import { createWebSocketPeer } from "cojson-transport-ws";
|
7
7
|
import { WebSocket } from "ws";
|
8
8
|
import { Account, WasmCrypto, createJazzContext, isControlledAccount, } from "jazz-tools";
|
9
|
-
import { fixedCredentialsAuth
|
9
|
+
import { fixedCredentialsAuth } from "jazz-tools";
|
10
|
+
import { randomSessionProvider } from "jazz-tools/src/internal.js";
|
10
11
|
import { startSync } from "./startSync.js";
|
11
12
|
const jazzTools = Command.make("jazz-tools");
|
12
13
|
const name = Options.text("name").pipe(Options.withAlias("n"));
|
@@ -45,7 +46,7 @@ const accountCreate = Command.make("create", { name, peer }, ({ name, peer: peer
|
|
45
46
|
}),
|
46
47
|
sessionProvider: randomSessionProvider,
|
47
48
|
peersToLoadFrom: [peer2],
|
48
|
-
crypto
|
49
|
+
crypto,
|
49
50
|
}));
|
50
51
|
yield* Console.log(`# Credentials for Jazz account "${name}":
|
51
52
|
JAZZ_WORKER_ACCOUNT=${account.id}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/B,O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"}
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"bin": "./dist/index.js",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
|
-
"version": "0.8.
|
6
|
+
"version": "0.8.3",
|
7
7
|
"dependencies": {
|
8
8
|
"@effect/cli": "^0.41.2",
|
9
9
|
"@effect/platform-node": "^0.57.2",
|
@@ -11,11 +11,11 @@
|
|
11
11
|
"@effect/printer-ansi": "^0.34.5",
|
12
12
|
"@effect/schema": "^0.71.1",
|
13
13
|
"@effect/typeclass": "^0.25.5",
|
14
|
-
"cojson": "0.8.
|
15
|
-
"cojson-storage-sqlite": "0.8.
|
16
|
-
"cojson-transport-ws": "0.8.
|
14
|
+
"cojson": "0.8.3",
|
15
|
+
"cojson-storage-sqlite": "0.8.3",
|
16
|
+
"cojson-transport-ws": "0.8.3",
|
17
17
|
"effect": "^3.6.5",
|
18
|
-
"jazz-tools": "0.8.
|
18
|
+
"jazz-tools": "0.8.3",
|
19
19
|
"ws": "^8.14.2"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
package/src/index.ts
CHANGED
@@ -11,7 +11,8 @@ import {
|
|
11
11
|
createJazzContext,
|
12
12
|
isControlledAccount,
|
13
13
|
} from "jazz-tools";
|
14
|
-
import { fixedCredentialsAuth
|
14
|
+
import { fixedCredentialsAuth } from "jazz-tools";
|
15
|
+
import { randomSessionProvider } from "jazz-tools/src/internal.js";
|
15
16
|
import { startSync } from "./startSync.js";
|
16
17
|
|
17
18
|
const jazzTools = Command.make("jazz-tools");
|
@@ -72,7 +73,7 @@ const accountCreate = Command.make(
|
|
72
73
|
}),
|
73
74
|
sessionProvider: randomSessionProvider,
|
74
75
|
peersToLoadFrom: [peer2],
|
75
|
-
crypto
|
76
|
+
crypto,
|
76
77
|
}),
|
77
78
|
);
|
78
79
|
|