Comparing version 0.3.0 to 0.3.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18630
21
128
+ Addedlodash.merge@^4.6.0
+ Addedlodash.merge@4.6.2(transitive)
- Removedlodash.defaults@^4.2.0
- Removedlodash.defaults@4.2.0(transitive)