@malloydata/render 0.0.105-dev231127212430 → 0.0.105
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.
- package/dist/drill.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/package.json +2 -2
package/dist/drill.js
CHANGED
|
@@ -113,7 +113,7 @@ function getDrillQuery(data) {
|
|
|
113
113
|
const { formattedFilters, source } = getDrillFilters(data);
|
|
114
114
|
let ret = `run: ${(source === null || source === void 0 ? void 0 : source.name) || '"unable to compute source"'} -> `;
|
|
115
115
|
if (formattedFilters.length) {
|
|
116
|
-
ret += `{ \n
|
|
116
|
+
ret += `{ \n where: \n ${formattedFilters.join(',\n ')}\n \n} + {select: *}\n`;
|
|
117
117
|
}
|
|
118
118
|
return { drillQuery: ret, drillFilters: formattedFilters };
|
|
119
119
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -36,9 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.JSONView = exports.HTMLView = void 0;
|
|
39
|
+
exports.getDrillQuery = exports.JSONView = exports.HTMLView = void 0;
|
|
40
40
|
var html_view_1 = require("./html/html_view");
|
|
41
41
|
Object.defineProperty(exports, "HTMLView", { enumerable: true, get: function () { return html_view_1.HTMLView; } });
|
|
42
42
|
Object.defineProperty(exports, "JSONView", { enumerable: true, get: function () { return html_view_1.JSONView; } });
|
|
43
43
|
__exportStar(require("./data_styles"), exports);
|
|
44
|
+
// Needed for test only.
|
|
45
|
+
var drill_1 = require("./drill");
|
|
46
|
+
Object.defineProperty(exports, "getDrillQuery", { enumerable: true, get: function () { return drill_1.getDrillQuery; } });
|
|
44
47
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/render",
|
|
3
|
-
"version": "0.0.105
|
|
3
|
+
"version": "0.0.105",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@lit/context": "^1.1.0",
|
|
27
|
-
"@malloydata/malloy": "^0.0.105
|
|
27
|
+
"@malloydata/malloy": "^0.0.105",
|
|
28
28
|
"@types/luxon": "^2.4.0",
|
|
29
29
|
"lit": "^3.0.2",
|
|
30
30
|
"lodash": "^4.17.20",
|