Sign In

@moneolabs/guard

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moneolabs/guard - npm Package Compare versions

Comparing version
0.2.1
to
0.3.0
+2
-2
package.json
{
"name": "@moneolabs/guard",
"version": "0.2.1",
"version": "0.3.0",
"description": "Spending policy for AI agents, evaluated before anything is signed.",

@@ -59,4 +59,4 @@ "license": "MIT",

"dependencies": {
"@moneolabs/core": "0.2.1"
"@moneolabs/core": "0.3.0"
}
}

@@ -129,7 +129,7 @@ # @moneolabs/guard

{ perTransaction: { max: "$100" } },
{ prices: fixedPrices({ AAPLX: 228.41 }) },
{ prices: fixedPrices({ AAPL: 309.92 }) },
);
await guard.check({ action: "trade", amount: "2 AAPLX" });
// blocked: "$456.82 exceeds the $100.00 per-transaction limit"
await guard.check({ action: "trade", amount: "2 AAPL" });
// blocked: "$619.84 exceeds the $100.00 per-transaction limit"
```

@@ -136,0 +136,0 @@