Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevitha011 committed May 2, 2024
1 parent c435780 commit e6dd37b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
The format is based on [Keep a Changelog](http://keepachangelog.com/).

## Version 1.0.0 - 27.03.2024
## Version 1.0.0 - 02.05.2024

### Added

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $ npm install @cap-js/asyncapi
### Usage

```sh
require("@cap-js/asyncapi").registerAsyncapiCompileTarget()
require("@cap-js/asyncapi").register()
```

## Generate AsyncAPI document
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ function _lazyRegisterCompileTarget() {
return value
}

const registerAsyncapiCompileTarget = () => {
const register = () => {
Object.defineProperty(cds.compile.to, "asyncapi", {
get: _lazyRegisterCompileTarget,
configurable: true
})
}


module.exports = { registerAsyncapiCompileTarget }
module.exports = { register }

0 comments on commit e6dd37b

Please sign in to comment.