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.2 to 2.0.0-alpha.3

35

lib/_extend.d.ts

@@ -1,34 +0,3 @@

/**
* 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: ExtendFn;
export { _extend } from "inherits-ex";
export default _extend;
/**
* Copy properties from one or more source objects to a target object.
*/
export type ExtendFn = (target: object, ...sources: object[]) => object;
import { _extend } from "inherits-ex";

@@ -6,49 +6,11 @@ "use strict";

});
exports.default = exports._extend = void 0;
var _mutable = _interopRequireDefault(require("xtend/mutable.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* 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 }
*/
const _extend = _mutable.default;
/**
*
* @type {ExtendFn}
*/
exports._extend = _extend;
var _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.
*
*/
Object.defineProperty(exports, "_extend", {
enumerable: true,
get: function () {
return _inheritsEx._extend;
}
});
exports.default = void 0;
var _inheritsEx = require("inherits-ex");
var _default = _inheritsEx._extend;
exports.default = _default;

2

lib/is/type/integer.d.ts

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

export const isInt: any;
export function isInt(value: unknown): boolean;
export default isInt;

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/snowyu/util-ex.js",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"author": {

@@ -63,3 +63,3 @@ "name": "Riceball LEE",

"build.cjs": "babel src --out-dir lib --config-file ./.babelrc",
"build.ts": "tsc --outDir lib",
"build.ts": "tsc --declaration --emitDeclarationOnly --outDir lib",
"clean": "rm -fr web docs lib",

@@ -78,4 +78,4 @@ "clean.doc": "rm -fr web docs",

"dependencies": {
"inherits-ex": "^2.1.0-alpha.4"
"inherits-ex": "^2.1.0-alpha.5"
}
}
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