You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: verify integrity signature when downloading from npm registry (#432)
When the user has not provided any hash (so when running `corepack up`/`corepack use …`), and the package manager is downloaded from the npm registry, we can verify the signature.
BREAKING CHANGE: attempting to download a version from the npm registry (or a mirror) that was published using the now deprecated PGP signature without providing a hash will trigger an error. Users can disable the signature verification using a environment variable.
header.write(`0001750 `,108,8,`utf-8`);// Owner's numeric user ID (octal) followed by a space
14
46
header.write(`0001750 `,116,8,`utf-8`);// Group's numeric user ID (octal) followed by a space
15
47
header.write(`${contentBuffer.length.toString(8)} `,124,12,`utf-8`);// File size in bytes (octal) followed by a space
16
-
header.write(`${Math.floor(Date.now()/1000).toString(8)} `,136,12,`utf-8`);// Last modification time in numeric Unix time format (octal) followed by a space
48
+
header.write(`${Math.floor(newDate(2000,1,1)/1000).toString(8)} `,136,12,`utf-8`);// Last modification time in numeric Unix time format (octal) followed by a space
17
49
header.fill(` `,148,156);// Fill checksum area with spaces for calculation
0 commit comments