Skip to content

Commit 1a15f1b

Browse files
committed
chore: publish v5.0.4
1 parent 4160642 commit 1a15f1b

File tree

4 files changed

+22
-107
lines changed

4 files changed

+22
-107
lines changed

js/package-lock.json

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

js/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reclaimprotocol/zk-symmetric-crypto",
3-
"version": "5.0.3",
3+
"version": "5.0.4",
44
"description": "JS Wrappers for Various ZK Snark Circuits",
55
"type": "module",
66
"exports": {
@@ -71,16 +71,14 @@
7171
}
7272
},
7373
"dependencies": {
74-
"js-base64": "^3.7.7",
75-
"unzipper": "^0.12.3"
74+
"js-base64": "^3.7.7"
7675
},
7776
"devDependencies": {
7877
"@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
7978
"@commitlint/cli": "^17.7.1",
8079
"@commitlint/config-conventional": "^17.7.0",
8180
"@reclaimprotocol/tls": "^0.1.0",
8281
"@types/node": "^22.0.0",
83-
"@types/unzipper": "^0.10.11",
8482
"circom_tester": "^0.0.20",
8583
"circomlib": "^2.0.5",
8684
"compare-versions": "^6.1.1",

js/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { AlgorithmConfig, EncryptionAlgorithm } from './types.ts'
33
import { bitsToUint8Array, bitsToUintArray, toUint8Array, toUintArray, uint8ArrayToBits, uintArrayToBits } from './utils.ts'
44

55
// commit hash for this repo
6-
export const GIT_COMMIT_HASH = 'dff38dd82ffe8598272dc4d71abc1a99f33b0595'
6+
export const GIT_COMMIT_HASH = '4160642fd6c64c3f33c9144eaf8b4782c22ae2be'
77

88
export const CONFIG: { [E in EncryptionAlgorithm]: AlgorithmConfig } = {
99
'chacha20': {

js/src/scripts/download-files.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
import { createReadStream, createWriteStream } from 'fs'
1+
import { exec } from 'child_process'
2+
import { createWriteStream } from 'fs'
23
import { mkdir, rename, rm } from 'fs/promises'
34
import { dirname, join } from 'path'
45
import { Readable } from 'stream'
56
import { pipeline } from 'stream/promises'
6-
import { Extract } from 'unzipper'
7+
import { promisify } from 'util'
78
import { GIT_COMMIT_HASH } from '../config.ts'
89
import type { Logger } from '../types.ts'
910

10-
11+
const execPromise = promisify(exec)
1112
const logger: Logger = console
1213

1314
const ZIP_URL = `https://github.com/reclaimprotocol/zk-symmetric-crypto/archive/${GIT_COMMIT_HASH}.zip`
@@ -48,11 +49,8 @@ async function downloadAndExtractZip() {
4849

4950
logger.info('downloaded ZIP, extracting...')
5051

51-
// Extract ZIP
52-
await pipeline(
53-
createReadStream(zipPath),
54-
Extract({ path: './' })
55-
)
52+
// Extract ZIP using unzip command
53+
await execPromise(`unzip -q ${zipPath} -d ./`)
5654

5755
logger.info(`extracted to ${EXTRACTED_DIR}`)
5856
}

0 commit comments

Comments
 (0)