Comparing version 1.1.5 to 1.2.0-1
import { Field } from "./Field"; | ||
import { State } from "../states/State"; | ||
export declare type SupportedValueType = object | string | boolean | number | null; | ||
export declare type ResultType = { | ||
export declare type SupportedValueType = object | string | boolean | number | null | { | ||
[k: string]: SupportedValueType; | ||
@@ -11,6 +10,4 @@ }; | ||
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; | ||
} |
@@ -22,16 +22,8 @@ "use strict"; | ||
} | ||
ResultField.prototype.set = function (name, value) { | ||
ResultField.prototype.set = function (value) { | ||
this.receiveConfiguration(); | ||
this.result[name] = value; | ||
return this.getParentState(); | ||
}; | ||
ResultField.prototype.setAll = function (value) { | ||
this.receiveConfiguration(); | ||
this.result = value; | ||
return this.getParentState(); | ||
}; | ||
ResultField.prototype.get = function (name) { | ||
return this.result[name]; | ||
}; | ||
ResultField.prototype.getAll = function () { | ||
ResultField.prototype.get = function () { | ||
return JSON.parse(JSON.stringify(this.result)); | ||
@@ -38,0 +30,0 @@ }; |
@@ -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.1.5", | ||
"version": "1.2.0-1", | ||
"description": "Flowbject is a library that allows you to describe state machines with objects.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157393
3949
2