├── .circleci └── config.yml ├── .eslintrc.json ├── .gitattributes ├── .github ├── CODEOWNERS ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .npmrc ├── .nvmrc ├── .pre-commit-config.yaml ├── .prettierrc.json ├── Contributor-Agreement.md ├── LICENSE ├── README.md ├── benchmark ├── .eslintrc.json ├── count-paths-to-root.ts ├── create-from-json.ts ├── fixtures │ └── big-golang-graph.json ├── pkg-paths-to-root.ts └── tsconfig.json ├── catalog-info.yaml ├── go ├── go.mod ├── go.sum └── pkg │ └── depgraph │ ├── builder.go │ ├── builder_test.go │ ├── depgraph.go │ ├── depgraph_test.go │ └── testdata │ ├── snyk_dep_graph.json │ ├── snyk_dep_graph_cyclic.json │ └── snyk_dep_graph_shared_dep.json ├── jest.config.js ├── package.json ├── scripts ├── readme.md ├── to-graph.ts └── to-tree.ts ├── src ├── core │ ├── builder.ts │ ├── create-changed-packages-graph.ts │ ├── create-from-json.ts │ ├── dep-graph.ts │ ├── errors │ │ ├── custom-error.ts │ │ ├── index.ts │ │ └── validation-error.ts │ ├── filter-from-graph.ts │ ├── types.ts │ └── validate-graph.ts ├── graphlib │ ├── LICENSE-graphlib │ ├── alg │ │ ├── dfs.ts │ │ ├── is-acyclic.ts │ │ ├── postorder.ts │ │ └── topsort.ts │ ├── graph.ts │ └── index.ts ├── index.ts └── legacy │ ├── cycles.ts │ ├── index.ts │ └── memiozation.ts ├── test ├── core │ ├── __snapshots__ │ │ ├── count-paths-to-root.test.ts.snap │ │ ├── filter-from-graph.test.ts.snap │ │ └── pkg-paths-to-root.test.ts.snap │ ├── builder.test.ts │ ├── count-paths-to-root.test.ts │ ├── create-changed-packages-graph.test.ts │ ├── create-from-json.test.ts │ ├── direct-deps-leading-to.test.ts │ ├── equals.test.ts │ ├── filter-from-graph.test.ts │ ├── is-transitive.test.ts │ ├── pkg-paths-to-root.test.ts │ ├── stress.test.ts │ └── validate-graph.test.ts ├── fixtures │ ├── changed-packages-graph │ │ ├── graph-direct-dep-added-expected.json │ │ ├── graph-direct-dep-added-expected.png │ │ ├── graph-direct-dep-added.json │ │ ├── graph-direct-dep-added.png │ │ ├── graph-direct-dep-changed-cycle-expected.json │ │ ├── graph-direct-dep-changed-cycle-expected.png │ │ ├── graph-direct-dep-changed-cycle.json │ │ ├── graph-direct-dep-changed-cycle.png │ │ ├── graph-direct-dep-changed-expected.json │ │ ├── graph-direct-dep-changed-expected.png │ │ ├── graph-direct-dep-changed.json │ │ ├── graph-direct-dep-changed.png │ │ ├── graph-direct-dep-removed-expected.json │ │ ├── graph-direct-dep-removed-expected.png │ │ ├── graph-direct-dep-removed.json │ │ ├── graph-direct-dep-removed.png │ │ ├── graph-direct-dep-with-exiting-transitive-dep-added-expected.json │ │ ├── graph-direct-dep-with-exiting-transitive-dep-added-expected.png │ │ ├── graph-direct-dep-with-exiting-transitive-dep-added.json │ │ ├── graph-direct-dep-with-exiting-transitive-dep-added.png │ │ ├── graph-root-and-direct-dep-changed-expected.json │ │ ├── graph-root-and-direct-dep-changed-expected.png │ │ ├── graph-root-and-direct-dep-changed.json │ │ ├── graph-root-and-direct-dep-changed.png │ │ ├── graph-root-changed-expected.json │ │ ├── graph-root-changed-expected.png │ │ ├── graph-root-changed.json │ │ ├── graph-root-changed.png │ │ ├── graph-transitive-dep-as-direct-dep-expected.json │ │ ├── graph-transitive-dep-as-direct-dep-expected.png │ │ ├── graph-transitive-dep-as-direct-dep.json │ │ ├── graph-transitive-dep-as-direct-dep.png │ │ ├── graph-transitive-dep-changed-cycle-expected.json │ │ ├── graph-transitive-dep-changed-cycle-expected.png │ │ ├── graph-transitive-dep-changed-cycle.json │ │ ├── graph-transitive-dep-changed-cycle.png │ │ ├── graph-transitive-dep-changed-expected.json │ │ ├── graph-transitive-dep-changed-expected.png │ │ ├── graph-transitive-dep-changed.json │ │ ├── graph-transitive-dep-changed.png │ │ ├── graph-transitive-dep-removed-expected.json │ │ ├── graph-transitive-dep-removed-expected.png │ │ ├── graph-transitive-dep-removed.json │ │ ├── graph-transitive-dep-removed.png │ │ ├── graph.json │ │ └── graph.png │ ├── cyclic-complex-dep-graph-expected-optimized-tree.png │ ├── cyclic-complex-dep-graph.json │ ├── cyclic-complex-dep-graph.png │ ├── cyclic-dep-graph.json │ ├── equals │ │ ├── cycles │ │ │ ├── one-node-cycle-a.json │ │ │ ├── one-node-cycle-b.json │ │ │ ├── simple-a.json │ │ │ └── simple-b.json │ │ ├── different-node-id-a.json │ │ ├── different-node-id-b.json │ │ ├── simple-different-minor-verion.json │ │ ├── simple-different-root.json │ │ ├── simple-one-more-child.json │ │ ├── simple-with-label.json │ │ ├── simple-wrong-nodes-order-a.json │ │ ├── simple-wrong-nodes-order-b.json │ │ └── simple.json │ ├── goof-dep-tree.json │ ├── goof-graph.json │ ├── gradle-dep-tree.json │ ├── labelled-dep-tree.json │ ├── labelled-graph.json │ ├── maven-dep-tree-wonky.json │ ├── maven-dep-tree.json │ ├── npm-cyclic-dep-tree.json │ ├── npm-dep-tree.json │ ├── old-schema-compat │ │ └── simple-graph-1.0.0.json │ ├── os-apk-dep-tree.json │ ├── os-apt-dep-tree.json │ ├── os-deb-dep-tree.json │ ├── os-deb-graph.json │ ├── os-linux-scratch-dep-graph.json │ ├── os-linux-scratch-dep-tree.json │ ├── os-rpm-dep-tree.json │ ├── pip-dep-tree.json │ ├── plain-dep-graph.json │ ├── pruneable-tree-multi-top-level-deps-pruned.json │ ├── pruneable-tree-multi-top-level-deps.json │ ├── pruneable-tree-pruned.json │ ├── pruneable-tree.json │ ├── sbt-dep-tree.json │ ├── simple-dep-tree.json │ ├── simple-graph.json │ ├── unpruneable-tree.json │ └── yarn-dep-tree.json ├── helpers.ts ├── legacy │ ├── __snapshots__ │ │ ├── from-dep-tree.test.ts.snap │ │ └── to-dep-tree.test.ts.snap │ ├── from-dep-tree.test.ts │ ├── stress.test.ts │ ├── to-dep-tree-prune.test.ts │ └── to-dep-tree.test.ts └── tsconfig.json └── tsconfig.json /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 14 -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /Contributor-Agreement.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/Contributor-Agreement.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/benchmark/.eslintrc.json -------------------------------------------------------------------------------- /benchmark/count-paths-to-root.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/benchmark/count-paths-to-root.ts -------------------------------------------------------------------------------- /benchmark/create-from-json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/benchmark/create-from-json.ts -------------------------------------------------------------------------------- /benchmark/fixtures/big-golang-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/benchmark/fixtures/big-golang-graph.json -------------------------------------------------------------------------------- /benchmark/pkg-paths-to-root.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/benchmark/pkg-paths-to-root.ts -------------------------------------------------------------------------------- /benchmark/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/benchmark/tsconfig.json -------------------------------------------------------------------------------- /catalog-info.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/catalog-info.yaml -------------------------------------------------------------------------------- /go/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/go.mod -------------------------------------------------------------------------------- /go/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/go.sum -------------------------------------------------------------------------------- /go/pkg/depgraph/builder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/pkg/depgraph/builder.go -------------------------------------------------------------------------------- /go/pkg/depgraph/builder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/pkg/depgraph/builder_test.go -------------------------------------------------------------------------------- /go/pkg/depgraph/depgraph.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/pkg/depgraph/depgraph.go -------------------------------------------------------------------------------- /go/pkg/depgraph/depgraph_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/pkg/depgraph/depgraph_test.go -------------------------------------------------------------------------------- /go/pkg/depgraph/testdata/snyk_dep_graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/pkg/depgraph/testdata/snyk_dep_graph.json -------------------------------------------------------------------------------- /go/pkg/depgraph/testdata/snyk_dep_graph_cyclic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/pkg/depgraph/testdata/snyk_dep_graph_cyclic.json -------------------------------------------------------------------------------- /go/pkg/depgraph/testdata/snyk_dep_graph_shared_dep.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/go/pkg/depgraph/testdata/snyk_dep_graph_shared_dep.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/package.json -------------------------------------------------------------------------------- /scripts/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/scripts/readme.md -------------------------------------------------------------------------------- /scripts/to-graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/scripts/to-graph.ts -------------------------------------------------------------------------------- /scripts/to-tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/scripts/to-tree.ts -------------------------------------------------------------------------------- /src/core/builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/builder.ts -------------------------------------------------------------------------------- /src/core/create-changed-packages-graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/create-changed-packages-graph.ts -------------------------------------------------------------------------------- /src/core/create-from-json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/create-from-json.ts -------------------------------------------------------------------------------- /src/core/dep-graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/dep-graph.ts -------------------------------------------------------------------------------- /src/core/errors/custom-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/errors/custom-error.ts -------------------------------------------------------------------------------- /src/core/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/errors/index.ts -------------------------------------------------------------------------------- /src/core/errors/validation-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/errors/validation-error.ts -------------------------------------------------------------------------------- /src/core/filter-from-graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/filter-from-graph.ts -------------------------------------------------------------------------------- /src/core/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/types.ts -------------------------------------------------------------------------------- /src/core/validate-graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/core/validate-graph.ts -------------------------------------------------------------------------------- /src/graphlib/LICENSE-graphlib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/graphlib/LICENSE-graphlib -------------------------------------------------------------------------------- /src/graphlib/alg/dfs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/graphlib/alg/dfs.ts -------------------------------------------------------------------------------- /src/graphlib/alg/is-acyclic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/graphlib/alg/is-acyclic.ts -------------------------------------------------------------------------------- /src/graphlib/alg/postorder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/graphlib/alg/postorder.ts -------------------------------------------------------------------------------- /src/graphlib/alg/topsort.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/graphlib/alg/topsort.ts -------------------------------------------------------------------------------- /src/graphlib/graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/graphlib/graph.ts -------------------------------------------------------------------------------- /src/graphlib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/graphlib/index.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/legacy/cycles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/legacy/cycles.ts -------------------------------------------------------------------------------- /src/legacy/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/legacy/index.ts -------------------------------------------------------------------------------- /src/legacy/memiozation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/src/legacy/memiozation.ts -------------------------------------------------------------------------------- /test/core/__snapshots__/count-paths-to-root.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/__snapshots__/count-paths-to-root.test.ts.snap -------------------------------------------------------------------------------- /test/core/__snapshots__/filter-from-graph.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/__snapshots__/filter-from-graph.test.ts.snap -------------------------------------------------------------------------------- /test/core/__snapshots__/pkg-paths-to-root.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/__snapshots__/pkg-paths-to-root.test.ts.snap -------------------------------------------------------------------------------- /test/core/builder.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/builder.test.ts -------------------------------------------------------------------------------- /test/core/count-paths-to-root.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/count-paths-to-root.test.ts -------------------------------------------------------------------------------- /test/core/create-changed-packages-graph.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/create-changed-packages-graph.test.ts -------------------------------------------------------------------------------- /test/core/create-from-json.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/create-from-json.test.ts -------------------------------------------------------------------------------- /test/core/direct-deps-leading-to.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/direct-deps-leading-to.test.ts -------------------------------------------------------------------------------- /test/core/equals.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/equals.test.ts -------------------------------------------------------------------------------- /test/core/filter-from-graph.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/filter-from-graph.test.ts -------------------------------------------------------------------------------- /test/core/is-transitive.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/is-transitive.test.ts -------------------------------------------------------------------------------- /test/core/pkg-paths-to-root.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/pkg-paths-to-root.test.ts -------------------------------------------------------------------------------- /test/core/stress.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/stress.test.ts -------------------------------------------------------------------------------- /test/core/validate-graph.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/core/validate-graph.test.ts -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-added-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-added-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-added-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-added-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-added.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-added.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-added.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-added.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-changed-cycle-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-changed-cycle-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-changed-cycle-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-changed-cycle-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-changed-cycle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-changed-cycle.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-changed-cycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-changed-cycle.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-changed-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-changed-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-changed-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-changed-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-changed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-changed.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-changed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-changed.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-removed-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-removed-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-removed-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-removed-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-removed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-removed.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-removed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-removed.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-with-exiting-transitive-dep-added-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-with-exiting-transitive-dep-added-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-with-exiting-transitive-dep-added-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-with-exiting-transitive-dep-added-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-with-exiting-transitive-dep-added.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-with-exiting-transitive-dep-added.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-direct-dep-with-exiting-transitive-dep-added.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-direct-dep-with-exiting-transitive-dep-added.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-root-and-direct-dep-changed-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-root-and-direct-dep-changed-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-root-and-direct-dep-changed-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-root-and-direct-dep-changed-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-root-and-direct-dep-changed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-root-and-direct-dep-changed.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-root-and-direct-dep-changed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-root-and-direct-dep-changed.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-root-changed-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-root-changed-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-root-changed-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-root-changed-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-root-changed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-root-changed.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-root-changed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-root-changed.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-as-direct-dep-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-as-direct-dep-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-as-direct-dep-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-as-direct-dep-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-as-direct-dep.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-as-direct-dep.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-as-direct-dep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-as-direct-dep.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-changed-cycle-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-changed-cycle-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-changed-cycle-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-changed-cycle-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-changed-cycle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-changed-cycle.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-changed-cycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-changed-cycle.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-changed-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-changed-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-changed-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-changed-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-changed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-changed.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-changed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-changed.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-removed-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-removed-expected.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-removed-expected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-removed-expected.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-removed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-removed.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph-transitive-dep-removed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph-transitive-dep-removed.png -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph.json -------------------------------------------------------------------------------- /test/fixtures/changed-packages-graph/graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/changed-packages-graph/graph.png -------------------------------------------------------------------------------- /test/fixtures/cyclic-complex-dep-graph-expected-optimized-tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/cyclic-complex-dep-graph-expected-optimized-tree.png -------------------------------------------------------------------------------- /test/fixtures/cyclic-complex-dep-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/cyclic-complex-dep-graph.json -------------------------------------------------------------------------------- /test/fixtures/cyclic-complex-dep-graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/cyclic-complex-dep-graph.png -------------------------------------------------------------------------------- /test/fixtures/cyclic-dep-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/cyclic-dep-graph.json -------------------------------------------------------------------------------- /test/fixtures/equals/cycles/one-node-cycle-a.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/cycles/one-node-cycle-a.json -------------------------------------------------------------------------------- /test/fixtures/equals/cycles/one-node-cycle-b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/cycles/one-node-cycle-b.json -------------------------------------------------------------------------------- /test/fixtures/equals/cycles/simple-a.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/cycles/simple-a.json -------------------------------------------------------------------------------- /test/fixtures/equals/cycles/simple-b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/cycles/simple-b.json -------------------------------------------------------------------------------- /test/fixtures/equals/different-node-id-a.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/different-node-id-a.json -------------------------------------------------------------------------------- /test/fixtures/equals/different-node-id-b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/different-node-id-b.json -------------------------------------------------------------------------------- /test/fixtures/equals/simple-different-minor-verion.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/simple-different-minor-verion.json -------------------------------------------------------------------------------- /test/fixtures/equals/simple-different-root.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/simple-different-root.json -------------------------------------------------------------------------------- /test/fixtures/equals/simple-one-more-child.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/simple-one-more-child.json -------------------------------------------------------------------------------- /test/fixtures/equals/simple-with-label.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/simple-with-label.json -------------------------------------------------------------------------------- /test/fixtures/equals/simple-wrong-nodes-order-a.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/simple-wrong-nodes-order-a.json -------------------------------------------------------------------------------- /test/fixtures/equals/simple-wrong-nodes-order-b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/simple-wrong-nodes-order-b.json -------------------------------------------------------------------------------- /test/fixtures/equals/simple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/equals/simple.json -------------------------------------------------------------------------------- /test/fixtures/goof-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/goof-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/goof-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/goof-graph.json -------------------------------------------------------------------------------- /test/fixtures/gradle-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/gradle-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/labelled-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/labelled-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/labelled-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/labelled-graph.json -------------------------------------------------------------------------------- /test/fixtures/maven-dep-tree-wonky.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/maven-dep-tree-wonky.json -------------------------------------------------------------------------------- /test/fixtures/maven-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/maven-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/npm-cyclic-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/npm-cyclic-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/npm-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/npm-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/old-schema-compat/simple-graph-1.0.0.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/old-schema-compat/simple-graph-1.0.0.json -------------------------------------------------------------------------------- /test/fixtures/os-apk-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/os-apk-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/os-apt-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/os-apt-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/os-deb-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/os-deb-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/os-deb-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/os-deb-graph.json -------------------------------------------------------------------------------- /test/fixtures/os-linux-scratch-dep-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/os-linux-scratch-dep-graph.json -------------------------------------------------------------------------------- /test/fixtures/os-linux-scratch-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/os-linux-scratch-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/os-rpm-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/os-rpm-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/pip-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/pip-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/plain-dep-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/plain-dep-graph.json -------------------------------------------------------------------------------- /test/fixtures/pruneable-tree-multi-top-level-deps-pruned.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/pruneable-tree-multi-top-level-deps-pruned.json -------------------------------------------------------------------------------- /test/fixtures/pruneable-tree-multi-top-level-deps.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/pruneable-tree-multi-top-level-deps.json -------------------------------------------------------------------------------- /test/fixtures/pruneable-tree-pruned.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/pruneable-tree-pruned.json -------------------------------------------------------------------------------- /test/fixtures/pruneable-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/pruneable-tree.json -------------------------------------------------------------------------------- /test/fixtures/sbt-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/sbt-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/simple-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/simple-dep-tree.json -------------------------------------------------------------------------------- /test/fixtures/simple-graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/simple-graph.json -------------------------------------------------------------------------------- /test/fixtures/unpruneable-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/unpruneable-tree.json -------------------------------------------------------------------------------- /test/fixtures/yarn-dep-tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/fixtures/yarn-dep-tree.json -------------------------------------------------------------------------------- /test/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/helpers.ts -------------------------------------------------------------------------------- /test/legacy/__snapshots__/from-dep-tree.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/legacy/__snapshots__/from-dep-tree.test.ts.snap -------------------------------------------------------------------------------- /test/legacy/__snapshots__/to-dep-tree.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/legacy/__snapshots__/to-dep-tree.test.ts.snap -------------------------------------------------------------------------------- /test/legacy/from-dep-tree.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/legacy/from-dep-tree.test.ts -------------------------------------------------------------------------------- /test/legacy/stress.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/legacy/stress.test.ts -------------------------------------------------------------------------------- /test/legacy/to-dep-tree-prune.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/legacy/to-dep-tree-prune.test.ts -------------------------------------------------------------------------------- /test/legacy/to-dep-tree.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/legacy/to-dep-tree.test.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snyk/dep-graph/HEAD/tsconfig.json --------------------------------------------------------------------------------