@agenttoll/sdk 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tollbooth.js +3 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenttoll/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "One-line micropayment integration for AI agents - Express, Cloudflare Workers, Vercel Edge",
5
5
  "main": "tollbooth.js",
6
6
  "exports": {
package/tollbooth.js CHANGED
@@ -285,8 +285,6 @@ tollbooth.hasPaid = function(req) {
285
285
  */
286
286
  tollbooth.isAgent = isAgent;
287
287
 
288
- // Export for different module systems
289
- module.exports = tollbooth;
290
- module.exports.default = tollbooth;
291
- module.exports.tollbooth = tollbooth;
292
- module.exports.isAgent = isAgent;
288
+ // ES Module exports
289
+ export default tollbooth;
290
+ export { tollbooth, isAgent };