magic-regexp
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -105,6 +105,9 @@ declare type Flag = 'd' | 'g' | 'i' | 'm' | 's' | 'u' | 'y'; | ||
declare const NamedGroupsS: unique symbol; | ||
declare const ValueS: unique symbol; | ||
declare const FlagsS: unique symbol; | ||
declare type MagicRegExp<Value extends string, NamedGroups extends string | never = never, Flags extends string | never = never> = RegExp & { | ||
[NamedGroups]: NamedGroups; | ||
[Value]: Value; | ||
[Flags]: Flags; | ||
[NamedGroupsS]: NamedGroups; | ||
[ValueS]: Value; | ||
[FlagsS]: Flags; | ||
}; | ||
@@ -111,0 +114,0 @@ declare type ExtractGroups<T extends MagicRegExp<string, string, string>> = T extends MagicRegExp<string, infer V, string> ? V : never; |
{ | ||
"name": "magic-regexp", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "A compiled-away, type-safe, readable RegExp alternative", | ||
@@ -9,9 +9,13 @@ "repository": "danielroe/magic-regexp", | ||
"exports": { | ||
".": "./dist/index.mjs", | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"./transform": { | ||
"import": "./dist/transform.mjs", | ||
"require": "./transform.cjs" | ||
"require": "./dist/transform.cjs" | ||
}, | ||
"./nuxt": "./nuxt.mjs" | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
@@ -22,4 +26,3 @@ "types": "./dist/index.d.ts", | ||
"nuxt.mjs", | ||
"transform.d.ts", | ||
"transform.cjs" | ||
"transform.d.ts" | ||
], | ||
@@ -44,7 +47,6 @@ "scripts": { | ||
"estree-walker": "^3.0.1", | ||
"jiti": "^1.14.0", | ||
"magic-string": "^0.26.2", | ||
"mlly": "^0.5.5", | ||
"mlly": "^0.5.7", | ||
"ufo": "^0.8.5", | ||
"unplugin": "^0.7.2" | ||
"unplugin": "^0.8.1" | ||
}, | ||
@@ -70,3 +72,3 @@ "devDependencies": { | ||
"unbuild": "latest", | ||
"vite": "^3.0.3", | ||
"vite": "^3.0.4", | ||
"vitest": "latest" | ||
@@ -77,3 +79,3 @@ }, | ||
}, | ||
"packageManager": "pnpm@7.6.0", | ||
"packageManager": "pnpm@7.8.0", | ||
"volta": { | ||
@@ -80,0 +82,0 @@ "node": "16.16.0" |
@@ -7,2 +7,3 @@ # 🦄 magic-regexp | ||
[![Codecov][codecov-src]][codecov-href] | ||
[![Bundlephobia][bundlephobia-src]][bundlephobia-href] | ||
[![LGTM][lgtm-src]][lgtm-href] | ||
@@ -13,3 +14,3 @@ | ||
- [✨ Changelog](https://github.com/danielroe/magic-regexp/blob/main/CHANGELOG.md) | ||
- [📖 Documentation](https://magic-regexp.roe.dev) | ||
- [📖 Documentation](https://regexp.dev) | ||
- [▶️ Online playground](https://stackblitz.com/github/danielroe/magic-regexp/tree/main/playground) | ||
@@ -25,3 +26,3 @@ | ||
[📖 Read more](https://magic-regexp.roe.dev) | ||
[📖 Read more](https://regexp.dev) | ||
@@ -56,3 +57,5 @@ ## 💻 Development | ||
[codecov-href]: https://codecov.io/gh/danielroe/magic-regexp | ||
[lgtm-src]: https://img.shields.io/lgtm/grade/javascript/github/danielroe/vue-bind-once?style=flat-square | ||
[lgtm-src]: https://img.shields.io/lgtm/grade/javascript/github/danielroe/magic-regexp?style=flat-square | ||
[lgtm-href]: https://lgtm.com/projects/g/danielroe/magic-regexp | ||
[bundlephobia-src]: https://img.shields.io/bundlephobia/minzip/magic-regexp | ||
[bundlephobia-href]: https://bundlephobia.com/package/magic-regexp |
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
37988
5
11
505
58
+ Addedunplugin@0.8.1(transitive)
- Removedjiti@^1.14.0
- Removedjiti@1.21.6(transitive)
- Removedunplugin@0.7.2(transitive)
Updatedmlly@^0.5.7
Updatedunplugin@^0.8.1