Socket
Socket
Sign inDemoInstall

@cap-js/cds-typer

Package Overview
Dependencies
73
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.20.0 to 0.20.1

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # Change Log

## Version 0.20.1 - 2024-04-24
### Fixed
- Void actions no longer crash the type generation process
## Version 0.20.0 - 2024-04-23

@@ -11,0 +15,0 @@ ### Added

5

lib/visitor.js

@@ -366,3 +366,2 @@ 'use strict'

#printOperation(name, operation, kind) {
// FIXME: mostly duplicate of printAction -> reuse
this.logger.debug(`Printing operation ${name}:\n${JSON.stringify(operation, null, 2)}`)

@@ -372,3 +371,5 @@ const ns = this.resolver.resolveNamespace(name.split('.'))

const params = this.#stringifyFunctionParams(operation.params, file)
const returnType = this.resolver.resolveAndRequire(operation.returns, file)
const returnType = operation.returns
? this.resolver.resolveAndRequire(operation.returns, file)
: { typeName: 'void', typeInfo: { isArray: false, inflection: { singular: 'void', plural: 'void' } } }
const returns = this.inlineDeclarationResolver.getPropertyDatatype(

@@ -375,0 +376,0 @@ returnType,

{
"name": "@cap-js/cds-typer",
"version": "0.20.0",
"version": "0.20.1",
"description": "Generates .ts files for a CDS model to receive code completion in VS Code",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc