@malloydata/malloy-interfaces 0.0.279 → 0.0.281
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/nest_unions.js +4 -5
- package/dist/to_malloy.js +1 -2
- package/dist/util.js +1 -2
- package/package.json +1 -1
package/dist/nest_unions.js
CHANGED
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.nestUnions = nestUnions;
|
|
10
|
+
exports.unnestUnions = unnestUnions;
|
|
11
|
+
exports.convertFromThrift = convertFromThrift;
|
|
12
|
+
exports.convertToThrift = convertToThrift;
|
|
10
13
|
const types_1 = require("./types");
|
|
11
14
|
function nestUnions(obj) {
|
|
12
15
|
if (obj === null || obj === undefined) {
|
|
@@ -39,7 +42,6 @@ function nestUnions(obj) {
|
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
|
-
exports.nestUnions = nestUnions;
|
|
43
45
|
function unnestUnions(obj, type) {
|
|
44
46
|
if (obj === null || obj === undefined) {
|
|
45
47
|
return obj;
|
|
@@ -83,7 +85,6 @@ function unnestUnions(obj, type) {
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
|
-
exports.unnestUnions = unnestUnions;
|
|
87
88
|
function convertFromThrift(obj, type) {
|
|
88
89
|
if (obj === null || obj === undefined) {
|
|
89
90
|
return obj;
|
|
@@ -138,7 +139,6 @@ function convertFromThrift(obj, type) {
|
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
|
-
exports.convertFromThrift = convertFromThrift;
|
|
142
142
|
function getType(type) {
|
|
143
143
|
const typeDefinition = types_1.MALLOY_INTERFACE_TYPES[type];
|
|
144
144
|
if (typeDefinition === undefined) {
|
|
@@ -202,5 +202,4 @@ function convertToThrift(obj, type) {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
exports.convertToThrift = convertToThrift;
|
|
206
205
|
//# sourceMappingURL=nest_unions.js.map
|
package/dist/to_malloy.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.queryToMalloy =
|
|
3
|
+
exports.queryToMalloy = queryToMalloy;
|
|
4
4
|
const util_1 = require("./util");
|
|
5
5
|
function queryToMalloy(query, { tabWidth } = { tabWidth: 2 }) {
|
|
6
6
|
const fragments = queryToFragments(query);
|
|
7
7
|
return codeFromFragments(fragments, { tabWidth });
|
|
8
8
|
}
|
|
9
|
-
exports.queryToMalloy = queryToMalloy;
|
|
10
9
|
const INDENT = Symbol('indent');
|
|
11
10
|
const NEWLINE = Symbol('newline');
|
|
12
11
|
const OUTDENT = Symbol('outdent');
|
package/dist/util.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maybeQuoteIdentifier =
|
|
3
|
+
exports.maybeQuoteIdentifier = maybeQuoteIdentifier;
|
|
4
4
|
const reserved_words_1 = require("./reserved_words");
|
|
5
5
|
function shouldQuoteIdentifier(name) {
|
|
6
6
|
const containsFunnyCharacters = !name.match(/^[A-Za-z_][A-Za-z_0-9]*$/);
|
|
@@ -16,5 +16,4 @@ function maybeQuoteIdentifier(name) {
|
|
|
16
16
|
}
|
|
17
17
|
return path.join('.');
|
|
18
18
|
}
|
|
19
|
-
exports.maybeQuoteIdentifier = maybeQuoteIdentifier;
|
|
20
19
|
//# sourceMappingURL=util.js.map
|