regexp-parser-event
Advanced tools
Comparing version 1.1.26 to 1.1.29
@@ -6,2 +6,40 @@ # Change Log | ||
## [1.1.29](https://github.com/bluelovers/ws-regexp/compare/regexp-parser-event@1.1.28...regexp-parser-event@1.1.29) (2021-07-09) | ||
### 🔖 Miscellaneous | ||
* . ([8e85c04](https://github.com/bluelovers/ws-regexp/commit/8e85c04a9cb7622ef865a383107dbc9ec2f512b4)) | ||
## [1.1.28](https://github.com/bluelovers/ws-regexp/compare/regexp-parser-event@1.1.26...regexp-parser-event@1.1.28) (2021-07-09) | ||
### 🛠 Build System | ||
* update .js ([26829bc](https://github.com/bluelovers/ws-regexp/commit/26829bcd9557c28497ac40f4b5c7648593ebaca4)) | ||
### 🔖 Miscellaneous | ||
* . ([27bb17d](https://github.com/bluelovers/ws-regexp/commit/27bb17d92d4e39c46f04ab7de9b357fce9667642)) | ||
## [1.1.27](https://github.com/bluelovers/ws-regexp/compare/regexp-parser-event@1.1.26...regexp-parser-event@1.1.27) (2021-07-09) | ||
### 🛠 Build System | ||
* update .js ([26829bc](https://github.com/bluelovers/ws-regexp/commit/26829bcd9557c28497ac40f4b5c7648593ebaca4)) | ||
## [1.1.26](https://github.com/bluelovers/ws-regexp/compare/regexp-parser-event@1.1.25...regexp-parser-event@1.1.26) (2021-06-21) | ||
@@ -8,0 +46,0 @@ |
14
index.js
@@ -21,3 +21,3 @@ "use strict"; | ||
// @ts-ignore | ||
exports.ParserEventEmitterEventList = Object.freeze(array_hyper_unique_1.array_unique(Object.values(ParserEventEmitterEvent))); | ||
exports.ParserEventEmitterEventList = Object.freeze((0, array_hyper_unique_1.array_unique)(Object.values(ParserEventEmitterEvent))); | ||
class ParserEventEmitter extends events_1.EventEmitter { | ||
@@ -29,3 +29,3 @@ constructor(inputAst, flags = '') { | ||
if (typeof inputAst == 'string' || inputAst.type == 'Pattern') { | ||
inputAst = regexp_parser_literal_1.fakePatternToRegExpLiteral(inputAst, flags); | ||
inputAst = (0, regexp_parser_literal_1.fakePatternToRegExpLiteral)(inputAst, flags); | ||
} | ||
@@ -166,3 +166,3 @@ this.astRegExpLiteral = inputAst; | ||
getSource(overwrite, options) { | ||
return regexp_parser_literal_1.astToString(this.astRegExpLiteral.pattern, { | ||
return (0, regexp_parser_literal_1.astToString)(this.astRegExpLiteral.pattern, { | ||
...options, | ||
@@ -174,3 +174,3 @@ // @ts-ignore | ||
getFlags(overwrite, options) { | ||
return regexp_parser_literal_1.astToString(this.astRegExpLiteral.flags, { | ||
return (0, regexp_parser_literal_1.astToString)(this.astRegExpLiteral.flags, { | ||
...options, | ||
@@ -187,3 +187,3 @@ // @ts-ignore | ||
set source(pattern) { | ||
pattern = typeof pattern == 'string' ? regexp_parser_literal_1.parsePattern(pattern, this.astRegExpLiteral.flags.unicode) : pattern; | ||
pattern = typeof pattern == 'string' ? (0, regexp_parser_literal_1.parsePattern)(pattern, this.astRegExpLiteral.flags.unicode) : pattern; | ||
pattern.parent = this.astRegExpLiteral; | ||
@@ -199,3 +199,3 @@ this.astRegExpLiteral.pattern = pattern; | ||
set flags(flags) { | ||
flags = typeof flags == 'string' ? regexp_parser_literal_1.parseFlags(flags) : flags; | ||
flags = typeof flags == 'string' ? (0, regexp_parser_literal_1.parseFlags)(flags) : flags; | ||
flags.parent = this.astRegExpLiteral; | ||
@@ -217,3 +217,3 @@ this.astRegExpLiteral.flags = flags; | ||
toString(overwrite, options) { | ||
return regexp_parser_literal_1.astToString(this.astRegExpLiteral, { | ||
return (0, regexp_parser_literal_1.astToString)(this.astRegExpLiteral, { | ||
...options, | ||
@@ -220,0 +220,0 @@ debugChanged: overwrite ? 99 : this.changed, |
{ | ||
"name": "regexp-parser-event", | ||
"version": "1.1.26", | ||
"version": "1.1.29", | ||
"description": "## API", | ||
@@ -47,4 +47,4 @@ "keywords": [ | ||
"array-hyper-unique": "^1.1.9", | ||
"regexp-parser-literal": "^1.1.19", | ||
"regexpp2": "^1.3.16", | ||
"regexp-parser-literal": "^1.1.22", | ||
"regexpp2": "^1.3.19", | ||
"ts-type": "^1.2.34", | ||
@@ -56,3 +56,3 @@ "tslib": "^2.3.0" | ||
}, | ||
"gitHead": "1aa0f123c804bfd33203716a9c7d11804c2e411e" | ||
"gitHead": "d4ccd0aff0bccb9666c3c771822048644d37c177" | ||
} |
Sorry, the diff of this file is not supported yet
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
40990
Updatedregexpp2@^1.3.19