literate-regex 0.6.1 → 0.6.2

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/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  ![npm bundle size](https://img.shields.io/bundlephobia/min/literate-regex?style=plastic)
4
4
  ![npm](https://img.shields.io/npm/dm/literate-regex.svg?style=plastic)
5
5
  ![npms.io](https://img.shields.io/npms-io/maintenance-score/literate-regex)
6
- ![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/jeffy-g/literate-regex)
7
6
 
8
7
  # literate-regex
9
8
 
package/dist/cjs/index.js CHANGED
@@ -38,4 +38,4 @@ const compilePCREStyleRegExpLiteral = (src) => {
38
38
  return new RegExp(pattern, flags);
39
39
  };
40
40
  exports.compilePCREStyleRegExpLiteral = compilePCREStyleRegExpLiteral;
41
- exports.version = "v0.6.0";
41
+ exports.version = "v0.6.2";
@@ -32,4 +32,4 @@ export const compilePCREStyleRegExpLiteral = (src) => {
32
32
  const { pattern, flags } = extractJsRegexPartsFromPCREStyleRegExpLiteral(src);
33
33
  return new RegExp(pattern, flags);
34
34
  };
35
- export const version = "v0.6.0";
35
+ export const version = "v0.6.2";
@@ -60,6 +60,14 @@ export type TypedRegExp<P extends string, F extends string = ""> = RegExp & {
60
60
  readonly flags: F;
61
61
  } & TypedRegExpBrand & {
62
62
  types: TypedRegExpTypes<TypedRegExp<P, F>>;
63
+ global: HasStrictRegExpFlag<F, "g">;
64
+ dotAll: HasStrictRegExpFlag<F, "s">;
65
+ hasIndices: HasStrictRegExpFlag<F, "d">;
66
+ ignoreCase: HasStrictRegExpFlag<F, "i">;
67
+ multiline: HasStrictRegExpFlag<F, "m">;
68
+ sticky: HasStrictRegExpFlag<F, "y">;
69
+ unicode: HasStrictRegExpFlag<F, "u">;
70
+ unicodeSets: HasStrictRegExpFlag<F, "v">;
63
71
  };
64
72
  /**
65
73
  * Extracts the literal type from the source property of a RegExp.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "literate-regex",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Write readable (literate) regex sources with # comments, then normalize them to JS RegExp.source at the type level.",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,