@indra.ai/deva.error 0.0.5 → 0.0.7

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.
Files changed (2) hide show
  1. package/index.js +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3,6 +3,10 @@
3
3
  import Deva from '@indra.ai/deva';
4
4
  import pkg from './package.json' with {type:'json'};
5
5
 
6
+ import {dirname} from 'node:path';
7
+ import {fileURLToPath} from 'node:url';
8
+ const __dirname = dirname(fileURLToPath(import.meta.url));
9
+
6
10
  const info = {
7
11
  id: pkg.id,
8
12
  name: pkg.name,
@@ -19,6 +23,7 @@ const info = {
19
23
 
20
24
  import data from './data.json' with {type:'json'};
21
25
  const {agent,vars} = data.DATA;
26
+
22
27
  const ERROR = new Deva({
23
28
  info,
24
29
  agent,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 4690322313284,
3
3
  "name": "@indra.ai/deva.error",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "author": "Quinn Michaels",
6
6
  "copyright": "2025",
7
7
  "license": "MIT",