Skip to content

Commit e6dd37b

Browse files
committed
minor changes
1 parent c435780 commit e6dd37b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55
The format is based on [Keep a Changelog](http://keepachangelog.com/).
66

7-
## Version 1.0.0 - 27.03.2024
7+
## Version 1.0.0 - 02.05.2024
88

99
### Added
1010

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ npm install @cap-js/asyncapi
2525
### Usage
2626

2727
```sh
28-
require("@cap-js/asyncapi").registerAsyncapiCompileTarget()
28+
require("@cap-js/asyncapi").register()
2929
```
3030

3131
## Generate AsyncAPI document

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ function _lazyRegisterCompileTarget() {
66
return value
77
}
88

9-
const registerAsyncapiCompileTarget = () => {
9+
const register = () => {
1010
Object.defineProperty(cds.compile.to, "asyncapi", {
1111
get: _lazyRegisterCompileTarget,
1212
configurable: true
1313
})
1414
}
1515

1616

17-
module.exports = { registerAsyncapiCompileTarget }
17+
module.exports = { register }

0 commit comments

Comments
 (0)