Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sassoftware/cra-template-sas-af

Package Overview
Dependencies
Maintainers
13
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sassoftware/cra-template-sas-af - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

template/src/Auth/Auth.module.scss

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc