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

extend2

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extend2 - npm Package Compare versions

Comparing version 1.0.1 to 4.0.0

dist/commonjs/index.d.ts

72

package.json
{
"name": "extend2",
"author": "popomore <sakura9515@gmail.com>",
"version": "1.0.1",
"description": "Port of jQuery.extend for node.js and the browser",
"main": "index",
"version": "4.0.0",
"engines": {
"node": ">=18.7.0"
},
"publishConfig": {
"tag": "latest"
},
"description": "Port of jQuery.extend for Node.js",
"scripts": {
"test": "npm run lint && npm run tests-only && npm run coverage-quiet",
"tests-only": "node test",
"coverage": "covert test/index.js",
"coverage-quiet": "covert test/index.js --quiet",
"lint": "npm run eslint",
"eslint": "eslint *.js */*.js",
"ci": "npm run test"
"lint": "eslint .",
"test": "npm run lint -- --fix && npm run test-local",
"test-local": "egg-bin test",
"ci": "npm run lint && egg-bin cov && npm run prepublishOnly",
"contributor": "git-contributor",
"prepublishOnly": "tshy && tshy-after"
},

@@ -25,17 +29,45 @@ "keywords": [

},
"dependencies": {},
"devDependencies": {
"covert": "^1.1.0",
"eslint": "^3.2.2",
"eslint-config-egg": "^3.2.0",
"tape": "^4.6.0"
"@eggjs/tsconfig": "1",
"@types/mocha": "10",
"@types/node": "20",
"c8": "^10.0.0",
"egg-bin": "6",
"eslint": "8",
"eslint-config-egg": "13",
"git-contributor": "2",
"tape": "^5.7.5",
"tshy": "^1.15.1",
"tshy-after": "^1.0.0",
"typescript": "^5.4.5"
},
"license": "MIT",
"files": [
"index.js"
"dist",
"src"
],
"ci": {
"type": "github",
"version": "6, 8, 10, 12, 14, 16"
}
"type": "module",
"tshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"source": "./src/index.ts",
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"source": "./src/index.ts",
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts"
}

@@ -6,5 +6,4 @@ # extend2

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Node.js CI](https://github.com/eggjs/extend2/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/extend2/actions/workflows/nodejs.yml)
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]

@@ -15,8 +14,4 @@ [![npm download][download-image]][download-url]

[npm-url]: https://npmjs.org/package/extend2
[travis-image]: https://img.shields.io/travis/eggjs/extend2.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/extend2
[codecov-image]: https://codecov.io/gh/eggjs/extend2/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/eggjs/extend2
[david-image]: https://img.shields.io/david/eggjs/extend2.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/extend2
[snyk-image]: https://snyk.io/test/npm/extend2/badge.svg?style=flat-square

@@ -29,4 +24,4 @@ [snyk-url]: https://snyk.io/test/npm/extend2

```js
const extend = require('extend2');
```ts
import { extend } from 'extend2';

@@ -39,3 +34,3 @@ // for deep clone

`node-extend` is licensed under the [MIT License][mit-license-url].
`extend2` is licensed under the [MIT License](LICENSE).

@@ -48,3 +43,15 @@ ## Acknowledgements

[mit-license-url]: http://opensource.org/licenses/MIT
<!-- GITCONTRIBUTOR_START -->
## Contributors
|[<img src="https://avatars.githubusercontent.com/u/45469?v=4" width="100px;"/><br/><sub><b>ljharb</b></sub>](https://github.com/ljharb)<br/>|[<img src="https://avatars.githubusercontent.com/u/53233?v=4" width="100px;"/><br/><sub><b>justmoon</b></sub>](https://github.com/justmoon)<br/>|[<img src="https://avatars.githubusercontent.com/u/1557266?v=4" width="100px;"/><br/><sub><b>jonmorehouse</b></sub>](https://github.com/jonmorehouse)<br/>|[<img src="https://avatars.githubusercontent.com/u/360661?v=4" width="100px;"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|[<img src="https://avatars.githubusercontent.com/u/2396468?v=4" width="100px;"/><br/><sub><b>greelgorke</b></sub>](https://github.com/greelgorke)<br/>|[<img src="https://avatars.githubusercontent.com/u/273857?v=4" width="100px;"/><br/><sub><b>andyburke</b></sub>](https://github.com/andyburke)<br/>|
| :---: | :---: | :---: | :---: | :---: | :---: |
|[<img src="https://avatars.githubusercontent.com/u/788368?v=4" width="100px;"/><br/><sub><b>blaise-io</b></sub>](https://github.com/blaise-io)<br/>|[<img src="https://avatars.githubusercontent.com/u/680696?v=4" width="100px;"/><br/><sub><b>danbell</b></sub>](https://github.com/danbell)<br/>|[<img src="https://avatars.githubusercontent.com/u/2598089?v=4" width="100px;"/><br/><sub><b>jamielinux</b></sub>](https://github.com/jamielinux)<br/>|[<img src="https://avatars.githubusercontent.com/u/226692?v=4" width="100px;"/><br/><sub><b>insin</b></sub>](https://github.com/insin)<br/>|[<img src="https://avatars.githubusercontent.com/u/152407?v=4" width="100px;"/><br/><sub><b>madarche</b></sub>](https://github.com/madarche)<br/>|[<img src="https://avatars.githubusercontent.com/u/1088720?v=4" width="100px;"/><br/><sub><b>Mithgol</b></sub>](https://github.com/Mithgol)<br/>|
[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/5362563?v=4" width="100px;"/><br/><sub><b>2hu12</b></sub>](https://github.com/2hu12)<br/>
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Jun 15 2024 10:08:30 GMT+0800`.
<!-- GITCONTRIBUTOR_END -->
[github-justmoon]: https://github.com/justmoon

@@ -51,0 +58,0 @@ [github-insin]: https://github.com/insin

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