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

unpartial

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unpartial - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

dist-es2015/unpartial.d.ts

4

dist-es2015/index.d.ts

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

export declare function unpartial<T extends object>(base: T, partial: Partial<T> | undefined): T;
export declare function unpartial<T extends object, R extends object = {}>(superBase: R, base: T | undefined, partial: Partial<T> | undefined): T & R;
export * from './unpartial';
export * from './unpartialRecursively';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
const defaults = require("lodash.defaults");
function unpartial(arg1, arg2, arg3) {
if (arguments.length === 3) {
return unpartialTrio(arg1, arg2, arg3);
}
else {
return unpartialDuo(arg1, arg2);
}
}
exports.unpartial = unpartial;
function unpartialTrio(superBase, base, partial) {
if (superBase === undefined || superBase === null)
return superBase;
if (base === undefined || base === null)
return unpartial(superBase, partial);
return defaults({}, partial, base, superBase);
}
function unpartialDuo(base, partial) {
if (partial === undefined || partial === null)
return partial;
return defaults({}, partial, base);
}
__export(require("./unpartial"));
__export(require("./unpartialRecursively"));
//# sourceMappingURL=index.js.map

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

export declare function unpartial<T extends object>(base: T, partial: Partial<T> | undefined): T;
export declare function unpartial<T extends object, R extends object = {}>(superBase: R, base: T | undefined, partial: Partial<T> | undefined): T & R;
export * from './unpartial';
export * from './unpartialRecursively';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var defaults = require("lodash.defaults");
function unpartial(arg1, arg2, arg3) {
if (arguments.length === 3) {
return unpartialTrio(arg1, arg2, arg3);
}
else {
return unpartialDuo(arg1, arg2);
}
}
exports.unpartial = unpartial;
function unpartialTrio(superBase, base, partial) {
if (superBase === undefined || superBase === null)
return superBase;
if (base === undefined || base === null)
return unpartial(superBase, partial);
return defaults({}, partial, base, superBase);
}
function unpartialDuo(base, partial) {
if (partial === undefined || partial === null)
return partial;
return defaults({}, partial, base);
}
__export(require("./unpartial"));
__export(require("./unpartialRecursively"));
//# sourceMappingURL=index.js.map
{
"name": "unpartial",
"version": "0.3.0",
"version": "0.3.1",
"description": "Unpartial a partialed object",

@@ -35,3 +35,4 @@ "main": "dist-es5/index.js",

"keywords": [
"typecript",
"typescript",
"javascript",
"utility"

@@ -68,6 +69,6 @@ ],

"dependencies": {
"lodash.defaults": "^4.2.0"
"lodash.merge": "^4.6.0"
},
"devDependencies": {
"@types/lodash.defaults": "^4.2.3",
"@types/lodash.merge": "^4.6.3",
"ava": "^0.22.0",

@@ -74,0 +75,0 @@ "dependency-check": "^2.9.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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