Socket
Socket
Sign inDemoInstall

validate-peer-dependencies

Package Overview
Dependencies
4
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

index.d.ts

7

package.json
{
"$schema": "https://json.schemastore.org/package.json",
"name": "validate-peer-dependencies",
"version": "2.0.0",
"version": "2.1.0",
"description": "Validate that the peerDependencies of a given package.json have been satisfied.",

@@ -12,4 +13,6 @@ "repository": {

"main": "index.js",
"types": "index.d.ts",
"files": [
"index.js"
"index.js",
"index.d.ts"
],

@@ -16,0 +19,0 @@ "scripts": {

@@ -135,3 +135,3 @@ # validate-peer-dependencies

```js
```javascript
'use strict';

@@ -153,2 +153,23 @@

Or alternatively, if it only makes sense for the addon to validate peer deps
during a build, that would look like:
```javascript
'use strict';
const validatePeerDependencies = require('validate-peer-dependencies');
module.exports = {
included(parent) {
this._super.included.apply(this, arguments);
validatePeerDependencies(__dirname, {
resolvePeerDependenciesFrom: parent.root,
});
return parent;
}
};
```
#### `handleFailure`

@@ -155,0 +176,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc