Skip to content

Commit 779f638

Browse files
committed
deps(amazonq): upgrade adm-zip to 0.5.16
1 parent 2200b15 commit 779f638

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Amazon Q: Fix code upload error when using /dev or /doc on Remote SSH"
4+
}

packages/amazonq/test/unit/codewhisperer/util/zipUtil.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import assert from 'assert'
77
import vscode from 'vscode'
88
import sinon from 'sinon'
9-
import { join } from 'path'
9+
import { join, posix } from 'path'
1010
import { getTestWorkspaceFolder } from 'aws-core-vscode/test'
1111
import { CodeAnalysisScope, CodeWhispererConstants, ZipUtil } from 'aws-core-vscode/codewhisperer'
1212
import { codeScanTruncDirPrefix } from 'aws-core-vscode/codewhisperer'
@@ -124,7 +124,7 @@ describe('zipUtil', function () {
124124
const zipFileData = await fs.readFileBytes(zipMetadata.zipFilePath)
125125
const zip = await JSZip.loadAsync(zipFileData)
126126
const files = Object.keys(zip.files)
127-
assert.ok(files.includes(join('workspaceFolder', 'workspaceFolder', 'App.java')))
127+
assert.ok(files.includes(posix.join('workspaceFolder', 'workspaceFolder', 'App.java')))
128128
})
129129

130130
it('should handle path with repeated project name for project scan', async function () {
@@ -136,7 +136,7 @@ describe('zipUtil', function () {
136136
const zipFileData = await fs.readFileBytes(zipMetadata.zipFilePath)
137137
const zip = await JSZip.loadAsync(zipFileData)
138138
const files = Object.keys(zip.files)
139-
assert.ok(files.includes(join('workspaceFolder', 'workspaceFolder', 'App.java')))
139+
assert.ok(files.includes(posix.join('workspaceFolder', 'workspaceFolder', 'App.java')))
140140
})
141141
})
142142

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@
518518
"@smithy/util-retry": "^2.2.0",
519519
"@vscode/debugprotocol": "^1.57.0",
520520
"@zip.js/zip.js": "^2.7.41",
521-
"adm-zip": "^0.5.10",
521+
"adm-zip": "^0.5.16",
522522
"amazon-states-language-service": "^1.13.0",
523523
"async-lock": "^1.4.0",
524524
"aws-sdk": "^2.1692.0",

0 commit comments

Comments
 (0)