@indra.ai/deva.feecting 0.0.3 → 0.0.5

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 +23 -16
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,22 +1,29 @@
1
- // Copyright (c)2023 Quinn Michaels
1
+ // Copyright (c)2025 Quinn Michaels
2
2
  // The Feecting Deva
3
- const needle = require('needle');
4
- const package = require('./package.json');
3
+ import needle from 'needle';
4
+ import pkg from './package.json' with {type:'json'};
5
+ import data from './data.json' with {type:'json'};
6
+ const {agent, vars} = data.DATA;
7
+
8
+ import {dirname} from 'node:path';
9
+ import {fileURLToPath} from 'node:url';
10
+ const __dirname = dirname(fileURLToPath(import.meta.url));
11
+
5
12
  const info = {
6
- id: package.id,
7
- name: package.name,
8
- describe: package.description,
9
- version: package.version,
13
+ id: pkg.id,
14
+ name: pkg.name,
15
+ describe: pkg.description,
16
+ version: pkg.version,
10
17
  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,
18
+ url: pkg.homepage,
19
+ git: pkg.repository.url,
20
+ bugs: pkg.bugs.url,
21
+ author: pkg.author,
22
+ license: pkg.license,
23
+ copyright: pkg.copyright,
17
24
  };
18
- const {agent,vars} = require('./data.json').DATA;
19
- const Deva = require('@indra.ai/deva');
25
+
26
+
20
27
  const FEECTING = new Deva({
21
28
  info,
22
29
  agent,
@@ -139,4 +146,4 @@ const FEECTING = new Deva({
139
146
  console.log('FEECTING ERROR', err);
140
147
  }
141
148
  });
142
- module.exports = FEECTING
149
+ export default FEECTING
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 5461868899003,
3
3
  "name": "@indra.ai/deva.feecting",
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "author": "Quinn Michaels",
6
6
  "license": "MIT",
7
7
  "description": "The Feecting Deva manages all the parsing of feecting language in deva.world.",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://deva.space/devas/feecting",
29
29
  "dependencies": {
30
- "@indra.ai/deva": "^1.2.22",
30
+ "@indra.ai/deva": "^1.2.27",
31
31
  "needle": "^3.2.0"
32
32
  }
33
33
  }