New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-options-defaults

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-options-defaults - npm Package Compare versions

Comparing version 0.0.3-5 to 0.0.3-6

12

dist/index.js

@@ -34,14 +34,6 @@ "use strict";

}
// Handle classes and merge their functions.
var prototype = Object.getPrototypeOf(source);
Object.entries(prototype).forEach(function (_a) {
var _b = __read(_a, 2), key = _b[0], value = _b[1];
if (typeof value === 'function') {
object[key] = value.bind(object);
}
});
Object.entries(source).forEach(function (_a) {
var _b = __read(_a, 2), key = _b[0], value = _b[1];
// Handle simple types.
if (typeof value !== 'object' || Array.isArray(value)) {
// Handle simple types and members of classes different than Object.
if (typeof value !== 'object' || Array.isArray(value) || value.constructor.name !== 'Object') {
object[key] = value;

@@ -48,0 +40,0 @@ return;

5

package.json
{
"name": "ts-options-defaults",
"version": "0.0.3-5",
"version": "0.0.3-6",
"license": "GPL-3.0",
"files": [
"dist"
],
"author": "Artur Kurowski <radarsu@gmail.com>",

@@ -6,0 +9,0 @@ "homepage": "https://github.com/radarsu/ts-options-defaults#readme",

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