theprogrammablemind 7.3.5-beta.1 → 7.3.5-beta.10

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 +5 -1
  2. package/package.json +32 -32
package/client.js CHANGED
@@ -1519,7 +1519,11 @@ function where(goUp = 2) {
1519
1519
  const regexForm2 = /at (.*):(\d+):(\d+)$/
1520
1520
  const line = e.stack.split("\n")[goUp];
1521
1521
  const match = regexForm1.exec(line) || regexForm2.exec(line);
1522
- return `${match[1]}:${match[2]}`
1522
+ if (match) {
1523
+ return `${match[1]}:${match[2]}`
1524
+ } else {
1525
+ return 'running in browser'
1526
+ }
1523
1527
  }
1524
1528
 
1525
1529
  function w(func) {
package/package.json CHANGED
@@ -1,28 +1,35 @@
1
1
  {
2
- "main": "index.js",
3
- "name": "theprogrammablemind",
4
- "version": "7.3.5-beta.1",
5
2
  "devDependencies": {
6
- "eslint-plugin-promise": "^5.1.0",
7
- "eslint-config-standard": "^16.0.3",
3
+ "eslint-plugin-import": "^2.23.4",
8
4
  "jest": "^26.6.3",
9
5
  "@typescript-eslint/parser": "^4.28.4",
10
6
  "@typescript-eslint/eslint-plugin": "^4.28.4",
11
- "eslint": "^7.31.0",
12
- "eslint-plugin-import": "^2.23.4",
13
- "eslint-plugin-node": "^11.1.0"
7
+ "eslint-plugin-node": "^11.1.0",
8
+ "eslint-config-standard": "^16.0.3",
9
+ "eslint-plugin-promise": "^5.1.0",
10
+ "eslint": "^7.31.0"
14
11
  },
15
12
  "scripts": {
16
13
  "to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO",
17
- "test": "jest --config ./jest.config.json",
18
- "tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
19
14
  "test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
20
- "lint": "eslint \"**/*.js\"",
21
- "test:watch": "npm run test -- --watch",
15
+ "tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
22
16
  "lint:fix": "eslint \"**/*.js\" --fix",
23
- "to": "node node_modules/.bin/jest --runInBand -t NEO"
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"
24
21
  },
25
- "author": "dev@thinktelligence.com",
22
+ "keywords": [
23
+ "NLP",
24
+ "NLU",
25
+ "NLC",
26
+ "natural language processing",
27
+ "natural language generation",
28
+ "natural language understanding",
29
+ "chatbot"
30
+ ],
31
+ "main": "index.js",
32
+ "name": "theprogrammablemind",
26
33
  "files": [
27
34
  "client.js",
28
35
  "index.js",
@@ -38,28 +45,21 @@
38
45
  "src/generators.js",
39
46
  "src/semantics.js"
40
47
  ],
41
- "keywords": [
42
- "NLP",
43
- "NLU",
44
- "NLC",
45
- "natural language processing",
46
- "natural language generation",
47
- "natural language understanding",
48
- "chatbot"
49
- ],
50
- "license": "ISC",
48
+ "author": "dev@thinktelligence.com",
51
49
  "dependencies": {
52
- "node-fetch": "^2.6.1",
53
50
  "deep-equal": "^2.0.4",
54
- "underscore": "^1.13.1",
55
- "sort-json": "^2.0.0",
56
51
  "uuid": "^8.3.2",
57
- "scriptjs": "^2.5.9",
58
52
  "json-diff": "^1.0.3",
59
- "readline": "^1.3.0",
60
- "base-64": "^1.0.0",
61
53
  "lodash": "^4.17.20",
62
54
  "fs": "0.0.1-security",
63
- "json-stable-stringify": "^1.0.1"
64
- }
55
+ "base-64": "^1.0.0",
56
+ "sort-json": "^2.0.0",
57
+ "readline": "^1.3.0",
58
+ "scriptjs": "^2.5.9",
59
+ "underscore": "^1.13.1",
60
+ "json-stable-stringify": "^1.0.1",
61
+ "node-fetch": "^2.6.1"
62
+ },
63
+ "version": "7.3.5-beta.10",
64
+ "license": "ISC"
65
65
  }