@sassoftware/cra-template-sas-af
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "@sassoftware/cra-template-sas-af", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "The SAS App Factory template for a new UI project.", | ||
@@ -5,0 +5,0 @@ "author": "SAS", |
{ | ||
"package": { | ||
"dependencies": { | ||
"@okta/okta-auth-js": "^7.2.0", | ||
"@okta/okta-react": "^6.7.0", | ||
"@sassoftware/af-axios": "^0.3.4", | ||
"@azure/msal-browser": "^2.36.0", | ||
"@azure/msal-react": "^1.5.6", | ||
"@sassoftware/af-axios": "^0.5.0", | ||
"@tanstack/react-query": "^4.13.5", | ||
@@ -11,4 +11,3 @@ "postgrester": "^2.1.1", | ||
"react-dom": "^18.2.0", | ||
"axios": "^0.26.1", | ||
"react-router-dom": "^6.9.0" | ||
"axios": "^0.26.1" | ||
}, | ||
@@ -28,2 +27,3 @@ "devDependencies": { | ||
"scripts": { | ||
"start": "HOST=127.0.0.1 react-scripts start", | ||
"sync": "npx @sassoftware/afcli@latest sync", | ||
@@ -30,0 +30,0 @@ "configure": "npx @sassoftware/afcli@latest configure" |
@@ -11,12 +11,6 @@ /* | ||
const sasHost = process.env.SASHOST; | ||
const sasHttps = process.env.HTTPS || "false"; | ||
const devPort = process.env.PORT || "3000"; | ||
const { REACT_APP_AF_URL } = process.env; | ||
const targetProtocol = sasHttps.toLowerCase() === "true" ? "https" : "http"; | ||
let fullHostname = targetProtocol + "://" + sasHost; | ||
// validation for undefined/null to prevent silent failing | ||
if (sasHost == undefined) { | ||
if (REACT_APP_AF_URL == undefined) { | ||
const blue = "\x1b[34m"; | ||
@@ -44,20 +38,6 @@ const clear = "\x1b[0m"; | ||
app.use( | ||
[ | ||
"/identities", | ||
"/projects", | ||
"/SAS*", | ||
"/roles", | ||
"/folders", | ||
"/files", | ||
"/apps", | ||
"/afapi", | ||
"/plug", | ||
"/abeapps", | ||
"/jobDefinitions", | ||
"/modelRepository", | ||
"/function", | ||
], | ||
["/abeapps"], | ||
createProxyMiddleware({ | ||
secure: false, | ||
target: fullHostname, | ||
target: REACT_APP_AF_URL, | ||
logLevel: "debug", | ||
@@ -69,9 +49,6 @@ changeOrigin: false, | ||
headers: { | ||
Host: sasHost, | ||
Origin: fullHostname, | ||
Host: new URL(REACT_APP_AF_URL).host, | ||
Origin: REACT_APP_AF_URL, | ||
}, | ||
cookieDomainRewrite: "localhost", | ||
router: { | ||
fullHostname: targetProtocol + "://localhost:" + devPort, | ||
}, | ||
@@ -78,0 +55,0 @@ onProxyReq: (proxyReq, req, res) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
2
150857
34
396