@mojir/lits 1.2.2-alpha.6 → 1.2.2-alpha.7

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/cli/cli.js CHANGED
@@ -92,7 +92,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
92
92
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
93
93
  };
94
94
 
95
- var version = "1.2.2-alpha.6";
95
+ var version = "1.2.2-alpha.7";
96
96
 
97
97
  var AstNodeType;
98
98
  (function (AstNodeType) {
@@ -1,8 +1,2 @@
1
- export type Identifier = string & {
2
- __brand: 'Identifier';
3
- };
4
1
  export declare const identifierCharacterClass = "[\\w@%^?=!$<>+*/:-]";
5
2
  export declare const identifierFirstCharacterClass = "[a-zA-Z_@%^?=!$<>+*/-]";
6
- export declare const identifierRegExp: RegExp;
7
- export declare function isIdentifier(value: string): value is Identifier;
8
- export declare function assertIdentifier(value: string): asserts value is Identifier;
@@ -14,4 +14,4 @@ export { apiReference, isDatatypeReference, isFunctionReference, isNormalExpress
14
14
  export type { Argument, CommonReference, DatatypeReference, FunctionReference, Reference, ShorthandReference } from '../reference';
15
15
  export type { ApiName, FunctionName, ShorthandName, DatatypeName } from '../reference/api';
16
16
  export { isApiName, isDataType } from '../reference/api';
17
- export { type Identifier, assertIdentifier, isIdentifier } from './identifier';
17
+ export { identifierCharacterClass, identifierFirstCharacterClass } from './identifier';
package/dist/index.esm.js CHANGED
@@ -2864,7 +2864,7 @@ var mathNormalExpression = {
2864
2864
  },
2865
2865
  };
2866
2866
 
2867
- var version = "1.2.2-alpha.6";
2867
+ var version = "1.2.2-alpha.7";
2868
2868
 
2869
2869
  var uuidTemplate = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
2870
2870
  var xyRegexp = /[xy]/g;
@@ -7484,16 +7484,6 @@ function getSugar() {
7484
7484
 
7485
7485
  var identifierCharacterClass = '[\\w@%^?=!$<>+*/:-]';
7486
7486
  var identifierFirstCharacterClass = '[a-zA-Z_@%^?=!$<>+*/-]';
7487
- // eslint-disable-next-line regexp/use-ignore-case
7488
- var identifierRegExp = new RegExp("^".concat(identifierFirstCharacterClass).concat(identifierCharacterClass, "*$"));
7489
- function isIdentifier(value) {
7490
- return identifierRegExp.test(value);
7491
- }
7492
- function assertIdentifier(value) {
7493
- if (!isIdentifier(value)) {
7494
- throw new Error("Expected '".concat(value, "' to be an identifier"));
7495
- }
7496
- }
7497
7487
 
7498
7488
  var NO_MATCH = [0, undefined];
7499
7489
  var nameRegExp = new RegExp(identifierCharacterClass);
@@ -15632,5 +15622,5 @@ function isDataType(arg) {
15632
15622
  return dataTypes.includes(arg);
15633
15623
  }
15634
15624
 
15635
- export { AstNodeType, FunctionType, Lits, TokenType, apiReference, asLitsFunction, asNativeJsFunction, asUserDefinedFunction, assertIdentifier, assertLitsFunction, assertNativeJsFunction, assertUserDefinedFunction, createNativeJsFunction, isApiName, isBuiltinFunction, isDataType, isDatatypeReference, isFunctionReference, isIdentifier, isLitsError, isLitsFunction, isNativeJsFunction, isNormalExpressionArgument, isShorthandReference, isSpecialExpressionArgument, isTypedValue, isUserDefinedFunction, normalExpressionKeys, reservedNames, specialExpressionKeys };
15625
+ export { AstNodeType, FunctionType, Lits, TokenType, apiReference, asLitsFunction, asNativeJsFunction, asUserDefinedFunction, assertLitsFunction, assertNativeJsFunction, assertUserDefinedFunction, createNativeJsFunction, identifierCharacterClass, identifierFirstCharacterClass, isApiName, isBuiltinFunction, isDataType, isDatatypeReference, isFunctionReference, isLitsError, isLitsFunction, isNativeJsFunction, isNormalExpressionArgument, isShorthandReference, isSpecialExpressionArgument, isTypedValue, isUserDefinedFunction, normalExpressionKeys, reservedNames, specialExpressionKeys };
15636
15626
  //# sourceMappingURL=index.esm.js.map