🚀 Socket Launch Week 🚀 Day 3: Socket Acquires Coana.Learn More
Socket
Sign inDemoInstall
Socket

@kubb/core

Package Overview
Dependencies
Maintainers
1
Versions
747
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kubb/core - npm Package Compare versions

Comparing version

to
2.23.0

dist/chunk-7KB5NZ7E.cjs

4

dist/index.js

@@ -10,6 +10,6 @@ import {

FileManager
} from "./chunk-SV4UDYSR.js";
} from "./chunk-AS2HY2JU.js";
import {
transformReservedWord
} from "./chunk-XC6QIAQL.js";
} from "./chunk-JKZG2IJR.js";
import {

@@ -16,0 +16,0 @@ URLPath,

import {
FileManager
} from "./chunk-SV4UDYSR.js";
import "./chunk-XC6QIAQL.js";
} from "./chunk-AS2HY2JU.js";
import "./chunk-JKZG2IJR.js";
import "./chunk-5JZNFPUP.js";

@@ -6,0 +6,0 @@ import {

@@ -54,3 +54,3 @@ import { orderBy } from 'natural-orderby';

declare function toRegExp(text: string | RegExp): RegExp;
declare function toRegExpString(text: string): string;
declare function toRegExpString(text: string, func?: string): string;

@@ -57,0 +57,0 @@ declare function transformReservedWord(word: string): string;

@@ -19,3 +19,3 @@ import {

trimQuotes
} from "./chunk-XC6QIAQL.js";
} from "./chunk-JKZG2IJR.js";
import {

@@ -22,0 +22,0 @@ camelCase,

{
"name": "@kubb/core",
"version": "2.22.1",
"version": "2.23.0",
"description": "Generator core",

@@ -90,5 +90,5 @@ "keywords": [

"unraw": "^3.0.0",
"@kubb/fs": "2.22.1",
"@kubb/parser-ts": "2.22.1",
"@kubb/types": "2.22.1"
"@kubb/fs": "2.23.0",
"@kubb/parser-ts": "2.23.0",
"@kubb/types": "2.23.0"
},

@@ -105,5 +105,5 @@ "devDependencies": {

"typescript": "^5.5.3",
"@kubb/config-biome": "2.22.1",
"@kubb/config-ts": "2.22.1",
"@kubb/config-tsup": "2.22.1"
"@kubb/config-biome": "2.23.0",
"@kubb/config-ts": "2.23.0",
"@kubb/config-tsup": "2.23.0"
},

@@ -110,0 +110,0 @@ "engines": {

@@ -24,9 +24,9 @@ import { jsStringEscape } from './escape'

export function toRegExpString(text: string): string {
export function toRegExpString(text: string, func = 'RegExp'): string {
const isStartWithSlash = text.startsWith('/')
const isEndWithSlash = text.endsWith('/')
const regexp = `new RegExp('${jsStringEscape(text.slice(isStartWithSlash ? 1 : 0, isEndWithSlash ? -1 : undefined))}')`
const regexp = `new ${func}('${jsStringEscape(text.slice(isStartWithSlash ? 1 : 0, isEndWithSlash ? -1 : undefined))}')`
return regexp
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet