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

mrules-engine

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mrules-engine - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

dist/rules-engine.d.ts

@@ -1,4 +0,4 @@

declare function _pathOr(defaultValue: any, obj: Object, ...keys: any): any;
declare const unflatten: any;
declare const pathOr: any;
declare const generatePath: (defaultValue: any, obj: Object, ...keys: any) => any;
declare const pathOr: (defaultValue: any, paths: Array<string>, body: Object) => any;
interface Rule {

@@ -5,0 +5,0 @@ pathTo: string;

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

function _pathOr(defaultValue, obj, ...keys) {
return keys.reduce((acc, key) => (acc || {})[key], obj) || defaultValue;
}
;
module.exports = (defaultValue, paths, body) => _pathOr(defaultValue, body, ...paths);
const { unflatten } = require('flat');
const pathOr = require('./path-or');
const generatePath = (defaultValue, obj, ...keys) => keys.reduce((acc, key) => (acc || {})[key], obj) || defaultValue;
const pathOr = (defaultValue, paths, body) => generatePath(defaultValue, body, ...paths);
;

@@ -9,0 +5,0 @@ ;

{
"name": "mrules-engine",
"version": "1.1.0",
"version": "1.2.0",
"dependencies": {

@@ -5,0 +5,0 @@ "flat": "^4.0.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