@sasjs/adapter 3.10.9 → 3.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/SASjs.d.ts +0 -14
- package/index.js +2 -2
- package/node/SASjs.d.ts +0 -14
- package/node/index.js +2 -2
- package/node/types/errors/InvalidSASjsCsrfError.d.ts +3 -0
- package/node/utils/index.d.ts +7 -6
- package/node/utils/validateInput.d.ts +14 -0
- package/package.json +1 -1
- package/src/SASjs.ts +2 -70
- package/src/auth/AuthManager.ts +10 -2
- package/src/request/RequestClient.ts +18 -6
- package/src/types/errors/InvalidSASjsCsrfError.ts +9 -0
- package/src/utils/index.ts +7 -6
- package/src/utils/validateInput.ts +90 -0
- package/types/errors/InvalidSASjsCsrfError.d.ts +3 -0
- package/utils/index.d.ts +7 -6
- package/utils/{convertToCsv.spec.d.ts → spec/convertToCsv.spec.d.ts} +0 -0
- package/utils/spec/validateInput.spec.d.ts +1 -0
- package/utils/validateInput.d.ts +14 -0
- package/node/types/errors/InvalidCsrfError.d.ts +0 -3
- package/src/types/errors/InvalidCsrfError.ts +0 -9
- package/types/errors/InvalidCsrfError.d.ts +0 -3
package/node/SASjs.d.ts
CHANGED
|
@@ -285,20 +285,6 @@ export default class SASjs {
|
|
|
285
285
|
} | null, config?: {
|
|
286
286
|
[key: string]: any;
|
|
287
287
|
}, loginRequiredCallback?: () => any, authConfig?: AuthConfig, extraResponseAttributes?: ExtraResponseAttributes[]): Promise<any>;
|
|
288
|
-
/**
|
|
289
|
-
* This function validates the input data structure and table naming convention
|
|
290
|
-
*
|
|
291
|
-
* @param data A json object that contains one or more tables, it can also be null
|
|
292
|
-
* @returns An object which contains two attributes: 1) status: boolean, 2) msg: string
|
|
293
|
-
*/
|
|
294
|
-
private validateInput;
|
|
295
|
-
/**
|
|
296
|
-
* this function returns the type of variable
|
|
297
|
-
*
|
|
298
|
-
* @param data it could be anything, like string, array, object etc.
|
|
299
|
-
* @returns a string which tells the type of input parameter
|
|
300
|
-
*/
|
|
301
|
-
private getType;
|
|
302
288
|
/**
|
|
303
289
|
* Creates the folders and services at the given location `appLoc` on the given server `serverUrl`.
|
|
304
290
|
* @param serviceJson - the JSON specifying the folders and services to be created.
|