Socket
Socket
Sign inDemoInstall

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.2.1 to 0.2.2

16

dist/index.d.ts
declare type Flag = 'd' | 'g' | 'i' | 'm' | 's' | 'u' | 'y';
/** Generate indices for substring matches */
declare const withIndices: Flag;
declare const withIndices = "d";
/** Case-insensitive search */
declare const caseInsensitive: Flag;
declare const caseInsensitive = "i";
/** Global search */
declare const global: Flag;
declare const global = "g";
/** Multi-line search */
declare const multiline: Flag;
declare const multiline = "m";
/** Allows `.` to match newline characters */
declare const dotAll: Flag;
declare const dotAll = "s";
/** Treat a pattern as a sequence of unicode code points */
declare const unicode: Flag;
declare const unicode = "u";
/** Perform a "sticky" search that matches starting at the current position in the target string */
declare const sticky: Flag;
declare const sticky = "y";
declare type InputSource<S extends string = never, T extends string = never> = S | Input<S, T>;
declare type MapToValues<T extends InputSource<any, any>[]> = T extends [infer First, ...infer Rest] ? First extends InputSource<infer K> ? [K, ...MapToValues<Rest>] : [] : [];
declare type MapToValues<T extends InputSource<any, any>[]> = T extends [infer First, ...infer Rest] ? First extends InputSource<string> ? [GetValue<First>, ...MapToValues<Rest>] : [] : [];
declare type MapToGroups<T extends InputSource<any, string>[]> = T extends [

@@ -20,0 +20,0 @@ infer First,

{
"name": "magic-regexp",
"version": "0.2.1",
"version": "0.2.2",
"description": "",

@@ -63,3 +63,3 @@ "repository": "danielroe/magic-regexp",

"unbuild": "latest",
"vite": "^3.0.0",
"vite": "^3.0.1",
"vitest": "latest"

@@ -66,0 +66,0 @@ },

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