@storix-js/svelte 0.2.1 → 0.3.0

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.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(e){return e()}function u(e){const t=e();return{subscribe(r){return r(t),t.$subscribe(()=>{r(t)})}}}exports.toSvelteStore=u;exports.useStore=o;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return e()}function t(e){let t=e();return{subscribe(e){return e(t),t.$subscribe(()=>{e(t)})}}}exports.toSvelteStore=t,exports.useStore=e;
package/dist/index.js CHANGED
@@ -1,17 +1,14 @@
1
- function o(e) {
2
- return e();
1
+ //#region src/index.ts
2
+ function e(e) {
3
+ return e();
3
4
  }
4
- function n(e) {
5
- const t = e();
6
- return {
7
- subscribe(r) {
8
- return r(t), t.$subscribe(() => {
9
- r(t);
10
- });
11
- }
12
- };
5
+ function t(e) {
6
+ let t = e();
7
+ return { subscribe(e) {
8
+ return e(t), t.$subscribe(() => {
9
+ e(t);
10
+ });
11
+ } };
13
12
  }
14
- export {
15
- n as toSvelteStore,
16
- o as useStore
17
- };
13
+ //#endregion
14
+ export { t as toSvelteStore, e as useStore };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storix-js/svelte",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -19,13 +19,13 @@
19
19
  "require": "./dist/index.cjs"
20
20
  }
21
21
  },
22
+ "dependencies": {
23
+ "@storix-js/core": "0.3.0"
24
+ },
22
25
  "scripts": {
23
26
  "build": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly",
24
27
  "dev": "vite build --watch",
25
28
  "test": "vitest run --passWithNoTests",
26
29
  "typecheck": "tsc -p tsconfig.json --noEmit"
27
- },
28
- "dependencies": {
29
- "@storix-js/core": "workspace:*"
30
30
  }
31
- }
31
+ }