New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

appknit-platform-sdk

Package Overview
Dependencies
Maintainers
2
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appknit-platform-sdk - npm Package Compare versions

Comparing version 2.0.0-5 to 2.0.0-6

dist/src/types/errors.d.ts

64

dist/src/sdk.js

@@ -9,2 +9,3 @@ "use strict";

const types_1 = require("./types");
const errors_1 = require("./types/errors");
const defaultHttpTimeout = 300000;

@@ -296,4 +297,9 @@ const completionKey = '__completion';

setStopExecution(status, comment) {
this.executionFramework.setProcessVariable(this.sdkMetadata.processId, completionKey, { status, comment });
this.executionFramework.markProcessComplete(this.sdkMetadata.processId);
if (this.executionFramework) {
this.executionFramework.setProcessVariable(this.sdkMetadata.processId, completionKey, { status, comment });
this.executionFramework.markProcessComplete(this.sdkMetadata.processId);
}
else {
throw new errors_1.IncorrectEnvironmentError();
}
}

@@ -316,3 +322,8 @@ setCredentialBeforeRequestHook(interceptor) {

getStopExecution() {
return this.executionFramework.getProcessVariable(this.sdkMetadata.processId, completionKey);
if (this.executionFramework) {
return this.executionFramework.getProcessVariable(this.sdkMetadata.processId, completionKey);
}
else {
throw new errors_1.IncorrectEnvironmentError();
}
}

@@ -352,3 +363,8 @@ getCredential() {

setContextVariable(variableId, value) {
this.executionFramework.setProcessVariable(this.sdkMetadata.processId, variableId, value);
if (this.executionFramework) {
this.executionFramework.setProcessVariable(this.sdkMetadata.processId, variableId, value);
}
else {
throw new errors_1.IncorrectEnvironmentError();
}
}

@@ -361,5 +377,10 @@ setContextVariables(values) {

setContextVariableIfNotSet(variableId, value) {
if (!this.executionFramework.hasProcessVariable(this.sdkMetadata.processId, variableId)) {
this.executionFramework.setProcessVariable(this.sdkMetadata.processId, variableId, value);
if (this.executionFramework) {
if (!this.executionFramework.hasProcessVariable(this.sdkMetadata.processId, variableId)) {
this.executionFramework.setProcessVariable(this.sdkMetadata.processId, variableId, value);
}
}
else {
throw new errors_1.IncorrectEnvironmentError();
}
}

@@ -372,12 +393,32 @@ setContextVariablesIfNotSet(values) {

getContextVariable(variableId, defaultValue) {
return this.executionFramework.getProcessVariable(this.sdkMetadata.processId, variableId) || defaultValue;
if (this.executionFramework) {
return this.executionFramework.getProcessVariable(this.sdkMetadata.processId, variableId) || defaultValue;
}
else {
throw new errors_1.IncorrectEnvironmentError();
}
}
unsetContext() {
return this.executionFramework.clearProcessVariables(this.sdkMetadata.processId);
if (this.executionFramework) {
return this.executionFramework.clearProcessVariables(this.sdkMetadata.processId);
}
else {
throw new errors_1.IncorrectEnvironmentError();
}
}
getContextVariables() {
return Object.keys(this.executionFramework.getProcessVariables(this.sdkMetadata.processId) || {});
if (this.executionFramework) {
return Object.keys(this.executionFramework.getProcessVariables(this.sdkMetadata.processId) || {});
}
else {
throw new errors_1.IncorrectEnvironmentError();
}
}
getContext() {
return this.executionFramework.getProcessVariables(this.sdkMetadata.processId) || {};
if (this.executionFramework) {
return this.executionFramework.getProcessVariables(this.sdkMetadata.processId) || {};
}
else {
throw new errors_1.IncorrectEnvironmentError();
}
}

@@ -400,2 +441,5 @@ getSdkMetadata() {

createSdkContextMap(mapName, records, keyFields) {
if (!this.executionFramework) {
throw new errors_1.IncorrectEnvironmentError();
}
if (typeof mapName !== 'string'

@@ -402,0 +446,0 @@ || !Array.isArray(records)

2

package.json
{
"name": "appknit-platform-sdk",
"version": "2.0.0-5",
"version": "2.0.0-6",
"description": "",

@@ -5,0 +5,0 @@ "homepage": "https://appknit.io",

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