theprogrammablemind 7.3.2-beta.1 → 7.3.2-beta.3

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 -2
  2. package/package.json +36 -36
package/client.js CHANGED
@@ -21,8 +21,12 @@ let fs
21
21
  let ArgumentParser
22
22
 
23
23
  const setupLibs = () => {
24
- fs = require('fs')
25
- ArgumentParser = require('argparse').ArgumentParser
24
+ if (!fs) {
25
+ fs = require('fs')
26
+ }
27
+ if (!ArgumentParser) {
28
+ ArgumentParser = require('argparse').ArgumentParser
29
+ }
26
30
  }
27
31
 
28
32
  if (isJest()) {
@@ -1491,6 +1495,7 @@ const test = (name) => {
1491
1495
  */
1492
1496
 
1493
1497
  const ensureTestFile = (module, name, type) => {
1498
+ setupLibs()
1494
1499
  const isProcess = require.main === module
1495
1500
  if (isProcess) {
1496
1501
  const fn = `./${name}.${type}.json`
package/package.json CHANGED
@@ -1,40 +1,52 @@
1
1
  {
2
- "name": "theprogrammablemind",
3
- "author": "dev@thinktelligence.com",
4
- "main": "index.js",
2
+ "keywords": [
3
+ "NLP",
4
+ "NLU",
5
+ "NLC",
6
+ "natural language processing",
7
+ "natural language generation",
8
+ "natural language understanding",
9
+ "chatbot"
10
+ ],
11
+ "scripts": {
12
+ "to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO",
13
+ "lint:fix": "eslint \"**/*.js\" --fix",
14
+ "test:watch": "npm run test -- --watch",
15
+ "test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
16
+ "test": "jest --config ./jest.config.json",
17
+ "to": "node node_modules/.bin/jest --runInBand -t NEO",
18
+ "lint": "eslint \"**/*.js\"",
19
+ "tod": "node inspect node_modules/.bin/jest --runInBand -t NEO"
20
+ },
21
+ "version": "7.3.2-beta.3",
5
22
  "dependencies": {
6
23
  "readline": "^1.3.0",
7
- "deep-equal": "^2.0.4",
24
+ "json-diff": "^1.0.3",
8
25
  "scriptjs": "^2.5.9",
9
- "underscore": "^1.13.1",
10
26
  "sort-json": "^2.0.0",
27
+ "lodash": "^4.17.20",
28
+ "deep-equal": "^2.0.4",
11
29
  "json-stable-stringify": "^1.0.1",
12
- "node-fetch": "^2.6.1",
13
- "base-64": "^1.0.0",
30
+ "underscore": "^1.13.1",
14
31
  "fs": "0.0.1-security",
15
- "lodash": "^4.17.20",
16
- "json-diff": "^1.0.3",
17
- "uuid": "^8.3.2"
32
+ "uuid": "^8.3.2",
33
+ "base-64": "^1.0.0",
34
+ "node-fetch": "^2.6.1"
18
35
  },
36
+ "name": "theprogrammablemind",
19
37
  "devDependencies": {
20
- "eslint-config-standard": "^16.0.3",
21
38
  "eslint-plugin-promise": "^5.1.0",
22
- "eslint": "^7.31.0",
23
39
  "@typescript-eslint/eslint-plugin": "^4.28.4",
40
+ "eslint-config-standard": "^16.0.3",
41
+ "eslint-plugin-import": "^2.23.4",
24
42
  "@typescript-eslint/parser": "^4.28.4",
25
43
  "eslint-plugin-node": "^11.1.0",
26
- "jest": "^26.6.3",
27
- "eslint-plugin-import": "^2.23.4"
44
+ "eslint": "^7.31.0",
45
+ "jest": "^26.6.3"
28
46
  },
29
- "keywords": [
30
- "NLP",
31
- "NLU",
32
- "NLC",
33
- "natural language processing",
34
- "natural language generation",
35
- "natural language understanding",
36
- "chatbot"
37
- ],
47
+ "author": "dev@thinktelligence.com",
48
+ "license": "ISC",
49
+ "main": "index.js",
38
50
  "files": [
39
51
  "client.js",
40
52
  "index.js",
@@ -49,17 +61,5 @@
49
61
  "src/digraph.js",
50
62
  "src/generators.js",
51
63
  "src/semantics.js"
52
- ],
53
- "scripts": {
54
- "test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
55
- "lint": "eslint \"**/*.js\"",
56
- "to": "node node_modules/.bin/jest --runInBand -t NEO",
57
- "to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO",
58
- "tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
59
- "lint:fix": "eslint \"**/*.js\" --fix",
60
- "test:watch": "npm run test -- --watch",
61
- "test": "jest --config ./jest.config.json"
62
- },
63
- "license": "ISC",
64
- "version": "7.3.2-beta.1"
64
+ ]
65
65
  }