diff --git a/lib/ord.js b/lib/ord.js index de5f9fe..ad0a6ed 100644 --- a/lib/ord.js +++ b/lib/ord.js @@ -1,4 +1,5 @@ const path = require("path"); +const cds = require("@sap/cds"); const { exists } = cds.utils; const defaults = require("./defaults"); const { diff --git a/lib/plugin.js b/lib/plugin.js index 648bc54..4dd6fcf 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -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) => { diff --git a/lib/templates.js b/lib/templates.js index e921d76..2c97082 100644 --- a/lib/templates.js +++ b/lib/templates.js @@ -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, '')) }