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

kung-fig-dynamic

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kung-fig-dynamic - npm Package Compare versions

Comparing version 0.42.3 to 0.42.4

21

lib/Dynamic.js

@@ -72,2 +72,8 @@ /*

Dynamic.prototype.getDeepFinalClone = function( ctx , bound ) {
return Dynamic.getDeepFinalClone( this , ctx , bound ) ;
} ;
Dynamic.get = Dynamic.getValue = function( value , ctx , bound ) {

@@ -103,4 +109,2 @@ if ( value && typeof value === 'object' && value.__isDynamic__ ) { return value.getValue( ctx , bound ) ; }

|| value.__isDynamic__
// If we already have a unique new value, no need to clone anything.
|| value !== originalValue || ! value || typeof value !== 'object'
) {

@@ -110,2 +114,4 @@ return value ;

if ( value !== originalValue ) { changed = true ; }
if ( Array.isArray( value ) ) {

@@ -147,4 +153,2 @@ clone = value.map( v => {

|| value.__isDynamic__
// If we already have a unique new value, no need to clone anything.
|| value !== originalValue || ! value || typeof value !== 'object'
) {

@@ -154,2 +158,5 @@ return value ;

// If we already have a unique new value, no need to clone anything: switch to .getDeepFinalValue()
if ( value !== originalValue ) { Dynamic.getDeepFinalValue( value , ctx , bound ) ; }
if ( Array.isArray( value ) ) {

@@ -204,8 +211,2 @@ return value.map( v => Dynamic.getDeepFinalClone( v , ctx , bound ) ) ;

else if ( proto === Object.prototype || proto === null ) {
/*
if ( value.__isDynamic__ || value.__isApplicable__ ) {
console.log( "Oh my gawd! Bug!" , proto , proto.constructor.name , value.constructor.name , value.__isDynamic__ , value.__isApplicable__ , value ) ;
}
*/
if ( originalValue === value ) { copy = {} ; }

@@ -212,0 +213,0 @@

{
"name": "kung-fig-dynamic",
"version": "0.42.3",
"version": "0.42.4",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=6.0.0"

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