easy-signal 5.0.2 → 5.0.4
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 +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/store.d.ts +1 -1
- package/package.json +2 -1
- package/src/index.ts +3 -3
- package/src/signal.ts +1 -1
- package/src/store.ts +1 -1
- package/tsconfig.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './debounce';
|
|
2
|
-
export * from './signal';
|
|
3
|
-
export * from './store';
|
|
1
|
+
export * from './debounce.js';
|
|
2
|
+
export * from './signal.js';
|
|
3
|
+
export * from './store.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './debounce';
|
|
2
|
-
export * from './signal';
|
|
3
|
-
export * from './store';
|
|
1
|
+
export * from './debounce.js';
|
|
2
|
+
export * from './signal.js';
|
|
3
|
+
export * from './store.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/dist/signal.d.ts
CHANGED
package/dist/store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Subscriber, Unsubscriber } from './types';
|
|
1
|
+
import type { Subscriber, Unsubscriber } from './types.js';
|
|
2
2
|
type StartStopNotifier<T> = (set: Subscriber<T>, update: (fn: Updater<T>) => void) => Unsubscriber | void;
|
|
3
3
|
export type Updater<T> = (value: T) => T;
|
|
4
4
|
export type { Subscriber, Unsubscriber };
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-signal",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Two types of signals: event signals for subscribing to and emitting events, and reactive store signals for tracking and reacting to state changes.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './debounce';
|
|
2
|
-
export * from './signal';
|
|
3
|
-
export * from './store';
|
|
1
|
+
export * from './debounce.js';
|
|
2
|
+
export * from './signal.js';
|
|
3
|
+
export * from './store.js';
|
package/src/signal.ts
CHANGED
package/src/store.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Subscriber, Unsubscriber } from './types';
|
|
1
|
+
import type { Subscriber, Unsubscriber } from './types.js';
|
|
2
2
|
type Invalidator = () => void;
|
|
3
3
|
type StartStopNotifier<T> = (set: Subscriber<T>, update: (fn: Updater<T>) => void) => Unsubscriber | void;
|
|
4
4
|
export type Updater<T> = (value: T) => T;
|
package/tsconfig.json
CHANGED