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

@sassoftware/restaf

Package Overview
Dependencies
Maintainers
5
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sassoftware/restaf - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "@sassoftware/restaf",
"version": "2.0.0",
"version": "2.0.1",
"description": "Library for writing SAS Viya application using REST APIs",

@@ -5,0 +5,0 @@ "author": "Deva Kumaraswamy <deva.kumar@sas.com>",

@@ -8,8 +8,11 @@ /*

return [
let href = (casProxyFlag === true) ? `${uri}/actions` : `${urihttp}/actions`;
let isIdle = casProxyFlag === true ? `${uri}/isdle` : `${urihttp}/isIdle`;
let r = [
{
method : 'POST',
href : `${uri}/actions` /* payload: data:...., qs: {action: ...} */,
rel : (casProxyFlag === true) ? 'execute' : 'casProxy',
uri : `${uri}/actions`,
href : href,
rel : 'execute',
uri : href,
responseType : 'application/json',

@@ -24,5 +27,6 @@ type : 'application/json',

},
/*
{
method : 'POST',
href : `${urihttp}/actions` /* payload: data:...., qs: {action: ...} */,
href : `${urihttp}/actions`,
rel : (casProxyFlag === false) ? 'execute' : 'cashttp',

@@ -39,7 +43,9 @@ uri : `${urihttp}/actions`,

},
*/
{
method : 'GET',
href : `${uri}/isIdle` /* need to convert true/false to busy and completed */,
href : isIdle,
rel : 'state',
uri : `${uri}/isIdle`,
uri : isIdle,
responseType : 'application/json',

@@ -55,2 +61,3 @@ type : 'application/json',

];
return r;
};

@@ -72,2 +72,3 @@

}
// do a refresh - mainly for reattaching to a cas session

@@ -74,0 +75,0 @@

@@ -94,3 +94,3 @@ /* eslint-disable no-prototype-builtins */

let casAction = null;
if (payload !== null) {

@@ -208,8 +208,8 @@ casAction = hasItem(payload, 'action');

return new Promise ((resolve, reject) => {
axios(config)
.then (response => {
.then(response => {
parseJSON(response.data)
.then (data => {
.then(data => {
iconfig.data = null;/* get rid of the payload*/

@@ -232,3 +232,3 @@ response.data = { results: data, iconfig: Object.assign({}, iconfig) };

})
.catch (error => {
.catch(error => {
reject(error);

@@ -235,0 +235,0 @@ });

@@ -45,3 +45,6 @@ /*

function initStore (iconfig) {
let config = (iconfig == null) ? {casProxy: false} : iconfig;
let config = { casProxy: false };
if (iconfig != null) {
config = { ...config, ...iconfig };
}
let store = configureSagaStore(config);

@@ -48,0 +51,0 @@

@@ -82,2 +82,3 @@ /* eslint-disable no-prototype-builtins */

switch (payload.authType) {
case 'code' :
case VIYA_LOGON_TOKEN:

@@ -115,3 +116,3 @@ case VIYA_LOGON_SERVER:

unSubscribe = store.subscribe(logonExit);
store.config.casProxy = false;
// store.config.casProxy = false; preset to this value in initStore.
action.storeConfig = store.config;

@@ -123,3 +124,2 @@ if (payload.authType === VIYA_LOGON_SERVER) {

}
// store.config.casProxy = (payload.authType === VIYA_LOGON_SERVER) ? true : false;
store.dispatch(action);

@@ -126,0 +126,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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