Skip to content

Commit 7d3c19f

Browse files
authored
chore: Bump js-yaml from 3.14.1 to 4.1.1 (#608)
1 parent f7bc200 commit 7d3c19f

18 files changed

+77
-79
lines changed

package-lock.json

Lines changed: 58 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"express": "^4.21.1",
3939
"fs-extra": "^10.1.0",
4040
"inquirer": "^8.2.7",
41-
"js-yaml": "^3.13.1",
41+
"js-yaml": "^4.1.1",
4242
"keychain": "^1.4.0",
4343
"keytar": "^7.9.0",
4444
"lodash": "^4.17.13",

src/box-command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function formatObject(obj) {
256256
let outputData = formatObjectKeys(obj);
257257

258258
// Other objects are formatted as YAML for human-readable output
259-
let yamlString = yaml.safeDump(outputData, {
259+
let yamlString = yaml.dump(outputData, {
260260
indent: 4,
261261
noRefs: true,
262262
});

test/fixtures/output/files_share_yaml.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Type: file
22
ID: '1234567890'
33
Shared Link:
4-
URL: 'https://blosserdemoaccount.box.com/s/7mcmdlavtye5o5i0ue8xmtwh2sx5bv8p'
4+
URL: https://blosserdemoaccount.box.com/s/7mcmdlavtye5o5i0ue8xmtwh2sx5bv8p
55
Download URL: >-
66
https://blosserdemoaccount.box.com/shared/static/7mcmdlavtye5o5i0ue8xmtwh2sx5bv8p.png
7-
Vanity URL: 'https://app.box.com/v/my-custom-name-123'
7+
Vanity URL: https://app.box.com/v/my-custom-name-123
88
Effective Access: open
99
Is Password Enabled: true
1010
Unshared At: null

test/fixtures/output/files_upload_yaml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: file
22
ID: '1234567890'
33
File Version:
44
Type: file_version
5-
ID: 098765432109
5+
ID: '098765432109'
66
SHA1: 0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
77
Sequence ID: '0'
88
ETag: '0'

test/fixtures/output/files_versions_upload_yaml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: file
22
ID: '1234567890'
33
File Version:
44
Type: file_version
5-
ID: 098765432109
5+
ID: '098765432109'
66
SHA1: 0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
77
Sequence ID: '0'
88
ETag: '0'

test/fixtures/output/folders_share_yaml.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Type: folder
22
ID: '0'
33
Shared Link:
4-
URL: 'https://blosserdemoaccount.box.com/s/7mcmdlavtye5o5i0ue8xmtwh2sx5bv8p'
4+
URL: https://blosserdemoaccount.box.com/s/7mcmdlavtye5o5i0ue8xmtwh2sx5bv8p
55
Download URL: >-
66
https://blosserdemoaccount.box.com/shared/static/7mcmdlavtye5o5i0ue8xmtwh2sx5bv8p.png
7-
Vanity URL: 'https://app.box.com/v/my-custom-name-123'
7+
Vanity URL: https://app.box.com/v/my-custom-name-123
88
Effective Access: open
99
Is Password Enabled: true
1010
Unshared At: null

test/fixtures/output/users_create_yaml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Status: active
1313
Job Title: ''
1414
Phone: '1234567890'
1515
Address: ''
16-
Avatar URL: 'https://app.box.com/api/avatar/large/deprecated'
16+
Avatar URL: https://app.box.com/api/avatar/large/deprecated

test/fixtures/output/users_get_yaml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Status: active
1313
Job Title: ''
1414
Phone: 555-555-5555
1515
Address: ''
16-
Avatar URL: 'https://app.box.com/api/avatar/large/deprecated'
16+
Avatar URL: https://app.box.com/api/avatar/large/deprecated

test/fixtures/output/users_invite_user_yaml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Status: active
1313
Job Title: ''
1414
Phone: 555-555-5555
1515
Address: ''
16-
Avatar URL: 'https://app.box.com/api/avatar/large/deprecated'
16+
Avatar URL: https://app.box.com/api/avatar/large/deprecated

0 commit comments

Comments
 (0)