Skip to content

Commit

Permalink
v6.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Jun 29, 2023
1 parent 07083c7 commit 76349f7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
6 changes: 4 additions & 2 deletions lib/change_pass.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* Copyright (c) 2012-2020 Richard Rodger and other contributors, MIT License. */
/* Copyright (c) 2012-2023 Richard Rodger and other contributors, MIT License. */
'use strict'

const Nid = require('nid')
const Seneca = require('seneca')

const { Nid } = Seneca.util

var generate_password = Nid({
length: 12,
Expand Down
6 changes: 4 additions & 2 deletions lib/hasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
const Crypto = require('crypto')
const ChildProcess = require('child_process')

const Nid = require('nid')
// const Nid = require('nid')
// var make_hash_id = Nid({ length: 11 })

var make_hash_id = Nid({ length: 11 })
var hasher_process
var clean_interval
var close_defined
Expand All @@ -28,6 +28,8 @@ if (require.main === module) {
/* $lab:coverage:on$ */

function hasher(seneca, spec, done) {
var make_hash_id = seneca.util.Nid({ length: 11 })

spec.interval = spec.interval || 11111
spec.rounds = spec.rounds || 1

Expand Down
6 changes: 4 additions & 2 deletions lib/logout_user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* Copyright (c) 2012-2020 Richard Rodger and other contributors, MIT License. */
/* Copyright (c) 2012-2023 Richard Rodger and other contributors, MIT License. */
'use strict'

const Nid = require('nid')
const Seneca = require('seneca')

const { Nid } = Seneca.util

module.exports = (ctx) => {
const intern = ctx.intern
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@seneca/user",
"description": "User management plugin for Seneca",
"version": "6.2.0",
"version": "6.3.0",
"keywords": [
"seneca",
"user",
Expand Down Expand Up @@ -62,15 +62,15 @@
"@hapi/code": "8",
"@hapi/lab": "23",
"coveralls": "^3.1.1",
"prettier": "^2.8.1",
"prettier": "^2.8.8",
"seneca-doc": "^2.1.3",
"seneca-msg-test": "^3.4.0",
"@seneca/maintain": "^0.0.22"
"@seneca/maintain": "^0.0.30"
},
"peerDependencies": {
"seneca": ">=3",
"seneca-promisify": ">=3",
"seneca-entity": ">=18"
"seneca-entity": ">=23"
},
"repository": {
"type": "git",
Expand Down
7 changes: 5 additions & 2 deletions user.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
/* Copyright (c) 2012-2020 Richard Rodger and other contributors, MIT License. */
/* Copyright (c) 2012-2023 Richard Rodger and other contributors, MIT License. */
'use strict'

const Assert = require('assert')

const Crypto = require('crypto')
const Nid = require('nid')

const Seneca = require('seneca')
const Uuid = require('uuid')

const { Nid } = Seneca.util

module.exports = user

module.exports.errors = {}
Expand Down

0 comments on commit 76349f7

Please sign in to comment.