@kubb/core
Advanced tools
Comparing version 0.0.0-canary-20240708201128 to 0.0.0-canary-20240708203204
@@ -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": "0.0.0-canary-20240708201128", | ||
"version": "0.0.0-canary-20240708203204", | ||
"description": "Generator core", | ||
@@ -90,5 +90,5 @@ "keywords": [ | ||
"unraw": "^3.0.0", | ||
"@kubb/fs": "0.0.0-canary-20240708201128", | ||
"@kubb/parser-ts": "0.0.0-canary-20240708201128", | ||
"@kubb/types": "0.0.0-canary-20240708201128" | ||
"@kubb/fs": "0.0.0-canary-20240708203204", | ||
"@kubb/parser-ts": "0.0.0-canary-20240708203204", | ||
"@kubb/types": "0.0.0-canary-20240708203204" | ||
}, | ||
@@ -105,5 +105,5 @@ "devDependencies": { | ||
"typescript": "^5.5.3", | ||
"@kubb/config-biome": "0.0.0-canary-20240708201128", | ||
"@kubb/config-ts": "0.0.0-canary-20240708201128", | ||
"@kubb/config-tsup": "0.0.0-canary-20240708201128" | ||
"@kubb/config-biome": "0.0.0-canary-20240708203204", | ||
"@kubb/config-ts": "0.0.0-canary-20240708203204", | ||
"@kubb/config-tsup": "0.0.0-canary-20240708203204" | ||
}, | ||
@@ -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
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
791054
+ Added@kubb/fs@0.0.0-canary-20240708203204(transitive)
+ Added@kubb/parser-ts@0.0.0-canary-20240708203204(transitive)
+ Added@kubb/types@0.0.0-canary-20240708203204(transitive)
- Removed@kubb/fs@0.0.0-canary-20240708201128(transitive)
- Removed@kubb/parser-ts@0.0.0-canary-20240708201128(transitive)
- Removed@kubb/types@0.0.0-canary-20240708201128(transitive)