@indra.ai/deva.error 0.0.3 → 0.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.
Files changed (2) hide show
  1. package/index.js +17 -14
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,21 +1,24 @@
1
1
  // Copyright (c)2022 Quinn Michaels
2
2
  // The main Error Deva for deva.world
3
- const Deva = require('@indra.ai/deva');
4
- const package = require('./package.json');
3
+ import Deva from '@indra.ai/deva';
4
+ import pkg from './package.json' with {type:'json'};
5
+
5
6
  const info = {
6
- id: package.id,
7
- name: package.name,
8
- describe: package.description,
9
- version: package.version,
7
+ id: pkg.id,
8
+ name: pkg.name,
9
+ describe: pkg.description,
10
+ version: pkg.version,
10
11
  dir: __dirname,
11
- url: package.homepage,
12
- git: package.repository.url,
13
- bugs: package.bugs.url,
14
- author: package.author,
15
- license: package.license,
16
- copyright: package.copyright,
12
+ url: pkg.homepage,
13
+ git: pkg.repository.url,
14
+ bugs: pkg.bugs.url,
15
+ author: pkg.author,
16
+ license: pkg.license,
17
+ copyright: pkg.copyright,
17
18
  };
18
- const {agent,vars} = require('./data.json').DATA;
19
+
20
+ import data from './data.json' with {type:'json'};
21
+ const {agent,vars} = data.DATA;
19
22
  const ERROR = new Deva({
20
23
  info,
21
24
  agent,
@@ -39,4 +42,4 @@ const ERROR = new Deva({
39
42
  },
40
43
  methods: {},
41
44
  });
42
- module.exports = ERROR
45
+ export default ERROR
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.3",
4
+ "version": "0.0.4",
5
5
  "author": "Quinn Michaels",
6
6
  "copyright": "2025",
7
7
  "license": "MIT",