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

fun-model

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fun-model - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

dist/helpers.d.ts

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

export declare function shallowCopy<T>(source: T, callback?: (target: T) => T): T;
export declare function shallowCopy<T>(source: T, callback?: (target: T) => T | void): T;

@@ -7,5 +7,6 @@ function shallowCopy(source, callback) {

target[property] = source[property];
return callback(target);
callback(target);
return target;
}
exports.shallowCopy = shallowCopy;
;

@@ -1,7 +0,9 @@

export function shallowCopy<T>(source: T, callback: (target: T) => T = (t: T) => { return t; }): T {
let target = {};
export function shallowCopy<T>(source: T, callback: (target: T) => T | void = (t: T) => { return t; }): T {
let target = <T>{};
for (var property in source)
if (source.hasOwnProperty(property))
target[property] = source[property];
return callback(<T>target);
callback(target);
return target;
};
{
"name": "fun-model",
"version": "0.1.2",
"version": "0.1.3",
"description": "fun-model is pure functional implementation of FLUX architecture.",

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

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