From 6809edaffd3cdbb4e03c180e55d8c88d99d7061b Mon Sep 17 00:00:00 2001 From: Rene Jeglinsky Date: Thu, 19 Dec 2024 08:09:26 +0100 Subject: [PATCH] consistent JavScript usage --- cds/common.md | 2 +- node.js/best-practices.md | 2 +- node.js/cds-log.md | 2 +- node.js/typescript.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cds/common.md b/cds/common.md index 4778e5253..cc86c6913 100644 --- a/cds/common.md +++ b/cds/common.md @@ -262,7 +262,7 @@ entity sap.common.Timezones : CodeList { } ``` -[Learn more about time zones in Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) {.learn-more} +[Learn more about time zones in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) {.learn-more} [Learn more about time zones in Java](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/ZoneId.html) {.learn-more} diff --git a/node.js/best-practices.md b/node.js/best-practices.md index e6f1f3fb5..a9cd00e95 100644 --- a/node.js/best-practices.md +++ b/node.js/best-practices.md @@ -380,7 +380,7 @@ srv.before("UPDATE", "EntityName", (req) => { }); ``` -Internally the [timestamp](events#timestamp) is a Javascript `Date` object, that is converted to the right format, when sent to the database. So if in any case a date string is needed, the best solution would be to initialize a Date object, that is then translated to the correct UTC String for the database. +Internally the [timestamp](events#timestamp) is a JavaScript `Date` object, that is converted to the right format, when sent to the database. So if in any case a date string is needed, the best solution would be to initialize a Date object, that is then translated to the correct UTC String for the database. ## Custom Streaming { #custom-streaming-beta } diff --git a/node.js/cds-log.md b/node.js/cds-log.md index 882afcda4..f72763705 100644 --- a/node.js/cds-log.md +++ b/node.js/cds-log.md @@ -60,7 +60,7 @@ LOG.info("it's a foo") ### _Logger usage → much like `console`_ { #logger-api } -Loggers returned by `cds.log()` look and behave very much like [Javascript's standard `console` object](https://nodejs.org/api/console.html) a log method for each [log level](#log-levels): +Loggers returned by `cds.log()` look and behave very much like [JavaScript's standard `console` object](https://nodejs.org/api/console.html) a log method for each [log level](#log-levels): ```js cds.log() → { diff --git a/node.js/typescript.md b/node.js/typescript.md index 903222e9e..56a70524c 100644 --- a/node.js/typescript.md +++ b/node.js/typescript.md @@ -43,7 +43,7 @@ It features both [CAP service handlers](https://github.com/SAP-samples/cap-sflig ### Using `cds watch` { #cds-watch} -Preferably use `cds watch` in a TypeScript project as if it was a Javascript project. +Preferably use `cds watch` in a TypeScript project as if it was a JavaScript project. It detects TypeScript mode based on a `tsconfig.json` and run [`cds-tsx`](#cds-tsx) under the hood. ```sh