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

@wmfs/statebox

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wmfs/statebox - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [1.6.0](https://github.com/wmfs/statebox/compare/v1.5.0...v1.6.0) (2018-09-10)
### ✨ Features
* Added error details onto executionOptions so they get persisted to storage ([c100290](https://github.com/wmfs/statebox/commit/c100290))
# [1.5.0](https://github.com/wmfs/statebox/compare/v1.4.1...v1.5.0) (2018-09-10)

@@ -2,0 +9,0 @@

@@ -45,2 +45,4 @@ const Status = require('../Status')

execution.ctx = ctx
execution.executionOptions.error = null
},

@@ -61,2 +63,7 @@ boom.badRequest(`Unable to succeed execution with name '${executionName}'`)

execution.executionOptions.error = {
error: errorCode,
cause: errorMessage
}
return this._markRelatedBranchesAsFailed(executionDescription.executionOptions.rootExecutionName)

@@ -75,2 +82,4 @@ },

execution.currentResource = nextResource
execution.executionOptions.error = null
},

@@ -105,2 +114,7 @@ boom.badRequest(`Unable to set next state name for execution with name '${executionName}'`)

execution.errorCode = execution.errorCode || 'Failed because a state in a parallel branch has failed'
execution.executionOptions.error = {
error: execution.errorCode,
cause: execution.errorMessage
}
},

@@ -107,0 +121,0 @@ boom.badRequest(`Unable to set failed state for execution named ${executionName}`)

9

package.json
{
"name": "@wmfs/statebox",
"version": "1.5.0",
"version": "1.6.0",
"description": "Orchestrate Node functions using Amazon States Language",

@@ -36,2 +36,4 @@ "author": "West Midlands Fire Service",

"devDependencies": {
"@semantic-release/changelog": "3.0.0",
"@semantic-release/git": "7.0.3",
"chai": "4.1.2",

@@ -42,8 +44,7 @@ "chai-subset": "1.6.0",

"cz-conventional-changelog": "2.1.0",
"dirty-chai": "^2.0.1",
"mocha": "5.2.0",
"nyc": "13.0.1",
"semantic-release": "15.9.14",
"standard": "12.0.1",
"@semantic-release/changelog": "3.0.0",
"@semantic-release/git": "7.0.3"
"standard": "12.0.1"
},

@@ -50,0 +51,0 @@ "scripts": {

@@ -5,2 +5,3 @@ /* eslint-env mocha */

const chai = require('chai')
chai.use(require('dirty-chai'))
const expect = chai.expect

@@ -100,2 +101,6 @@ const DaosToTest = require('./daosToTest')

expect(executionDescription.currentStateName).to.eql('Stuttery')
expect(expect(executionDescription.executionOptions.error).to.eql({
'error': 'SomethingBadHappened',
'cause': 'But at least it was expected'
}))
})

@@ -115,2 +120,3 @@

expect(executionDescription.currentStateName).to.eql('IT-LIVES')
expect(executionDescription.executionOptions.error).to.be.null()
})

@@ -117,0 +123,0 @@ })

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