Socket
Socket
Sign inDemoInstall

@cap-js/cds-typer

Package Overview
Dependencies
85
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.18.0 to 0.18.1

5

CHANGELOG.md

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

## Version 0.18.1 - 2024-03-13
### Fix
- Remove faulty plural for CDS `type` definitions from the generated _index.js_ files
## Version 0.18.0 - 2024-03-12

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

4

lib/file.js

@@ -406,3 +406,3 @@ 'use strict'

`module.exports.${singular} = csn.${original}`,
`module.exports.${plural} = csn.${original}`,
/Array<.*>/.test(plural) ? undefined : `module.exports.${plural} = csn.${original}`,
// FIXME: we currently produce at most 3 entries.

@@ -412,3 +412,3 @@ // This could be an issue when the user re-used the original name in a @singular/@plural annotation.

`module.exports.${original} = csn.${original}`
])))
].filter(Boolean)))) // FIXME: this is a hack to support CDS types that will produce "Array<MyType>" as plural, which we do not want as export in the index.js files
) // singular -> plural aliases

@@ -415,0 +415,0 @@ .concat(['// events'])

{
"name": "@cap-js/cds-typer",
"version": "0.18.0",
"version": "0.18.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