From 9201fe941c539a384ecf377d92e060b0332c6bc1 Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Wed, 18 Dec 2024 22:28:37 +0500 Subject: [PATCH] fixup! chore(deps): install ses --- package.json | 1 + scripts/changePrice.mjs | 2 +- scripts/createVault.mjs | 2 +- scripts/lockdown.mjs | 10 ++++++++++ scripts/placeBid.mjs | 2 +- yarn.lock | 1 + 6 files changed, 15 insertions(+), 3 deletions(-) mode change 100644 => 100755 scripts/changePrice.mjs create mode 100644 scripts/lockdown.mjs diff --git a/package.json b/package.json index 387ddbe3..8c7635f5 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "devDependencies": { "@agoric/internal": "0.4.0-u18.0", "@cosmjs/stargate": "^0.28.9", + "@endo/eventual-send": "^1.2.8", "@subql/cli": "^5.4.0", "@subql/node-cosmos": "^4.2.1", "@subql/testing": "latest", diff --git a/scripts/changePrice.mjs b/scripts/changePrice.mjs old mode 100644 new mode 100755 index e0939128..45fbaa7f --- a/scripts/changePrice.mjs +++ b/scripts/changePrice.mjs @@ -1,5 +1,5 @@ #! /usr/bin/env node -import 'ses'; +import './lockdown.mjs'; import { execa } from 'execa'; import { assertAllDefined } from '@agoric/internal'; diff --git a/scripts/createVault.mjs b/scripts/createVault.mjs index dce4e7fc..563e1f67 100644 --- a/scripts/createVault.mjs +++ b/scripts/createVault.mjs @@ -1,5 +1,5 @@ #! /usr/bin/env node -import 'ses'; +import './lockdown.mjs'; import { execa } from 'execa'; import assert from 'node:assert/strict'; import { assertAllDefined } from '@agoric/internal'; diff --git a/scripts/lockdown.mjs b/scripts/lockdown.mjs new file mode 100644 index 00000000..76a83b63 --- /dev/null +++ b/scripts/lockdown.mjs @@ -0,0 +1,10 @@ +import 'ses'; +import '@endo/eventual-send/shim.js'; + +const options = { + overrideTaming: 'severe', + stackFiltering: 'verbose', + errorTaming: 'unsafe', +}; + +lockdown(options); diff --git a/scripts/placeBid.mjs b/scripts/placeBid.mjs index 223cb2b4..a3e8f847 100644 --- a/scripts/placeBid.mjs +++ b/scripts/placeBid.mjs @@ -1,5 +1,5 @@ #! /usr/bin/env node -import 'ses'; +import './lockdown.mjs'; import { execa } from 'execa'; import assert from 'node:assert/strict'; import { assertAllDefined } from '@agoric/internal'; diff --git a/yarn.lock b/yarn.lock index 93d0745a..3d72bb34 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4321,6 +4321,7 @@ __metadata: dependencies: "@agoric/internal": "npm:0.4.0-u18.0" "@cosmjs/stargate": "npm:^0.28.9" + "@endo/eventual-send": "npm:^1.2.8" "@subql/cli": "npm:^5.4.0" "@subql/node-cosmos": "npm:^4.2.1" "@subql/testing": "npm:latest"