@indra.ai/deva.security 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 +23 -15
  2. package/package.json +6 -5
package/index.js CHANGED
@@ -1,24 +1,32 @@
1
- // Copyright (c)2023 Quinn Michaels
1
+ // Copyright (c)2025 Quinn Michaels
2
2
  // Security Deva
3
3
  // Security Deva Manages Security in deva.world.
4
- const package = require('./package.json');
4
+ import Deva from '@indra.ai/deva';
5
+ import pkg from './package.json' with {type:'json'};
6
+
7
+ import data from './data.json' with {type:'json'};
8
+ const {agent,vars} = data.DATA;
9
+
10
+ // set the __dirname
11
+ import {dirname} from 'node:path';
12
+ import {fileURLToPath} from 'node:url';
13
+ const __dirname = dirname(fileURLToPath(import.meta.url));
14
+
5
15
  const info = {
6
- id: package.id,
7
- name: package.name,
8
- describe: package.description,
9
- version: package.version,
10
- url: package.homepage,
16
+ id: pkg.id,
17
+ name: pkg.name,
18
+ describe: pkg.description,
19
+ version: pkg.version,
20
+ url: pkg.homepage,
11
21
  dir: __dirname,
12
- git: package.repository.url,
13
- bugs: package.bugs.url,
14
- author: package.author,
15
- license: package.license,
16
- copyright: package.copyright,
22
+ git: pkg.repository.url,
23
+ bugs: pkg.bugs.url,
24
+ author: pkg.author,
25
+ license: pkg.license,
26
+ copyright: pkg.copyright,
17
27
  };
18
28
 
19
- const {agent,vars} = require('./data.json').DATA;
20
29
 
21
- const Deva = require('@indra.ai/deva');
22
30
  const SECURITY = new Deva({
23
31
  info,
24
32
  agent,
@@ -47,4 +55,4 @@ const SECURITY = new Deva({
47
55
  },
48
56
  methods: {},
49
57
  });
50
- module.exports = SECURITY
58
+ export default SECURITY
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 6507120243760,
3
3
  "name": "@indra.ai/deva.security",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "author": "Quinn Michaels",
6
6
  "license": "MIT",
7
7
  "copyright": "2025",
@@ -17,15 +17,16 @@
17
17
  "keywords": [
18
18
  "Security",
19
19
  "Deva",
20
- "deva.space",
21
- "deva.cloud",
22
- "deva.world"
20
+ "Indra.ai",
21
+ "Deva.space",
22
+ "Deva.cloud",
23
+ "Deva.world"
23
24
  ],
24
25
  "bugs": {
25
26
  "url": "https://github.com/indraai/deva.security/issues"
26
27
  },
27
28
  "homepage": "https://deva.space/devas/security",
28
29
  "dependencies": {
29
- "@indra.ai/deva": "^1.2.21"
30
+ "@indra.ai/deva": "^1.2.28"
30
31
  }
31
32
  }