Comments (7)
Thanks for bringing this up. Please give it a try and let me know if there are any issues.
from state-machine.
Thanks for bringing this up. Please give it a try and let me know if there are any issues.
Hey Matt! Thanks for the quick response and update here! For some reason though I am still getting the warnings after updating
For your ref:
"aws-cdk": "^2.99.1",
"aws-cdk-lib": "^2.99.1",
"@matthewbonig/state-machine": "^0.0.29",
Seems like there are 2 warnings for every statemachine we have if that helps somehow!
from state-machine.
Can you share your output of:
cat node_modules/@matthewbonig/state-machine/package.json | grep version
cat node_modules/@matthewbonig/state-machine/lib/StateMachine.js
from state-machine.
Can you share your output of:
cat node_modules/@matthewbonig/state-machine/package.json | grep version cat node_modules/@matthewbonig/state-machine/lib/StateMachine.js
Sure thing :
"standard-version": "^9",
"version": "0.0.29",
and
"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StateMachine = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const aws_stepfunctions = require("aws-cdk-lib/aws-stepfunctions");
const aws_stepfunctions_1 = require("aws-cdk-lib/aws-stepfunctions");
const yaml = require("js-yaml");
// eslint-disable-next-line @typescript-eslint/no-require-imports
const merge = require('lodash.merge');
class StateMachine extends aws_stepfunctions.StateMachine {
constructor(scope, id, props) {
const mergedDefinition = merge(props.definition, { States: props.overrides });
let definitionString;
if (props.aslYaml) {
definitionString = yaml.dump(mergedDefinition);
}
else {
definitionString = JSON.stringify(mergedDefinition);
}
const propsMinusDefinition = {
...props,
definition: undefined,
};
super(scope, id, {
...propsMinusDefinition,
definitionBody: aws_stepfunctions_1.DefinitionBody.fromString(definitionString),
});
}
}
exports.StateMachine = StateMachine;
_a = JSII_RTTI_SYMBOL_1;
StateMachine[_a] = { fqn: "@matthewbonig/state-machine.StateMachine", version: "0.0.29" };
from state-machine.
Yup, that's the right code. I just didn't test the fix properly... one second.
from state-machine.
Please try again
from state-machine.
That's us sorted now! Nice one!
from state-machine.
Related Issues (12)
- Attempting to override Array elements causes new elements to be created HOT 1
- RFC: Provide an alternate method for overriding ASL objects HOT 6
- feature request: automatic .grants()
- feature request: support of YAML HOT 1
- File extension change request HOT 1
- fails eslint
- Set projen peerDeps using ">=" HOT 1
- projen mistakenly as (non dev)dependency HOT 2
- Is yaml supported really needed? HOT 1
- Python Package unable to import `mbonig.state_machine` HOT 3
- StateMachineProps.definition has been deprecated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from state-machine.