@signaldb/sjs 2.0.0-beta.2 → 2.0.0-beta.20
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
|
|
2
|
-
import { createReactivityAdapter as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import e from "s-js";
|
|
2
|
+
import { createReactivityAdapter as t } from "@signaldb/core";
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
var n = t({
|
|
5
|
+
create: () => {
|
|
6
|
+
let t = e.data(!0);
|
|
7
|
+
return {
|
|
8
|
+
depend: () => {
|
|
9
|
+
t();
|
|
10
|
+
},
|
|
11
|
+
notify: () => {
|
|
12
|
+
t(!0);
|
|
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 { n 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 S from 's-js'
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import S from 's-js'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst sReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = S.data(true)\n return {\n depend: () => {\n dep()\n },\n notify: () => {\n dep(true)\n },\n }\n },\n isInScope: undefined,\n onDispose: (callback) => {\n S.cleanup(callback)\n },\n})\n\nexport default sReactivityAdapter\n"],"mappings":";;;AAGA,IAAM,IAAqB,EAAwB;CACjD,cAAc;EACZ,IAAM,IAAM,EAAE,KAAK,EAAI;EACvB,OAAO;GACL,cAAc;IACZ,EAAI;GACN;GACA,cAAc;IACZ,EAAI,EAAI;GACV;EACF;CACF;CACA,WAAW,KAAA;CACX,YAAY,MAAa;EACvB,EAAE,QAAQ,CAAQ;CACpB;AACF,CAAC"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,t){typeof exports
|
|
2
|
-
//# sourceMappingURL=index.umd.js.map
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require("s-js"),require("@signaldb/core")):typeof define==`function`&&define.amd?define([`s-js`,`@signaldb/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.SignalDB=t(e.s_js,e._signaldb_core))})(this,function(e,t){var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e};return e=((e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)))(e),(0,t.createReactivityAdapter)({create:()=>{let t=e.default.data(!0);return{depend:()=>{t()},notify:()=>{t(!0)}}},isInScope:void 0,onDispose:t=>{e.default.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 S from 's-js'
|
|
1
|
+
{"version":3,"file":"index.umd.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import S from 's-js'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst sReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = S.data(true)\n return {\n depend: () => {\n dep()\n },\n notify: () => {\n dep(true)\n },\n }\n },\n isInScope: undefined,\n onDispose: (callback) => {\n S.cleanup(callback)\n },\n})\n\nexport default sReactivityAdapter\n"],"mappings":"oxBAGM,EAAA,EAAA,yBAA6C,CACjD,WAAc,CACZ,IAAM,EAAM,EAAA,QAAE,KAAK,EAAI,EACvB,MAAO,CACL,WAAc,CACZ,EAAI,CACN,EACA,WAAc,CACZ,EAAI,EAAI,CACV,CACF,CACF,EACA,UAAW,IAAA,GACX,UAAY,GAAa,CACvB,EAAA,QAAE,QAAQ,CAAQ,CACpB,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaldb/sjs",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.20",
|
|
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
|
"s-js": "0.x.x"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"s-js": "^0.4.9"
|
|
57
60
|
}
|
|
58
61
|
}
|