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

typhonjs-escomplex-commons

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typhonjs-escomplex-commons - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

dist/module/traits/TraitUtil.js

10

dist/module/traits/actualize.js

@@ -19,5 +19,5 @@ 'use strict';

cyclomatic: new _Trait2.default('cyclomatic', cyclomatic),
operators: new _HalsteadArray2.default('operators', (0, _safeArray2.default)(operators)),
operands: new _HalsteadArray2.default('operands', (0, _safeArray2.default)(operands)),
ignoreKeys: new _Trait2.default('ignoreKeys', (0, _safeArray2.default)(ignoreKeys)),
operators: new _HalsteadArray2.default('operators', _TraitUtil2.default.safeArray(operators)),
operands: new _HalsteadArray2.default('operands', _TraitUtil2.default.safeArray(operands)),
ignoreKeys: new _Trait2.default('ignoreKeys', _TraitUtil2.default.safeArray(ignoreKeys)),
newScope: new _Trait2.default('newScope', newScope),

@@ -36,5 +36,5 @@ dependencies: new _Trait2.default('dependencies', dependencies)

var _safeArray = require('./safeArray');
var _TraitUtil = require('./TraitUtil');
var _safeArray2 = _interopRequireDefault(_safeArray);
var _TraitUtil2 = _interopRequireDefault(_TraitUtil);

@@ -41,0 +41,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

{
"name": "typhonjs-escomplex-commons",
"version": "0.0.13",
"version": "0.0.14",
"homepage": "https://github.com/typhonjs-node-escomplex/typhonjs-escomplex-commons/",

@@ -5,0 +5,0 @@ "description": "Provides core common utilities for typhonjs-escomplex modules and plugins.",

import HalsteadArray from './HalsteadArray';
import Trait from './Trait';
import TraitUtil from './TraitUtil';
import safeArray from './safeArray';
/**

@@ -25,5 +24,5 @@ * Provides a helper method to format core traits for escomplex processing.

cyclomatic: new Trait('cyclomatic', cyclomatic),
operators: new HalsteadArray('operators', safeArray(operators)),
operands: new HalsteadArray('operands', safeArray(operands)),
ignoreKeys: new Trait('ignoreKeys', safeArray(ignoreKeys)),
operators: new HalsteadArray('operators', TraitUtil.safeArray(operators)),
operands: new HalsteadArray('operands', TraitUtil.safeArray(operands)),
ignoreKeys: new Trait('ignoreKeys', TraitUtil.safeArray(ignoreKeys)),
newScope: new Trait('newScope', newScope),

@@ -30,0 +29,0 @@ dependencies: new Trait('dependencies', dependencies)

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