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

util-ex

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-ex - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2

10

package.json

@@ -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"
}
}

48

src/_extend.js

@@ -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.
*
*/
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