Socket
Socket
Sign inDemoInstall

@changesets/get-dependents-graph

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/get-dependents-graph - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

7

CHANGELOG.md
# @changesets/get-dependents-graph
## 1.3.1
### Patch Changes
- Updated dependencies [[`27a5a82`](https://github.com/changesets/changesets/commit/27a5a82188914570d192162f9d045dfd082a3c15)]:
- @changesets/types@4.1.0
## 1.3.0

@@ -4,0 +11,0 @@

7

package.json
{
"name": "@changesets/get-dependents-graph",
"version": "1.3.0",
"version": "1.3.1",
"description": "Get the graph of dependents in a monorepo",

@@ -10,3 +10,3 @@ "main": "dist/get-dependents-graph.cjs.js",

"dependencies": {
"@changesets/types": "^4.0.2",
"@changesets/types": "^4.1.0",
"@manypkg/get-packages": "^1.1.3",

@@ -16,3 +16,6 @@ "chalk": "^2.1.0",

"semver": "^5.4.1"
},
"devDependencies": {
"@changesets/test-utils": "*"
}
}

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

import { temporarilySilenceLogs } from "@changesets/test-utils";
import getDependencyGraph from "./get-dependency-graph";

@@ -5,7 +6,7 @@

beforeEach(async () => {
beforeEach(() => {
console.error = jest.fn();
});
afterEach(async () => {
afterEach(() => {
console.error = consoleError;

@@ -79,31 +80,33 @@ });

it("should set valid to false if the link protocol is used in a non-dev dep", function() {
const { valid } = getDependencyGraph({
root: {
dir: ".",
packageJson: { name: "root", version: "1.0.0" }
},
packages: [
{
dir: "foo",
packageJson: {
name: "foo",
version: "1.0.0",
dependencies: {
bar: "link:../bar"
it(
"should set valid to false if the link protocol is used in a non-dev dep",
temporarilySilenceLogs(() => {
const { valid } = getDependencyGraph({
root: {
dir: ".",
packageJson: { name: "root", version: "1.0.0" }
},
packages: [
{
dir: "foo",
packageJson: {
name: "foo",
version: "1.0.0",
dependencies: {
bar: "link:../bar"
}
}
},
{
dir: "bar",
packageJson: {
name: "bar",
version: "1.0.0"
}
}
},
{
dir: "bar",
packageJson: {
name: "bar",
version: "1.0.0"
}
}
],
tool: "pnpm"
});
expect(valid).toBeFalsy();
expect((console.error as any).mock.calls).toMatchInlineSnapshot(`
],
tool: "pnpm"
});
expect(valid).toBeFalsy();
expect((console.error as any).mock.calls).toMatchInlineSnapshot(`
Array [

@@ -115,3 +118,4 @@ Array [

`);
});
})
);
});
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