@signaldb/sinuous 2.0.0-beta.2 → 2.0.0-beta.21
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 +23 -22
- 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 +4 -1
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { api as
|
|
2
|
-
import { createReactivityAdapter as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { api as e, observable as t } from "sinuous";
|
|
2
|
+
import { createReactivityAdapter as n } from "@signaldb/core";
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
var r = n({
|
|
5
|
+
create: () => {
|
|
6
|
+
let n = t(0);
|
|
7
|
+
return {
|
|
8
|
+
depend: () => {
|
|
9
|
+
n();
|
|
10
|
+
},
|
|
11
|
+
notify: () => {
|
|
12
|
+
n(e.sample(() => n()) + 1);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
isInScope: void 0,
|
|
17
|
+
onDispose: (t) => {
|
|
18
|
+
e.cleanup(t);
|
|
19
|
+
}
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=index.mjs.map
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { observable, api } from 'sinuous'
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { observable, api } from 'sinuous'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst sinuousReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = observable(0)\n return {\n depend: () => {\n dep()\n },\n notify: () => {\n dep(api.sample(() => dep()) + 1)\n },\n }\n },\n isInScope: undefined,\n onDispose: (callback) => {\n api.cleanup(callback)\n },\n})\n\nexport default sinuousReactivityAdapter\n"],"mappings":";;;AAGA,IAAM,IAA2B,EAAwB;CACvD,cAAc;EACZ,IAAM,IAAM,EAAW,CAAC;EACxB,OAAO;GACL,cAAc;IACZ,EAAI;GACN;GACA,cAAc;IACZ,EAAI,EAAI,aAAa,EAAI,CAAC,IAAI,CAAC;GACjC;EACF;CACF;CACA,WAAW,KAAA;CACX,YAAY,MAAa;EACvB,EAAI,QAAQ,CAAQ;CACtB;AACF,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("sinuous"),require("@signaldb/core")):typeof define==`function`&&define.amd?define([`sinuous`,`@signaldb/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.SignalDB=t(e.sinuous,e._signaldb_core))})(this,function(e,t){return(0,t.createReactivityAdapter)({create:()=>{let t=(0,e.observable)(0);return{depend:()=>{t()},notify:()=>{t(e.api.sample(()=>t())+1)}}},isInScope:void 0,onDispose:t=>{e.api.cleanup(t)}})});
|
|
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 { observable, api } from 'sinuous'
|
|
1
|
+
{"version":3,"file":"index.umd.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { observable, api } from 'sinuous'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst sinuousReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = observable(0)\n return {\n depend: () => {\n dep()\n },\n notify: () => {\n dep(api.sample(() => dep()) + 1)\n },\n }\n },\n isInScope: undefined,\n onDispose: (callback) => {\n api.cleanup(callback)\n },\n})\n\nexport default sinuousReactivityAdapter\n"],"mappings":"yTAGM,EAAA,EAAA,yBAAmD,CACvD,WAAc,CACZ,IAAM,GAAA,EAAA,EAAA,YAAiB,CAAC,EACxB,MAAO,CACL,WAAc,CACZ,EAAI,CACN,EACA,WAAc,CACZ,EAAI,EAAA,IAAI,WAAa,EAAI,CAAC,EAAI,CAAC,CACjC,CACF,CACF,EACA,UAAW,IAAA,GACX,UAAY,GAAa,CACvB,EAAA,IAAI,QAAQ,CAAQ,CACtB,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaldb/sinuous",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rimraf dist && vite build",
|
|
@@ -54,5 +54,8 @@
|
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@signaldb/core": "1.x || ^2.0.0-0",
|
|
56
56
|
"sinuous": "0.x.x"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"sinuous": "^0.32.1"
|
|
57
60
|
}
|
|
58
61
|
}
|