Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/snowyu/util-ex.js", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0-alpha.2", | ||
"author": { | ||
@@ -36,2 +36,5 @@ "name": "Riceball LEE", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=8" | ||
}, | ||
"devDependencies": { | ||
@@ -70,3 +73,3 @@ "@antfu/eslint-config": "^0.38.4", | ||
"lint.fix": "npm run lint -- --fix", | ||
"release": "npm run clean && npm run build && npx standard-version", | ||
"release": "npm run clean && npm run build && npx standard-version -s", | ||
"release.alpha": "npm run release -- --prerelease alpha", | ||
@@ -76,5 +79,4 @@ "test": "mocha" | ||
"dependencies": { | ||
"inherits-ex": "^2.1.0-alpha.3", | ||
"xtend": "^4.0.2" | ||
"inherits-ex": "^2.1.0-alpha.4" | ||
} | ||
} |
@@ -1,46 +0,4 @@ | ||
import extend from "xtend/mutable.js"; | ||
/** | ||
* Copy properties from one or more source objects to a target object. | ||
* | ||
* @type {ExtendFn} | ||
* | ||
* @param {object} target - The target object to copy properties to. | ||
* @param {...object} sources - The source objects to copy properties from. | ||
* @returns {object} The modified target object. | ||
* | ||
* @example | ||
* // Example 1: | ||
* const targetObj = { a: 1 }; | ||
* const sourceObj1 = { b: 2 }; | ||
* const sourceObj2 = { c: 3 }; | ||
* | ||
* const result = extend(targetObj, sourceObj1, sourceObj2); | ||
* // targetObj is now { a: 1, b: 2, c: 3 } | ||
* // result is also { a: 1, b: 2, c: 3 } | ||
* | ||
* @example | ||
* // Example 2: | ||
* const targetObj = { a: 1 }; | ||
* const sourceObj = Object.create({ b: 2 }); | ||
* | ||
* const result = extend(targetObj, sourceObj); | ||
* // targetObj is now { a: 1 } | ||
* // result is also { a: 1 } | ||
*/ | ||
export const _extend = extend; | ||
/** | ||
* | ||
* @type {ExtendFn} | ||
*/ | ||
import {_extend} from "inherits-ex"; | ||
export {_extend} from "inherits-ex"; | ||
export default _extend; | ||
/** | ||
* Copy properties from one or more source objects to a target object. | ||
* | ||
* @callback ExtendFn | ||
* @param {object} target - The target object to copy properties to. | ||
* @param {...object} sources - The source objects to copy properties from. | ||
* @returns {object} The modified target object. | ||
* | ||
*/ | ||
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
1
212171
5870
- Removedxtend@^4.0.2
- Removedxtend@4.0.2(transitive)
Updatedinherits-ex@^2.1.0-alpha.4