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

orma

Package Overview
Dependencies
Maintainers
2
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orma - npm Package Compare versions

Comparing version 1.0.76 to 1.0.77

5

build/mutate/macros/inherit_operations_macro.js

@@ -27,3 +27,6 @@ "use strict";

for (const prop in item) {
inherit_operations_macro_recursive(item[prop], operation);
// we dont want to propagate operations into nested objects, such as $guid objects
if (Array.isArray(item[prop])) {
inherit_operations_macro_recursive(item[prop], operation);
}
}

@@ -30,0 +33,0 @@ }

@@ -94,3 +94,14 @@ "use strict";

});
(0, mocha_1.test)('skips nested objects', () => {
const mutation = {
$operation: 'create',
products: {}
};
(0, inherit_operations_macro_1.apply_inherit_operations_macro)(mutation);
(0, chai_1.expect)(mutation).to.deep.equal({
$operation: 'create',
products: {}
});
});
});
});

2

package.json
{
"name": "orma",
"version": "1.0.76",
"version": "1.0.77",
"description": "A declarative relational syncronous orm",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -32,3 +32,6 @@ import { deep_for_each, is_simple_object } from '../../helpers/helpers'

for (const prop in item) {
inherit_operations_macro_recursive(item[prop], operation)
// we dont want to propagate operations into nested objects, such as $guid objects
if (Array.isArray(item[prop])) {
inherit_operations_macro_recursive(item[prop], operation)
}
}

@@ -35,0 +38,0 @@ }

@@ -99,3 +99,16 @@ import { describe, test } from 'mocha'

})
test('skips nested objects', () => {
const mutation = {
$operation: 'create',
products: {}
}
apply_inherit_operations_macro(mutation)
expect(mutation).to.deep.equal({
$operation: 'create',
products: {}
})
})
})
})
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