Skip to content

Commit e334f18

Browse files
committed
Publish v0.3.1
1 parent 654c73a commit e334f18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/tools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const tools = [
4242
if (typeof path !== 'string') {
4343
throw new Error('Expected path to be a string')
4444
}
45-
if (path.includes('..') || path.includes('~')) {
45+
if (path.includes('..') || path.includes('~') || path.startsWith('/')) {
4646
throw new Error('Invalid path: ' + path)
4747
}
4848
if (typeof filetype !== 'undefined' && typeof filetype !== 'string') {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hyperparam",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Hyperparam CLI",
55
"author": "Hyperparam",
66
"homepage": "https://hyperparam.app",

0 commit comments

Comments
 (0)