Skip to content

Commit

Permalink
adding cds as a require package
Browse files Browse the repository at this point in the history
  • Loading branch information
RoshniNaveenaS committed Jul 12, 2024
1 parent 4ec86f1 commit 5ad4c51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ord.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require("path");
const cds = require("@sap/cds");
const { exists } = cds.utils;
const defaults = require("./defaults");
const {
Expand Down
1 change: 1 addition & 0 deletions lib/plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { ord, getMetadata, defaults } = require("./");
const cds = require("@sap/cds");

cds.on("bootstrap", (app) => {
app.use("/.well-known/open-resource-discovery", async (req, res) => {
Expand Down
1 change: 1 addition & 0 deletions lib/templates.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const defaults = require("./defaults");
const cds = require("@sap/cds");
const fReplaceSpecialCharacters = (namespace) => {
return namespace.replace(/customer\.(.+)/, (match, group1) => 'customer.' + group1.replace(/[^a-zA-Z0-9]/g, ''))
}
Expand Down

0 comments on commit 5ad4c51

Please sign in to comment.