jazz-run 0.7.34-neverthrow.8 → 0.7.35-guest-auth.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +43 -0
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +9 -9
package/.turbo/turbo-build.log
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
|
-
> jazz-run@0.7.
|
2
|
+
> jazz-run@0.7.35-unique.2 build /Users/anselm/jazz/jazz/packages/jazz-run
|
3
3
|
> npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist
|
4
4
|
|
5
5
|
|
6
|
-
> jazz-run@0.7.
|
6
|
+
> jazz-run@0.7.35-unique.2 lint
|
7
7
|
> eslint . --ext ts,tsx
|
8
8
|
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,48 @@
|
|
1
1
|
# jazz-autosub
|
2
2
|
|
3
|
+
## 0.7.35-guest-auth.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies
|
8
|
+
- jazz-tools@0.7.35-guest-auth.3
|
9
|
+
|
10
|
+
## 0.7.35-unique.2
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- Updated dependencies
|
15
|
+
- jazz-tools@0.7.35-unique.2
|
16
|
+
- cojson@0.7.35-unique.2
|
17
|
+
- cojson-transport-ws@0.7.35-unique.2
|
18
|
+
|
19
|
+
## 0.7.35-new-auth.0
|
20
|
+
|
21
|
+
### Patch Changes
|
22
|
+
|
23
|
+
- Updated dependencies
|
24
|
+
- jazz-tools@0.7.35-new-auth.0
|
25
|
+
|
26
|
+
## 0.7.34
|
27
|
+
|
28
|
+
### Patch Changes
|
29
|
+
|
30
|
+
- 1232c02: Hack to make jazz-run account create work
|
31
|
+
- 2c3a40c: Use fork of queueable
|
32
|
+
- 0d8175b: Fix deps even more
|
33
|
+
- 032f69f: Fix peer deps
|
34
|
+
- 4e16575: Use queueable fork
|
35
|
+
- Updated dependencies [5d91f9f]
|
36
|
+
- Updated dependencies [5094e6d]
|
37
|
+
- Updated dependencies [b09589b]
|
38
|
+
- Updated dependencies [2c3a40c]
|
39
|
+
- Updated dependencies [406ab9b]
|
40
|
+
- Updated dependencies [4e16575]
|
41
|
+
- Updated dependencies [ea882ab]
|
42
|
+
- cojson@0.7.34
|
43
|
+
- cojson-transport-ws@0.7.34
|
44
|
+
- jazz-tools@0.7.34
|
45
|
+
|
3
46
|
## 0.7.34-neverthrow.8
|
4
47
|
|
5
48
|
### Patch Changes
|
package/dist/index.js
CHANGED
@@ -4,7 +4,8 @@ import { NodeContext, NodeRuntime } from "@effect/platform-node";
|
|
4
4
|
import { Console, Effect } from "effect";
|
5
5
|
import { createWebSocketPeer } from "cojson-transport-ws";
|
6
6
|
import { WebSocket } from "ws";
|
7
|
-
import { Account, WasmCrypto,
|
7
|
+
import { Account, WasmCrypto, createJazzContext, isControlledAccount, } from "jazz-tools";
|
8
|
+
import { fixedCredentialsAuth, randomSessionProvider } from "jazz-tools/src/internal";
|
8
9
|
const jazzTools = Command.make("jazz-tools");
|
9
10
|
const name = Options.text("name").pipe(Options.withAlias("n"));
|
10
11
|
const peer = Options.text("peer")
|
@@ -35,12 +36,14 @@ const accountCreate = Command.make("create", { name, peer }, ({ name, peer: peer
|
|
35
36
|
websocket: new WebSocket(peerAddr),
|
36
37
|
role: "server",
|
37
38
|
});
|
38
|
-
yield* Effect.promise(async () =>
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
yield* Effect.promise(async () => createJazzContext({
|
40
|
+
auth: fixedCredentialsAuth({
|
41
|
+
accountID: account.id,
|
42
|
+
secret: account._raw.agentSecret,
|
43
|
+
}),
|
44
|
+
sessionProvider: randomSessionProvider,
|
42
45
|
peersToLoadFrom: [peer2],
|
43
|
-
crypto
|
46
|
+
crypto
|
44
47
|
}));
|
45
48
|
yield* Console.log(`# Credentials for Jazz account "${name}":
|
46
49
|
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,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,OAAO,EACH,OAAO,EACP,UAAU,EACV,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,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,OAAO,EACH,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,mBAAmB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEtF,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAE7C,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;KAC5B,IAAI,CAAC,O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CAAC,CAAC;AAEH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CACxC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,EACjC,WAAW,CAAC,OAAO,CACtB,CAAC"}
|
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.7.
|
6
|
+
"version": "0.7.35-guest-auth.3",
|
7
7
|
"dependencies": {
|
8
8
|
"effect": "^3.6.5",
|
9
9
|
"@effect/cli": "^0.41.2",
|
@@ -13,9 +13,9 @@
|
|
13
13
|
"@effect/printer-ansi": "^0.34.5",
|
14
14
|
"@effect/typeclass": "^0.25.5",
|
15
15
|
"ws": "^8.14.2",
|
16
|
-
"cojson": "0.7.
|
17
|
-
"cojson-transport-ws": "0.7.
|
18
|
-
"jazz-tools": "0.7.
|
16
|
+
"cojson": "0.7.35-unique.2",
|
17
|
+
"cojson-transport-ws": "0.7.35-unique.2",
|
18
|
+
"jazz-tools": "0.7.35-guest-auth.3"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@types/ws": "^8.5.5",
|
package/src/index.ts
CHANGED
@@ -7,10 +7,10 @@ import { WebSocket } from "ws";
|
|
7
7
|
import {
|
8
8
|
Account,
|
9
9
|
WasmCrypto,
|
10
|
-
|
10
|
+
createJazzContext,
|
11
11
|
isControlledAccount,
|
12
12
|
} from "jazz-tools";
|
13
|
-
import
|
13
|
+
import { fixedCredentialsAuth, randomSessionProvider } from "jazz-tools/src/internal";
|
14
14
|
|
15
15
|
const jazzTools = Command.make("jazz-tools");
|
16
16
|
|
@@ -63,14 +63,14 @@ const accountCreate = Command.make(
|
|
63
63
|
});
|
64
64
|
|
65
65
|
yield* Effect.promise(async () =>
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
66
|
+
createJazzContext({
|
67
|
+
auth: fixedCredentialsAuth({
|
68
|
+
accountID: account.id,
|
69
|
+
secret: account._raw.agentSecret,
|
70
|
+
}),
|
71
|
+
sessionProvider: randomSessionProvider,
|
72
72
|
peersToLoadFrom: [peer2],
|
73
|
-
crypto
|
73
|
+
crypto
|
74
74
|
}),
|
75
75
|
);
|
76
76
|
|