Commit a7334da
feat(checksums): add integrity field with sha512 authentication to yarn.lock (#5042)
* test(fixtures): adjust yarn.lock and snapshots with integrity field as needed
* test(integrity): adjust existing cases to integrity field authentication
* test(fixtures): integrity field authentication cases
* test(integrity): integration and unit tests for the lockfile integrity field
* chore(deps): add ssri module
* feat(checksums): add integrity field with sha512 authentication to yarn.lock
* test(integrity): additional sri string options
* fix(checksums): better error when algorithms are not supported
* fix(checksums): proper error message for bad hash in node <= 6
* chore(integrity): fixed new flow issues
* test(integrity): adjust additional test case
* test(fixtures): additional integrity field authentication cases
* fix(integrity): update integrity for offline-mirror cases
* style(integrity): clarify conditional for flow
* fix(integrity): throw sync error rather than rejecting it
* Update yarn.lock with new integrity field
* Upgrade ssri
* Use the latest version of the SSRI package
* Optimize integrity matching from lockfile a bit
* Refactor digest support determination
* test(error): fixed expected error wording
* fix(checksum): fail validation on malformed hash or integrity
* fix(test): verify integrity failure on malformed integrity string
* test(fixtures): add install auth malformed integrity fixture
* chore(deps): update dependency eslint-config-fb-strict to ^22.0.0 (#5570)
**Summary**
This Pull Request updates dependency eslint-config-fb-strict from ^20.1.0-delta.3 to ^22.0.0
**Test plan**
`yarn lint` should pass.
* chore(jest): Upgrade Jest flow types (#5573)
**Summary**
Follow up to #5569.
**Test plan**
`yarn lint` should pass without errors.
* ci(appveyor): Fix AppVeyor tests (#5574)
* ci(appveyor): Fix AppVeyor tests
**Summary**
Jest 22.4.x mocks the process object without a proper stub for `process.mainModule`. In our
lifecycle code, we try to set `env.npm_execpath` when it is not defined by using
`process.mainModule.filename`. When running tests on AppVeyor, we run Jest directly, thus we don't
have `env.npm_execpath` set, triggering the `process.mainModule` code path which is also not set,
causing tests to fail.
**Test plan**
AppVeyor builds should pass.
* Fix tests
* Add missing package cache
* Bring --update-checksums back
* Fix tests
* Bring --update-checksums back
* Fix Flow error
* Fix error w/ updateChecksums
* Update ssri semver in package.json
* Stabilize TarballFetcher.fetch tests
* Moar test fixes
* test(update-checksums): make sure the flag works when integrity is malformed
* fix(updateChecksums): minor issues and edge cases
* Revert unrelated change
ahead of 'imsnif/master' by 1 commit.
* Slight refactor in lockfile parser
* test(fixtures): update integrity and dep versions
* fix(checksums): create integrity when importing from node_modules
* test(fixtures): add integrity field to expected yarn.lock
* Fixes error reporting
* Fixes error reporting
* Fixes tests1 parent 94933a8 commit a7334da
File tree
170 files changed
+4865
-375
lines changed- __tests__
- __snapshots__
- commands
- install
- __snapshots__
- fixtures
- add
- add-integrity-sha1
- add-integrity-sha512
- import
- deep-package-lock
- deep
- missing-dev
- missing-opt
- overlapping-package-lock
- overlapping
- package-lock-missing-deps
- shallow-dev-package-lock
- shallow-dev
- shallow-package-lock
- shallow
- install
- cache-symlinks
- check-top-correct
- install-bin-links-eslint
- install-dont-write-lockfile-if-satisfied
- install-duplicate-bin
- install-from-offline-mirror
- install-import-pr
- install-nested-bin
- install-offline-built-artifacts-multiple-platforms
- install-offline-built-artifacts-no-ignores
- install-offline-built-artifacts
- install-should-be-idempotent
- install-should-circumvent-circular-dependencies
- install-should-cleanup-when-package-json-changed-2
- install-should-cleanup-when-package-json-changed
- install-should-dedupe-avoiding-conflicts-0
- install-should-dedupe-avoiding-conflicts-1
- install-should-dedupe-avoiding-conflicts-2
- install-should-dedupe-avoiding-conflicts-3
- install-should-dedupe-avoiding-conflicts-4
- install-should-dedupe-avoiding-conflicts-5
- install-should-dedupe-avoiding-conflicts-6
- install-should-dedupe-avoiding-conflicts-7
- install-should-dedupe-avoiding-conflicts-8
- install-should-dedupe-avoiding-conflicts-9
- install-update-auth-bad-sha512-good-hash
- install-update-auth-combined-sha1-sha512
- install-update-auth-madeup-right-sha512
- install-update-auth-madeup
- install-update-auth-malformed
- install-update-auth-multiple-sha1
- install-update-auth-multiple-sha512
- install-update-auth-multiple-wrong-sha1-right-sha512
- install-update-auth-no-integrity-field
- install-update-auth-right-sha1-wrong-sha512
- install-update-auth-sha1
- install-update-auth-sha384
- install-update-auth-sha3
- install-update-auth-sha512-options
- install-update-auth-sha512
- install-update-auth-wrong-hash
- install-update-auth-wrong-sha1
- install-update-auth-wrong-sha512
- install-update-checksums-malformed
- install-update-checksums
- lockfile-no-rewrites
- lockfile-optimization
- prod-should-keep-subdeps
- prune-offline-mirror-scoped
- prune-offline-mirror
- scripts-order-with-one-package-missing-install-script
- scripts-order
- workspaces-install-bin
- remove
- prune-offline-mirror
- subdependencies
- request-cache/GET
- registry.npmjs.org/safe-buffer/-
- registry.yarnpkg.com
- safe-buffer/-
- src
- cli/commands
- fetchers
- lockfile
- reporters/lang
- resolvers/registries
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
170 files changed
+4865
-375
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
110 | 132 | | |
111 | 133 | | |
112 | 134 | | |
| |||
288 | 310 | | |
289 | 311 | | |
290 | 312 | | |
291 | | - | |
| 313 | + | |
292 | 314 | | |
293 | 315 | | |
294 | 316 | | |
| |||
378 | 400 | | |
379 | 401 | | |
380 | 402 | | |
381 | | - | |
| 403 | + | |
382 | 404 | | |
383 | | - | |
| 405 | + | |
384 | 406 | | |
385 | 407 | | |
386 | 408 | | |
| |||
410 | 432 | | |
411 | 433 | | |
412 | 434 | | |
413 | | - | |
| 435 | + | |
414 | 436 | | |
415 | 437 | | |
416 | 438 | | |
| |||
449 | 471 | | |
450 | 472 | | |
451 | 473 | | |
452 | | - | |
| 474 | + | |
453 | 475 | | |
454 | 476 | | |
455 | 477 | | |
| |||
556 | 578 | | |
557 | 579 | | |
558 | 580 | | |
559 | | - | |
| 581 | + | |
560 | 582 | | |
561 | 583 | | |
562 | 584 | | |
| |||
578 | 600 | | |
579 | 601 | | |
580 | 602 | | |
581 | | - | |
| 603 | + | |
582 | 604 | | |
583 | 605 | | |
584 | 606 | | |
| |||
613 | 635 | | |
614 | 636 | | |
615 | 637 | | |
616 | | - | |
617 | | - | |
| 638 | + | |
| 639 | + | |
618 | 640 | | |
619 | 641 | | |
620 | 642 | | |
| |||
665 | 687 | | |
666 | 688 | | |
667 | 689 | | |
668 | | - | |
| 690 | + | |
669 | 691 | | |
670 | 692 | | |
671 | 693 | | |
| |||
686 | 708 | | |
687 | 709 | | |
688 | 710 | | |
689 | | - | |
| 711 | + | |
690 | 712 | | |
691 | 713 | | |
692 | 714 | | |
| |||
Lines changed: 1 addition & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 3 | + | |
0 commit comments