@signaldb/preact 2.0.0-beta.6 → 2.0.0-beta.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 +1 -1
- package/dist/index.mjs +21 -20
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { signal as
|
|
2
|
-
import { createReactivityAdapter as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { signal as e } from "@preact/signals-core";
|
|
2
|
+
import { createReactivityAdapter as t } from "@signaldb/core";
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
var n = t({
|
|
5
|
+
create: () => {
|
|
6
|
+
let t = e(0);
|
|
7
|
+
return {
|
|
8
|
+
depend: () => {
|
|
9
|
+
t.value;
|
|
10
|
+
},
|
|
11
|
+
notify: () => {
|
|
12
|
+
t.value = t.peek() + 1;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
isInScope: void 0,
|
|
17
|
+
onDispose: void 0
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=index.mjs.map
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as default };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { signal } from '@preact/signals-core'
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { signal } from '@preact/signals-core'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst preactReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = signal(0)\n return {\n depend: () => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n dep.value\n },\n notify: () => {\n dep.value = dep.peek() + 1\n },\n }\n },\n isInScope: undefined,\n onDispose: undefined,\n})\n\nexport default preactReactivityAdapter\n"],"mappings":";;;AAGA,IAAM,IAA0B,EAAwB;CACtD,cAAc;EACZ,IAAM,IAAM,EAAO,CAAC;EACpB,OAAO;GACL,cAAc;IAEZ,EAAI;GACN;GACA,cAAc;IACZ,EAAI,QAAQ,EAAI,KAAK,IAAI;GAC3B;EACF;CACF;CACA,WAAW,KAAA;CACX,WAAW,KAAA;AACb,CAAC"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,
|
|
2
|
-
//# sourceMappingURL=index.umd.js.map
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require("@preact/signals-core"),require("@signaldb/core")):typeof define==`function`&&define.amd?define([`@preact/signals-core`,`@signaldb/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.SignalDB=t(e._preact_signals_core,e._signaldb_core))})(this,function(e,t){return(0,t.createReactivityAdapter)({create:()=>{let t=(0,e.signal)(0);return{depend:()=>{t.value},notify:()=>{t.value=t.peek()+1}}},isInScope:void 0,onDispose:void 0})});
|
|
2
|
+
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { signal } from '@preact/signals-core'
|
|
1
|
+
{"version":3,"file":"index.umd.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { signal } from '@preact/signals-core'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst preactReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = signal(0)\n return {\n depend: () => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n dep.value\n },\n notify: () => {\n dep.value = dep.peek() + 1\n },\n }\n },\n isInScope: undefined,\n onDispose: undefined,\n})\n\nexport default preactReactivityAdapter\n"],"mappings":"gWAGM,EAAA,EAAA,yBAAkD,CACtD,WAAc,CACZ,IAAM,GAAA,EAAA,EAAA,QAAa,CAAC,EACpB,MAAO,CACL,WAAc,CAEZ,EAAI,KACN,EACA,WAAc,CACZ,EAAI,MAAQ,EAAI,KAAK,EAAI,CAC3B,CACF,CACF,EACA,UAAW,IAAA,GACX,UAAW,IAAA,EACb"}
|