@cubejs-client/core
Advanced tools
Comparing version 0.4.1 to 0.4.4
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.4.4](https://github.com/statsbotco/cubejs-client/compare/v0.4.3...v0.4.4) (2019-03-17) | ||
### Features | ||
* Introduce Schema generation UI in Playground ([349c7d0](https://github.com/statsbotco/cubejs-client/commit/349c7d0)) | ||
## [0.4.1](https://github.com/statsbotco/cubejs-client/compare/v0.4.0...v0.4.1) (2019-03-14) | ||
@@ -8,0 +19,0 @@ |
@@ -429,3 +429,6 @@ 'use strict'; | ||
if (!this.cubesMap[cube]) { | ||
throw new Error("Cube not found ".concat(cube, " for path '").concat(memberName, "'")); | ||
return { | ||
title: memberName, | ||
error: "Cube not found ".concat(cube, " for path '").concat(memberName, "'") | ||
}; | ||
} | ||
@@ -436,3 +439,6 @@ | ||
if (!member) { | ||
throw new Error("Path not found '".concat(memberName, "'")); | ||
return { | ||
title: memberName, | ||
error: "Path not found '".concat(memberName, "'") | ||
}; | ||
} | ||
@@ -592,3 +598,3 @@ | ||
} | ||
}, _callee, this); | ||
}, _callee); | ||
})); | ||
@@ -595,0 +601,0 @@ |
{ | ||
"name": "@cubejs-client/core", | ||
"version": "0.4.1", | ||
"version": "0.4.4", | ||
"description": "cube.js client", | ||
@@ -29,3 +29,3 @@ "main": "dist/cubejs-client-core.js", | ||
}, | ||
"gitHead": "285a897181e25d80e053dde2b92a8b91651dec7b" | ||
"gitHead": "a6fd93c6e0ecb0addb5abc5c3e6248a23ff5d250" | ||
} |
@@ -23,10 +23,10 @@ import {unnest, fromPairs} from 'ramda'; | ||
if (!this.cubesMap[cube]) { | ||
throw new Error(`Cube not found ${cube} for path '${memberName}'`); | ||
return { title: memberName, error: `Cube not found ${cube} for path '${memberName}'` }; | ||
} | ||
const member = this.cubesMap[cube][memberType][memberName]; | ||
if (!member) { | ||
throw new Error(`Path not found '${memberName}'`); | ||
return { title: memberName, error: `Path not found '${memberName}'` }; | ||
} | ||
return member; | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
489722
13683