Socket
Socket
Sign inDemoInstall

archetype

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

archetype - npm Package Compare versions

Comparing version 0.9.1 to 0.10.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="0.10.0"></a>
# [0.10.0](https://github.com/boosterfuels/archetype/compare/v0.9.1...v0.10.0) (2019-08-09)
### Performance Improvements
* remove `cloneDeep()` to reduce memory usage for huge objects ([117c083](https://github.com/boosterfuels/archetype/commit/117c083))
<a name="0.9.1"></a>

@@ -2,0 +12,0 @@ ## [0.9.1](https://github.com/boosterfuels/archetype/compare/v0.9.0...v0.9.1) (2019-06-10)

3

package.json
{
"name": "archetype",
"version": "0.9.1",
"version": "0.10.0",
"author": "Valeri Karpov <val@boosterfuels.com>",
"dependencies": {
"lodash.clonedeep": "4.x",
"lodash.set": "4.x",

@@ -8,0 +7,0 @@ "mpath": "0.5.1",

@@ -5,3 +5,2 @@ 'use strict';

const Type = require('./type');
const cloneDeep = require('lodash.clonedeep');
const get = require('./get');

@@ -14,3 +13,3 @@ const set = require('lodash.set');

constructor(obj) {
this._obj = cloneDeep(obj);
this._obj = obj;
this._paths = {};

@@ -17,0 +16,0 @@ }

'use strict';
const cloneDeep = require('lodash.clonedeep');
const unmarshal = require('./unmarshal');

@@ -8,3 +7,3 @@

constructor(obj, projection) {
Object.assign(this, unmarshal(cloneDeep(obj), this.constructor.schema, projection));
Object.assign(this, unmarshal(obj, this.constructor.schema, projection));
}

@@ -11,0 +10,0 @@ }

@@ -8,3 +8,2 @@ 'use strict';

const checkRequired = require('../required');
const cloneDeep = require('lodash.clonedeep');
const getOwnProperty = require('../helpers/getOwnProperty');

@@ -34,3 +33,2 @@ const handleCast = require('./util').handleCast;

}
projection = cloneDeep(projection);
projection.$hasExclusiveChild = {};

@@ -37,0 +35,0 @@ let inclusive = null;

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