From d9fa72a9494ac4368958d41e38a19da66d24d62a Mon Sep 17 00:00:00 2001 From: Jordan Last Date: Wed, 12 Jun 2024 09:23:54 -0600 Subject: [PATCH 1/2] fix a high security vulnerability reported by npm --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index ac1dac4c58..8affd663f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1429,11 +1429,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -2414,9 +2414,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, From fac05d1c339b8d459c9a5f869f610e11d635d71c Mon Sep 17 00:00:00 2001 From: Jordan Last Date: Wed, 12 Jun 2024 11:02:49 -0600 Subject: [PATCH 2/2] put in hopefully try fix for azle new --- .github/workflows/test.yml | 2 +- examples/new/test/pretest.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b70dd0f79..3b1eb14047 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -309,7 +309,7 @@ jobs: run: npm link azle - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }} working-directory: ${{ matrix.example_directories }} - run: node_modules/.bin/azle install-dfx-extension + run: npx azle install-dfx-extension - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }} working-directory: ${{ matrix.example_directories }} run: dfx start --clean --background --host 127.0.0.1:8000 diff --git a/examples/new/test/pretest.ts b/examples/new/test/pretest.ts index 270f535ab7..26c9891436 100644 --- a/examples/new/test/pretest.ts +++ b/examples/new/test/pretest.ts @@ -7,6 +7,10 @@ async function pretest() { stdio: 'inherit' }); + execSync(`npx -y azle@${version} install-dfx-extension`, { + stdio: 'inherit' + }); + execSync(`cd hello_world && dfx canister uninstall-code backend || true`, { stdio: 'inherit' });