blob: 1636fda273cd03539c7a16667e395cbeb438965a [file]
# GENERATED BY: test/dependency_services/dependency_services_test.dart
$ cat pubspec.yaml
{"name":"app","dependencies":{"foo":"^1.0.0"},"environment":{"sdk":"^3.0.2"}}
$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
foo:
dependency: "direct main"
description:
name: foo
sha256: "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
sdks:
dart: ">=3.0.2 <4.0.0"
-------------------------------- END OF OUTPUT ---------------------------------
## Section report
$ echo '{"target":null,"disallowed":[{"name":"foo","url":"http://localhost:$PORT","versions":[{"range":"1.0.2"}]},{"name":"transitive","url":"http://localhost:$PORT","versions":[{"range":"1.0.0"}]}]}' | dependency_services report
{
"dependencies": [
{
"name": "foo",
"version": "1.0.0",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
},
"latest": "1.0.3",
"constraint": "^1.0.0",
"compatible": [
{
"name": "foo",
"version": "1.0.1",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "7e5c9a856d9aaa086b9724210ae9017edd53d704d630fe0cae743abc5074a997"
}
},
"constraintBumped": "^1.0.0",
"constraintWidened": "^1.0.0",
"constraintBumpedIfNeeded": "^1.0.0",
"previousVersion": "1.0.0",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
}
}
],
"singleBreaking": [],
"multiBreaking": [
{
"name": "foo",
"version": "1.0.1",
"kind": "direct",
"source": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "7e5c9a856d9aaa086b9724210ae9017edd53d704d630fe0cae743abc5074a997"
}
},
"constraintBumped": "^1.0.1",
"constraintWidened": "^1.0.0",
"constraintBumpedIfNeeded": "^1.0.0",
"previousVersion": "1.0.0",
"previousConstraint": "^1.0.0",
"previousSource": {
"type": "hosted",
"description": {
"name": "foo",
"url": "http://localhost:$PORT",
"sha256": "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
}
}
}
]
}
]
}
-------------------------------- END OF OUTPUT ---------------------------------
$ cat pubspec.yaml
{"name":"app","dependencies":{"foo":"^1.0.0"},"environment":{"sdk":"^3.0.2"}}
$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
foo:
dependency: "direct main"
description:
name: foo
sha256: "4a8df8c695623e81d90f663801ead4a5269b406599b43b90ad558561a6f09c59"
url: "http://localhost:$PORT"
source: hosted
version: "1.0.0"
sdks:
dart: ">=3.0.2 <4.0.0"