@malloydata/malloy-interfaces 0.0.328 → 0.0.330

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/types.d.ts CHANGED
@@ -395,6 +395,7 @@ export type NumberCell = {
395
395
  };
396
396
  export type NumberLiteral = {
397
397
  number_value: number;
398
+ string_value?: string;
398
399
  };
399
400
  export type NumberSubtype = 'integer' | 'decimal' | 'bigint';
400
401
  export type NumberType = {
package/dist/types.js CHANGED
@@ -996,6 +996,11 @@ exports.MALLOY_INTERFACE_TYPES = {
996
996
  'optional': false,
997
997
  'array': false,
998
998
  },
999
+ 'string_value': {
1000
+ 'type': 'string',
1001
+ 'optional': true,
1002
+ 'array': false,
1003
+ },
999
1004
  },
1000
1005
  },
1001
1006
  'NumberSubtype': {
package/dist/util.js CHANGED
@@ -8,12 +8,9 @@ function shouldQuoteIdentifier(name) {
8
8
  return containsFunnyCharacters || isReserved;
9
9
  }
10
10
  function maybeQuoteIdentifier(name) {
11
- const path = name.split('.');
12
- for (let i = 0; i < path.length; i++) {
13
- if (shouldQuoteIdentifier(path[i])) {
14
- path[i] = `\`${path[i]}\``;
15
- }
11
+ if (shouldQuoteIdentifier(name)) {
12
+ return `\`${name}\``;
16
13
  }
17
- return path.join('.');
14
+ return name;
18
15
  }
19
16
  //# sourceMappingURL=util.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy-interfaces",
3
- "version": "0.0.328",
3
+ "version": "0.0.330",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -439,6 +439,7 @@ struct StringLiteral {
439
439
 
440
440
  struct NumberLiteral {
441
441
  1: required double number_value,
442
+ 2: optional string string_value,
442
443
  }
443
444
 
444
445
  struct BooleanLiteral {