theprogrammablemind 7.3.2-beta.0 → 7.3.2-beta.2

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/client.js +7 -1
  2. package/package.json +38 -38
package/client.js CHANGED
@@ -19,11 +19,16 @@ const isJest = () => {
19
19
 
20
20
  let fs
21
21
  let ArgumentParser
22
- if (typeof window === 'undefined' || isJest()) {
22
+
23
+ const setupLibs = () => {
23
24
  fs = require('fs')
24
25
  ArgumentParser = require('argparse').ArgumentParser
25
26
  }
26
27
 
28
+ if (isJest()) {
29
+ setupLibs()
30
+ }
31
+
27
32
  const ask = (config) => (asks) => {
28
33
  for (let ask of asks) {
29
34
  config.addMotivation({
@@ -1179,6 +1184,7 @@ const knowledgeModule = async ({
1179
1184
 
1180
1185
  if (isProcess) {
1181
1186
  // setup();
1187
+ setupLibs()
1182
1188
  const parser = new ArgumentParser({
1183
1189
  description: 'Entodicton knowledge module'
1184
1190
  })
package/package.json CHANGED
@@ -1,28 +1,5 @@
1
1
  {
2
2
  "license": "ISC",
3
- "name": "theprogrammablemind",
4
- "devDependencies": {
5
- "eslint-config-standard": "^16.0.3",
6
- "eslint-plugin-import": "^2.23.4",
7
- "@typescript-eslint/eslint-plugin": "^4.28.4",
8
- "eslint-plugin-node": "^11.1.0",
9
- "eslint": "^7.31.0",
10
- "@typescript-eslint/parser": "^4.28.4",
11
- "jest": "^26.6.3",
12
- "eslint-plugin-promise": "^5.1.0"
13
- },
14
- "version": "7.3.2-beta.0",
15
- "scripts": {
16
- "lint:fix": "eslint \"**/*.js\" --fix",
17
- "lint": "eslint \"**/*.js\"",
18
- "to": "node node_modules/.bin/jest --runInBand -t NEO",
19
- "test": "jest --config ./jest.config.json",
20
- "test:watch": "npm run test -- --watch",
21
- "test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
22
- "tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
23
- "to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO"
24
- },
25
- "author": "dev@thinktelligence.com",
26
3
  "files": [
27
4
  "client.js",
28
5
  "index.js",
@@ -38,6 +15,42 @@
38
15
  "src/generators.js",
39
16
  "src/semantics.js"
40
17
  ],
18
+ "main": "index.js",
19
+ "name": "theprogrammablemind",
20
+ "dependencies": {
21
+ "base-64": "^1.0.0",
22
+ "deep-equal": "^2.0.4",
23
+ "node-fetch": "^2.6.1",
24
+ "json-diff": "^1.0.3",
25
+ "json-stable-stringify": "^1.0.1",
26
+ "scriptjs": "^2.5.9",
27
+ "readline": "^1.3.0",
28
+ "lodash": "^4.17.20",
29
+ "sort-json": "^2.0.0",
30
+ "uuid": "^8.3.2",
31
+ "underscore": "^1.13.1",
32
+ "fs": "0.0.1-security"
33
+ },
34
+ "scripts": {
35
+ "test": "jest --config ./jest.config.json",
36
+ "tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
37
+ "lint:fix": "eslint \"**/*.js\" --fix",
38
+ "lint": "eslint \"**/*.js\"",
39
+ "to": "node node_modules/.bin/jest --runInBand -t NEO",
40
+ "test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
41
+ "to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO",
42
+ "test:watch": "npm run test -- --watch"
43
+ },
44
+ "devDependencies": {
45
+ "eslint-plugin-node": "^11.1.0",
46
+ "jest": "^26.6.3",
47
+ "@typescript-eslint/eslint-plugin": "^4.28.4",
48
+ "eslint-plugin-promise": "^5.1.0",
49
+ "@typescript-eslint/parser": "^4.28.4",
50
+ "eslint-plugin-import": "^2.23.4",
51
+ "eslint": "^7.31.0",
52
+ "eslint-config-standard": "^16.0.3"
53
+ },
41
54
  "keywords": [
42
55
  "NLP",
43
56
  "NLU",
@@ -47,19 +60,6 @@
47
60
  "natural language understanding",
48
61
  "chatbot"
49
62
  ],
50
- "main": "index.js",
51
- "dependencies": {
52
- "json-diff": "^1.0.3",
53
- "base-64": "^1.0.0",
54
- "deep-equal": "^2.0.4",
55
- "underscore": "^1.13.1",
56
- "scriptjs": "^2.5.9",
57
- "node-fetch": "^2.6.1",
58
- "readline": "^1.3.0",
59
- "fs": "0.0.1-security",
60
- "sort-json": "^2.0.0",
61
- "lodash": "^4.17.20",
62
- "uuid": "^8.3.2",
63
- "json-stable-stringify": "^1.0.1"
64
- }
63
+ "author": "dev@thinktelligence.com",
64
+ "version": "7.3.2-beta.2"
65
65
  }