@orval/angular
Advanced tools
+7
-4
@@ -1,2 +0,2 @@ | ||
| import { GetterPropType, camel, conventionName, escapeRegExp, generateDependencyImports, generateFormDataAndUrlEncodedFunction, generateMutatorConfig, generateMutatorImports, generateMutatorRequestOptions, generateOptions, generateVerbImports, getAngularFilteredParamsCallExpression, getAngularFilteredParamsHelperBody, getDefaultContentType, getEnumImplementation, getFileInfo, getFullRoute, isBoolean, isObject, isSyntheticDefaultImportsAllow, jsDoc, pascal, sanitize, toObjectString, upath } from "@orval/core"; | ||
| import { GetterPropType, camel, conventionName, escapeRegExp, generateDependencyImports, generateFormDataAndUrlEncodedFunction, generateMutatorConfig, generateMutatorImports, generateMutatorRequestOptions, generateOptions, generateVerbImports, getAngularFilteredParamsCallExpression, getAngularFilteredParamsExpression, getAngularFilteredParamsHelperBody, getDefaultContentType, getEnumImplementation, getFileInfo, getFullRoute, isBoolean, isObject, isSyntheticDefaultImportsAllow, jsDoc, pascal, sanitize, toObjectString, upath } from "@orval/core"; | ||
@@ -463,7 +463,10 @@ //#region src/constants.ts | ||
| const needsObserveBranching = isRequestOptions && !hasMultipleContentTypes; | ||
| const angularParamsRef = isRequestOptions && queryParams ? "filteredParams" : void 0; | ||
| const angularParamsRef = queryParams ? "filteredParams" : void 0; | ||
| let paramsDeclaration = ""; | ||
| if (angularParamsRef && queryParams) { | ||
| if (angularParamsRef && queryParams) if (isRequestOptions) { | ||
| const callExpr = getAngularFilteredParamsCallExpression("{...params, ...options?.params}", queryParams.requiredNullableKeys ?? []); | ||
| paramsDeclaration = paramsSerializer ? `const ${angularParamsRef} = ${paramsSerializer.name}(${callExpr});\n\n ` : `const ${angularParamsRef} = ${callExpr};\n\n `; | ||
| } else { | ||
| const iifeExpr = getAngularFilteredParamsExpression("params ?? {}", queryParams.requiredNullableKeys ?? [], !!paramsSerializer); | ||
| paramsDeclaration = paramsSerializer ? `const ${angularParamsRef} = ${paramsSerializer.name}(${iifeExpr});\n\n ` : `const ${angularParamsRef} = ${iifeExpr};\n\n `; | ||
| } | ||
@@ -1276,3 +1279,3 @@ const optionsInput = { | ||
| })), | ||
| dependency: upath.joinSafe(relativeSchemasPath, "index.zod") | ||
| dependency: relativeSchemasPath | ||
| }]; | ||
@@ -1279,0 +1282,0 @@ return [{ |
+12
-3
| { | ||
| "name": "@orval/angular", | ||
| "version": "8.6.2", | ||
| "version": "8.7.0", | ||
| "license": "MIT", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/orval-labs/orval.git", | ||
| "directory": "packages/angular" | ||
| }, | ||
| "homepage": "https://orval.dev/docs/guides/angular", | ||
| "bugs": { | ||
| "url": "https://github.com/orval-labs/orval/issues" | ||
| }, | ||
| "type": "module", | ||
@@ -29,6 +38,6 @@ "types": "./dist/index.d.mts", | ||
| "dependencies": { | ||
| "@orval/core": "8.6.2" | ||
| "@orval/core": "8.7.0" | ||
| }, | ||
| "devDependencies": { | ||
| "eslint": "9.39.2", | ||
| "eslint": "10.1.0", | ||
| "rimraf": "6.1.2", | ||
@@ -35,0 +44,0 @@ "tsdown": "0.20.3", |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
195820
0.66%1334
0.3%1
-50%0
-100%12
-7.69%+ Added
+ Added
- Removed
- Removed
Updated