Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ jobs:

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

node: [18, 20, 22]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}
- run: npm run test
8 changes: 4 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
Expand Down
84 changes: 49 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.37.1",
"@playwright/test": "^1.54.2",
"esbuild": "^0.19.2",
"eslint": "^8.48.0",
"eslint-config-standard": "^17.1.0"
Expand Down
8 changes: 4 additions & 4 deletions src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Entry {
const dv = new DataView(buffer)
dv.setUint32(0, 0x04034b50, true) // Local file header signature
dv.setUint16(4, 0x1400) // Version needed to extract (minimum)
dv.setUint16(6, 0) // General purpose bit flag
dv.setUint16(6, 0b100000000000, true) // General purpose bit flag
this.commonHeaders(dv, 8)
dv.setUint16(28, 0, true) // Extra field length
return new Blob([buffer, this.encodedName])
Expand All @@ -65,7 +65,7 @@ class Entry {
dv.setUint32(0, 0x02014b50, true) // Central directory file header signature
dv.setUint16(4, 0x1404) // Version made by
dv.setUint16(6, 0x1400) // Version needed to extract (minimum)
dv.setUint16(8, 0b0000100000000000) // General purpose bit flag
dv.setUint16(8, 0b100000000000, true) // General purpose bit flag
this.commonHeaders(dv, 10)
dv.setUint16(30, 0, true) // Extra field length
dv.setUint16(32, 0, true) // File comment length
Expand Down Expand Up @@ -147,8 +147,8 @@ export default class {
const buffer = new ArrayBuffer(this.constructor.#endOfCentralDirectoryRecordLength)
const dv = new DataView(buffer)
dv.setUint32(0, 0x06054b50, true) // End of central directory signature
dv.setUint16(4, 0) // Number of this disk
dv.setUint16(6, 0) // Disk where central directory starts
dv.setUint16(4, 0, true) // Number of this disk
dv.setUint16(6, 0, true) // Disk where central directory starts
dv.setUint16(8, this.entries.length, true) // Number of central directory records on this disk
dv.setUint16(10, this.entries.length, true) // Total number of central directory records
dv.setUint32(12, this.centralDirectorySize, true) // Size of central directory
Expand Down