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

@kubb/core

Package Overview
Dependencies
Maintainers
0
Versions
676
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 0.0.0-canary-20241205221000 to 0.0.0-canary-20241211184107

dist/chunk-2PVOSONX.cjs

4

dist/index.js
import { EventEmitter, createLogger } from './chunk-HTOO3HNK.js';
import { FileManager, setUniqueName, processFiles, URLPath } from './chunk-SOCGT3JP.js';
export { FileManager, getSource, processFiles } from './chunk-SOCGT3JP.js';
import { FileManager, setUniqueName, processFiles, URLPath } from './chunk-VIC3WIWV.js';
export { FileManager, getSource, processFiles } from './chunk-VIC3WIWV.js';
import { trim, transformReservedWord } from './chunk-T2FGDLUG.js';

@@ -5,0 +5,0 @@ import './chunk-HBQM723K.js';

@@ -1,2 +0,2 @@

import { getSource, createFile } from './chunk-SOCGT3JP.js';
import { getSource, createFile } from './chunk-VIC3WIWV.js';
import { camelCase, pascalCase } from './chunk-T2FGDLUG.js';

@@ -3,0 +3,0 @@ import path from 'node:path';

@@ -72,5 +72,9 @@ import { PossiblePromise } from '@kubb/types';

};
type Options = {
casing?: 'camelcase';
};
declare class URLPath {
#private;
path: string;
constructor(path: string);
constructor(path: string, options?: Options);
/**

@@ -77,0 +81,0 @@ * Convert Swagger path to URLPath(syntax of Express)

@@ -1,4 +0,4 @@

export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-SOCGT3JP.js';
export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-VIC3WIWV.js';
import './chunk-T2FGDLUG.js';
//# sourceMappingURL=utils.js.map
//# sourceMappingURL=utils.js.map
{
"name": "@kubb/core",
"version": "0.0.0-canary-20241205221000",
"version": "0.0.0-canary-20241211184107",
"description": "Generator core",

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

"semver": "^7.6.3",
"@kubb/fs": "0.0.0-canary-20241205221000",
"@kubb/parser-ts": "0.0.0-canary-20241205221000",
"@kubb/types": "0.0.0-canary-20241205221000"
"@kubb/fs": "0.0.0-canary-20241211184107",
"@kubb/parser-ts": "0.0.0-canary-20241211184107",
"@kubb/types": "0.0.0-canary-20241211184107"
},

@@ -100,4 +100,4 @@ "devDependencies": {

"typescript": "^5.7.2",
"@kubb/config-ts": "0.0.0-canary-20241205221000",
"@kubb/config-tsup": "0.0.0-canary-20241205221000"
"@kubb/config-ts": "0.0.0-canary-20241211184107",
"@kubb/config-tsup": "0.0.0-canary-20241211184107"
},

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

@@ -14,7 +14,13 @@ import { camelCase, isValidVarName } from '../transformers'

type Options = {
casing?: 'camelcase'
}
export class URLPath {
path: string
#options: Options
constructor(path: string) {
constructor(path: string, options: Options = {}) {
this.path = path
this.#options = options

@@ -95,4 +101,8 @@ return this

const param = isValidVarName(pathWithoutBrackets) ? pathWithoutBrackets : camelCase(pathWithoutBrackets)
let param = isValidVarName(pathWithoutBrackets) ? pathWithoutBrackets : camelCase(pathWithoutBrackets)
if (this.#options.casing === 'camelcase') {
param = camelCase(param)
}
return prev.replace(path, `\${${replacer ? replacer(param) : param}}`)

@@ -117,3 +127,8 @@ }, this.path)

const param = isValidVarName(item) ? item : camelCase(item)
let param = isValidVarName(item) ? item : camelCase(item)
if (this.#options.casing === 'camelcase') {
param = camelCase(param)
}
const key = replacer ? replacer(param) : param

@@ -120,0 +135,0 @@

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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