@automerge/automerge-repo-svelte-store 1.1.5 → 1.1.8
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/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +5 -8
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
* Originally written by Dylan MacKenzie ([@ecstatic-morse](https://github.com/ecstatic-morse)).
|
|
56
56
|
* * @packageDocumentation
|
|
57
57
|
**/
|
|
58
|
+
/// <reference types="svelte" />
|
|
58
59
|
import type { ChangeFn, Doc } from "@automerge/automerge/next";
|
|
59
60
|
import { AutomergeUrl, Repo } from "@automerge/automerge-repo";
|
|
60
61
|
export declare function getContextRepo(): Repo;
|
|
@@ -68,7 +69,7 @@ export declare function setContextRepo(repo: Repo): void;
|
|
|
68
69
|
* @returns A Svelte store for the Automerge document.
|
|
69
70
|
*/
|
|
70
71
|
export declare function document<T>(documentId: AutomergeUrl, repo?: Repo): {
|
|
71
|
-
subscribe: (this: void, run: import("svelte/store").Subscriber<Doc<T>>, invalidate?: (
|
|
72
|
+
subscribe: (this: void, run: import("svelte/store").Subscriber<Doc<T>>, invalidate?: import("svelte/store").Invalidator<Doc<T>> | undefined) => import("svelte/store").Unsubscriber;
|
|
72
73
|
change: (fn: ChangeFn<T>) => void;
|
|
73
74
|
};
|
|
74
75
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwDI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwDI;;AAEJ,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EACL,YAAY,EAEZ,IAAI,EACL,MAAM,2BAA2B,CAAA;AAMlC,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,QAExC;AAED;;;;;;;GAOG;AAEH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,IAAI;;iBAWhD,SAAS,CAAC,CAAC;EAI3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automerge/automerge-repo-svelte-store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "A Svelte store containing your automerge documentsj",
|
|
5
5
|
"repository": "https://github.com/automerge/automerge-repo/tree/master/packages/automerge-repo-svelte-store",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"watch": "npm-watch build"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@automerge/automerge": "^2.1.
|
|
15
|
-
"svelte": "^3.0.0"
|
|
14
|
+
"@automerge/automerge": "^2.1.13",
|
|
15
|
+
"svelte": "^3.0.0 || ^4.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@automerge/automerge-repo": "1.1.
|
|
18
|
+
"@automerge/automerge-repo": "1.1.8"
|
|
19
19
|
},
|
|
20
20
|
"watch": {
|
|
21
21
|
"build": {
|
|
@@ -28,8 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"
|
|
32
|
-
"svelte": "^3.0.0"
|
|
33
|
-
},
|
|
34
|
-
"gitHead": "64edfaea5e53e77cd9158fc1df52fea85801db71"
|
|
31
|
+
"gitHead": "fa2e5c0309458f244a81e49501dc882c5074f8ad"
|
|
35
32
|
}
|