theprogrammablemind
Advanced tools
Comparing version 7.3.2-beta.4 to 7.3.2-beta.5
{ | ||
"scripts": { | ||
"to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO", | ||
"to": "node node_modules/.bin/jest --runInBand -t NEO", | ||
"tod": "node inspect node_modules/.bin/jest --runInBand -t NEO", | ||
"lint:fix": "eslint \"**/*.js\" --fix", | ||
"test:watch": "npm run test -- --watch", | ||
"lint": "eslint \"**/*.js\"", | ||
"test": "jest --config ./jest.config.json", | ||
"test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json" | ||
}, | ||
"author": "dev@thinktelligence.com", | ||
"name": "theprogrammablemind", | ||
"keywords": [ | ||
"NLP", | ||
"NLU", | ||
"NLC", | ||
"natural language processing", | ||
"natural language generation", | ||
"natural language understanding", | ||
"chatbot" | ||
], | ||
"files": [ | ||
@@ -18,8 +39,8 @@ "client.js", | ||
"devDependencies": { | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint": "^7.31.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"@typescript-eslint/parser": "^4.28.4", | ||
"eslint-plugin-import": "^2.23.4", | ||
"@typescript-eslint/parser": "^4.28.4", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"eslint": "^7.31.0", | ||
"jest": "^26.6.3", | ||
@@ -29,39 +50,18 @@ "@typescript-eslint/eslint-plugin": "^4.28.4" | ||
"license": "ISC", | ||
"scripts": { | ||
"tod": "node inspect node_modules/.bin/jest --runInBand -t NEO", | ||
"to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO", | ||
"to": "node node_modules/.bin/jest --runInBand -t NEO", | ||
"test:watch": "npm run test -- --watch", | ||
"lint:fix": "eslint \"**/*.js\" --fix", | ||
"lint": "eslint \"**/*.js\"", | ||
"test": "jest --config ./jest.config.json", | ||
"test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json" | ||
}, | ||
"author": "dev@thinktelligence.com", | ||
"dependencies": { | ||
"sort-json": "^2.0.0", | ||
"json-diff": "^1.0.3", | ||
"readline": "^1.3.0", | ||
"scriptjs": "^2.5.9", | ||
"node-fetch": "^2.6.1", | ||
"deep-equal": "^2.0.4", | ||
"base-64": "^1.0.0", | ||
"lodash": "^4.17.20", | ||
"uuid": "^8.3.2", | ||
"lodash": "^4.17.20", | ||
"scriptjs": "^2.5.9", | ||
"json-diff": "^1.0.3", | ||
"fs": "0.0.1-security", | ||
"json-stable-stringify": "^1.0.1", | ||
"fs": "0.0.1-security", | ||
"readline": "^1.3.0", | ||
"underscore": "^1.13.1", | ||
"node-fetch": "^2.6.1", | ||
"deep-equal": "^2.0.4" | ||
"sort-json": "^2.0.0", | ||
"underscore": "^1.13.1" | ||
}, | ||
"main": "index.js", | ||
"version": "7.3.2-beta.4", | ||
"name": "theprogrammablemind", | ||
"keywords": [ | ||
"NLP", | ||
"NLU", | ||
"NLC", | ||
"natural language processing", | ||
"natural language generation", | ||
"natural language understanding", | ||
"chatbot" | ||
] | ||
"version": "7.3.2-beta.5" | ||
} |
const { args: contextArgs, normalizeGenerator } = require('./helpers') | ||
const Lines = require('../lines') | ||
const sortJson = require('sort-json') | ||
const helpers = require('./helpers') | ||
@@ -215,4 +214,4 @@ | ||
lines.setElement(0, 1, 'TO') | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(sortJson(context, { depth: 25 }), null, 2)) | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(helpers.sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(helpers.sortJson(context, { depth: 25 }), null, 2)) | ||
lines.newRow() | ||
@@ -258,4 +257,4 @@ lines.setElement(0, 1, 'STACK') | ||
lines.setElement(0, 1, 'TO') | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(sortJson(context, { depth: 25 }), null, 2)) | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(helpers.sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(helpers.sortJson(context, { depth: 25 }), null, 2)) | ||
this.logs.push(lines.toString()) | ||
@@ -262,0 +261,0 @@ } |
@@ -216,2 +216,6 @@ const deepEqual = require('deep-equal') | ||
module.exports = { args, safeEquals, appendNoDups, hashIndexesGet, hashIndexesSet, translationMapping, normalizeGenerator, normalizeSemantic, isArray, isObject, isCompound, InitCalls, hashCode } | ||
const sortJson = (json) => { | ||
return json | ||
} | ||
module.exports = { args, safeEquals, appendNoDups, hashIndexesGet, hashIndexesSet, translationMapping, normalizeGenerator, normalizeSemantic, isArray, isObject, isCompound, InitCalls, hashCode, sortJson } |
const { args: contextArgs, normalizeGenerator, normalizeSemantic } = require('./helpers') | ||
const Lines = require('../lines') | ||
const sortJson = require('sort-json') | ||
const helpers = require('./helpers') | ||
@@ -201,4 +200,4 @@ | ||
lines.setElement(0, 1, 'TO') | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(sortJson(context, { depth: 25 }), null, 2)) | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(helpers.sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(helpers.sortJson(context, { depth: 25 }), null, 2)) | ||
lines.newRow() | ||
@@ -237,4 +236,4 @@ lines.setElement(0, 1, 'STACK') | ||
lines.setElement(0, 1, 'TO') | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(sortJson(context, { depth: 25 }), null, 2)) | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(helpers.sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(helpers.sortJson(context, { depth: 25 }), null, 2)) | ||
lines.newRow() | ||
@@ -248,3 +247,3 @@ lines.setElement(0, 1, 'STACK') | ||
lines.setElement(0, 1, 'RESULT') | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(sortJson(contextPrime, { depth: 25 })))})`) | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(helpers.sortJson(contextPrime, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(contextPrime, null, 2)) | ||
@@ -273,4 +272,4 @@ this.logs.push(lines.toString()) | ||
lines.setElement(0, 1, 'TO') | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(sortJson(context, { depth: 25 }), null, 2)) | ||
lines.setElement(0, 2, `(HASHCODE ${helpers.hashCode(JSON.stringify(helpers.sortJson(context, { depth: 25 })))})`) | ||
lines.setElement(1, 2, JSON.stringify(helpers.sortJson(context, { depth: 25 }), null, 2)) | ||
this.logs.push(lines.toString()) | ||
@@ -277,0 +276,0 @@ } |
159172
4596