This commit is contained in:
Felix Pankratz 2023-07-02 19:36:46 +02:00
parent 551e18f793
commit 6c24f6f134

View File

@ -36,15 +36,15 @@ To check a single package, pass the name of a package to the script as the first
$ ./npm-manifest-check.py darcyclarke-manifest-pkg $ ./npm-manifest-check.py darcyclarke-manifest-pkg
Version mismatch for darcyclarke-manifest-pkg! Version mismatch for darcyclarke-manifest-pkg!
Reported version: 2.1.15 Reported version: 2.1.15
Actual version: 3.0.0 Actual version: 3.0.0
Dependency mismatch detected for darcyclarke-manifest-pkg! Dependency mismatch detected for darcyclarke-manifest-pkg!
{'dictionary_item_added': {"root['sleepover']": '*'}} {'dictionary_item_added': {"root['sleepover']": '*'}}
Scripts mismatch detected for darcyclarke-manifest-pkg! Scripts mismatch detected for darcyclarke-manifest-pkg!
{ 'dictionary_item_added': { "root['install']": 'touch ./bad-pkg-write && echo ' { 'dictionary_item_added': { "root['install']": 'touch ./bad-pkg-write && echo '
'"bad pkg exec!"\n'}} '"bad pkg exec!"\n'}}
Name mismatch detected for Package(name='darcyclarke-manifest-pkg', reported_manifest=Manifest(name='darcyclarke-manifest-pkg', version='2.1.15', dependencies={}, scripts={}), actual_manifest=Manifest(name='express', version='3.0.0', dependencies={'sleepover': '*'}, scripts={'install': 'touch ./bad-pkg-write && echo "bad pkg exec!"\n'}))! Name mismatch detected for darcyclarke-manifest-pkg!
Reported name: darcyclarke-manifest-pkg Reported name: darcyclarke-manifest-pkg
Actual name: express Actual name: express
``` ```
A 'good' package will look like this: A 'good' package will look like this: