-
Notifications
You must be signed in to change notification settings - Fork 100
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: raszi/node-tmp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.4
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: raszi/node-tmp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.7
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 9 commits
- 6 files changed
- 4 contributors
Commits on Aug 7, 2025
-
Configuration menu - View commit details
-
Copy full SHA for b847d2f - Browse repository at this point
Copy the full SHA b847d2fView commit details
Commits on Aug 8, 2025
-
Merge pull request #309 from fflorent/fix-tmp-dir-with-dir
Fix use of tmp.dir() with `dir` option
Configuration menu - View commit details
-
Copy full SHA for e162828 - Browse repository at this point
Copy the full SHA e162828View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d2fe38 - Browse repository at this point
Copy the full SHA 3d2fe38View commit details
Commits on Apr 6, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 7ef2728 - Browse repository at this point
Copy the full SHA 7ef2728View commit details
Commits on May 12, 2026
-
Configuration menu - View commit details
-
Copy full SHA for efa4a06 - Browse repository at this point
Copy the full SHA efa4a06View commit details
Commits on May 26, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 41f7159 - Browse repository at this point
Copy the full SHA 41f7159View commit details
Commits on May 27, 2026
-
Reject non-string prefix, postfix, template
The relative-value guard in `_assertPath` calls `.includes('..')` directly on the user-supplied value. When the value is an Array the call checks element equality (so `['../escape'].includes('..')` is false), and when the value is an arbitrary object a duck-typed `includes` returning false defeats the check entirely. In both cases the value is subsequently coerced to a string by `Array.prototype.join` inside `_generateTmpName` and by `path.join`, so a non-string carrying `../` still produces a path that escapes `tmpdir`. Tighten `_assertPath` to require `typeof value === 'string'` before the substring check, and apply the same type check to `template` ahead of the existing `XXXXXX` regex match (otherwise `match` throws on a non-string with an unrelated error). The error includes the option name so consumers can see which option was wrong. Adds a `test/GHSA-7c78-jf6q-g5cm-test.js` that exercises array, duck-typed object, and primitive (number) inputs across `fileSync`, `dirSync`, and `tmpNameSync`, and asserts that valid string inputs are still accepted. Signed-off-by: tonghuaroot <tonghuaroot@gmail.com>Configuration menu - View commit details
-
Copy full SHA for ce787f3 - Browse repository at this point
Copy the full SHA ce787f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f24f78 - Browse repository at this point
Copy the full SHA 8f24f78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ea1f37 - Browse repository at this point
Copy the full SHA 8ea1f37View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.2.4...v0.2.7