Git Product home page Git Product logo

Comments (7)

mbonig avatar mbonig commented on June 1, 2024

Thanks for bringing this up. Please give it a try and let me know if there are any issues.

from state-machine.

emmapatterson avatar emmapatterson commented on June 1, 2024

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.

mbonig avatar mbonig commented on June 1, 2024

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.

emmapatterson avatar emmapatterson commented on June 1, 2024

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.

mbonig avatar mbonig commented on June 1, 2024

Yup, that's the right code. I just didn't test the fix properly... one second.

from state-machine.

mbonig avatar mbonig commented on June 1, 2024

Please try again

from state-machine.

emmapatterson avatar emmapatterson commented on June 1, 2024

That's us sorted now! Nice one!

from state-machine.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.