@indra.ai/deva.feecting 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 +18 -16
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,22 +1,24 @@
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;
5
7
  const info = {
6
- id: package.id,
7
- name: package.name,
8
- describe: package.description,
9
- version: package.version,
8
+ id: pkg.id,
9
+ name: pkg.name,
10
+ describe: pkg.description,
11
+ version: pkg.version,
10
12
  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,
13
+ url: pkg.homepage,
14
+ git: pkg.repository.url,
15
+ bugs: pkg.bugs.url,
16
+ author: pkg.author,
17
+ license: pkg.license,
18
+ copyright: pkg.copyright,
17
19
  };
18
- const {agent,vars} = require('./data.json').DATA;
19
- const Deva = require('@indra.ai/deva');
20
+
21
+
20
22
  const FEECTING = new Deva({
21
23
  info,
22
24
  agent,
@@ -139,4 +141,4 @@ const FEECTING = new Deva({
139
141
  console.log('FEECTING ERROR', err);
140
142
  }
141
143
  });
142
- module.exports = FEECTING
144
+ 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.4",
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
  }