@signaldb/sinuous 2.0.0-beta.1 → 2.0.0-beta.10

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 CHANGED
@@ -1,4 +1,4 @@
1
- declare const sinuousReactivityAdapter: import("@signaldb/core").ReactivityAdapter<{
1
+ declare const sinuousReactivityAdapter: import('@signaldb/core').ReactivityAdapter<{
2
2
  depend: () => void;
3
3
  notify: () => void;
4
4
  }>;
package/dist/index.mjs CHANGED
@@ -1,23 +1,24 @@
1
- import { api as t, observable as o } from "sinuous";
2
- import { createReactivityAdapter as a } from "@signaldb/core";
3
- const r = a({
4
- create: () => {
5
- const e = o(0);
6
- return {
7
- depend: () => {
8
- e();
9
- },
10
- notify: () => {
11
- e(t.sample(() => e()) + 1);
12
- }
13
- };
14
- },
15
- isInScope: void 0,
16
- onDispose: (e) => {
17
- t.cleanup(e);
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
- export {
21
- r as default
22
- };
23
- //# sourceMappingURL=index.mjs.map
21
+ //#endregion
22
+ export { r as default };
23
+
24
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { observable, api } from 'sinuous';\nimport { createReactivityAdapter } from '@signaldb/core';\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});\nexport default sinuousReactivityAdapter;\n"],"names":["sinuousReactivityAdapter","createReactivityAdapter","dep","observable","api","callback"],"mappings":";;AAEA,MAAMA,IAA2BC,EAAwB;AAAA,EACrD,QAAQ,MAAM;AACV,UAAMC,IAAMC,EAAW,CAAC;AACxB,WAAO;AAAA,MACH,QAAQ,MAAM;AACV,QAAAD,EAAA;AAAA,MACJ;AAAA,MACA,QAAQ,MAAM;AACV,QAAAA,EAAIE,EAAI,OAAO,MAAMF,EAAA,CAAK,IAAI,CAAC;AAAA,MACnC;AAAA,IAAA;AAAA,EAER;AAAA,EACA,WAAW;AAAA,EACX,WAAW,CAACG,MAAa;AACrB,IAAAD,EAAI,QAAQC,CAAQ;AAAA,EACxB;AACJ,CAAC;"}
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,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("sinuous"),require("@signaldb/core")):typeof define=="function"&&define.amd?define(["sinuous","@signaldb/core"],i):(e=typeof globalThis<"u"?globalThis:e||self,e.SignalDB=i(e.sinuous,e.core))})(this,(function(e,i){"use strict";return i.createReactivityAdapter({create:()=>{const n=e.observable(0);return{depend:()=>{n()},notify:()=>{n(e.api.sample(()=>n())+1)}}},isInScope:void 0,onDispose:n=>{e.api.cleanup(n)}})}));
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { observable, api } from 'sinuous';\nimport { createReactivityAdapter } from '@signaldb/core';\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});\nexport default sinuousReactivityAdapter;\n"],"names":["createReactivityAdapter","dep","observable","api","callback"],"mappings":"6TAEiCA,EAAAA,wBAAwB,CACrD,OAAQ,IAAM,CACV,MAAMC,EAAMC,EAAAA,WAAW,CAAC,EACxB,MAAO,CACH,OAAQ,IAAM,CACVD,EAAA,CACJ,EACA,OAAQ,IAAM,CACVA,EAAIE,EAAAA,IAAI,OAAO,IAAMF,EAAA,CAAK,EAAI,CAAC,CACnC,CAAA,CAER,EACA,UAAW,OACX,UAAYG,GAAa,CACrBD,EAAAA,IAAI,QAAQC,CAAQ,CACxB,CACJ,CAAC"}
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.1",
3
+ "version": "2.0.0-beta.10",
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
  }