Socket
Socket
Sign inDemoInstall

@cap-js/cds-types

Package Overview
Dependencies
72
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cap-js/cds-types

Type definitions for main packages of CAP, like `@sap/cds`


Version published
Weekly downloads
125K
decreased by-5.96%
Maintainers
2
Install size
80.6 kB
Created
Weekly downloads
 

Changelog

Source

Version 0.2.0 - 2024-01-17

Added

  • Type for special error listener srv.on('error')

Changed

  • source, column_expr, and predicate have been converted to partial intersection types. This offers all possible optional properties. You will have to make sure to check their presence when accessing them

Fixed

  • srv.send overload to also allow optional headers
  • Reflected types like cds.entity, cds.struct, cds.Association are now properly exposed
  • cds.builtin.types got a more accurate type
  • The LinkedEntity.drafts property is now optional. At runtime, it's only set for drafted entities.
  • cds.model is marked as modifiable (for tests only!)
  • SELECT.from got its ref property back

Readme

Source

cds-types

REUSE status Unit Tests passing

About this project

Contains type definitions for the Node.js SDK of the SAP Cloud Application Programming Model (CAP).

Requirements and Setup

Just install package @sap/cds into a Javascript or Typescript project, and the types will automatically be available in modern IDEs like VS Code.

Find more information on the APIs in the Node.js SDK documentation.

Support, Feedback, Contributing

Local Setup

After cloning, just run

npm run setup

which installs all dependencies.

This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.

Security / Disclosure

If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.

Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Copyright 2019-2024 SAP SE or an SAP affiliate company and cds-types contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

Keywords

FAQs

Last updated on 17 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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