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

seneca

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seneca - npm Package Compare versions

Comparing version 3.21.1 to 3.21.2

5

CHANGES.md

@@ -0,1 +1,6 @@

## 3.21.2 2020-05-26
* Handle 'object' === typeof(null) edge cases.
## 3.21.1 2020-05-26

@@ -2,0 +7,0 @@

2

lib/add.js

@@ -115,3 +115,3 @@ /* Copyright © 2019 Richard Rodger and other contributors, MIT License. */

Common.each(raw_pattern, function (v, k) {
if ('object' === typeof v && !~k.indexOf('$')) {
if (v && 'object' === typeof v && !~k.indexOf('$')) {
pattern_rules[k] = v

@@ -118,0 +118,0 @@ delete pattern[k]

@@ -437,3 +437,3 @@ /* Copyright © 2010-2018 Richard Rodger and other contributors, MIT License. */

})
} else if ('object' === typeof pick_in) {
} else if (pick_in && 'object' === typeof pick_in) {
pick = Object.assign({}, pick_in)

@@ -768,3 +768,3 @@ } else {

if (arglen === 1) {
if ('object' === typeof config[0] && null != config[0]) {
if (config[0] && 'object' === typeof config[0]) {
out = Object.assign({}, config[0])

@@ -791,3 +791,3 @@ } else {

var value = options[key]
if ('object' === typeof value) {
if (value && 'object' === typeof value) {
return

@@ -794,0 +794,0 @@ }

@@ -414,3 +414,5 @@ /* Copyright © 2010-2020 Richard Rodger and other contributors, MIT License. */

explain.push('object' === typeof entry ? entry : { content: entry })
explain.push(
entry && 'object' === typeof entry ? entry : { content: entry }
)
}

@@ -417,0 +419,0 @@ }

@@ -33,3 +33,3 @@ /* Copyright © 2010-2020 Richard Rodger and other contributors, MIT License. */

? omits
: 'object' === typeof omits
: omits && 'object' === typeof omits
? Object.keys(omits)

@@ -119,3 +119,3 @@ : 'string' === typeof omits

if ('object' === typeof argsarr[0]) {
if (argsarr[0] && 'object' === typeof argsarr[0]) {
var code = argsarr[0].code

@@ -122,0 +122,0 @@ if ('string' === typeof code) {

@@ -86,3 +86,5 @@ /* Copyright © 2016-2019 Richard Rodger and other contributors, MIT License. */

data_fmt[i] =
'object' === typeof data_src[i] ? Common.clean(data_src[i]) : data_src[i]
data_src[i] && 'object' === typeof data_src[i]
? Common.clean(data_src[i])
: data_src[i]
data_fmt[i] = Util.inspect(data_fmt[i], {

@@ -174,3 +176,5 @@ compact: true,

{ text_level: {} },
'object' === typeof orig_logspec ? orig_logspec : default_logspec
orig_logspec && 'object' === typeof orig_logspec
? orig_logspec
: default_logspec
)

@@ -225,3 +229,7 @@

logger = orig_logspec
} else if ('object' !== typeof orig_logspec && null != orig_logspec) {
} else if (
orig_logspec &&
'object' !== typeof orig_logspec &&
null != orig_logspec
) {
throw Common.error('bad_logspec', { logspec: orig_logspec })

@@ -324,3 +332,3 @@ }

var self = this.self()
if ('object' !== typeof entry) {
if (entry && 'object' !== typeof entry) {
entry = {

@@ -327,0 +335,0 @@ data: Array.prototype.slice.call(arguments),

@@ -105,3 +105,3 @@ /* Copyright © 2014-2020 Richard Rodger and other contributors, MIT License. */

if (argv.seneca) {
if ('object' === typeof argv.seneca.options) {
if (argv.seneca.options && 'object' === typeof argv.seneca.options) {
sourcemap.argv = argv.seneca.options

@@ -198,3 +198,3 @@ } else if ('string' === typeof argv.seneca.options) {

}
} else if ('object' === typeof logSpec) {
} else if (logSpec && 'object' === typeof logSpec) {
parsedSpec.log = {}

@@ -271,3 +271,3 @@ var logType = Object.keys(logSpec.level || logSpec)

? false
: 'object' === typeof obj[k]
: obj[k] && 'object' === typeof obj[k]
? boolify(obj[k])

@@ -274,0 +274,0 @@ : obj[k]

@@ -104,3 +104,3 @@ /* Copyright © 2014-2018 Richard Rodger and other contributors, MIT License. */

!(
'object' === typeof res ||
(res && 'object' === typeof res) ||
res instanceof Error ||

@@ -107,0 +107,0 @@ !!res.meta$ ||

@@ -240,3 +240,3 @@ /* Copyright © 2020 Richard Rodger and other contributors, MIT License. */

let meta = spec.data.meta;
if ('object' === typeof meta.extend) {
if (meta.extend && 'object' === typeof meta.extend) {
if ('function' === typeof meta.extend.action_modifier) {

@@ -243,0 +243,0 @@ seneca.private$.action_modifiers.push(meta.extend.action_modifier);

@@ -328,3 +328,3 @@ /* Copyright © 2020 Richard Rodger and other contributors, MIT License. */

if ('object' === typeof meta.extend) {
if (meta.extend && 'object' === typeof meta.extend) {
if ('function' === typeof meta.extend.action_modifier) {

@@ -331,0 +331,0 @@ seneca.private$.action_modifiers.push(meta.extend.action_modifier)

@@ -164,3 +164,3 @@ /* Copyright © 2015-2020 Richard Rodger and other contributors, MIT License. */

var value = msg[key]
if ('object' === typeof value && value.entity$) {
if (value && 'object' === typeof value && value.entity$) {
msg[key] = seneca.make$(value)

@@ -167,0 +167,0 @@ }

{
"name": "seneca",
"description": "A Microservices Framework for Node.js",
"version": "3.21.1",
"version": "3.21.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "homepage": "http://senecajs.org",

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