vibra 1.0.1 → 1.0.2

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.mts CHANGED
@@ -79,4 +79,8 @@ interface Store<T> {
79
79
  declare function vibra<T>(initialValue: T): Store<T>;
80
80
  type Vibra<T> = Store<T>;
81
81
 
82
- export { type Store, type SubscribeOptions, type Subscriber, type Unsubscribe, type Vibra, vibra as default };
82
+ declare class VibraError extends Error {
83
+ constructor(message: string);
84
+ }
85
+
86
+ export { type Store, type SubscribeOptions, type Subscriber, type Unsubscribe, type Vibra, VibraError, vibra as default };
package/dist/index.d.ts CHANGED
@@ -79,4 +79,8 @@ interface Store<T> {
79
79
  declare function vibra<T>(initialValue: T): Store<T>;
80
80
  type Vibra<T> = Store<T>;
81
81
 
82
- export { type Store, type SubscribeOptions, type Subscriber, type Unsubscribe, type Vibra, vibra as default };
82
+ declare class VibraError extends Error {
83
+ constructor(message: string);
84
+ }
85
+
86
+ export { type Store, type SubscribeOptions, type Subscriber, type Unsubscribe, type Vibra, VibraError, vibra as default };
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ VibraError: () => vibra_error_default,
23
24
  default: () => vibra_default
24
25
  });
25
26
  module.exports = __toCommonJS(index_exports);
@@ -49,3 +50,16 @@ function vibra(initialValue) {
49
50
  };
50
51
  }
51
52
  var vibra_default = vibra;
53
+
54
+ // src/vibra-error.ts
55
+ var VibraError = class extends Error {
56
+ constructor(message) {
57
+ super(message);
58
+ this.name = "VibraError";
59
+ }
60
+ };
61
+ var vibra_error_default = VibraError;
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ VibraError
65
+ });
package/dist/index.mjs CHANGED
@@ -23,6 +23,16 @@ function vibra(initialValue) {
23
23
  };
24
24
  }
25
25
  var vibra_default = vibra;
26
+
27
+ // src/vibra-error.ts
28
+ var VibraError = class extends Error {
29
+ constructor(message) {
30
+ super(message);
31
+ this.name = "VibraError";
32
+ }
33
+ };
34
+ var vibra_error_default = VibraError;
26
35
  export {
36
+ vibra_error_default as VibraError,
27
37
  vibra_default as default
28
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibra",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Vibra: A blazing fast, type-safe, and minimal state management library for TypeScript and JavaScript. Effortless reactivity, subscriptions, and memory safety in a tiny package.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",