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

worksmith_etcd

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worksmith_etcd - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

src/tasks/relock.js

4

package.json
{
"name": "worksmith_etcd",
"version": "0.2.0",
"version": "0.2.1",
"description": "Etcd activites for worksmith",

@@ -27,3 +27,3 @@ "main": "index.js",

"node-uuid": "^1.4.3",
"worksmith": "^0.1.0"
"worksmith": "^0.1.8"
},

@@ -30,0 +30,0 @@ "devDependencies": {

@@ -21,3 +21,3 @@ var debug = require('debug')('worksmith:tasks:etcd:lock')

if (err) return done(err)
done(null, { key: key, value: value })
done(null, { key: key, value: value, ttl: ttl })
})

@@ -24,0 +24,0 @@ }

@@ -14,3 +14,3 @@ module.exports = function(etcd, _assert) {

assert.ifError(err)
assert.ok(result)
assert.ok(result, 'Was not locked')
next()

@@ -17,0 +17,0 @@ })

@@ -66,2 +66,4 @@ var worksmith = require('worksmith')

it('should default the lock value to a uuid', function(done) {

@@ -134,2 +136,3 @@

value: 'foo',
ttl: 1,
resultTo: 'lock'

@@ -144,2 +147,3 @@ })

assert.equal(ctx.lock.value, 'foo')
assert.equal(ctx.lock.ttl, 1)
done()

@@ -146,0 +150,0 @@ })

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