Comparing version 1.0.1 to 4.0.0
{ | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
20571
10
210
56
Yes
12
2