@marcbachmann/cel-js
Advanced tools
+4
-2
@@ -1130,4 +1130,6 @@ import {EvaluationError, evaluationError} from './errors.js' | ||
| if (typeof signature !== 'string') throw new Error('Invalid signature: must be a string') | ||
| const match = signature.match(/^(?:([a-zA-Z0-9.<>]+)\.)?(\w+)\((.*?)\):\s*(.+)$/) | ||
| const match = signature.match(/^(?:([a-zA-Z0-9.<>]+)\.)?(\w+)\(([^)]*)\):(.*)$/) | ||
| if (!match) throw new Error(`Invalid signature: ${signature}`) | ||
| const returnType = match[4].trim() | ||
| if (!returnType) throw new Error(`Invalid signature: ${signature}`) | ||
| return { | ||
@@ -1137,3 +1139,3 @@ receiverType: match[1] || null, | ||
| argTypes: splitByComma(match[3]), | ||
| returnType: match[4].trim() | ||
| returnType | ||
| } | ||
@@ -1140,0 +1142,0 @@ } |
+6
-6
| { | ||
| "name": "@marcbachmann/cel-js", | ||
| "version": "7.6.0", | ||
| "version": "7.6.1", | ||
| "description": "A lightweight Common Expression Language (CEL) implementation in JavaScript with zero dependencies", | ||
@@ -72,12 +72,12 @@ "keywords": [ | ||
| "service": "drone", | ||
| "commit": "d600a93110f1bfc63833e39a84de3086b382879b", | ||
| "build": "261", | ||
| "buildUrl": "https://drone.livingdocs.io/marcbachmann/cel-js/261", | ||
| "commit": "9dca883287384a0c21e64c44077ac62bcc4185c9", | ||
| "build": "264", | ||
| "buildUrl": "https://drone.livingdocs.io/marcbachmann/cel-js/264", | ||
| "branch": "main", | ||
| "jobUrl": "https://drone.livingdocs.io/marcbachmann/cel-js/261", | ||
| "jobUrl": "https://drone.livingdocs.io/marcbachmann/cel-js/264", | ||
| "isPr": false, | ||
| "slug": "marcbachmann/cel-js", | ||
| "root": "/drone/src", | ||
| "date": "2026-03-26T01:26:14.342Z" | ||
| "date": "2026-04-27T20:34:20.131Z" | ||
| } | ||
| } |
227458
0.04%5597
0.04%