diff --git a/package.json b/package.json index 05b473c..c8ed878 100644 --- a/package.json +++ b/package.json @@ -24,10 +24,10 @@ "bindings": "^1.5.0", "browser-or-node": "^1.2.1", "isomorphic-ws": "^4.0.1", + "lodash": "^4.17.21", "node-int64": "^0.4.0", "q": "^1.5.0", - "ws": "^5.2.2", - "lodash": "^4.17.21" + "ws": "^5.2.2" }, "keywords": [ "nebula", @@ -40,11 +40,18 @@ "@babel/cli": "^7.14.5", "@babel/core": "^7.14.6", "@babel/node": "^7.14.5", + "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-decorators": "^7.14.5", "@babel/plugin-proposal-do-expressions": "^7.14.5", "@babel/plugin-proposal-export-default-from": "^7.14.5", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@babel/plugin-proposal-function-bind": "^7.14.5", "@babel/plugin-proposal-function-sent": "^7.14.5", + "@babel/plugin-proposal-json-strings": "^7.18.6", + "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-numeric-separator": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.21.0", "@babel/plugin-proposal-pipeline-operator": "^7.14.5", "@babel/plugin-proposal-throw-expressions": "^7.14.5", "@babel/plugin-syntax-import-meta": "^7.10.4", diff --git a/src/nebula/parser/utils.ts b/src/nebula/parser/utils.ts index f061188..dd43d41 100644 --- a/src/nebula/parser/utils.ts +++ b/src/nebula/parser/utils.ts @@ -18,9 +18,8 @@ const NebulaValueTypeNames = [ 'gVal' ] - const getNebulaValueTypeName = (obj: NebulaValue): string => { - return _.chain(obj).keys().filter(k => obj[k] !== null).first().value() + return _.findKey(obj, o => o !== null) } const isNebulaValue = (obj: any): boolean => {