@indra.ai/deva.feecting 0.0.4 → 0.0.6
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.
- package/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4,6 +4,12 @@ import needle from 'needle';
|
|
|
4
4
|
import pkg from './package.json' with {type:'json'};
|
|
5
5
|
import data from './data.json' with {type:'json'};
|
|
6
6
|
const {agent, vars} = data.DATA;
|
|
7
|
+
|
|
8
|
+
// set the __dirname
|
|
9
|
+
import {dirname} from 'node:path';
|
|
10
|
+
import {fileURLToPath} from 'node:url';
|
|
11
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
|
|
7
13
|
const info = {
|
|
8
14
|
id: pkg.id,
|
|
9
15
|
name: pkg.name,
|
package/package.json
CHANGED