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

flowbject

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flowbject - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

9

dist/fields/ResultField.d.ts
import { Field } from "./Field";
import { State } from "../states/State";
export declare type SupportedValueType = object | string | boolean | number | null;
export declare type ResultType = {
[k: string]: SupportedValueType;
};
export declare class ResultField<T extends State> extends Field<T> {

@@ -11,6 +8,4 @@ required: boolean;

constructor(state: T);
set(name: string, value: SupportedValueType): T;
setAll(value: ResultType): T;
get(name: string): SupportedValueType;
getAll(): ResultType;
set(value: SupportedValueType): T;
get(): SupportedValueType;
}

@@ -19,22 +19,15 @@ "use strict";

_this.required = false;
_this.result = {};
_this.result = null;
return _this;
}
ResultField.prototype.set = function (name, value) {
ResultField.prototype.set = function (value) {
this.result = value;
this.receiveConfiguration();
this.result[name] = value;
return this.getParentState();
};
ResultField.prototype.setAll = function (value) {
this.result = value;
return this.getParentState();
ResultField.prototype.get = function () {
return this.result;
};
ResultField.prototype.get = function (name) {
return this.result[name];
};
ResultField.prototype.getAll = function () {
return JSON.parse(JSON.stringify(this.result));
};
return ResultField;
}(Field_1.Field));
exports.ResultField = ResultField;

@@ -86,3 +86,3 @@ "use strict";

StepFunctionsGenerator.prototype.generateResultField = function (field) {
return { Result: field.getAll() };
return { Result: field.get() };
};

@@ -89,0 +89,0 @@ StepFunctionsGenerator.prototype.generateResultPathField = function (field) {

{
"name": "flowbject",
"version": "1.0.6",
"version": "1.1.0",
"description": "Flowbject is a library that allows you to describe state machines with objects.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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