Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

magic-regexp

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-regexp - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

dist/index.cjs

9

dist/index.d.ts

@@ -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 @@

- [✨ &nbsp;Changelog](https://github.com/danielroe/magic-regexp/blob/main/CHANGELOG.md)
- [📖 &nbsp;Documentation](https://magic-regexp.roe.dev)
- [📖 &nbsp;Documentation](https://regexp.dev)
- [▶️ &nbsp;Online playground](https://stackblitz.com/github/danielroe/magic-regexp/tree/main/playground)

@@ -25,3 +26,3 @@

[📖 &nbsp;Read more](https://magic-regexp.roe.dev)
[📖 &nbsp;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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc