1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

chore: added extra attributes type from @sasjs/utils

This commit is contained in:
2021-06-10 14:22:31 +02:00
parent 5beda6547a
commit dadce3d4c9
6 changed files with 8 additions and 14 deletions

8
package-lock.json generated
View File

@@ -1253,11 +1253,11 @@
}
},
"@sasjs/utils": {
"version": "2.18.0",
"resolved": "https://registry.npmjs.org/@sasjs/utils/-/utils-2.18.0.tgz",
"integrity": "sha512-6VTbRP1KU0gGi1mSIHl+XyL9Vqk8rBW7a7VQOF6vzD+AVgfgYd0t76djAUCcA7Dos8NJXAoDUuah+iNvXJY+cw==",
"version": "2.20.0",
"resolved": "https://registry.npmjs.org/@sasjs/utils/-/utils-2.20.0.tgz",
"integrity": "sha512-PBJswfumyejsb8wJQpSZ96zFEEeJ+AlpxWXhz9uT9D8bNCStfCd75E1JdV71RwxdavsKiGMSSh5UcGDyehFA4w==",
"requires": {
"@types/prompts": "^2.0.11",
"@types/prompts": "^2.0.13",
"chalk": "^4.1.1",
"cli-table": "^0.3.6",
"consola": "^2.15.0",

View File

@@ -62,7 +62,7 @@
},
"main": "index.js",
"dependencies": {
"@sasjs/utils": "^2.18.0",
"@sasjs/utils": "^2.20.0",
"axios": "^0.21.1",
"axios-cookiejar-support": "^1.0.1",
"form-data": "^4.0.0",

View File

@@ -14,7 +14,7 @@ import {
Sas9JobExecutor
} from './job-execution'
import { ErrorResponse } from './types/errors'
import { ExtraResponseAttributes } from './types/ExtraResponseAttributes'
import { ExtraResponseAttributes } from '@sasjs/utils/types'
const defaultConfig: SASjsConfig = {
serverUrl: '',

View File

@@ -5,7 +5,7 @@ import {
JobExecutionError,
LoginRequiredError
} from '../types/errors'
import { ExtraResponseAttributes } from '../types/ExtraResponseAttributes'
import { ExtraResponseAttributes } from '@sasjs/utils/types'
import { BaseJobExecutor } from './JobExecutor'
export class JesJobExecutor extends BaseJobExecutor {

View File

@@ -1,6 +1,6 @@
import { ServerType } from '@sasjs/utils/types'
import { SASjsRequest } from '../types'
import { ExtraResponseAttributes } from '../types/ExtraResponseAttributes'
import { ExtraResponseAttributes } from '@sasjs/utils/types'
import { asyncForEach, parseGeneratedCode, parseSourceCode } from '../utils'
export type ExecuteFunction = () => Promise<any>

View File

@@ -1,6 +0,0 @@
/**
* Represents a SASjs request parameter that will select which attributes are wanted in
* response object on top of default `webout` object.
*
*/
export type ExtraResponseAttributes = 'file' | 'data' | 'output' | null