mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-05 03:30:05 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 435993e50e | |||
|
|
2210e43880 | ||
|
|
b04df0bc6d | ||
| 98e851b4d8 | |||
| 84306bea3d | |||
| 89d32262f8 | |||
| 257010f57d | |||
| eb9991015b | |||
|
|
9d17e87a09 | ||
| 55f309e998 | |||
| 3d9b40398c |
@@ -20,7 +20,7 @@ SASjs is a open-source framework for building Web Apps on SAS® platforms. You c
|
|||||||
|
|
||||||
1 - `npm install @sasjs/adapter` - for use in a nodeJS project (recommended)
|
1 - `npm install @sasjs/adapter` - for use in a nodeJS project (recommended)
|
||||||
|
|
||||||
2 - [Download](https://cdn.jsdelivr.net/npm/@sasjs/adapter@3/index.min.js) and use a copy of the latest JS file
|
2 - [Download](https://cdn.jsdelivr.net/npm/@sasjs/adapter@4/index.min.js) and use a copy of the latest JS file
|
||||||
|
|
||||||
3 - Reference directly from the CDN - in which case click [here](https://www.jsdelivr.com/package/npm/@sasjs/adapter?tab=collection) and select "SRI" to get the script tag with the integrity hash.
|
3 - Reference directly from the CDN - in which case click [here](https://www.jsdelivr.com/package/npm/@sasjs/adapter?tab=collection) and select "SRI" to get the script tag with the integrity hash.
|
||||||
|
|
||||||
|
|||||||
3358
package-lock.json
generated
3358
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -45,9 +45,7 @@
|
|||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cypress/webpack-preprocessor": "5.9.1",
|
"@cypress/webpack-preprocessor": "5.9.1",
|
||||||
"@types/axios": "0.14.0",
|
|
||||||
"@types/express": "4.17.13",
|
"@types/express": "4.17.13",
|
||||||
"@types/form-data": "2.5.0",
|
|
||||||
"@types/jest": "27.4.0",
|
"@types/jest": "27.4.0",
|
||||||
"@types/mime": "2.0.3",
|
"@types/mime": "2.0.3",
|
||||||
"@types/pem": "1.9.6",
|
"@types/pem": "1.9.6",
|
||||||
@@ -71,8 +69,8 @@
|
|||||||
"ts-loader": "9.4.0",
|
"ts-loader": "9.4.0",
|
||||||
"tslint": "6.1.3",
|
"tslint": "6.1.3",
|
||||||
"tslint-config-prettier": "1.18.0",
|
"tslint-config-prettier": "1.18.0",
|
||||||
"typedoc": "0.23.15",
|
"typedoc": "0.23.24",
|
||||||
"typedoc-plugin-rename-defaults": "0.4.0",
|
"typedoc-plugin-rename-defaults": "0.6.4",
|
||||||
"typescript": "4.8.3",
|
"typescript": "4.8.3",
|
||||||
"webpack": "5.69.0",
|
"webpack": "5.69.0",
|
||||||
"webpack-cli": "4.9.2"
|
"webpack-cli": "4.9.2"
|
||||||
@@ -80,7 +78,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sasjs/utils": "2.52.0",
|
"@sasjs/utils": "2.52.0",
|
||||||
"axios": "0.26.0",
|
"axios": "0.27.2",
|
||||||
"axios-cookiejar-support": "1.0.1",
|
"axios-cookiejar-support": "1.0.1",
|
||||||
"form-data": "4.0.0",
|
"form-data": "4.0.0",
|
||||||
"https": "1.0.0",
|
"https": "1.0.0",
|
||||||
|
|||||||
@@ -53,7 +53,9 @@ export const basicTests = (
|
|||||||
return await newAdapterIns.checkSession()
|
return await newAdapterIns.checkSession()
|
||||||
},
|
},
|
||||||
assertion: (response: any) =>
|
assertion: (response: any) =>
|
||||||
response?.isLoggedIn && response?.userName === userName
|
adapter.getSasjsConfig().serverType === ServerType.Sas9
|
||||||
|
? response?.isLoggedIn
|
||||||
|
: response?.isLoggedIn && response?.userName === userName
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Multiple Log in attempts',
|
title: 'Multiple Log in attempts',
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export class AuthManager {
|
|||||||
await this.performCASSecurityCheck()
|
await this.performCASSecurityCheck()
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loginCallback()
|
await this.loginCallback()
|
||||||
this.userName = loginParams.username
|
this.userName = loginParams.username
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ import { SASViyaApiClient } from '../SASViyaApiClient'
|
|||||||
import {
|
import {
|
||||||
isRelativePath,
|
isRelativePath,
|
||||||
parseSasViyaDebugResponse,
|
parseSasViyaDebugResponse,
|
||||||
appendExtraResponseAttributes
|
appendExtraResponseAttributes,
|
||||||
|
getValidJson
|
||||||
} from '../utils'
|
} from '../utils'
|
||||||
import { BaseJobExecutor } from './JobExecutor'
|
import { BaseJobExecutor } from './JobExecutor'
|
||||||
import { parseWeboutResponse } from '../utils/parseWeboutResponse'
|
import { parseWeboutResponse } from '../utils/parseWeboutResponse'
|
||||||
@@ -183,6 +184,10 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof jsonResponse === 'string') {
|
||||||
|
jsonResponse = getValidJson(jsonResponse)
|
||||||
|
}
|
||||||
|
|
||||||
const responseObject = appendExtraResponseAttributes(
|
const responseObject = appendExtraResponseAttributes(
|
||||||
{ result: jsonResponse, log: res.log },
|
{ result: jsonResponse, log: res.log },
|
||||||
extraResponseAttributes
|
extraResponseAttributes
|
||||||
|
|||||||
@@ -691,7 +691,9 @@ const parseError = (data: string) => {
|
|||||||
const parts = data.split(/stored process not found: /i)
|
const parts = data.split(/stored process not found: /i)
|
||||||
if (parts.length > 1) {
|
if (parts.length > 1) {
|
||||||
const storedProcessPath = parts[1].split('<i>')[1].split('</i>')[0]
|
const storedProcessPath = parts[1].split('<i>')[1].split('</i>')[0]
|
||||||
const message = `Stored process not found: ${storedProcessPath}`
|
const message = storedProcessPath.endsWith('runner')
|
||||||
|
? `SASJS runner not found. Here's the link (https://cli.sasjs.io/auth/#sasjs-runner) to the SAS code for registering the SASjs runner`
|
||||||
|
: `Stored process not found: ${storedProcessPath}`
|
||||||
return new JobExecutionError(500, message, '')
|
return new JobExecutionError(500, message, '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user